agentleFS
Khubaib7-delKhubaib7-del/agent-docs-kit/skills/docs-init/SKILL.md

docs-init

Skill0 starsChanged 5 months agoMITView on GitHub

Set up the agent-docs system in a project — AGENTS.md, CLAUDE.md pointer, PRD, DECISIONS, STATE, and the domain playbooks that fit the stack. Use when the user wants to initialize project docs for AI-assisted coding, bootstrap AGENTS.md, add a doc structure to a new or existing repo, or "set up agent docs".

2 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. mgiovani/cc-arsenal★ 8same name
    2. AosJunior/claude-skills★ 1same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository4 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Don't fabricate acceptance criteria, users, or metrics in the PRD — placeholders + questions beat invented specifics that get treated as …

    line 37
  2. Distinctive:

    If the project already uses a doc convention (ADRs, RFCs), map onto it (ADR dir = DECISIONS.md equivalent).

    line 38

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Initialize the agent-docs system

You are setting up the doc system described in ${CLAUDE_PLUGIN_ROOT}/AGENT-ASSISTED-CODING.md. The outcome: a small set of living docs with clear owners and update triggers — not a pile of boilerplate.

Step 1 — Analyze before writing anything

  • Detect the stack: read package.json / pyproject.toml / build configs for real commands (dev, test, build, lint).
  • Detect existing docs: README, CLAUDE.md, .cursor/rules, existing AGENTS.md, docs/. Never overwrite existing content — merge it in and say what you merged.
  • Detect scale: a brand-new empty repo gets the minimal set (AGENTS + PRD + STATE); an active codebase gets the full chain (+ ARCHITECTURE, DECISIONS seeded from what you observe).

Step 2 — Create the docs from templates

Templates live in ${CLAUDE_PLUGIN_ROOT}/templates/. For each, fill with real observed facts, leave <placeholders> only where the human must decide, and delete unused sections:

  1. AGENTS.md (repo root) — real commands from Step 1, architecture map only if observable, blast-radius tiers (default everything tests-required; mark configs propose-only). Hard cap 150 lines.
  2. CLAUDE.md — exactly: Read AGENTS.md and follow it. If a CLAUDE.md exists with content, move its content into AGENTS.md and leave the pointer.
  3. docs/PRD.md — fill from README/user description. If scope is unknowable, keep the skeleton and add 3-5 specific questions in the Open Questions section rather than inventing scope.
  4. docs/DECISIONS.md — seed with the choices already embedded in the codebase (framework, bundler, test runner, storage), each marked Decided-by: agent-default unless the user tells you otherwise — provenance honesty matters more than looking thorough.
  5. docs/STATE.md — current truth: what builds/runs today, obvious next steps.

Step 3 — Copy the playbooks that fit

From ${CLAUDE_PLUGIN_ROOT}/playbooks/ into playbooks/, pick only what applies (UI project → ui-design, ux-product, accessibility; anything persisted → data-schemas; deployed → deployment-devops + security; always → debugging, quality-testing, git-workflow). List the chosen playbooks in AGENTS.md's "Playbooks in force" section. Do not copy all 13 — unused rules are context tax.

Step 4 — Report

Tell the user: what was created, what was merged from existing files, which placeholders await their input (link each), and the one ritual that keeps the system alive: STATE.md gets rewritten at the end of every session (the docs-wrap skill does it).

Gotchas

  • An AGENTS.md over 150 lines at init means you documented too much — move detail to ARCHITECTURE.md or playbooks and link.
  • Don't fabricate acceptance criteria, users, or metrics in the PRD — placeholders + questions beat invented specifics that get treated as decisions later.
  • If the project already uses a doc convention (ADRs, RFCs), map onto it (ADR dir = DECISIONS.md equivalent); don't run two systems in parallel.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.