- All Rosetta prep steps MUST be FULLY completed, load-context skill loaded and fully executed
- Rules consumed by AI agents, not humans
- Full-copy mode — copies complete file content from Rosetta to local workspace
- Adapt — copy content AS-IS; adapt ONLY IDE format: extension, frontmatter, directory. Never rewrite instruction content.
- Exclusion set —
init-workspace-* skills/workflows, templates/shell-schemas/*, configure/*, rules/bootstrap.md MUST NOT BE copied
- Bundled ACQUIRE — when ACQUIRE returns multiple
<rosetta:file> sections, strip tags, merge into one file with one frontmatter
- state.mode —
init creates all files; upgrade fills gaps only, never overwrites human-customized files
- Make sure that you follow original activation conditions, MUST never make all rules to be ALWAYS activated/loaded (overflows context)
Internal knowledge about IDE/agent configuration is obsolete — LIST and ACQUIRE from KB.
Step 1: Identify Environment
- LIST
configure IN KB with XML format (to understand supported IDE/CodingAgents)
- Detect current environment, preselect IDE/CodingAgent
- MUST ask user to confirm selection and provide multi-choose
- ACQUIRE FROM KB
- If multiple selected, use common standards to reduce copies
Step 2: Read Workspace Context
- Read TECHSTACK.md and relevant project docs
Step 3: Discover Full Rosetta Content (subagent)
- LIST
all FROM KB with format=flat, save to FEATURE TEMP folder as list-all-output.md
- Parse into content-type groups (rules, skills, agents, workflows, commands)
- Apply exclusion set
- Report: total count, per-type count, excluded count
Step 4: MUST Install Root Entry Point and Bootstrap Rules
- ACQUIRE
rules/local-files-mode.md FROM KB — install as root entry point per IDE configure spec
- Embed Rosetta version marker (e.g., "R2.0") in core root file for staleness detection
- Apply IDE-specific frontmatter format from configure file
- ACQUIRE each
rules/bootstrap-*.md FROM KB — install as individual rule files per IDE configure spec
Step 5: MUST Generate All Content Files
For each content type from filtered list (non-bootstrap rules, skills, agents, workflows, commands):
- Map ResourcePaths to local file paths using configure file rules
- If state.mode=upgrade: skip existing human-customized files
- ACQUIRE each resource FROM KB
- Write to local path with IDE-specific format adaptation
- Preserve skill subdirectory structures (assets/, references/, scripts/)
- If multiple IDEs: write shared content to common location where possible
Step 6: Verify and Report (HITL)
- Count files per type, compare against expected from filtered list minus exclusions
- Verify: no absolute paths in generated files
- Verify: root entry point file contains version marker
- Verify: bundled ACQUIRE content merged correctly (no
<rosetta:file> tags, single frontmatter per file)
- If state.mode=upgrade: report diff summary (added, skipped with reason)
- MUST get explicit user confirmation before closing
- Agent with no prior context can bootstrap from generated files using only local filesystem
- Every content type from LIST output has corresponding local files (none silently dropped)
- ACQUIRE/SEARCH/LIST commands inside instruction content are local-files-mode aliases — do NOT remove or replace them
1---2name: init-workspace-rules3description: Create agent rules.4license: Apache-2.05---67<init_workspace_rules>89<role>10Senior agent configuration specialist — Rosetta-to-local full-copy adaptation expert.11</role>1213<when_to_use_skill>14Local copies of Rosetta instructions enable AI agents to load rules without Rosetta access and stay current via periodic version checks. Creates full local files for all Rosetta content adapted to detected IDE/CodingAgent format.15Validation: all Rosetta content exists as local files, root entry point triggers full prep chain.16</when_to_use_skill>1718<core_concepts>1920- All Rosetta prep steps MUST be FULLY completed, load-context skill loaded and fully executed21- Rules consumed by AI agents, not humans22- **Full-copy mode** — copies complete file content from Rosetta to local workspace23- **Adapt** — copy content AS-IS; adapt ONLY IDE format: extension, frontmatter, directory. Never rewrite instruction content.24- **Exclusion set** — `init-workspace-*` skills/workflows, `templates/shell-schemas/*`, `configure/*`, `rules/bootstrap.md` MUST NOT BE copied25- **Bundled ACQUIRE** — when ACQUIRE returns multiple `<rosetta:file>` sections, strip tags, merge into one file with one frontmatter26- **state.mode** — `init` creates all files; `upgrade` fills gaps only, never overwrites human-customized files27- Make sure that you follow original activation conditions, MUST never make all rules to be ALWAYS activated/loaded (overflows context)2829</core_concepts>3031<process>3233Internal knowledge about IDE/agent configuration is obsolete — LIST and ACQUIRE from KB.3435Step 1: Identify Environment36371. LIST `configure` IN KB with XML format (to understand supported IDE/CodingAgents)382. Detect current environment, preselect IDE/CodingAgent393. MUST ask user to confirm selection and provide multi-choose404. ACQUIRE <selected configs using TAG> FROM KB415. If multiple selected, use common standards to reduce copies4243Step 2: Read Workspace Context44451. Read TECHSTACK.md and relevant project docs4647Step 3: Discover Full Rosetta Content (subagent)48491. LIST `all` FROM KB with format=flat, save to FEATURE TEMP folder as `list-all-output.md`502. Parse into content-type groups (rules, skills, agents, workflows, commands)513. Apply exclusion set524. Report: total count, per-type count, excluded count5354Step 4: MUST Install Root Entry Point and Bootstrap Rules55561. ACQUIRE `rules/local-files-mode.md` FROM KB — install as root entry point per IDE configure spec572. Embed Rosetta version marker (e.g., "R2.0") in core root file for staleness detection583. Apply IDE-specific frontmatter format from configure file594. ACQUIRE each `rules/bootstrap-*.md` FROM KB — install as individual rule files per IDE configure spec6061Step 5: MUST Generate All Content Files6263For each content type from filtered list (non-bootstrap rules, skills, agents, workflows, commands):64651. Map ResourcePaths to local file paths using configure file rules662. If state.mode=upgrade: skip existing human-customized files673. ACQUIRE each resource FROM KB684. Write to local path with IDE-specific format adaptation695. Preserve skill subdirectory structures (assets/, references/, scripts/)706. If multiple IDEs: write shared content to common location where possible7172Step 6: Verify and Report (HITL)73741. Count files per type, compare against expected from filtered list minus exclusions752. Verify: no absolute paths in generated files763. Verify: root entry point file contains version marker774. Verify: bundled ACQUIRE content merged correctly (no `<rosetta:file>` tags, single frontmatter per file)785. If state.mode=upgrade: report diff summary (added, skipped with reason)796. MUST get explicit user confirmation before closing8081</process>8283<validation_checklist>8485- Agent with no prior context can bootstrap from generated files using only local filesystem86- Every content type from LIST output has corresponding local files (none silently dropped)8788</validation_checklist>8990<pitfalls>9192- ACQUIRE/SEARCH/LIST commands inside instruction content are local-files-mode aliases — do NOT remove or replace them9394</pitfalls>9596</init_workspace_rules>