init-workspace-documentation

A documentation setup for a coding workspace that studies the source code and creates five core files about how the project works, what is unknown, and which approaches succeeded or failed.

In plain words
What is it for?
Use it to create or update workspace documentation, record project rules and lessons, and compare notes with the current source code without replacing human-written content.
Why use it?
It reduces repeated investigation between sessions and helps prevent the same mistakes from happening again. It also checks existing notes against the code and fills only the missing parts.

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-documentation
Any agent
npx skills add griddynamics/rosetta --skill init-workspace-documentation
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 1,245 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.01245
Opus 5 $0.00005 $0.00622
Sonnet 5 $0.00002 $0.00249
Haiku 4.5 $0.00001 $0.00125

Measured 2d ago against content hash ea15dc13930f, 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-documentation 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-documentation/SKILL.md · 143 lines

How it starts

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

<init_workspace_documentation>

<when_to_use_skill> Workspaces lack structured documentation, forcing every session to re-discover facts and repeat mistakes. This skill creates five foundational docs from source code analysis. Proof: all five docs exist, are non-empty, complementary, and track unknowns. </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 and EXECUTE for domain extraction
  • Existing project documentation is likely stale and incomplete: source code is the true source of truth
  • Documentation phase is based on discovery phase to perform deep analysis, but avoid reading entire codebase.
  • Select which files to read, group organize by modules/batches/groups and must assign to subagents to execute.

</core_concepts>

  1. Dual-mode based on state.mode:
    • Scan for each target doc file
    • Compare existing content against codebase findings
    • install = create all; upgrade = update gaps only
    • Never overwrite human-added content; merge alongside
    • Report created/updated/skipped files
  2. Analyze project structure and key source files
  3. Create TODO task per document with business context angle
  4. Track unknowns in ASSUMPTIONS.md with forward references
  5. Create or update documents:

CONTEXT.md:

  • What this doc is for and what it should contain, self-defining style
  • Self-defines purpose, content type, style
  • Bulleted business context, purpose, domain — stakeholder perspective
  • No technical details

ARCHITECTURE.md:

  • What this doc is for and what it should contain, self-defining style
  • Self-defines purpose, content type, style
  • Architecture, modules, workspace structure, testing, styling, building blocks
  • No business context — reference CONTEXT.md
  • Reference CODEMAP.md for file structure

IMPLEMENTATION.md:

  • What this doc is for and what it should contain, self-defining style
  • Self-defines purpose, content type, style
  • Baseline state VERY BRIEFLY (first part, use word "Baseline" in header, not word "current" - misleading later on)
  • High-level change log, each change separate header with date and description (second part)
  • DRY — reference other docs
  • The only implementation change log
  • If nothing to add - add template

ASSUMPTIONS.md:

  • What this doc is for and what it should contain, self-defining style
  • Self-defines purpose, content type, style
  • Each entry: assumption, confidence level, target file when resolved
  • Revalidate all assumptions after other documents complete
  • If nothing to add - add template

TODO.md:

  • What this doc is for and what it should contain, self-defining style
  • Self-defines purpose, content type, style
  • Each entry comes with header containing "priority when what where" and body with details
  • If nothing to add - add template

AGENT MEMORY.md:

  • What this doc is for and what it should contain, self-defining style
  • Self-defines purpose, content type, style
  • Must follow the template exactly - it will be updated during use
  • Keep template entries so that AI knows how to fill them in later on
  • It is for agent operational notes, not a duplicate of CONTEXT.md/ARCHITECTURE.md

README.md:

  • Create in workspace and in each repository root README.md files if missing
  1. Special cases:
    • Speckit: if memory/constitution.md and specs folder exist, add "MUST ACQUIRE speckit-integration-policy.md FROM KB and execute it" to CONTEXT.md
    • Composite (state.composite = true): create top-level docs as registries with workspace-relative paths to sub-repo docs
    • If large project add "MUST USE SKILL large-workspace-handling" to CONTEXT.md

<validation_checklist>

  • Each document contains self-definition of purpose and style
  • Documents complement without repeating each other
  • ASSUMPTIONS.md entries have forward references to target documents
  • Upgrade mode: human content preserved, only gaps filled
  • Files can be grepped by headers for useful information and ToC </validation_checklist>

Read the full file on GitHub · 143 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 · 143 lines · 10 tokens per session scan A ea15dc13930f

Subscribe to this mod's changes

init-workspace-documentation 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 1,245 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.