Readme best practices

From Mindrally/skills · View interactive version

Readme best practices is an AI agent skill from the GitHub repository Mindrally/skills. Structure, tone, and content conventions for writing effective project README files, covering hooks, quick starts, feature presentation, badges, and common documentation sections. Use when writing a new README, rewriting an existing one, or reviewing README quality for a repository, library, or CLI

How to use this skill

Skill file

README Best Practices

This skill covers how to write a README that reads like a landing page rather than an API reference — the reader decides whether to keep reading within 3-5 seconds, so the first screen has to earn the rest.

Workflow for Writing a README

  1. Draft the one-liner — Write a bold, specific sentence stating what the project does and why someone should care. Avoid "A tool that..."; aim for a punchline.
  2. Write a working code example first — Put a copy-pasteable example in the first 5-10 lines of content, before installation instructions. Show the value proposition immediately.
  3. Add badges — Build status, version, license, and coverage badges directly under the title, if the project has CI/publishing set up.
  4. Write Quick Start — Zero-to-running in under 30 seconds, with no placeholder values the reader has to mentally substitute.
  5. Fill in supporting sections — Features, Usage, Configuration, Contributing, License — using the structure below, only including sections that carry real information.
  6. Verify every asset and link — Confirm referenced images (screenshots, demo.gif) exist on disk and that internal links resolve before publishing.
  7. Read it cold — Reread the first screen as if seeing the project for the first time; cut anything that doesn't help a decision to keep reading or stop.

Opening Hook

Standard Structure

A typical README benefits from these sections, roughly in this order — include only the ones that add real information for this project:

  1. Title + one-liner — project name and the bold hook sentence.
  2. Badges — build status, latest version, license, test coverage.
  3. Quick demo — a code snippet, GIF, or screenshot showing the thing working.
  4. Features — a two-column table, not a wall of bullets (see below).
  5. Installation — the exact command(s) to install, per package manager if there's more than one.
  6. Quick Start / Usage — copy-paste-ready minimal example, then a couple of more advanced examples.
  7. Configuration — options, environment variables, config file format, with defaults noted.
  8. API Reference (or a link to one) — for libraries with a non-trivial public surface.
  9. FAQ / Troubleshooting — the 3-5 questions people actually ask in issues.
  10. Contributing — how to set up the dev environment, run tests, and submit a PR; link to CONTRIBUTING.md if it exists.
  11. License — name and link to the license file.
  12. Author / Acknowledgments — credit maintainers and major dependencies.

Feature Presentation

| Feature | Description |
|---|---|
| Zero-config | Works out of the box with sensible defaults |
| Streaming | Handles gigabyte-scale files without loading them into memory |
| Type-safe | Full TypeScript definitions, no `any` in the public API |

Quick Start Requirements

npm install awesome-lib

awesome-lib run --input data.csv --output report.json
import { parse } from "awesome-lib";

const result = parse("data.csv");
console.log(result.summary);

Prose and Formatting

Badges

Assets and Links

Author / Contact Section

Common Mistakes to Avoid

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.