release-export
Skill0 starsChanged 3 months agoMITView on GitHub
Export a lab repository's committed tree to its public release repository through its release manifest. Use when asked to dry-run, export, or publish a repo that carries a release-manifest.json.
- Installs packages
In this repository72 other files it gives its agents.
- ask-mattSkill
- capture-learningSkill
- claude-handoffSkill
- codebase-designSkill
- code-reviewSkill
- diagnosing-bugsSkill
- domain-modelingSkill
- eval-harnessSkill
- extract-wiki-lessonsSkill
- find-skillsSkill
- git-guardrails-claude-codeSkill
- grillingSkill
- grill-meSkill
- grill-with-docsSkill
- handoffSkill
- imagegenSkill
- implementSkill
- implement-specSkill
- improve-codebase-architectureSkill
- iterative-retrievalSkill
- loop-meSkill
- mcp-server-patternsSkill
- migrate-to-shoehornSkill
- plugin-creatorSkill
- principle-boundary-disciplineSkill
- principle-build-the-leverSkill
- principle-encode-lessons-in-structureSkill
- principle-exhaust-the-design-spaceSkill
- principle-experience-firstSkill
- principle-fix-root-causesSkill
- principle-foundational-thinkingSkill
- principle-guard-the-context-windowSkill
- principle-laziness-protocolSkill
- principle-make-operations-idempotentSkill
- principle-migrate-callers-then-delete-legacy-apisSkill
- principle-minimize-reader-loadSkill
- principle-model-the-domainSkill
- principle-outcome-oriented-executionSkill
- principle-prove-it-worksSkill
- principle-redesign-from-first-principlesSkill
- principle-separate-before-serializing-shared-stateSkill
- principle-sequence-verifiable-unitsSkill
- principle-subtract-before-you-addSkill
- principle-type-system-disciplineSkill
- prototypeSkill
- researchSkill
- resolving-merge-conflictsSkill
- retroSkill
- run-controlSkill
- scaffold-exercisesSkill
- setup-matt-pocock-skillsSkill
- setup-pre-commitSkill
- setup-ts-deep-modulesSkill
- skill-creatorSkill
- skill-installerSkill
- skill-stocktakeSkill
- tddSkill
- teachSkill
- technical-writeupSkill
- test-coverageSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
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
- Very specific: line 18
Run it from inside the lab repo.
- Distinctive: line 65
Never flip a lab repo public.
- Distinctive: line 67
Every export replaces the whole release tree, so a deletion in the lab is a deletion in the release on the next run.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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
Release export
One export reads the lab repo at HEAD, keeps what release-manifest.json
allows, lays the overlay directory over the root, runs the post commands, gates
the staged tree, and replaces the release branch's tree with one commit. The
manifest is read from HEAD too, so an export is a function of one lab commit:
commit the manifest before a dry run. Nothing from the lab's history travels,
and nothing uncommitted can ship.
Run it from inside the lab repo. Brain's own copy is ./bin/export; for another
lab repo, call brain's bin/export with the current directory inside that repo.
./bin/export --dry-run # list what ships and run the gate; nothing is written
./bin/export # one commit pushed to target.repo on target.branchOptions: --target-url <url> overrides the clone and push URL, which defaults to
https://github.com/<target.repo>.git. Use it to rehearse against a local bare
repository.
Prerequisites: git, tar, and gitleaks (brew install gitleaks). Without
gitleaks the gate cannot run and every export is refused.
Manifest
release-manifest.json at the lab root, with no other fields:
| field | meaning |
target | { "repo": "owner/name", "branch": "main" } |
source | must be "HEAD"; the committed tree is the only source |
allow | globs for what ships, one skill directory each; ** crosses directories and matches dotfiles, * stays inside one segment, every glob anchors at the root |
deny | globs; deny beats allow |
overlay | a lab directory whose files land at the release root, overriding copies; they are never shipped at their lab path |
forbid | [{ "name", "pattern" }] literal strings; any hit in any staged file refuses the export |
post | [{ "run", "produces" }] commands run inside the staged tree after copy and overlay; every produces path must exist afterwards and no undeclared file may appear |
Reading a run
- Ship lists every staged file with its lab origin: copied files, overlay
files as
README.md <- release/README.md, regenerated files ascatalog.json <- post: ./bin/build-index. - Denied files matched a deny glob.
- Unmatched files matched nothing and stay private. This is a warning, not a failure: read it every run so a new directory is noticed rather than silently kept back or, worse, added to the allow list without a decision.
- Gate reports the forbidden-pattern sweep and gitleaks over every staged file. A refusal names the release path, the lab path, and the pattern or rule.
- Refused means nothing was written. Fix the content in the lab, commit, and
run again. Never edit a staged tree or widen
allowto get past the gate.
Exit codes: 0 passed, 1 refused or failed, 2 usage or manifest error.
Rules
- Never flip a lab repo public. A release repo is a fresh repository that only ever receives exports.
- Every export replaces the whole release tree, so a deletion in the lab is a deletion in the release on the next run.
- One export is one commit,
Export from lab <short sha> on <date>. When the release already matchesHEAD, no commit is made. - Anything that ships passes the gate, test fixtures included. Assemble a fake secret or a forbidden literal at runtime rather than writing it into a file.
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.

