6.9 KiB
6.9 KiB
AGENTS.md — planning-with-files agent reference card
This file is the canonical, session-portable reference for how every agent working in this repo must handle commits, releases, version bumps, CHANGELOG entries, and issue/PR communication.
Commit rules
- Author: OthmanAdi only for release/maintenance commits. NEVER add
Co-Authored-By:trailers. - Format: Conventional Commits —
fix:,feat:,release:,docs:prefixes. - One release commit on top of the contributor commit(s), never a squash of the contributor's work.
git merge --squashrewrites the committer as whoever runs the local commit, which reassigns the contributor's authorship to OthmanAdi — this happened once (v2.40.1 cycle) and is exactly what this rule exists to prevent. Squashing is fine only for collapsing your OWN WIP commits before pushing. - No
--no-verify. No force push to master except tag ref updates. - Contributors are credited in CHANGELOG
### ThanksandCONTRIBUTORS.md, never in commit trailers.
Release checklist (12 steps)
gh issue view Nandgh pr view N— read both in full.- Verify the bug is real: find the exact file/line, grep for the pattern, confirm reporter is correct.
python -m pytest tests/ -q— all tests pass before touching anything.- Merge preserving contributor authorship:
git fetch origin pull/N/head:pr-N && git cherry-pick <pr-head-sha>, orgh pr merge --rebase. Do NOT usegit merge --squash— it collapses the contributor's commit and reassigns theAuthor:field to whoever runs the local commit, destroying their credit ingit log. - CHANGELOG — new version entry at top,
### Fixed/### Added/### Changed, sachlich, no em-dashes. - CONTRIBUTORS.md — add reporter/contributor, bump "Total Contributors: N+", update "Last updated" date.
- Version bump across all 19 files (see table below).
- README — update version badge and add row to releases table.
git commit,git tag vX.Y.Z,git push origin master,git push origin vX.Y.Z.gh release create vX.Y.Z --title "vX.Y.Z - <short description>" --notes "<release notes>".- Post comment on PR and/or issue via
gh issue comment N --body "..."(run through /humanizer first). gh issue close Nif applicable.
Version bump scope
All 19 files must be bumped to the same version string every release.
| File | Notes |
|---|---|
skills/planning-with-files/SKILL.md |
Primary English |
skills/planning-with-files-ar/SKILL.md |
Arabic |
skills/planning-with-files-de/SKILL.md |
German |
skills/planning-with-files-es/SKILL.md |
Spanish |
skills/planning-with-files-zh/SKILL.md |
Simplified Chinese |
skills/planning-with-files-zht/SKILL.md |
Traditional Chinese |
.codebuddy/skills/planning-with-files/SKILL.md |
CodeBuddy IDE |
.codex/skills/planning-with-files/SKILL.md |
Codex IDE |
.cursor/skills/planning-with-files/SKILL.md |
Cursor IDE |
.factory/skills/planning-with-files/SKILL.md |
Factory IDE |
.hermes/skills/planning-with-files/SKILL.md |
Hermes adapter |
.kiro/skills/planning-with-files/SKILL.md |
Kiro IDE |
.mastracode/skills/planning-with-files/SKILL.md |
Mastra Code |
.opencode/skills/planning-with-files/SKILL.md |
OpenCode IDE |
.pi/skills/planning-with-files/SKILL.md |
Pi IDE |
clawhub-upload/SKILL.md |
ClawHub marketplace upload |
.claude-plugin/plugin.json |
Plugin manifest |
.claude-plugin/marketplace.json |
Marketplace metadata |
CITATION.cff |
Citation file |
NOT bumped automatically: scripts/bump-version.py's LAGGING_FILES list currently excludes four files, not two — this table only tracked two until this correction:
.continue/skills/planning-with-files/SKILL.md,.gemini/skills/planning-with-files/SKILL.md— intentionally behind. Do not bump without an explicit scope decision..pi/skills/planning-with-files/SKILL.md— carries its own npm package version (@tomxprime/planning-with-files), not the canonicalmetadata.versionfield the parity set shares..kiro/skills/planning-with-files/SKILL.md— carries its own-kiro-suffixed scheme (e.g.3.0.0-kiro), bumped on Kiro-relevant changes rather than every canonical release.
Recent CHANGELOG entries (v3.1.1–v3.1.3) already describe this 4-file exclusion as "per AGENTS.md release scope" — this section previously did not actually say so. It does now.
CHANGELOG format
## [X.Y.Z] - YYYY-MM-DD
### Fixed
- Short description of what was wrong and how it was fixed.
### Thanks
- @handle — what they contributed (issue #N / PR #N)
Rules:
- Sachlich (matter-of-fact). No em-dashes. No hype.
- Contributor line: first name or @handle, one sentence, issue/PR reference.
- Run any prose through /humanizer before publishing anywhere public.
CONTRIBUTORS.md format
### Other Contributors
**[Name](https://github.com/handle)** — [PR #N](link) / [Issue #N](link)
- What they did (one bullet per contribution)
- Impact or context
- Update "Total Contributors: N+" count.
- Update "Last updated: YYYY-MM-DD" date.
- Scope determines section: "Other Contributors" for single-issue fix, "Major Contributions" for larger work.
Issue/PR comment style
After a fix ships, comment on the issue or PR:
- Address by
@handle. - One sentence: fix confirmed in vX.Y.Z.
- Specific: what the root cause was, what mechanism changed.
- If they are now in CONTRIBUTORS.md, say so.
- Run through /humanizer before posting.
NOT acceptable in any public comment:
- "Great report!"
- "Thank you so much!"
- Em-dashes (do not use — this style)
- "I'd like to"
- Performative warmth of any kind
Release notes format (gh release create --notes)
What changed:
- <Bug description> — <what the fix does>
- <Feature description> — <how it works>
Thanks: @handle for reporting issue #N.
- Start with what changed, not who did it.
- No em-dashes.
- Thanks at the bottom.
ClawHub distribution
- ClawHub does NOT auto-sync with GitHub.
- After every release: manually upload
clawhub-upload/SKILL.mdat clawhub.io. - SSL cert on clawhub.io may be expired — proceed through the browser warning.
- skills.sh /
npx skills: pulls from GitHub master automatically on next crawl. - Anthropic plugin marketplace: requires ClawHub upload to reflect the new version.
Quick reference: what NOT to do
- Do not add Co-Authored-By to any commit.
- Do not bump .continue or .gemini without explicit instruction. .pi and .kiro track their own version schemes and are never bumped by
scripts/bump-version.py. - Do not
git merge --squasha contributor PR — it reassigns their commit authorship. Use cherry-pick orgh pr merge --rebase. - Do not edit
task_plan.mdorDESIGN.mddirectly (user-owned contracts). - Do not log subagent returns into
task_plan.md— useprogress.md. - Do not use em-dashes in any user-facing prose.
- Do not skip ClawHub upload after a release.