agentleFS
maksutovicmaksutovic/joycraft/.claude/skills/release-docs-sync/SKILL.md

release-docs-sync

Skill15 starsChanged 51 days agoMITView on GitHub

Joycraft maintainers only — before opening a PR, check whether this branch's changes need CHANGELOG.md, AGENTS.md, or README.md updates, and write the ones that do. Run at PR time, not merge time.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run this before opening a PR, while you still know what changed and why.

    line 12
  2. Distinctive:

    Read the diff for anything you are unsure about.

    line 23
  3. Distinctive:

    Add an entry when the branch changes what a user experiences:

    line 33
  4. Distinctive:

    Write them directly — do not summarize what you would write and stop.

    line 65
  5. Very specific:

    Follow the repo's style contract in docs/templates/reference/output-style.md.

    line 69
  6. Distinctive:

    If you updated nothing, say that and why.

    line 81

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Release Docs Sync (Joycraft Maintainers)

This is a repo-local skill. It is not part of the Joycraft product and does not ship to npm — it lives in src/local-skills/ and exists only to maintain Joycraft's own documentation. Do not reference it from any skill under src/skills/.

Joycraft prepares a reviewed release PR from eligible merges to main. Its retained package reaches latest only after candidate verification and promotion. That pipeline does not write explanatory prose. Docs therefore drift silently: by 0.7.4 the CHANGELOG still stopped at 0.7.1, and CLAUDE.md's architecture map never learned that src/copilot-skills/ existed.

Run this before opening a PR, while you still know what changed and why. After merge the version is already cut and the context is gone.

Step 1: Read the Branch

Get the actual diff against main — never guess from memory:

git diff main...HEAD --stat
git log main..HEAD --oneline

Read the diff for anything you are unsure about. What matters is not how many files moved but whether the contract with users changed.

Step 2: Decide What Each Doc Needs

Judge each independently. Most PRs need none of them, and saying so is a valid outcome — inventing an entry to look thorough is worse than skipping one.

CHANGELOG.md

The file states its own rule: it records "the releases that changed how Joycraft works," not every published version. Many patch versions exist between entries by design.

Add an entry when the branch changes what a user experiences:

  • A new or removed skill, or a materially different workflow through an existing one
  • A new harness, or a change to what init/upgrade writes into a project
  • A changed default, a migration, or anything that alters an existing install on upgrade
  • A fix for behavior users could have observed and built around

Skip when the change is internal: refactors, test-only work, generated-file regeneration, CI, or docs.

Match the existing format — ## <version> — <Title> (<date>), newest first, written as before → now → side-effects. Prose, not a bullet dump of commits. If the version is not cut yet, use an Unreleased entry. The reviewed release PR selects the version; do not invent a version for the feature PR.

CLAUDE.md

This is the shared agent-instruction file. Update when the branch changes something it describes:

  • Architecture map — a new or removed directory under src/, scripts/, or docs/
  • Key Files table — a file whose role changed, or a new load-bearing one
  • Behavioral Boundaries — a new ALWAYS/ASK FIRST/NEVER rule the branch establishes
  • Spec Status table — specs that moved phase or status

The architecture map is the row most often missed, because adding a directory rarely feels like a documentation change. It is.

README.md

User-facing entry point. Update when the branch changes:

  • Installed harnesses, or what lands where in a user's project
  • CLI commands, flags, or their behavior
  • The skill list, or the workflow the README walks through

Step 3: Write the Updates

Write them directly — do not summarize what you would write and stop.

Match each file's established voice. The CHANGELOG is narrative prose explaining why a change matters. CLAUDE.md is terse and directive. The README is instructional. Read the surrounding lines before adding to any of them.

Follow the repo's style contract in docs/templates/reference/output-style.md.

Step 4: Report

State plainly which files you updated and which you deliberately skipped, with the reason:

CHANGELOG.md  — added 0.7.5 entry (new harness changes what init writes)
CLAUDE.md     — added src/local-skills/ to architecture map
README.md     — no change needed (no user-facing CLI or workflow change)

If you updated nothing, say that and why. A branch that genuinely needs no doc changes is the common case, not a failure.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.