/lstack:readme-generatorfrom lstack
Creates or rewrites README.md files with an onboarding-first structure: pitch, install, quick start example, then details. Supports create, rewrite, and landing-only modes.
Ships in lstack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Write a project's README.md so a new user gets from "what is this?" to a working first run on the first screen. The landing section comes first. Every explanation and detail comes after it. The skill writes only README.md, plus a backup when a README already existed.
Every README this skill writes opens with these parts, in this order, on every run:
# <project name> (or an HTML header with one logo and the name), an optional single line of badges, then one sentence of 25 words or fewer that says what the project does and for whom.## Install (## Get started for a hosted app), a one-line prerequisite when one exists, then one install command in its own code block, or the download or sign-up link when the project installs from a link. Other install methods live in the detail area, linked in one line.## Quick start, one sentence naming the most common task, the command or code for that task in its own code block, then its expected output.Website when a project file names the product website (not for a hosted app, which links it under ## Get started).Nothing else comes before the Quick start output: no diagram, feature table, table of contents, screenshot, or "Why" section. The detail sections follow in the order in references/section-templates.md. references/landing-section.md gives the landing template, the variant for each project type (CLI, library, service, app, GitHub Action, extension), and the allowed sources for each command.
| Mode | Use when | What changes |
|---|---|---|
| Create | No README.md exists | A new README.md from project facts |
| Rewrite (default) | README.md exists | The whole file, restructured landing-first; every original fact kept |
| Landing only | The user asks to fix only the top, or to keep the rest as it is | Only the old opening; every later section stays byte-identical |
The old opening runs from the top of the file through the end of the section that holds the old install command; with no install command, through the end of the first ## section. A README with only a title or prose is a Rewrite, so it gets a backup.
name, bin, scripts, engines), release or CI config, argument definitions in source, tests, or examples. Record each source as path:line.[placeholder — <missing fact>].Uncertainty:.references/anti-slop-rules.md to every prose line. Use no emoji.This skill writes README.md in a git repository. Run the sync as Step 0, before reading any project file:
branch="$(git rev-parse --abbrev-ref HEAD)"
stashed=0
if [ -n "$(git status --porcelain --untracked-files=no)" ]; then
git stash push -m "readme-generator pre-sync" && stashed=1
fi
if git fetch origin && git pull --rebase origin "$branch"; then
[ "$stashed" -eq 1 ] && git stash pop
else
echo "sync failed on $branch (stashed=$stashed)" >&2
fi
git stash push without -u leaves untracked files in place, because other sessions may own them.git rebase --abort when a rebase is in progress, then git stash pop when stashed=1.sync: skipped (<reason>) when the user says to skip it, the project is not a git repository, or it has no origin remote.README.md if it exists. Pick the mode from the Modes table.LICENSE, CHANGELOG.md, docs/, examples/, tests, release and CI config, the entry point's argument definitions, and the code that reads config files and environment variables. Read issues or support questions only when the user supplies them.none.Uncertainty: as an assumption.references/landing-section.md → Most common task), ask the user once and list the candidates.COMPLETE (no change).private) package. With several candidates, ask.Skip this step in Create mode.
README.backup.md does not exist, copy README.md to it.README.md to README.backup.<YYYYMMDD-HHMMSS>.md. Never overwrite a backup.references/section-templates.md. Skip a section that has no source content.<details> block.Run each check on the written README.md. Fix each failure in the lines this run wrote, then re-run that check. Text this run must not change (Landing only sections after the old opening, <details> content) is reported, not fixed. In Create mode, Content kept does not run, so report N/7.
| Check | Pass when |
|---|---|
| Landing order | Outside <details>, the first code block after the name line is the install command and the next is the Quick start command. A link install has no install block, and a merged snippet counts for both (references/landing-section.md) |
| Nothing before Quick start | Before the Quick start output there is no diagram, table, image other than badges and the name-line logo, or ## heading other than the two landing headings |
| Landing length | The name line through the Quick start output takes 30 non-blank lines or fewer, and the pitch is one sentence of 25 words or fewer (50 characters in Chinese, Japanese, or Korean) |
| Commands traced | Each landing-section command has a recorded path:line source |
| Output honest | The Quick start output comes from a source, or is a one-sentence description listed under Uncertainty: |
| Content kept | Rewrite and Landing only: each ## heading, code block, and table row of the backup appears in the new file or a <details> block, and the heading mapping is listed. Landing only: each section after the old opening matches the backup byte for byte |
| Links resolve | In lines this run wrote, test -e passes for each relative link target, and each #anchor matches a heading |
| No slop | Lines this run wrote hold no banned phrase (or its equivalent in the README's language), emoji, or rhetorical question from references/anti-slop-rules.md |
[placeholder] left.End every run, stops included, with these four lines. Status is COMPLETE (README written and every Step 4 check passes; COMPLETE (no change) when the user declined a rewrite at Step 1), PARTIAL (README written, but a check still fails or the landing section holds a [placeholder]), or BLOCKED (nothing written). Fill rules, PARTIAL and BLOCKED examples, and the reader checks: references/final-report.md.
Result: COMPLETE. Rewrote README.md for csvq landing-first (Rewrite mode): pitch, Install, Quick start, then features, usage, configuration and license; README.backup.md holds the original.
Evidence: install `brew install acme/tap/csvq` from README.backup.md:12; Quick start command and output from docs/tutorial.md:8-15; Step 4 checks 8/8 passed; 6 of 6 original sections mapped (Options merged into Usage); sync: pulled main, already up to date.
Uncertainty: Assumed the audience is developers who query CSV files from the terminal; the README and manifest name no audience.
Decision: No approval needed. Remaining action: compare README.md with README.backup.md, then delete the backup and commit when satisfied.
## Get started, with the sign-up or open link from a source.README.md, API references, LICENSE and CONTRIBUTING files, and one-line README fixes. When the request mixes in the README, write the README part and say the rest is out of scope; otherwise say this skill writes only README.md, and stop.<details> blocks.README.md opens with the landing section, and every Step 4 check passes.README.md and its backup changed.Result: and its status first, then Evidence:, Uncertainty:, and Decision:. Evidence: cites only checks that ran.references/final-report.md. Without a human reviewer's answer, human understanding is unconfirmed.After each step, print a compact status block with √ and × check lines and a Result: PASS | FAIL | PARTIAL line. Format and per-step checks: references/step-reports.md.
Optional and propose-only. After the run's result is delivered, run this check:
references/ (the directory holding this SKILL.md). Bump the patch number of metadata.version. If the skill is an installed copy or tracked in git, say so. Commit nothing unless the user asks.Off — the user opted out.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub luongnv89/skills --plugin lstack20 skills in this plugin
/agent-configCreate, update, or audit AGENTS.md (default) or CLAUDE.md agent instructions: set up, prune, add a rule, or merge CLAUDE.md or .cursorrules into one file Claude Code, Codex, and Cursor all read. Don't use for READMEs, skills, or subagents./auto-pushGenerate a commit message, stage all changes, and push to remote after scanning for secrets, large files, and protected-branch risks. Skip for opening PRs, code review, or cutting releases/tags./cleanup-projectPrepare a git repo before new work: review uncommitted changes, fix .gitignore, delete merged branches, end on clean main, or inspect one branch before deciding. Don't use for dead code, commit-and-push, releases, LICENSE files, or git how-tos.Other plugins' skills for the same job