project-scaffolder
CLAUDE.md9 starsChanged 7 days agoMITView on GitHub
This repository is the source of the project-scaffolder Claude Code plugin. It is maintained with the same second-brain discipline the plugin generates: wiki/ is the memory of the plugin's own development. Before any other work, check Claude Code for changes:
In this repository18 other files it gives its agents.
- skills/foundation/templates/agents.mdAGENTS.md
- skills/foundation/templates/CLAUDE.mdCLAUDE.md
- audit-ai-design-slopSkill
- backlogSkill
- brainstormSkill
- context-managerSkill
- cortexSkill
- debuggingSkill
- design-studioSkill
- foundationSkill
- idea-researchSkill
- improve-loopSkill
- no-ai-design-slopSkill
- phase-flowSkill
- pipeline-loggerSkill
- releaseSkill
- synapseSkill
- wiki-keeperSkill
The file
We split this CLAUDE.md into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are 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.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 7
Before any other work, check Claude Code for changes:
- Very specific: line 9
Read wiki/claude-code-changelog.md: the last changelog version already reviewed.
- Very specific: line 10
Read the newer entries of https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md (raw: …
- Distinctive: line 13
Update the recorded version, then report the findings in a few lines before starting the user's request.
≈ “Common” is an estimate: at least 1 in 5 of the 29,248 CLAUDE.md 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
project-scaffolder — maintainer hub
This repository is the source of the project-scaffolder Claude Code plugin. It is maintained with the same second-brain discipline the plugin generates: wiki/ is the memory of the plugin's own development.
First thing in every session
Before any other work, check Claude Code for changes:
- Read
wiki/claude-code-changelog.md: the last changelog version already reviewed. - Read the newer entries of https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md (raw:
https://raw.githubusercontent.com/anthropics/claude-code/main/CHANGELOG.md). Only the entries after the recorded version. - For each entry that touches plugins, skills, commands, agents, hooks, models, permissions, Artifacts or workflows: note it in
wiki/claude-code-changelog.mdwith what it means for this plugin (adopt,adapt,watch,no impact). - A new model more capable than the one in
agents/*.mdfor planning and verification → propose updating themodelof architect, verifier, bug-hunter and design-critic. - Update the recorded version, then report the findings in a few lines before starting the user's request.
Layout
| Path | What |
commands/ | Slash commands. Thin: frontmatter (description, argument-hint, disable-model-invocation on user-only commands) plus a pointer to a skill. No name: field (not valid in commands). No model: on commands that run in the main conversation (it forces an uncached re-read); a read-only report may use context: fork with a model. |
skills/ | The logic. One folder per skill; templates in skills/<skill>/templates/; read-only bash helpers in skills/<skill>/scripts/, pre-approved by the skill's allowed-tools, each with a by-hand fallback for sessions without Git Bash. |
agents/ | The eight specialists, each with a fixed model and effort. |
hooks/ | hooks.json plus bash scripts; lib.sh holds the shared helpers. |
workflows/ | The three loops as plugin workflows: release-rounds.js (skill release, rounds.md), improve-segment.js (skill improve-loop), research-rounds.js (skill idea-research). The skill owns the questions, the journal and the fallback; the script owns one run. |
tests/test-hooks.sh | Regression tests for every hook and for the bundled scripts. |
evals/ | claude plugin eval cases for the gates (see evals/README.md). Paid model runs: before a release, not every commit. |
wiki/ | Development memory of the plugin. |
Rules for changing the plugin
- The flow is sequential. Five phases, one exit artifact each, hard gates. A change must not let a later phase's work leak into an earlier one. The phase guard in
hooks/phase-guard.shis the mechanical half of that rule; keep it and the skills in agreement. - Model routing is fixed: Fable plans and verifies, Opus builds, Sonnet re-checks and mass-tests, Haiku is not used. Change it only when the maintainer asks, and then in
agents/*.md, the forked reports incommands/*.md, themodeloptions inworkflows/*.js,skills/phase-flow,skills/foundation/templates/agents.mdand the README together. - Skill descriptions state only when to use the skill and start with "Use when". The process goes in the body.
- One name, one component: skills, commands and workflows share the
/project-scaffolder:<name>namespace, so no two of them may have the same name (hence thedebuggingskill behind/bug-hunt, and workflow names that differ from their skills). - Hooks: bash, no
jq, JSON built only from fixed strings, Windows paths handled throughlib.sh. The project root comes from the hook input'scwd(nearest.scaffolder/phase),CLAUDE_PROJECT_DIRonly as the fallback. The three PreToolUse guards fail closed (onFailure: "block"): every decision path exits 0 with valid JSON or no output, and a guard that lost its rules exits non-zero. The other hooks fail open. Every hook change comes with a test case;bash tests/test-hooks.shmust pass. - Loops (workflows): the first statement is a pure-literal
export const meta = {name, description, phases}; plain JS reading theargsglobal; noDate.noworMath.random(resume replays the script). A workflow cannot ask the user, so the skill asks everything with AskUserQuestion before launch, shows the cost estimate and the caps (rounds or iterations, agents), writes the journal after every run and resumes from it alone. Each skill keeps a fallback section for sessions without workflows (Pro default,disableWorkflows,CLAUDE_CODE_DISABLE_WORKFLOWS): the same steps from the main session with the scoped agents, one after another. Change a cap, a journal field or a status in the script and the skill together. - Visibility costs no model tokens: user-facing lines go in a hook's top-level
systemMessage(the SessionStart banner) or in thereasonof aUserPromptExpansionblock, which is shown to the user before the command loads (command-gate.sh);additionalContextstays byte-identical across sessions, with no timestamps or session-specific values. - Secrets: nothing in this repository may contain a real key, a local path or personal data.
secrets/is git-ignored here too. - Validate before every commit:
claude plugin validate .andbash tests/test-hooks.sh. - Releases: the version lives only in
.claude-plugin/plugin.json; the marketplace entry has none (with both set, Claude Code silently usesplugin.json). Bump it on every push meant for users, or installed copies keep their cache (claude plugin updateanswers "already at the latest version"). Move theCHANGELOG.md"Unreleased" entries under the new version, log it inwiki/log.md. Never push without the maintainer saying so.
Wiki
| Page | What |
wiki/index.md | Map of the pages |
wiki/claude-code-changelog.md | Claude Code versions reviewed and what each changes for the plugin |
wiki/decisions.md | Design decisions of the plugin (append-only) |
wiki/sources.md | Third-party projects evaluated, with verdicts |
wiki/log.md | Append-only history: ## [YYYY-MM-DD] <op> | <title> |
wiki/todo.md | Notebook of unplanned work, T-NNN by priority: bash skills/backlog/scripts/todo-report.sh . |
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.

