Better Readme

Prompts

Use when the user asks to create, improve, or audit a README.md file, or when setting up a new project's documentation. Provides template matrix (Library, CLI, App, Skill, Data), quality scoring, multilingual generation, and pre-publish checklist. Do NOT use for API docs, wikis, or inline code comments.

Install

openclaw skills install better-readme

Better README

Create, audit, and optimize project README files with quality scoring, template matching, and multilingual support.

Activation Triggers

  • "write/improve/fix my README"
  • "create a README for this project"
  • "score/check my README"
  • "my README is bad, help"
  • Setting up a new open-source project
  • Preparing a GitHub launch

Workflow

Phase 1: Classify

Identify the project type by scanning the codebase:

SignalProject Type
package.json with main/exports, no UILibrary/SDK
bin/ field, CLI framework (commander, click, clap)CLI Tool
React/Vue/HTML, deploy target (Vercel/Netlify)App/Product
SKILL.md exists, skills/ directoryAgent Skill
.csv/.json/.parquet dataset, no src/Data/Resource

If ambiguous, ask the user.

Phase 2: Score (if README exists)

Run the audit script:

python3 scripts/readme_audit.py --path /path/to/README.md

This produces a 0–100 score across 8 dimensions. See references/scoring-rubric.md for criteria.

If score < 70, recommend a full rewrite using the appropriate template.

Phase 3: Generate

  1. Load the matching template from references/templates.md
  2. Scan the project for real data:
    • Project name, description from package.json / pyproject.toml / Cargo.toml
    • Install command (detect package manager)
    • License file
    • Key features (scan source for main entry points)
    • Badge URLs (CI, coverage, npm/PyPI)
  3. Fill the template with real data
  4. Generate both README.md (English) and README.zh-CN.md (Chinese) with language toggle
  5. Print a preview for the user to review

Phase 4: Pre-Publish Checklist

Run through references/pre-publish-checklist.md and report:

  • ✅ Passed items
  • ⚠️ Warnings (nice to have)
  • ❌ Missing critical items

Template Selection Guide

TypeHeroFocusInstall
Library/SDKCode snippetAPI referencenpm install / pip install
CLI ToolDemo GIF/terminalCommands tablebrew install / cargo install
App/ProductScreenshot/hero imageFeatures + live demoDeploy button
Agent SkillWhat it triggers onWorkflow + compatibilityclawhub install
Data/ResourceStats cardSchema + sample dataDirect download

Quality Standards (Non-Negotiable)

  1. 30-second rule: User must understand what this does after one scroll
  2. ≤3 install steps: If setup needs 10 steps, nobody finishes
  3. Real examples: Not your-api-key-here — actual working snippets
  4. No dead links: Every link must resolve
  5. Mobile readable: No wide tables without horizontal scroll handling

Scoring Dimensions

DimensionMax PointsQuick Check
First impression (hero/title/tagline)15H1 + one-line description in first 5 lines
Problem statement10"Why" section explaining what pain this solves
Quick start20Install + run in ≤3 commands
Visual demo10Screenshot, GIF, or video present
Feature clarity10Feature list or "what it does" section
API/Usage docs10Code examples for main use cases
Badges & metadata5License, version, CI status
Community & links10Contributing guide, link to issues, discussions
Pre-publish readiness10Topics, description, social preview configured

See references/scoring-rubric.md for full criteria.

Language Support

Always generate bilingual READMEs:

**English** | **[中文](README.zh-CN.md)**

If the user's locale is Chinese, generate Chinese first and link to English.

Audit Script Usage

# Score a single README
python3 scripts/readme_audit.py --path ./README.md

# Score and output JSON
python3 scripts/readme_audit.py --path ./README.md --json

# Recommend a template type based on project structure
python3 scripts/readme_audit.py --detect /path/to/project