| name | update-readme |
| description | Use when README.md may be stale. Discovers commits since the last README update, identifies what user-facing surfaces changed, and brings README.md back into sync. |
Updating the README
Governing spec sections: §3 (README.md — required sections and content), §21.5 (this skill is mandated because README.md is a drift-prone artifact).
README.md is the primary user-facing documentation for spotifai. Per §3 of OSS_SPEC.md it must cover the project description, installation, a quick-start, usage, contribution pointer, license, and a link to OSS_SPEC.md. It goes stale whenever a CLI flag, subcommand, default, or supported surface changes without a matching edit.
Tracking mechanism
.agent/skills/update-readme/.last-updated contains the git commit hash from the last successful run. Empty means "never run" — fall back to the initial commit of the repository.
Discovery process
-
Read the baseline:
BASELINE=$(cat .agent/skills/update-readme/.last-updated)
-
List commits since the baseline:
git log --oneline "$BASELINE"..HEAD
-
List changed files:
git diff --name-only "$BASELINE"..HEAD
-
Categorize the changes using the mapping table below.
-
Read the current README.md so you can preserve voice and unrelated sections while editing.
Mapping table
| Changed files / scope | README section(s) to update |
|---|
| Public API surface | Usage / Quick start |
| CLI flags or subcommands | Usage table |
| Default configuration | Quick start |
| Installation instructions / package name | Install |
| New supported platform or language | Supported platforms list |
| License change | License section, badges |
Extend this table every time you find a new source-of-truth file that feeds the README.
Update checklist
Verification
- Re-read every edited section against the corresponding source of truth.
- Confirm
.last-updated was rewritten with the new HEAD.
Skill self-improvement
After a run, improve this file in place:
- Grow the mapping table with any new source → README relationship you discovered.
- Record patterns for recurring edits.
- Commit the skill edit together with the README edit so the knowledge compounds.