Skip to content
Development
Skill

/init-workspace-patterns

Extract code patterns.

From plugin
rosetta
36678 skills24 agents71 commands

Claude Code

$ npx -y skills add griddynamics/rosetta --skill init-workspace-patterns --agent claude-code

SKILL.md

init-workspace-patterns.SKILL.md
name: init-workspace-patterns
description: "Extract code patterns."
license: Apache-2.0
disable-model-invocation: true
user-invocable: false
model: claude-sonnet-5, gpt-5.4-high, gemini-3.1-pro-preview
tags: ["init", "workspace", "patterns", "reverse-engineering"]
baseSchema: docs/schemas/skill.md

<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>

Read more
@griddynamics
Ships withrosetta

An instruction layer for AI coding agent

36678 skills24 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
366
Star history of griddynamics/rosetta on GitHub, a chart by star-history.com

Other skills on rosetta.

compress-prompt

compress-prompt

Compress a Rosetta KB prompt artifact (skill · workflow · phase · rule · agent · template · generic) by stripping structural…

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills10d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc12d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react1d252k
@facebook@facebookInstall Skill

Questions about init-workspace-patterns.

Which coding agents can use init-workspace-patterns?
init-workspace-patterns installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.