agentleFS
murillo-consultingmurillo-consulting/cli-skills/cli-forge-readme/SKILL.md

cli-forge-readme

Skill0 starsChanged 3 months agoMITView on GitHub

Use this skill whenever the user wants to create, improve, audit, or rewrite a README.md file for any project. Triggers include: 'readme', 'README', 'documentation for my project', 'write a readme', 'improve my readme', 'project landing page', or any request to document a codebase, library, CLI tool, infrastructure project, or research repo. Also triggers when the user asks to 'make my project more accessible', 'add a getting started guide', or wants badges, installation instructions, or contributing guidelines. Use this skill even when the user just says 'document this' or 'make this repo presentable'. Do NOT use for API reference docs generation, full documentation sites (mdbook, docusaurus), or man pages.

1 other project uses a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read existing files: README.md, CHANGELOG, LICENSE, CI configs, manifest

    line 64
  2. Distinctive:

    Only ask for what's missing

    line 65
  3. Very specific:

    Read references/pyramid.md for the detailed tier structure, rules, and badge templates.

    line 70
  4. Distinctive:

    No empty sections: if nothing to say, omit entirely.

    line 87
  5. Distinctive:

    Write to project root as README.md

    line 114

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

Optimization: This skill uses on-demand loading. Heavy content lives in references/ and is loaded only when needed.

Language rule: Skill instructions are written in English. When generating user-facing output, detect the project's primary language (from README, comments, docs, commit messages) and produce the README in that language. If the project is bilingual, ask the user which language to use before proceeding.

Diacritics rule: When the chosen output language uses diacritics (French, Spanish, Portuguese, etc.), render them correctly — including on capitals (É, À, Ç, Ô…). Never strip accents to ASCII: write "sécurité" not "securite", "Rôle" not "Role". ASCII-flattened French is a defect, not a style.

Writing style: Favor clarity — short sentences, one idea per sentence, plain words. A metaphor only when it clarifies. Keep one consistent register (impersonal/infinitive for operational docs). Separate narrative prose, meant to make the reader understand, from telegraphic content (tables, commands, checklists) which stays terse for action.

No fabricated output: Never invent command output, console captures, API responses, metrics, or logs. When real output is needed, emit a clearly-marked placeholder (🚧 "replace with a real capture"), never plausible-but-fake text presented as real.

README Generator — Production First

Generate professional README.md files where results come first, plumbing comes second.

Gotchas — read ../gotchas.md before producing output to avoid known mistakes.

Philosophy

A README is a landing page, not a technical manual.

  • 90% of visitors want to know: what, why, how to start
  • 10% want to contribute or understand internals
  • Structure for the 90%, don't punish them with the 10%

Tone rule: Friendly on the surface, technical in depth.

  • Tier 1–2: plain language, no jargon, a junior dev or a PM can understand
  • Tier 3: full technical depth, assume the reader codes

Workflow

Step 1 — Detect project context

Build the shared reconnaissance brief first — read ../shared/recon.md (what / who / problem / headline / differentiator / golden-path). The same brief feeds prez and demo, so the README, slides, and live demo tell one story.

Then read the project root to auto-detect the type:

SignalProject Type
Cargo.tomlrust-lib or rust-cli (check [[bin]])
go.modgo-lib or go-cli
package.jsonjs-lib, js-app, or js-cli (check bin field)
pyproject.toml / setup.pypython-lib or python-cli
*.tf / terragrunt.hclinfra-terraform
helmfile.yaml / Chart.yamlinfra-helm
docker-compose*.yml + app codeapp-backend
Containerfile / Dockerfilecontainer
kustomization.yamlkustomize (+flux if flux-system/)
site.yml / playbooks/ / roles/ansible
*.sh + no other codeshell-scripts

If nothing detected → ask user with QCM (project type, language, deployment status).

Step 2 — Gather content

  1. Read existing files: README.md, CHANGELOG, LICENSE, CI configs, manifest
  2. Only ask for what's missing
  3. Find the hero moment: the ONE thing that makes someone go "I need this"

Step 3 — Write using the 3-Tier Pyramid

Read references/pyramid.md for the detailed tier structure, rules, and badge templates.

TierAudienceContent
1 — HookEveryoneProject name, one-liner, badges, visual
2 — Get StartedMost peopleQuickstart (3 cmds max), features (5 max), examples with output
3 — ContributeDevs / QAProject structure, dev setup, architecture, contributing, license

Then apply project-type-specific adaptations. Read references/project-types.md for per-type customization.

Formatting Standards

  1. # = project name only. ## = sections. ### = subsections. Never deeper than ####
  2. Code blocks: always specify language (bash, rust, yaml...)
  3. Tables: for structured data only (env vars, flags, endpoints). Never for prose
  4. Links: relative for in-repo, absolute for external
  5. Target length: Tier 1+2 fit in ~3 screen heights. Tier 3 can expand
  6. No empty sections: if nothing to say, omit entirely. No TODOs in shipped READMEs

Quality Scoring — README Completeness Index (RCI)

RCI = Σ(wᵢ × sᵢ) / Σ(wᵢ) × 10
#ItemWeight
1Hook / one-liner5
2Quickstart5
3Install instructions4
4Usage examples4
5Badges2
6Project structure3
7Configuration3
8Contributing2
9License1
10Visual result3

Scoring: 0.0=absent, 0.25=stub, 0.5=exists but weak, 0.75=good, 1.0=excellent

Thresholds: 8+ excellent, 6-8 good, 4-6 needs work, <4 incomplete

Output

  • Write to project root as README.md
  • Show a brief summary: which tier sections were generated, what's missing/skipped
  • Output the RCI table at the end of the review

Dynamic Handoffs

Condition detectedRecommendWhy
Project needs full docs, not just README/cli-forge-docFull documentation generation
Architecture diagram needed/cli-forge-schemaGenerate Mermaid
Commands section has untested scripts/cli-audit-shellVerify scripts work

Rule: Recommend, don't auto-execute.

Integration with other cli-* skills

SkillRelation
/cli-forge-treeGenerate the "Project Structure" section automatically
/cli-forge-schemaGenerate the diagrams embedded in the README
/cli-forge-docThe README is the entry point for the full documentation
/cli-audit-docAudit the quality of the generated README
/cli-audit-syncVerify that the README stays coherent with the code
/cli-cycleIncluded in the cycle's documentation audit

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.