From gm
Executes code in Node.js, Python, Bash, TypeScript, Go, etc., via exec: commands to resolve mutables during GM EXECUTE phase. Searches codebases with codesearch; loops or snakes to planning on unknowns.
npx claudepluginhub anentrypoint/gm-cc --plugin gmThis skill uses the workspace's default tool permissions.
You are in the **EXECUTE** phase. Resolve every named mutable via witnessed execution. Any new unknown = stop, snake to `planning`, restart chain.
Executes implementation plans at scale via batch with checkpoints, subagent-per-task, parallel dispatch, or TRIZ-parallel modes after skill audits and code context loading.
Runs autonomous modify-verify-retain/discard loops on codebases to achieve measurable goals like eliminating type errors or improving test coverage until interrupted.
Share bugs, ideas, or general feedback.
You are in the EXECUTE phase. Resolve every named mutable via witnessed execution. Any new unknown = stop, snake to planning, restart chain.
GRAPH POSITION: PLAN → [EXECUTE] → EMIT → VERIFY → COMPLETE
planning or via snake from EMIT/VERIFY.FORWARD: All mutables KNOWN → invoke gm-emit skill
SELF-LOOP: Mutable still UNKNOWN after one pass → re-run with different angle (max 2 passes then snake)
BACKWARD:
planning skill immediately, restart chainEach mutable: name | expected | current | resolution method. Execute → witness → assign → compare. Zero variance = resolved. Unresolved after 2 passes = new unknown = snake to planning. Never narrate past an unresolved mutable.
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:c | exec:cpp | exec:java | exec:deno | exec:cmd
Lang auto-detected if omitted. cwd sets directory. File I/O via exec:nodejs + require('fs'). Only git in bash directly. Bash(node/npm/npx/bun) = violations.
Execution efficiency — pack every run:
Promise.allSettled or parallel subprocess spawningBackground tasks (auto-backgrounded when execution exceeds 15s):
exec:sleep
<task_id> [seconds]
exec:status
<task_id>
exec:close
<task_id>
Runner:
exec:runner
start|stop|status
exec:codesearch is the only way to search. Glob, Grep, Read, Explore, WebSearch are hook-blocked.
exec:codesearch
<two-word query to start>
Mandatory search protocol (from code-search skill):
Always import actual codebase modules. Never rewrite logic inline.
exec:nodejs
const { fn } = await import('/abs/path/to/module.js');
console.log(await fn(realInput));
Witnessed import output = resolved mutable. Reimplemented output = UNKNOWN.
Pack every related hypothesis into one run. Each run ≤15s. Witnessed output = ground truth. Narrated assumption = nothing.
Parallel waves: ≤3 gm:gm subagents via Task tool — independent items simultaneously, never sequentially.
Break every multi-step operation before running end-to-end:
Step failure revealing new unknown → snake to planning.
Invoke browser skill. Escalation — exhaust each before advancing:
exec:browser\n<js> — query DOM/state. Always first.browser skill — for full session workflowsReal services, real data, real timing. Mocks/fakes/stubs = delete immediately. No .test.js/.spec.js. Delete on discovery.
Never respond to the user from this phase. When all mutables are KNOWN, immediately invoke gm-emit skill. The chain continues until .prd is deleted and git is clean — that happens in gm-complete, not here.
Never: Bash(node/npm/npx/bun) | fake data | mock files | Glob/Grep/Read/Explore (hook-blocked — use exec:codesearch) | sequential independent items | absorb surprises silently | respond to user or pause for input
Always: witness every hypothesis | import real modules | snake to planning on any new unknown | fix immediately on discovery | invoke next skill immediately when done
→ FORWARD: All mutables KNOWN → invoke gm-emit skill immediately.
↺ SELF-LOOP: Still UNKNOWN → re-run (max 2 passes).
↩ SNAKE to PLAN: Any new unknown → invoke planning skill, restart chain.