init-workspace-rules

init-workspace-rules is a skill for Claude Code from griddynamics/rosetta. It costs 10 tokens per session (981 once invoked), scanned A, original, Apache-2.0.

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 Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: model in frontmatter; mentions subagents.

Good fit 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.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/griddynamics/rosetta/init-workspace-rules
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.

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.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for init-workspace-rules

README.md
[![agentmods](https://agentmods.dev/badge/skills/griddynamics/rosetta/init-workspace-rules/github.svg)](https://agentmods.dev/skills/griddynamics/rosetta/init-workspace-rules)
Your own site
<a href="https://agentmods.dev/skills/griddynamics/rosetta/init-workspace-rules"><img src="https://agentmods.dev/badge/skills/griddynamics/rosetta/init-workspace-rules/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for init-workspace-rules

Your own site · 80×15
<a href="https://agentmods.dev/skills/griddynamics/rosetta/init-workspace-rules"><img src="https://agentmods.dev/badge/skills/griddynamics/rosetta/init-workspace-rules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 7
    Skill selects an external model or provider that may use a different account or billing plan than the operator expects. Undisclosed model switches can cause unexpected cost or quota consumption.
    Fix: Remove the model/provider override or disclose it prominently and require explicit operator approval before invoking an external coding CLI or billed model.
How audits are shown
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.1 $0.00010 $0.00981
Opus 5.5 $0.00004 $0.00392
Sonnet 5.5 $0.00002 $0.00196
Haiku 4.5 $0.00001 $0.00098

Measured 1mo ago against content hash 03b3ee8f7913, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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 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)

</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. 1mo 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 (360 stars, last pushed yesterday), licensed Apache-2.0. It adds 10 tokens to every session and 981 once invoked, about $0.0000 per session on Opus 5.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.