🔨 glm-hammer
📖 Workflow walkthrough → tmdgusya.github.io/glm-hammer
📦 Source & issues → github.com/tmdgusya/glm-hammer
한국어 문서 → README.ko.md
glm-hammer forges a plan the way a smith forges steel — explore the ore, shape the plan, strike only after the blueprint is drawn. It is a ZCode / Claude Code–compatible engineering-harness plugin: no memorizing skill names, no long prompts. The agent reads the intent itself and runs a self-driving loop of strong planning → verified implementation → security/QA review.
It builds on the plan-crafting / run-plan / review-work / clarification principles from tmdgusya/engineering-discipline — with the difference that hooks physically enforce the gates and the skills auto-chain. The evidence gates, session recovery, and context-pressure escape hatches are lifted from the hook system of lazycodex (OmO).
Skills
| Skill | Role |
|---|
blueprint | Lightweight planning. For small, clear tasks (≤3 files). Self-Review, then hand off to hammer |
crucible | Design-token smelting (optional stage, before forge). Storyline/reference → prospecting → W3C design tokens → fidelity assay → two-designer panel unanimous approval → hand off to forge |
forge | Strong planning. Recon the codebase with Explore subagents before asking questions → minimal questions → draft an actionable plan → three-critic panel (feasibility / integration / coverage) revise-and-recheck against the real codebase until all APPROVE |
hammer | Implementation loop. Per task: worker → validator (information isolation) → implementation-critic (hunts stubs, hardcoding, reward hacking) triple check. After all tasks: E2E gate → security-reviewer + qa-reviewer panel. On FAIL, convert to a fix task and re-enter the loop |
crucible — storyline-driven design-token stage
When a design request arrives — "in this mood", "with this story feel" — crucible runs first, ahead of forge:
crucible → forge → hammer
Mine the ore (prospecting), smelt it in the crucible (tokens), assay the alloy (assay), then send it to the forge:
- Prospecting —
vein-reader translates the storyline into a direction brief → color/type/layout/motion four prospectors in parallel mine real references (each must attach an evidence receipt)
- Smelting — write W3C design tokens
tokens.json + design-spec.md under docs/glm-hammer/design/
- Triple gate (hook-enforced):
- token-gate — deterministic check the instant tokens are saved (schema, required groups, WCAG contrast). Editing tokens/spec resets the entire assay + panel approval and forces a real rewrite of content
- fidelity assay —
fidelity-critic checks every token traces back to a reference / direction brief (blocks fabricated references)
- two-designer panel —
harmony-critic (art-director lens) + rigor-critic (design-system-engineer lens) revise-and-recheck until both APPROVE
- Handoff — one user approval ("shall I take this design to forge?"), then design-spec/tokens pass as the declared input to the forge plan
Agents
feasibility-critic / integration-critic / coverage-critic — the forge plan-review panel (each a different lens; unanimous approval required)
implementation-critic — after the validator passes, rigorously checks "was it actually implemented"
security-reviewer / qa-reviewer — the final review gate after implementation completes
Hooks (gate-enforcement devices)
Hooks cannot spawn subagents directly, so the skill writes state to .glm-hammer/state.json and the hook scripts read it to enforce the gates: