From crucible
Autonomous document perfecter. Takes raw human input (brain-dump transcript, meeting notes, messy first draft, pile of references) plus a target type (plan, spec, report, vision, brief, north-star, strategy, proposal, manuscript, analysis, custom) and produces a single canonical document that has been autonomously researched, epistemically tagged, stress-tested, citation-backed, and refined across multiple iterations until it meets a hard 'perfected' bar. Leverages the ralph-wiggum loop plugin as the iteration engine and a dedicated crucible-author subagent as the worker. **USE THIS SKILL whenever the user says 'perfect this,' 'iterate this,' 'build me a doc from this transcript,' 'research and refine,' 'make this best-practice,' 'make this the best ever,' 'draft with hypotheses and unknowns and loop on it,' or hands over a messy brain dump asking for a polished document. Use it even when those exact phrases aren't used — if the user provides long messy input and wants a structured output document, this is the skill.**
How this skill is triggered — by the user, by Claude, or both
Slash command
/crucible:perfectThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
A document perfecter. Raw mess in. Polished, defensible, citation-backed artifact out. Audit trail proves it.
A document perfecter. Raw mess in. Polished, defensible, citation-backed artifact out. Audit trail proves it.
Crucible takes raw input + a target document type + an output path. It spawns the crucible-author subagent inside a ralph-wiggum loop. The subagent iteratively researches, critiques, and refines a draft until the document meets a hard "perfected" bar OR a 10-iteration cap fires. Output: a single canonical document plus an audit trail showing what happened each pass.
This skill is the entry point. The methodology lives in the crucible-author subagent (${CLAUDE_PLUGIN_ROOT}/agents/crucible-author.md). Extended guidance lives in ${CLAUDE_PLUGIN_ROOT}/skills/perfect/REFERENCE.md. The mission template lives in ${CLAUDE_PLUGIN_ROOT}/skills/perfect/PROMPT-TEMPLATE.md.
Target types available: plan, spec, report, vision, brief, north-star, strategy, proposal, manuscript, analysis, custom. See REFERENCE.md §6 for per-type structure expectations and recommended iteration depth.
USE Crucible when:
Do NOT use Crucible when:
Slash invocation (preferred):
/crucible:perfect <target-type> <input-path-or-content> [--output <output-path>] [--max-iterations <n>] [--model <opus|sonnet>]
The skill is namespaced because it ships as a plugin. crucible comes from the plugin name; perfect is the skill name within the plugin. Standalone installations at ~/.claude/skills/crucible/SKILL.md use the unnamespaced /crucible invocation.
Natural-language invocation: When Leo says any of the trigger phrases above and provides raw input + a target, just run Crucible. Confirm the target type and output path with Leo once, then execute.
Required arguments:
<target-type> — one of: plan, spec, report, vision, brief, north-star, strategy, proposal, manuscript, analysis, or custom (caller specifies in mission brief)<input> — either a file path (~/path/to/transcript.md) or inline content delimited by triple backticksOptional arguments:
--output <path> — output file path. Defaults to ~/forge-projects/crucible-output/<slug>-<YYYY-MM-DD>.md--max-iterations <n> — safety cap. Defaults to 10. Range: 3–20.--model <opus|sonnet> — subagent model. Defaults to opus for deeper iteration; specify sonnet for faster/cheaper runs.Parse and validate inputs.
custom, prompt Leo for a one-sentence description of the desired document.Build the mission brief.
PROMPT-TEMPLATE.md.Invoke ralph-wiggum.
/ralph-loop command with:
--completion-promise "PERFECTED" (subagent emits <promise>PERFECTED</promise> when conditions met)--max-iterations from inputThe subagent does the work.
Collect and present.
## IMPERFECT — Unmet Conditions section explicitly.The subagent's methodology, per iteration. Full details in REFERENCE.md.
Iteration 1 only — Hypothesis Pass:
[CONFIRMED], [HYPOTHESIS], [UNKNOWN], [CONCERN]## Open Questions section enumerating every [UNKNOWN]## Iteration LogIterations 2 through N:
[UNKNOWN] tags using WebSearch / WebFetch / file reads / MCP tools. Capture citations.Subagent emits <promise>PERFECTED</promise> ONLY when ALL are true:
[CONFIRMED] claim has a citation OR an [internal] rationale.[UNKNOWN] tags remain. (Resolved unknowns escalated to Open Questions must be retagged inline as [DEFERRED → Open Q #N], not left as [UNKNOWN].)Structural minimum: Because iteration 1 (Hypothesis Pass) runs no Critique Pass, condition 5 is unsatisfiable until iteration 3 at earliest. Documents requiring deep iteration (spec, strategy, proposal, analysis, manuscript per REFERENCE.md §6) realistically need iter 4-5 minimum before PERFECTED can fire.
If --max-iterations cap fires before completion, subagent finalizes with ## IMPERFECT — Unmet Conditions section and emits <promise>CAPPED</promise>.
A single Markdown document at the specified output path. Structure:
# <Target Document Title>
## Summary
<one-paragraph summary of confirmed truths + remaining open questions>
## <Body sections per document type>
<claims tagged [CONFIRMED] (with citations), [HYPOTHESIS], [CONCERN]>
## Open Questions
<remaining items, if any, with rationale for why they could not be closed>
## Citations
<flat list of sources used, deduplicated>
## Iteration Log
- Iter 1 (Hypothesis Pass): <what was drafted, what tags emerged>
- Iter 2 (Research Pass): <what was researched, what tags resolved>
- Iter 3 (Critique Pass surfaces X, Refine resolves Y): ...
- ...
- Iter N: <PERFECTED or CAPPED>
<promise>PERFECTED</promise> to escape the loop unless all five conditions are genuinely true. Ralph's own prompt template already enforces this; we reinforce it in PROMPT-TEMPLATE.md.A 10-iteration deep-doc loop with opus is non-trivial in token cost. Rough order: a 5,000-word document with 10 iterations against opus may consume 200k–500k tokens. Sonnet roughly halves that. Worth knowing before invoking on enormous inputs. Test with small inputs first.
Built 2026-05-18 by Jordan + Claude per Leo's spec. FORGE packet:
~/kv-projects/FORGE/_forge/inbox/active/crucible-document-perfecter/
Drafted in response to Leo's verbal pattern, captured verbatim:
"When I provide a long brain dump transcript and request to build a document, plan, report, etc. this skill is used to draft, revise, research, perfect, via looping to a goal of the perfect, best practice, researched content EVER."
npx claudepluginhub knight-ventures-inc/crucible-plugin --plugin crucibleProvides CDSS development patterns for drug interaction checking, dose validation, clinical scoring (NEWS2, qSOFA), and alert classification integrated into EMR workflows.