forge-discipline
Use when you want to turn a named behavioral pattern (a gem, a fresh arXiv finding, or a matured instinct) into an INSTALLED, self-tested Claude Code hook in one pass. This is a BEHAVIOR forge, not a tool forge - it forges hooks/tripwires (things the harness runs deterministically), not MCP tools. Given a pattern spec it scaffolds the hook plus any tripwire, state schema, and skill stub it needs, generates and runs a chaos/GameDay self-test that PROVES the hook fires on its trigger, stays silent otherwise, and fails open on garbage, then stages everything in a review queue with the exact one-line install instruction. It NEVER auto-wires settings.json or the dispatcher manifest - the human reviews and applies the one line.
- License 许可
- MIT
- 最近更新
- 2026-11-02
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- forge-discipline
- description
- Use when you want to turn a named behavioral pattern (a gem, a fresh arXiv finding, or a matured instinct) into an INSTALLED, self-tested Claude Code hook in one pass. This is a BEHAVIOR forge, not a tool forge - it forges hooks/tripwires (things the harness runs deterministically), not MCP tools. Given a pattern spec it scaffolds the hook plus any tripwire, state schema, and skill stub it needs, generates and runs a chaos/GameDay self-test that PROVES the hook fires on its trigger, stays silent otherwise, and fails open on garbage, then stages everything in a review queue with the exact one-line install instruction. It NEVER auto-wires settings.json or the dispatcher manifest - the human reviews and applies the one line.
02 资源文件 1
- 参考文档references/original-prompt.org7.4 KB
03 SKILL.md 正文
Discipline-Forge
The durable moat is not which cross-domain analogy you borrow today (those deprecate the moment the field mines the same paper). The moat is owning the pipeline that turns any named behavioral pattern into an installed, self-tested discipline in one pass. This generalizes the instinct→skill evolution one step further: instead of maturing an observed regularity into an advisory skill, it forges an enforced hook that the harness runs deterministically — and refuses to call it "installed" until a fault-injection self-test proves it actually fires.
This forges behaviors (hooks/tripwires). A tool-forge forges tools (things
the model chooses to call). Different artifact, different home: forged behaviors land
in ~/.claude/hooks/... and fold into the dispatcher or settings.json.
SAFETY: review before install (read this first)
forge.py never edits your live settings.json or _dispatch/manifest.json. A
forged discipline is staged in a review queue with its passing self-test and a single
ready-to-apply line. You read it and apply that line by hand. This mirrors the
auto-skill-authoring discipline (the forge proposes; the human installs) and means a
forged hook can never silently start blocking your tools or injecting context.
Every forged hook also fails open (any error → exit 0; a gate never blocks on error)
and ships a kill-switch: an env var FORGE_<NAME>_OFF=1 and a .disabled file.
The pattern spec
A discipline is described by a small spec (CLI flags or a --spec file.json):
The one-pass pipeline (what forge.py does)
How forged hooks compose with the dispatcher / manifest
Where this sits in the instinct → skill path
Usage
Inject discipline (Stop): surface uncaptured TODO/FIXME markers. Folds as 1 manifest line.
Gate discipline (PreToolUse): block git push --force. Installs as a settings.json entry.
Inspect without staging: add --dry-run
Full result as JSON: add --json
Trigger kinds
Files
Quality bar
04 同仓库更多 Skills
clarify-requirements
Resolve genuine pre-execution ambiguity by scanning repo context, generating 1-6 grounded options, and asking 1-3 focused questions via AskUserQuestion. NOT for mid-task use (injection risk); NOT when the goal is already unambiguous; use to disambiguate vague prompts before any file edits.
openmm-md
Run FREE, open-source, Windows-native GPU molecular dynamics via the openmm-md MCP (OpenMM + CUDA on the local NVIDIA GPU). Use for protein / protein-ligand MD when you want a free stack or are on Windows without a Schrodinger license. Covers the full workflow (prepare, solvate, minimize, equilibrate, production, analyze, mmgbsa) AND an honest decision guide vs Schrodinger Desmond, including how to run Desmond legitimately on Linux or a cloud GPU with a real license. This is a deliberately LESSER free alternative and does NOT replace the schrodinger MCP tools. Do NOT use it to pick a free tool when a validated FEP+, WaterMap, IFD-MD, or Prime MM-GBSA result is actually required.
visual-review
Take screenshots of web pages and UI using Playwright for visual review and iteration
status
Diagnostic status report — shows metaswarm installation state, project setup, and potential issues
start
Use when starting work on any task, when the user mentions metaswarm, or when the user wants to begin tracked development work
setup
Interactive project setup — detects your project, configures metaswarm, writes project-local files