readme-coauthorship
Skill1 starsChanged 2 months agoMITView on GitHub
Co-author README files — create a brand-new README.md, enhance an existing one in place, or rewrite it from scratch, at the repo root or in any nested subdirectory (a package, module, or monorepo workspace). Use when the user wants to write a README, update or improve the README, document this directory or package, add a README to a subfolder, review a README for staleness, or make a project more approachable. Two modes chosen up front: guided (a short wizard of targeted questions) or autopilot (infers everything from repo metadata and asks nothing beyond setup). Scans manifests, LICENSE, CI, git remote, and the directory tree before asking or writing; structures output as a cognitive funnel; never fabricates badges or sections; when a README already exists, the user chooses enhance vs rewrite and in-place vs a separate draft file; can offer a companion AGENTS.md or llms.txt. For README.md files specifically — for proposals, specs, and other prose docs, use doc-coauthoring instead.
In this repository19 other files it gives its agents.
- AGENTS.mdAGENTS.md
- divvy-up/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- adversarial-reviewSkill
- databricks-apiSkill
- divvy-upSkill
- eli5Skill
- file-issueSkill
- handoffSkill
- inbox-to-memorySkill
- jd-auditSkill
- jd-fileSkill
- jira-refineSkill
- memory-consolidateSkill
- memory-indexSkill
- mutation-testingSkill
- technical-writingSkill
- work-issueSkill
- work-waveSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 8 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
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
- Distinctive: line 27
No version control detected → default output to draft without asking (in-place replacement would be unrecoverable) and say so in the Step 4 …
- Distinctive: line 53
Never fabricate: Every claim, badge, and section in the output traces to a harvest row or a user answer.
- Distinctive: line 75
Done when: all seven slots are answered, defaulted, or marked *omit* — no blanks.
- Distinctive: line 81
Read references/readme-craft.md before drafting — every run.
- Distinctive: line 106
Write the result to the Step 1 output path.
- Distinctive: line 120
Check the draft against every item.
- Distinctive: line 126
No leftover placeholders or TODOs
- Distinctive: line 136
Done when: all 13 items are checked and each failure is fixed-and-rechecked or reported with a reason.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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.
Files
readme-coauthorship
Co-author a README in six steps — setup, harvest, brief, generate, polish, validate — plus an optional companions step. Four axes set at the start steer every run: mode (guided or autopilot), scope (root or nested), posture (create, enhance, or rewrite), and output (in place or draft).
Step 1 — Orient and Ask the Setup Question
Resolve the four axes before touching anything else.
Infer silently:
- Target directory — the path the user named, else the current directory.
- Scope — root when the target is the git toplevel (
git rev-parse --show-toplevel), else nested. - Mode, from phrasing — "guided", "walk me through", "ask me" → guided; "autopilot", "just write it", "don't ask me anything" → autopilot.
- Posture, from phrasing — no README at the target → create, unambiguously. Otherwise: "update / improve / refresh / enhance / audit / fix" → enhance; "rewrite / redo / replace / start over / from scratch" → rewrite. Any other verb, or none, leaves posture unsettled.
Then make ONE AskUserQuestion call carrying only the axes phrasing didn't settle:
- Mode (skip if phrasing chose): Guided — "I'll ask up to 8 targeted questions" vs. Autopilot — "I'll infer everything from the repo; this setup is the only thing I'll ask."
- Posture + output (only when a README exists and phrasing didn't settle posture): one question, four options — Enhance in place / Enhance into a draft / Rewrite in place / Rewrite into a draft. Draft default:
README.new.mdbeside the target; custom path via Other. - Output alone (README exists, posture settled by phrasing): In place vs. Draft.
Guards:
- No version control detected → default output to draft without asking (in-place replacement would be unrecoverable) and say so in the Step 4 state-back.
- Autopilot + create → write
README.mddirectly, unattended by design: nothing exists to overwrite, and the Step 4 state-back is the interject point.
Setup is the last question autopilot ever asks.
Done when: mode, scope, posture, and output path are each resolved — by inference, answer, or default.
Step 2 — Harvest
Scan before asking, and before writing. Collect from the target directory (and the repo root, for context):
| Source | Facts |
Manifest (package.json, pyproject.toml, Cargo.toml, go.mod, *.gemspec, …) | name, description, license field, scripts, bin, workspaces, entry points |
LICENSE / LICENSE.* | license type |
.github/workflows/ | CI that actually exists |
git remote -v | owner/repo for links and badges |
| Directory tree, 2 levels | structure, notable dirs |
| Existing README(s) at target and root | current claims, voice, links |
AGENTS.md / CLAUDE.md / llms.txt | agent-doc conventions already in use |
CONTRIBUTING.md, CHANGELOG.md, docs dirs | what to link instead of restate |
Type signals: bin or an entry command → CLI; workspaces or packages/ → monorepo; exported library entry → library; Dockerfile or framework config → app; mostly .md files → docs repo; dotfiles → config.
Rewrite posture: mine the old README as one more harvest source — salvage its links, its badges that point at real artifacts, and its hard-won gotchas as rows; discard its structure and prose.
Never fabricate. Every claim, badge, and section in the output traces to a harvest row or a user answer. Absent evidence, omit the section — no invented badges, commands, or capabilities.
Done when: you hold a harvest digest in which every row is a concrete value or an explicit absent — no blanks.
Step 3 — Fill the Brief
The brief is one artifact with seven slots; the two modes are two ways to fill it:
- Audience — who reads this and what they already know
- Problem — why the project exists, what it solves
- Fastest path to "it works" — install plus first successful run
- Top usages — the 1–3 most common tasks
- Contribution and license posture
- Visuals available — logo, screenshot, demo, or none
- Anything else worth highlighting
Guided → read references/elicitation.md, then ask. Budget: at most 8 questions, exclusive of Step 1 setup; ask only what Step 1 and the harvest left non-inferable.
Autopilot → fill every slot from the harvest alone; mark unanswerable slots omit, which omits the matching sections downstream per never-fabricate.
Enhance posture, both modes: audit the existing README against the harvest first — list every stale claim (commands, paths, badges that no longer resolve) and every funnel gap, and feed them into the brief. Guided may spend up to 2 of its 8 questions on keep/cut calls.
Done when: all seven slots are answered, defaulted, or marked omit — no blanks.
Step 4 — Generate the Funnel
Open with an interruptible state-back now that the harvest has firmed the signals — "Proceeding: scope=X, type=Y, posture=Z, output=P" — then continue without pausing. This is the user's correction point if scope or target was mis-inferred.
Read references/readme-craft.md before drafting — every run. Then by scope:
- Root → also read references/section-templates.md and adapt the funnel to the detected type.
- Nested → instead read references/nested-readmes.md and write a scoped, navigational README.
The funnel, in order — general to specific, so a reader can short-circuit the moment they know the project isn't for them. Adapt per type and scope; omit what the brief marked omit:
- Title
- One-line value proposition, on its own line, under 120 characters
- Visual (screenshot / GIF / demo) when one exists
- Table of contents, only past ~100 lines
- Highlights / features
- Install, with prerequisites
- Quickstart / usage — copy-pasteable commands with expected output
- Configuration / API reference, or a link out
- Development / testing
- Contributing, or a link to CONTRIBUTING.md
- License
- Acknowledgements / contact
Voice, in one line: a knowledgeable friend — warm, direct, human.
Posture gate:
- Enhance → preserve the author's voice and every live passage; rewrite only what the Step 3 audit flagged stale or funnel-violating.
- Create / rewrite → fresh generation from brief plus harvest.
Write the result to the Step 1 output path.
Done when: the draft exists at the chosen path and every section traces to a brief slot or harvest row.
Step 5 — Polish
Where the technical-writing skill is installed, invoke it via the Skill tool on the drafted README and follow what it loads. The dispatch happens here, at polish time, even when an earlier turn already loaded the skill—that invocation served a different artifact, and a profile is fresh only at its own dispatch. It supplies instructions, not a rewritten file, so the revision is yours to make. Where it isn't installed, the draft stands as written—absence degrades to current behavior, never to an error or a stall. technical-writing owns any downstream prose auditor, so never reach past it to one directly.
The pass changes wording only. Funnel order, section set, badges, commands, paths, and every fact tracing to a harvest row survive it; where a revision would alter one, keep the original. Enhance posture: passages Step 4 preserved verbatim stay verbatim—the pass touches only what Step 4 rewrote.
Done when: the draft has been revised under technical-writing, or its absence is noted and the draft stands.
Step 6 — Validate
Check the draft against every item; fix and re-check failures:
- Exactly one H1
- Value proposition present, on its own line, under 120 characters
- Install and usage present, commands fenced and copy-pasteable
- Examples show expected output
- No leftover placeholders or TODOs
- Badges only for artifacts the harvest confirmed exist
- Length and sections proportional to project type and size
- Relative links for in-repo files
- ToC present if the file exceeds ~100 lines
- Nested only: links up to the root README; duplicates nothing the root covers
- Enhance only: no stale command or path survives
- Tone reads human — not marketing fluff, not sterile template
- Voice is warm with no AI tells — em-dash spam, rule-of-three padding, negative parallelism, hollow -ing clauses
Done when: all 13 items are checked and each failure is fixed-and-rechecked or reported with a reason.
Step 7 — Companions
- Nested scope: the root README should link down to this one. Guided: offer to add the link — editing the root is its own consent. Autopilot: name it as a follow-up in the wrap-up and touch nothing.
- Both scopes: a companion AGENTS.md (or llms.txt for docs-heavy projects) keeps agent-facing minutiae out of the human README. Guided: offer it; on acceptance, read references/agent-companions.md and build it. Autopilot: name it as a follow-up in the wrap-up and create nothing — setup was the last question.
Done when: the wrap-up names the output file(s), the validation result, and each companion with its status — offered-accepted, offered-declined, or stated-only.
Further Reading
- references/elicitation.md — guided-mode question set with harvest-derived defaults
- references/readme-craft.md — hook, voice, anti-slop rules, badges and visuals, anti-patterns, enhance audit method
- references/section-templates.md — root-scope funnel adaptation by project type
- references/nested-readmes.md — scoped, navigational subdirectory READMEs
- references/agent-companions.md — AGENTS.md, CLAUDE.md symlink, and llms.txt formats
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
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.

