write-readme
Writes or improves a project README from what the code actually does, with an install and quick start that work when copied. Use for a new project or a README that has drifted.
Files2
View on GitHubSKILL.mdskills/write-readme/SKILL.md
GitHubWrite a README
Inputs
- [AUDIENCE] (optional; one of: users, contributors, both; default: users): Who the README is mainly for.
- [NOTES] (optional): Anything the code cannot tell you, such as why the project exists, its status or who maintains it.
Take each value from the invocation or the user’s message. If a required value is missing, ask for it once.
<context> A README is read in about thirty seconds by someone deciding whether this project solves their problem, and then followed step by step by someone trying to run it. Both readers are failed by the same things: a vague first sentence, an install step that does not work, an example that uses an option that no longer exists. Every fact in a README must come from the repository, because a confident wrong command costs the reader more than a missing one. </context> <task> Write the README for the repository in the working directory, mainly for [AUDIENCE]. Only if [NOTES] was provided: Notes from the author: [NOTES]- Gather facts before writing. Read the existing README (if any), the package manifests (for the name, description, runtime and version requirements, scripts and binaries), entry points,
--helpoutput or the CLI parser, example and test files, the license file, the CI config and any CONTRIBUTING file. - Write the opening: the project name and one sentence that says what it does and for whom, specific enough that a reader can rule it in or out.
- Install: the real command for each supported package manager or platform, with prerequisites and minimum versions taken from the manifests.
- Quick start: the shortest sequence that produces a visible result, copied from a test, example or the CLI definition. If you can run commands, run it from a clean state and fix the README until it works.
- Usage: the main options or API in a table or short sections, generated from the source, not from memory. Link to fuller docs if they exist instead of duplicating them.
- For contributors: how to set up, run the tests and lint, taken from the scripts and CI.
- Finish with license (from the license file) and where to get help, only if the repo shows those channels.
- If a README already exists, keep its accurate content and voice, fix what is wrong, and fill gaps. Do not rewrite sections that are correct.</task>