Skip to content

write-complete-project-readme

A portable agent skill for Codex, Claude Code, or both that writes a complete root README from verified repository evidence.

Role
Agent workflow designer and automation engineer
Scope
Agent workflow, validation automation, and packaging
Status
Published npm package v0.4.0
Repository files sorted into verified, inferred and unknown before a README is written

Problem

README generators often preserve stale claims or produce generic sections because they never inspect the actual project. They also fail to separate evidence from inference, so polished prose ends up describing features and commands that do not exist.

Constraints

  1. C1

    The skill may edit only the root README.

  2. C2

    Features, commands, compatibility, status, URLs, metrics, and license terms cannot be invented.

  3. C3

    Applications, packages, APIs, CLIs, monorepos, datasets, and skills each require a different reading flow.

Architecture

The skill first builds an inventory of repository evidence, then follows project-type and quality references to write the README. A deterministic checker validates the result, and an npm installer with tests delivers the skill to each host.

01

Skill workflow

The agent inventories repository evidence from code, manifests, and configuration before writing.

02

Automation

Project-type and quality references route the authoring workflow, so a library and an application get different sections.

03

Verification

A deterministic README checker validates the finished document, and an npm installer with tests packages the skill.

Decisions

D1

Treat the old README as evidence to verify

An existing README often contains stale claims, so it is checked against the code, manifests, and configuration instead of being preserved as a template.

D2

Classify facts as verified, inferred, or unknown

Labeling each fact keeps guesses out of the final document, and a missing license is stated as missing rather than assumed.

D3

Enforce a full-document output contract

A badge-only change or a single patched section does not count as done, which costs more work per run but produces a complete README.

Contribution

  • Defined the evidence priority and routing by project type.
  • Bundled comprehensive quality and benchmark references.
  • Implemented structural and content checks.
  • Added installer, release-workflow, compatibility, and package tests.

Outcomes

  • Agents can produce audience-first setup and usage documentation.
  • Verified voice and attribution are preserved while stale claims are removed.
  • Material absences, such as a missing license, are surfaced instead of hidden.
  • The finished README is validated for completeness before the work is done.

Verified stack

  • Agent Skills
  • JavaScript
  • Node.js
  • npm
  • GitHub Actions
  • CI/CD
  • Git

Working through something similar?

Share your challenge, scope, and timeline to start a focused conversation.