skill-scaffold
Skill0 starsChanged 41 days agoMITView on GitHub
Stage 5 of skill-cheat, the terminal write stage of a five-stage pipeline — trigger /skill-scaffold whenever the user says "ship it to disk", "write the plugin tree to disk", "scaffold the files now", "emit the plugin to <target>", or "finalize and install it". Writes the canonical plugin tree to the target project path only after Stage 4 voice-review returned an ACCEPT verdict; any other upstream verdict blocks the write. Emits SCAFFOLD_COMPLETE, SCAFFOLD_INCOMPLETE, or BLOCKED_OVERWRITE.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- gerivdb/SKILLStheir own version, first seen Nov 8, 2026
- dkpapadopoulos/auto-claude-skillstheir own version, first seen Sep 22, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- dkpapadopoulos/auto-claude-skills★ 7same name
- gerivdb/SKILLS★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository8 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- receiving-voice-reviewSkill
- skill-authorSkill
- skill-designSkill
- skill-scopeSkill
- skill-stress-testSkill
- skill-voice-reviewSkill
- using-skill-cheatSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. About 0 are common, 8 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Do NOT write to the target project if voice-review did not return ACCEPT.
- Very specific: line 14
Never write a file with extension outside .md, .js, .sh, .json.
- Very specific: line 18
Do NOT overwrite an existing plugin.json without explicit confirmation.
- Distinctive: line 64
Read the voice-review verdict for the current session.
- Distinctive: line 65
Read scope mode from scope.md.
- Very specific: line 66
Check whether plugin.json already exists at the target path.
- Distinctive: line 67
Write files according to the appropriate tree branch.
- Very specific: line 69
Run bash -n on the authored plugin's Bottom Line script.
- Very specific: line 100
After all files pass verification and bash -n passes, emit VERDICT: SCAFFOLD_COMPLETE.
- Distinctive: line 104
BEFORE writing any file: "Does its extension match the allowlist?"
- Very specific: line 105
BEFORE overwriting plugin.json: "Did the user confirm the overwrite?"
- Very specific: line 106
BEFORE declaring SCAFFOLD_COMPLETE: "Does the authored Bottom Line script pass bash -n?"
- Distinctive: line 107
BEFORE branching on plugin mode: "Did I read scope mode from scope.md in this session?"
- Distinctive: line 126
Read voice-review ACCEPT before any write: No other verdict unblocks the scaffold stage.
- Distinctive: line 128
Substitute every placeholder: No template token survives into the written output.
≈ “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
<!-- design-region-clean-of-hard-gates -->skill-scaffold
<HARD-GATE>
Do NOT write to the target project if voice-review did not return ACCEPT. STOP and rerun voice-review.
</HARD-GATE><HARD-GATE>
Never write a file with extension outside `.md`, `.js`, `.sh`, `.json`. STOP and correct the write.
</HARD-GATE><HARD-GATE>
Do NOT overwrite an existing plugin.json without explicit confirmation. STOP and ask the user.
</HARD-GATE>Anti-Pattern
"The scaffold is just boilerplate" — treating scaffold output as mechanical prevents verification. Every file written must be checked against the canonical tree in references/plugin-skeleton.md before SCAFFOLD_COMPLETE is emitted.
Core Principle
Emit the canonical tree exactly; refuse anything off-grid.
Process Flow
digraph skill_scaffold {
rankdir=TB;
"Read voice-review verdict" [shape=box];
"Verdict is ACCEPT?" [shape=diamond];
"SCAFFOLD_INCOMPLETE" [shape=doublecircle];
"Read scope mode from scope.md" [shape=box];
"Scope mode read?" [shape=diamond];
"New plugin?" [shape=diamond];
"Emit full canonical tree" [shape=box];
"Emit skill-only delta" [shape=box];
"Run authored Bottom Line" [shape=box];
"Bottom Line passes bash -n?" [shape=diamond];
"SCAFFOLD_INCOMPLETE" [shape=doublecircle];
"SCAFFOLD_COMPLETE" [shape=doublecircle];
"Read voice-review verdict" -> "Verdict is ACCEPT?";
"Verdict is ACCEPT?" -> "SCAFFOLD_INCOMPLETE" [label="not ACCEPT"];
"Verdict is ACCEPT?" -> "Read scope mode from scope.md" [label="ACCEPT"];
"Read scope mode from scope.md" -> "Scope mode read?";
"Scope mode read?" -> "SCAFFOLD_INCOMPLETE" [label="not found"];
"Scope mode read?" -> "New plugin?" [label="found"];
"New plugin?" -> "Emit full canonical tree" [label="yes"];
"New plugin?" -> "Emit skill-only delta" [label="no"];
"Emit full canonical tree" -> "Run authored Bottom Line";
"Emit skill-only delta" -> "Run authored Bottom Line";
"Run authored Bottom Line" -> "Bottom Line passes bash -n?";
"Bottom Line passes bash -n?" -> "SCAFFOLD_INCOMPLETE" [label="fail"];
"Bottom Line passes bash -n?" -> "SCAFFOLD_COMPLETE" [label="pass"];
}Checklist
- Read the voice-review verdict for the current session.
- Read scope mode from scope.md.
- Check whether plugin.json already exists at the target path.
- Write files according to the appropriate tree branch.
- Substitute all placeholders in every written file.
- Run
bash -non the authored plugin's Bottom Line script. - Emit SCAFFOLD_COMPLETE or SCAFFOLD_INCOMPLETE.
Step Details
1. Read the voice-review verdict for the current session
Locate the VERDICT line emitted by the voice-review stage in the current session. Any verdict other than ACCEPT blocks all writes and results in SCAFFOLD_INCOMPLETE.
2. Read scope mode from scope.md
Open docs/skill-cheat/skills-in-progress/<skill-name>/scope.md. Confirm plugin-mode is present and set to either new plugin or existing plugin. Block on a missing or unrecognized value.
3. Check whether plugin.json already exists at the target path
Stat .claude-plugin/plugin.json at the declared target root. If the file exists, STOP and ask the user whether to overwrite. Do NOT proceed until the user replies with an explicit yes or no. A no answer results in BLOCKED_OVERWRITE.
4. Write files according to the appropriate tree branch
For new plugin: emit every file in the canonical tree from references/plugin-skeleton.md, omitting keyword-trigger files when scope declares no triggers. For existing plugin: emit only the delta files listed in the existing-plugin section.
5. Substitute all placeholders in every written file
Replace <PLUGIN_NAME>, <PLUGIN_UPPER>, <authored-skill-name>, and <primary-command> in every file. Read references/hook-templates.md for the authoritative placeholder list. Refuse to write any file that still contains an unsubstituted placeholder token.
6. Run bash -n on the authored plugin's Bottom Line script
Extract the Bottom Line fenced block from the authored SKILL.md and run bash -n on it. A syntax error blocks SCAFFOLD_COMPLETE.
7. Emit SCAFFOLD_COMPLETE or SCAFFOLD_INCOMPLETE
After all files pass verification and bash -n passes, emit VERDICT: SCAFFOLD_COMPLETE. Emit VERDICT: SCAFFOLD_INCOMPLETE for any unresolved block in steps 1–6.
Gate Functions
- BEFORE writing any file: "Does its extension match the allowlist?"
- BEFORE overwriting plugin.json: "Did the user confirm the overwrite?"
- BEFORE declaring SCAFFOLD_COMPLETE: "Does the authored Bottom Line script pass bash -n?"
- BEFORE branching on plugin mode: "Did I read scope mode from scope.md in this session?"
Rationalization Table
| You think... | Reality |
| "The scaffold is just boilerplate" | Every placeholder left unsubstituted is a broken file. Verify each write against the canonical tree. |
| "Voice-review ACCEPT_WITH_MINOR is close enough" | Require ACCEPT before any write. Rerun voice-review on ACCEPT_WITH_MINOR. |
| "I can overwrite plugin.json silently to save time" | Silent clobber destroys user configuration without recovery. Always ask before overwriting. |
Red Flags
- "The scaffold is just boilerplate"
- "ACCEPT_WITH_MINOR is close enough to proceed"
- "I can fill in the placeholders later"
- "plugin.json is auto-generated so overwriting is safe"
Key Principles
- Read voice-review ACCEPT before any write. No other verdict unblocks the scaffold stage.
- Emit the canonical tree exactly. Files outside the allowlist are refused.
- Substitute every placeholder. No template token survives into the written output.
- Ask before overwriting plugin.json. Explicit confirmation is required every time.
The Bottom Line
#!/usr/bin/env bash
set -euo pipefail
target_root="${1:-}"
skill_name="${2:-}"
if [[ -z "$target_root" || -z "$skill_name" ]]; then
echo "Usage: bottom-line.sh <target-root> <skill-name>" >&2
echo "VERDICT: SCAFFOLD_INCOMPLETE"
exit 1
fi
# Assert the target tree exists
required_files=(
".claude-plugin/plugin.json"
"CLAUDE.md"
"hooks/hooks.json"
"hooks/session-start"
"skills/using-$(basename "$target_root")/SKILL.md"
"skills/${skill_name}/SKILL.md"
"commands/${skill_name}.md"
)
missing=0
for rel in "${required_files[@]}"; do
if [[ ! -f "${target_root}/${rel}" ]]; then
echo "MISSING: ${target_root}/${rel}" >&2
missing=1
fi
done
if (( missing )); then
echo "VERDICT: SCAFFOLD_INCOMPLETE"
exit 1
fi
# Verify authored Bottom Line passes bash -n
authored_skill="${target_root}/skills/${skill_name}/SKILL.md"
bottom_line_block="$(awk '/^```bash/{p=1;getline;} p && /^```/{p=0;} p{print}' "$authored_skill")"
tmpscript="$(mktemp /tmp/scaffold-bl-XXXXXX.sh)"
printf '%s\n' "$bottom_line_block" > "$tmpscript"
if ! bash -n "$tmpscript" 2>/dev/null; then
rm -f "$tmpscript"
echo "VERDICT: SCAFFOLD_INCOMPLETE"
exit 1
fi
rm -f "$tmpscript"
echo "VERDICT: SCAFFOLD_COMPLETE"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.

