shipping-fonderie
Skill5 starsChanged 18 days agoMITView on GitHub
Use when changing anything under packages/ in the fonderie monorepo and taking it to npm — before opening a PR, when CI fails on a gate you did not run locally, when driving the changesets Version Packages PR, when waiting for a package to publish, or when bumping an example/app onto a freshly released version. Triggers on "open a PR", "run the gates", "release", "publish", "changeset", "Version Packages", "bump the dependency", "why did CI fail".
- Deletes or force-pushes
- Installs packages
- Commits and pushes
In this repository6 other files it gives its agents.
- client-wiring-auditSkill
- endpoint-to-clientsSkill
- fonderieSkill
- harden-on-escapeSkill
- rbac-end-to-endSkill
- verify-honestlySkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 74
never ships: Add .changeset/<name>.md:
- Very specific: line 110
And it can happen twice: If another PR merges while the VP PR is open, the bot regenerates it and the new head is action_required again.
- Distinctive: line 116
Do not poll for "the version changed".
- Very specific: line 132
Wait for every package the release bumped, not one or two — on 2026-10-05 @fonderie/react-auth@0.12.0 was reported published but 404'd for …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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.
Files
Shipping a change in fonderie
Two things in this repo are easy to get wrong and cost a full CI cycle each time: the gates are more numerous than they look, and the release train has a bot quirk that stalls silently.
1. Run what CI runs — all of it
CI runs twenty-odd gates, and the count grows. Running typecheck and test locally passes about a
quarter of them. There is no composite script, so run them in CI's order:
Regenerate the docs FIRST. check:hook-coverage reads routes from the
generated signatures/*-outcomes.md, and brain:test reads brain.json — run
npm run docs:signatures && npm run docs:brain before them, or they check the
OLD route list and pass vacuously (a new route went unchecked this way until the
docs were regenerated, 2026-10-05).
Never pipe a gate through head/tail inside an && chain. A pipeline
exits with the status of its LAST command, so tail's 0 masks the gate's 1 and
the chain sails on — you get a "green" report for a gate that failed, and CI
tells you hours later. Run each one and check $?:
# Read the list from ci.yml — a hand-kept list drifted by four gates
# (check:ci-env, check:env-declarations, check:lockfile, check:internal-ranges)
# and cost a CI cycle.
for g in $(grep -oE 'run: npm run [a-z:-]+' .github/workflows/ci.yml | awk '{print $4}' \
| grep -vE '^(build|test|docs:)'); do
npm run "$g" >/dev/null 2>&1 && echo " PASS $g" || echo " FAIL $g"
donenpm run lint:ci
npm run audit:ship
npm run build
npm run typecheck
# BOTH generated-doc gates. There are two, and they cover different files.
npm run docs:signatures && git diff --exit-code \
.claude/skills/fonderie/SIGNATURES.md .claude/skills/fonderie/signatures 'packages/*/brain/*'
npm run docs:brain && git diff --exit-code \
.claude/skills/fonderie/brain.json packages/cli/data/knowledge.json
npm run brain:test
npm run brain:project-test
npm run audit:validation
npm run check:evidence
npm run check:hook-coverage
npm run check:hook-parity
npm run check:routes
npm run check:template-coverage
npm run check:reasons
npm testThe two doc gates are the ones that bite. docs:signatures regenerates the
per-package signature/outcome files; docs:brain regenerates brain.json and
packages/cli/data/knowledge.json. Running one and assuming it covered the
other is a wasted CI cycle — adding a single route changes a routeCount in
brain.json that signatures never touches.
Both gates are git diff --exit-code against generated output, so the fix is
always: run the generator, commit what it wrote.
2. Changeset or no release
A change under packages/ without a changeset builds, passes, merges, and
never ships. Add .changeset/<name>.md:
---
'@fonderie/thing': minor
---
What changed and WHY it mattered — the failure it prevents, not the diff.patch for a fix, minor for new API. Changesets bumps dependents
automatically; do not hand-edit versions.
Examples and templates are not published — no changeset needed for them.
3. The release train, and its quirk
merge to main
→ Release workflow runs
→ opens/updates the "Version Packages" PR ← the bot pushes it
→ merge that PR
→ Release workflow runs again and publishes to npmThe quirk: commits pushed by the changesets bot do not trigger CI. The
Version Packages PR sits with action_required forever, and merging is blocked
with no obvious cause. Push an empty commit to its branch:
git fetch upstream changeset-release/main
git checkout -B vp-trigger upstream/changeset-release/main
git commit --allow-empty -m "chore: trigger CI"
git push upstream HEAD:changeset-release/mainAnd it can happen twice. If another PR merges while the VP PR is open, the
bot regenerates it and the new head is action_required again. Check the head
SHA before assuming your trigger still applies.
4. Waiting for the publish — the part that lies
Do not poll for "the version changed". Do not read the expected version from a file the release has not touched yet. Both pass instantly and prove nothing:
[ "$v" != "$old" ] # ✗ a leftover from an earlier release satisfies this
WANT=$(cat package.json version) # ✗ read BEFORE the VP merge — compares the value to itselfPull after the Version Packages PR merges, then wait for that exact value:
git pull --ff-only upstream main
WANT=$(node -e "console.log(require('./packages/thing/package.json').version)")
until [ "$(npm view @fonderie/thing version)" = "$WANT" ]; do sleep 25; doneWait for every package the release bumped, not one or two — on 2026-10-05
@fonderie/react-auth@0.12.0 was reported published but 404'd for ~10 minutes
while its siblings were live; a check on auth + client alone said "done".
npm's registry reads lag behind a publish by up to a few minutes, so a 404 or
a stale version immediately after the workflow succeeds is normal — keep
polling rather than concluding the publish failed.
5. Bumping a consumer
npm install resolves against the installed tree, so it will happily keep
an old version that still satisfies the range. After changing a dependency
range in an example or app:
rm -rf node_modules package-lock.json
npm install
node -e "console.log(require('./node_modules/@fonderie/thing/package.json').version)"That last line is not ceremony. Confirm the version you meant is the version
you got, then run the app — see verify-honestly for why "it installed" is not
evidence that it works.
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
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.

