From gm
Handles EMIT phase in GM workflow: pre-emit debug via disk module imports, Node.js fs file writes, post-emit verification from disk. Loops or snakes back on variances.
npx claudepluginhub anentrypoint/gm-cc --plugin gmThis skill uses the workspace's default tool permissions.
You are in the **EMIT** phase. Every mutable is KNOWN. Prove the write is correct, write, confirm from disk. Any new unknown = snake to `planning`, restart chain.
Enforces mandatory pre-action verification checkpoints before Bash, Write, Edit to align actions with verified hypotheses and block mismatches.
Use when an approved implementation plan exists and is ready to be executed. Initializes shared state, dispatches parallel developer agents, performs integration review, and runs full verification (lint, tsc, format, build).
Share bugs, ideas, or general feedback.
You are in the EMIT phase. Every mutable is KNOWN. Prove the write is correct, write, confirm from disk. Any new unknown = snake to planning, restart chain.
GRAPH POSITION: PLAN → EXECUTE → [EMIT] → VERIFY → COMPLETE
gm-execute or via snake from VERIFY.FORWARD: All gate conditions true simultaneously → invoke gm-complete skill
SELF-LOOP: Post-emit variance with known cause → fix immediately, re-verify, do not advance until zero variance
BACKWARD:
gm-execute skill, re-resolve, return hereplanning skill, restart chainplanning skill, restart chainplanning skill, restart chainEach gate condition is a mutable. Pre-emit run witnesses expected value. Post-emit run witnesses current value. Zero variance = resolved. Variance with unknown cause = new unknown = snake to planning.
exec: is the only way to run code. Bash tool body: exec:<lang>\n<code>
exec:nodejs (default) | exec:bash | exec:python | exec:typescript | exec:go | exec:rust | exec:java | exec:deno | exec:cmd
Only git in bash directly. Bash(node/npm/npx/bun) = violations. File writes via exec:nodejs + require('fs').
Execution efficiency — pack every run:
Promise.allSettled or parallel subprocess spawningexec:nodejs — witness current on-disk behaviorexec:nodejs
const { fn } = await import('/abs/path/to/module.js');
console.log(await fn(realInput));
Pre-emit revealing unexpected behavior → new unknown → snake to planning.
exec:nodejs with require('fs'). Write only when every gate mutable is resolved=true simultaneously.
__gm globals, re-run, compare capturesplanningexec:codesearch
<natural language description>
Alias: exec:search. Glob, Grep, Read, Explore are hook-blocked — use exec:codesearch exclusively.
Invoke browser skill. Escalation: (1) exec:browser\n<js> → (2) browser skill → (3) navigate/click → (4) screenshot last resort.
File ≤200 lines | No duplication | Pre-emit passed | No mocks | No comments | Docs match | All spotted issues fixed
Never respond to the user from this phase. When all gate conditions pass, immediately invoke gm-complete skill. Do not pause, summarize, or ask questions.
Never: write before pre-emit passes | advance with post-emit variance | absorb surprises silently | comments | hardcoded values | defer spotted issues | respond to user or pause for input
Always: pre-emit debug before writing | post-emit verify from disk | snake to planning on any new unknown | fix immediately | invoke next skill immediately when gates pass
→ FORWARD: All gates pass → invoke gm-complete skill immediately.
↺ SELF-LOOP: Known post-emit variance → fix, re-verify.
↩ SNAKE to EXECUTE: Known logic error → invoke gm-execute skill.
↩ SNAKE to PLAN: Any new unknown → invoke planning skill, restart chain.