| name | wf-readme |
| description | Use when a project README already exists and the user asks to preserve, merge, modernize, optimize, or clarify repository documentation during harness install or documentation work. |
README Optimizer
Improve README.md without breaking project-owned public docs.
Load
- root
README.md
- package files and scripts (
package.json, pyproject.toml, go.mod, etc.)
- CI files when present
Harness/PROGRESS.md
Harness/tasks/<task-id>/PLAN.md when available
Harness/project/architecture.md only when an architecture summary or diagram is requested
Cache Discipline
Follow Harness/specs/runtime/context-loading.md#Cache-First Context Contract: load project
facts in the listed order, inspect only relevant README/package/CI sections, and
keep unknowns or command output in the dynamic suffix.
Mode
Ask the user which mode they approve when the existing README is meaningful:
| Mode | Use when | Allowed edit |
|---|
| Preserve + append | default for existing projects | Add only a compact Development, Test, Build, Git, or Harness section |
| Structure pass | README is stale, hard to scan, or missing operational docs | Reorganize with headings, tables, command blocks, and links while preserving facts |
| Full rewrite | user explicitly wants a polished public README | Rewrite after approval; keep claims source-backed |
If unanswered, use Preserve + append.
Rules
- Preserve existing product, package, API, and public-facing content unless the user approves a rewrite.
- Do not invent features, benchmarks, roadmap, support policy, badges, install commands, or CI status.
- Use tables for command matrices, environment variables, endpoints, and deployment notes when facts are known.
- Use Mermaid or ASCII architecture diagrams only when the structure is observed or approved; label uncertain diagrams as proposed.
- Keep detailed architecture in
Harness/project/architecture.md; README may link to it or show a short overview.
- Keep agent rules in
CLAUDE.md/AGENTS.md, not README.
- Record the chosen mode and any skipped README improvements in
Harness/tasks/<task-id>/PLAN.md when available.
Output
Before broad edits, return:
- chosen mode
- sections to preserve
- sections to add or reorganize
- facts still unknown
- verification command or manual review step