/agent-workflow-engineering:extracting-spec-design-laddersfrom Agent Workflow Engineering
Reverse-engineers source code into a concrete reproduction spec (preserving behavior-affecting constants, ordering, input edges) and an abstract design doc (intent, stripped of implementation detail). Use to document or recover a program's reproducible behavior and design intent without cross-contamination.
Ships in Agent Workflow Engineering. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Turn read-only source into two separated layers with non-overlapping responsibilities: a faithful reproduction spec (enough to rebuild observable behavior) and an abstract design doc (intent and experience, deliberately stripped of reproduction detail).
Spec layer. Preserve only what changes observable play/behavior: goal, core loop,
required state & resources, input behavior, scoring/failure, balance-critical constants and
formulas. Drop cosmetics. The detailed preserve-vs-drop rules — same-tick ordering,
collision/hitbox/threshold semantics, spawn/target/random/input-edge behavior, reusable
scoring/safety pulses — are a checklist; load references/spec-preservation-checklist.md
while writing the spec.
Design layer. Working from the spec only, write the abstract doc: experience core, decisions asked of the user, risk/reward, how tension is built, learning curve, room for reinterpretation, and the invariant structure. Convert numeric balance into qualitative intent. Never leak exact constants, formulas, random ranges, tick counts, or source names. Add explicit recovery guidance: what to treat as unspecified, what is safe to assume, and the restoration priority order.
The non-abstractable floor. The following are intent, never reproduction detail, and must appear in the design layer stated qualitatively. Dropping them is the characteristic mis-abstraction of this ladder, because they read as mechanical and get filtered out with the constants:
Each of these can be written without a single constant, and a design doc missing them cannot transmit the core loop — which the doc's own restoration priority calls the thing that matters most. Observed case: all three were dropped as "implementation detail", the gate caught it, and every repair landed in the design layer with none in the spec, because the spec had them all along.
Log what was abstracted, preserved, omitted, and added as recovery guidance, so the abstraction is auditable. Keep it as a short section inside the design doc, OR — if the log needs to cite specific abstracted constants or source names — in a sibling log file, since putting those specifics inside the design doc would violate its no-leak rule.
Before handing off, run one self-check that costs nothing: if a blind reader had to state the core loop in one sentence, which sentence of the design doc would they build it from? If no single passage answers, the abstraction has already failed and the gate will only confirm it at full price.
Validation itself is not run by you, the extractor — you have read the source and cannot judge the artifacts blind. It is run by an independent party (the orchestrator spawns a fresh agent that sees only the artifact text). Hand the artifacts off to an isolated blind-restoration gate run under firewall:
pass / weak-pass / fail)A fail on either means that layer lost required structure (spec dropped a behavior-affecting
detail, or design omitted something unrecoverable). Revise and re-gate. A weak-pass on the
design layer is expected and acceptable — abstract docs intentionally drop reproduction detail.
If no isolated gate can be spawned, degrade explicitly: run the checklist's Self-Check section against each layer and record that validation was self-audit, not a blind gate — do not present it as gated.
Two artifacts — a reproduction spec and an abstract design doc — plus an extraction log, each validated by the restoration gate.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub abagames/agentic-gamedev-skills --plugin agent-workflow-engineering9 skills in this plugin
/critiquing-own-responseReviews the agent's own immediately preceding response as an advisory pass, surfacing assumptions, reasoning gaps, alternatives, and unverified claims. Use ONLY when the user explicitly asks for self-critique, critical thinking, or challenges to the agent's prior answer. Do not use for normal follow-ups, someone else's work, automatic checking, or independent quality assurance./dispatching-agent-workRoutes a user's request to a separate task, subagent, automation, or current agent with an appropriate model role, reasoning effort, and workspace isolation. Use when the user or an authoritative instruction asks to dispatch, delegate, orchestrate, enter dispatch mode, run work in another session, select an execution backend, or schedule work. While dispatch mode is active, proactively send substantive execution to the host's preferred worker boundary: a new user-visible task in Codex Desktop App and a subagent on hosts without durable tasks. Do not invoke merely because ordinary work is complex, long-running, or parallelizable, or when this skill is only being mentioned, reviewed, or edited./extracting-agent-skillsDistills reusable agent procedures, validation loops, debugging methods, tool-use patterns, and decision rules from completed, paused, abandoned, or failed projects. Use when closing or archiving a project, reducing side-project sprawl, or when asked to harvest project knowledge into reusable agent capabilities. Gates candidates for trigger clarity, validation, and transferability to avoid weak skills./gating-by-blind-restorationValidates that one abstraction layer (a spec, design doc, schema, contract, or generated artifact) is self-sufficient by spawning an ISOLATED sub-agent that sees only that layer and must reconstruct the adjacent layer, returning pass / weak-pass / fail. Use when checking whether an extracted or generated artifact preserves enough structure to be rebuilt or used without the original source, and to prevent an author from grading their own output./gating-expensive-batch-workSplits a batch of expensive per-item agent work into a cheap reversible pass over every item and an expensive irreversible pass, separated by a method-freeze checkpoint. Use when running one costly procedure over many items (evaluations, migrations, audits, labeling, benchmark or fixture construction) and the method — rubric, transform rules, criteria, instrument — could still turn out to be wrong, or when part of the work spends something that cannot be spent twice: fresh seeds, held-out data, one-shot quota, published output, or a reviewer's first impression. Not for single items, cheap items, or a method already validated on the same class of item./generating-semantic-game-mutantsInjects controlled, game-specific semantic defects — timing/order, identity and lifecycle, scoring and economy, persistence/save, RNG/determinism, input buffering, animation-gameplay sync, content/configuration — into a game or its trace reducer, and records a withheld manifest of intended defect mechanism, precondition, expected symptom, violated invariant, hidden oracle, equivalent-mutant risk, and a clean-control counterpart, so the detection power of a test suite or of an agent repair workflow can be measured against known-planted defects. Use when measuring whether tests or an agent workflow actually catch gameplay defects, when building known-bad fixtures for a with-skill / without-skill comparison, or when checking that a workflow does not "fix" a healthy build. Not for finding unknown defects in a real build, not for repairing defects, and not for balance tuning.Other plugins' skills for the same job