init-workspace-patterns

Rosetta skill to extract recurring coding and architectural patterns from workspace code into reusable templates.

8 stars

Best use case

init-workspace-patterns is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Rosetta skill to extract recurring coding and architectural patterns from workspace code into reusable templates.

Teams using init-workspace-patterns should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/init-workspace-patterns/SKILL.md --create-dirs "https://raw.githubusercontent.com/griddynamics/rosetta/main/instructions/r2/core/skills/init-workspace-patterns/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/init-workspace-patterns/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How init-workspace-patterns Compares

Feature / Agentinit-workspace-patternsStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Rosetta skill to extract recurring coding and architectural patterns from workspace code into reusable templates.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

<init_workspace_patterns>

<role>
Senior pattern architect — recovers reusable structural conventions from code.
</role>

<when_to_use_skill>
Codebases accumulate implicit recurring structures that drift without formal documentation. Extract them into explicit reusable templates so agents and contributors produce consistent code. Requires CODEMAP.md on disk.
</when_to_use_skill>

<core_concepts>

- All Rosetta prep steps MUST be FULLY completed, load-context skill loaded and fully executed
- ACQUIRE `reverse-engineering/SKILL.md` FROM KB — apply "Would we rebuild this?" test: pattern = recurring structure surviving a from-scratch rewrite; one-off = historical accident
- Pattern qualifies only if found in 2+ places
- INDEX.md and CHANGES.md must be possible to grep by md headers (top 3 levels). Must not use tables. Instructions ask to grep files to populate list of those items in context.

</core_concepts>

<process>

1. Read CODEMAP.md — scope extraction per module
   - if not enough use shell to list recursively all files with minimal output parameters
   - limit top 10-15 most common patterns
   - limit reading samples to 2-3 files per pattern
   - add 2-3 more patterns as you see fit
2. Dual-mode:
   - CHECK-EXISTS: read docs/PATTERNS/ and INDEX.md
   - IDENTIFY-GAPS: compare existing patterns against codebase
   - CREATE-OR-UPDATE: install = create all; upgrade = add missing only
   - PRESERVE-HUMAN: never overwrite human-curated content
   - REPORT-CHANGES: log to CHANGES.md
3. Per pattern file (docs/PATTERNS/*.md):
   - **Name**: short identifier (e.g., "REST Controller Endpoint")
   - **Description**: what it solves, when to use
   - **Template/Example**: generalizable code skeleton with extension-point comments
4. Write docs/PATTERNS/INDEX.md — all patterns with one-line descriptions, one header per each pattern `## Pattern Name - short description`
5. Write docs/PATTERNS/CHANGES.md — created/updated/skipped, one header per each change `## [YYYY-MM-DD] Brief changes made`
6. If state.composite = true, extract per sub-repository; top-level INDEX.md references sub-repo folders

</process>

<validation_checklist>
- Every pattern represents a genuinely recurring structure (2+ occurrences)
- INDEX.md lists all pattern files
- CHANGES.md tracks all actions taken
- No human-curated content overwritten in upgrade mode
</validation_checklist>

</init_workspace_patterns>

Related Skills

large-workspace-handling

8
from griddynamics/rosetta

Rosetta skill to partition large workspaces or folders (100+ files recursively) into scoped subagent tasks when single-agent context is insufficient.

init-workspace-verification

8
from griddynamics/rosetta

Rosetta skill to verify workspace initialization completeness and run catch-up for missed artifacts.

init-workspace-shells

8
from griddynamics/rosetta

Rosetta skill to generate IDE/CodingAgent shell files from KB schemas.

init-workspace-rules

8
from griddynamics/rosetta

Rosetta skill to create local cached agent rules configured for IDE/OS/project context.

init-workspace-documentation

8
from griddynamics/rosetta

Rosetta skill to create CONTEXT.md, ARCHITECTURE.md, IMPLEMENTATION.md, ASSUMPTIONS.md, and AGENT MEMORY.md from workspace analysis.

init-workspace-discovery

8
from griddynamics/rosetta

Rosetta skill to produce TECHSTACK, CODEMAP, DEPENDENCIES from workspace analysis.

init-workspace-context

8
from griddynamics/rosetta

Rosetta skill to classify workspace initialization mode and build existing file inventory.

operation-manager

8
from griddynamics/rosetta

Rosetta skill for reliable execution: plan creation, tracking, and execution coordination via local JSON files.

load-workflow

8
from griddynamics/rosetta

Rosetta MUST skill to select, load, and activate the best-matching workflow for the current request, inject its phases into the execution plan, and restore state when resuming.

load-context-instructions

8
from griddynamics/rosetta

Detect active execution mode and load Rosetta bootstrap instructions accordingly.

gitnexus-setup

8
from griddynamics/rosetta

Use when directly requested to install GitNexus.

gitnexus-cli

8
from griddynamics/rosetta

GitNexus CLI reference for npx commands — analyze, status, clean, wiki, list — with flags, effects, and when to run each.