init-workspace-rules

A workspace setup tool that copies Rosetta’s agent instructions into local files adapted to the detected coding environment. It can create a complete local copy or fill only missing files during an upgrade.

In plain words
What is it for?
Use it to prepare a repository’s local agent instructions, adapt file formats for an IDE or coding agent, and validate that the instruction entry point loads the full setup chain.
Why use it?
It lets coding agents load the required rules without connecting to Rosetta each time. It also keeps the local copy up to date while preserving files people have customized.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/griddynamics/rosetta/init-workspace-rules
Any agent
npx skills add griddynamics/rosetta --skill init-workspace-rules
Clone the repo
git clone --depth 1 https://github.com/griddynamics/rosetta

Made for: Claude Code, Codex.

Per session 10 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 981 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00010 $0.00981
Opus 5 $0.00005 $0.00491
Sonnet 5 $0.00002 $0.00196
Haiku 4.5 $0.00001 $0.00098

Measured 2d ago against content hash 03b3ee8f7913, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

init-workspace-rules scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

instructions/r2/core/skills/init-workspace-rules/SKILL.md · 102 lines

How it starts

The opening of the file, as written. The whole thing — 102 lines — stays where its author put it; the contents beside it link to each section on GitHub.

<init_workspace_rules>

<when_to_use_skill> Local 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. Validation: all Rosetta content exists as local files, root entry point triggers full prep chain. </when_to_use_skill>

<core_concepts>

  • 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 setinit-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.modeinit 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)

</core_concepts>

Internal knowledge about IDE/agent configuration is obsolete — LIST and ACQUIRE from KB.

Step 1: Identify Environment

  1. LIST configure IN KB with XML format (to understand supported IDE/CodingAgents)
  2. Detect current environment, preselect IDE/CodingAgent
  3. MUST ask user to confirm selection and provide multi-choose
  4. ACQUIRE FROM KB
  5. If multiple selected, use common standards to reduce copies

Step 2: Read Workspace Context

  1. Read TECHSTACK.md and relevant project docs

Step 3: Discover Full Rosetta Content (subagent)

  1. LIST all FROM KB with format=flat, save to FEATURE TEMP folder as list-all-output.md
  2. Parse into content-type groups (rules, skills, agents, workflows, commands)
  3. Apply exclusion set
  4. Report: total count, per-type count, excluded count

Step 4: MUST Install Root Entry Point and Bootstrap Rules

  1. ACQUIRE rules/local-files-mode.md FROM KB — install as root entry point per IDE configure spec
  2. Embed Rosetta version marker (e.g., "R2.0") in core root file for staleness detection
  3. Apply IDE-specific frontmatter format from configure file
  4. 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):

  1. Map ResourcePaths to local file paths using configure file rules
  2. If state.mode=upgrade: skip existing human-customized files
  3. ACQUIRE each resource FROM KB
  4. Write to local path with IDE-specific format adaptation
  5. Preserve skill subdirectory structures (assets/, references/, scripts/)
  6. If multiple IDEs: write shared content to common location where possible

Step 6: Verify and Report (HITL)

  1. Count files per type, compare against expected from filtered list minus exclusions
  2. Verify: no absolute paths in generated files
  3. Verify: root entry point file contains version marker
  4. Verify: bundled ACQUIRE content merged correctly (no <rosetta:file> tags, single frontmatter per file)
  5. If state.mode=upgrade: report diff summary (added, skipped with reason)
  6. MUST get explicit user confirmation before closing

<validation_checklist>

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

</validation_checklist>

  • ACQUIRE/SEARCH/LIST commands inside instruction content are local-files-mode aliases — do NOT remove or replace them

Read the full file on GitHub · 102 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 102 lines · 10 tokens per session scan A 03b3ee8f7913

Subscribe to this mod's changes

init-workspace-rules is a skill published in the GitHub repository griddynamics/rosetta (341 stars, last pushed 4d ago), licensed Apache-2.0. It adds 10 tokens to every session and 981 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

authoring-skills-and-rules

Author Skills (SKILL.md) and rules/instructions across Claude Code, Cursor, OpenCode, Codex, and GitHub Copilot. Covers frontmatter, file layout, activation model, cross-platform mirroring, and the universal craft: progressive disclosure, trigger-rich descriptions (context pointers), leading words, token budget…

afaraha8403/balakit · 132 tokens

memorix-orchestrate

Use when a main agent needs Memorix to coordinate explicit subagent work through tasks, handoffs, messages, file locks, or the orchestrate CLI.

AVIDS2/memorix · 37 tokens

skill-builder

Meta-skill for creating new skills from natural language. Trigger phrases: "new skill", "create a skill", "build a skill", "make a skill", "generate a skill", "author a skill", "skill builder".

anton-abyzov/vskill · 50 tokens

agents-md-author

Bootstrap or update project AI-agent instruction files (AGENTS.md for Codex, CLAUDE.md for Claude Code, or both) from the current project's structure. Triggers on: write AGENTS.md, write CLAUDE.md, generate AGENTS.md, agent instructions, project conventions for AI, bootstrap agent docs, set up project memory for…

anton-abyzov/vskill · 98 tokens

skill-creator

Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.

Tiberriver256/mcp-server-azure-devops · 45 tokens

framework-builder

Build reusable agent-readable frameworks from any domain expertise. Use when someone says "systematize this," "turn this into a repeatable process," "build a framework for," "create a skill for," "I keep doing the same thing," or "make this predictable." Produces a complete five-layer framework in markdown that agents…

framework-creator/framework-builder · 128 tokens