/snail:snail-project-docsfrom Snail
Scaffold, audit, or nudge a project's documentation structure. Use when the user says "set up docs", "project docs", "nudge docs", "init documentation", "update docs index", or when docs are redundant and scattered.
Ships in Snail. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Create the docs a project needs, prune the ones it does not, and keep AGENTS.md and llms.txt in sync.
README.md, AGENTS.md, or docs/.Scaffold only the docs the project needs. Audit existing docs, move overlapping content to the right standard doc, and ask before removing files.
AGENTS.md and CLAUDE.md are agent-only. AGENTS.md must be four things: inline rules, a docs index, a skills index, and a highly condensed version of the docs. CLAUDE.md is a symlink (or fallback @AGENTS.md file) to AGENTS.md.
Rules are written directly in AGENTS.md. Do not put rules in separate files and reference them from AGENTS.md.
These files may be created or updated:
README.mdAGENTS.mdCLAUDE.mdllms.txt (public projects)LICENSE.md (open or public projects)docs/ARCHITECTURE.mddocs/USAGE.mddocs/CONTRIBUTING.mddocs/SECURITY.mddocs/CODE_OF_CONDUCT.mddocs/CHANGELOG.mddocs/TROUBLESHOOTING.mdAsk the user or infer from the repo:
| Field | Values |
|---|---|
| audience | public, internal, personal |
| openness | oss, proprietary, none |
| project_type | cli, library, web-app, internal-tool, skill-repo, other |
| releases | versioned, continuous, none |
| File | Default condition |
|---|---|
README.md | always |
AGENTS.md | always |
CLAUDE.md | always |
llms.txt | audience is public |
LICENSE.md | openness is oss or user wants one |
docs/ARCHITECTURE.md | project is non-trivial or user wants |
docs/USAGE.md | project_type is cli, library, or web-app |
docs/CONTRIBUTING.md | project has contributors |
docs/SECURITY.md | project has users or contributors |
docs/CODE_OF_CONDUCT.md | openness is oss or corp policy |
docs/CHANGELOG.md | releases is versioned |
docs/TROUBLESHOOTING.md | project has common failure modes or user wants |
Choose templates from templates/ next to this SKILL.md (e.g. README.md → templates/README.md, CONTRIBUTING.md → templates/CONTRIBUTING-oss.md or templates/CONTRIBUTING-internal.md).
A project should hold only these docs:
README.md — human-facing overview, install, and usage.AGENTS.md — agent-only file: inline rules, docs index, skills index, condensed docs.CLAUDE.md — symlink or @AGENTS.md fallback.llms.txt — public projects only.LICENSE.md — open/public projects.docs/ARCHITECTURE.md — structure and data flow.docs/USAGE.md — detailed usage.docs/CONTRIBUTING.md — setup, conventions, and PRs.docs/SECURITY.md — security policy.docs/CODE_OF_CONDUCT.md — open/corp policy.docs/CHANGELOG.md — versioned releases.docs/TROUBLESHOOTING.md — common problems.Anything outside this tree that overlaps with a standard doc is a candidate for merging, not indexing.
Substitute {{project}}, {{repository}}, {{author}}, {{license}}, {{setup}}, {{run}}, {{format}}, {{rules_table}}, {{docs_table}}, {{skills_table}}, {{what}}, {{how}}, and {{conventions}} from package.json, git remote, or by asking/inferring.
{{rules_table}} — inline rules, typically as a bullet list or table with columns Rule and Guideline.{{docs_table}} — full markdown table with columns Doc, Purpose.{{skills_table}} — full markdown table with columns Skill, Use when, for agent-specific workflows.{{what}} — one-paragraph summary of what the project is.{{how}} — short setup, conventions, common commands, and project layout.{{conventions}} — bullet list of the conventions an agent must follow.AGENTS.md is agent-only. No long prose, no human tutorial, no pull-request section. Just inline rules, docs index, skills index, and condensed docs.AGENTS.md.AGENTS.md with a strong instruction to read the rules before doing any work.AGENTS.md grows hard to scan, move human-facing prose to docs/ or README.md, and move agent-specific workflows to skills/snail-*/SKILL.md. Reference those skills in AGENTS.md so the agent knows when to invoke them.AGENTS.md content in README.md or docs/*.docs/ai_guidelines.md that should fold into docs/CONTRIBUTING.md).templates/.AGENTS.md from templates/template-agents.md. It must be inline rules first, then a docs index, then a skills index, then a highly condensed version of the docs.llms.txt if audience is public.CLAUDE.md: try ln -s AGENTS.md CLAUDE.md, fall back to a one-line @AGENTS.md file.documentation skill to fill prose.Rules are written directly in AGENTS.md. Do not create separate rule files and reference them from AGENTS.md.
CLAUDE.md exists and is already a symlink to AGENTS.md, leave it.ln -s AGENTS.md CLAUDE.md.@AGENTS.md.CLAUDE.md exists and is not the fallback, warn and ask before overwriting.If audience is public, create or update llms.txt with entry points, docs, skills, and rules (use raw GitHub URLs when {{repository}} is known; otherwise relative paths).
After creating each file, report the paths.
templates/ARCHITECTURE.md (opens in a new tab)templates/CHANGELOG.md (opens in a new tab)templates/CODE_OF_CONDUCT.md (opens in a new tab)templates/CONTRIBUTING-internal.md (opens in a new tab)templates/CONTRIBUTING-oss.md (opens in a new tab)templates/README.md (opens in a new tab)templates/SECURITY-internal.md (opens in a new tab)templates/SECURITY-oss.md (opens in a new tab)templates/TROUBLESHOOTING.md (opens in a new tab)templates/USAGE.md (opens in a new tab)templates/llms.txt (opens in a new tab)templates/template-agents.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub yoglib/snail --plugin snailOther plugins' skills for the same job
11 skills in this plugin
/snailExperimental single-skill workflow from investigation to PR, with approval stops or explicit auto mode./snail-ai-toolbeltPointer to external AI tools and MCPs. Use when the user asks about the toolbelt, which tools are used, or how to install a recommended tool. This skill does not install tools./snail-alternativesSuggest up to 3 viable alternatives for a code or design decision. Includes mandatory independent review. Use when the user asks for alternatives, options, "better ways", or review of supplied options.