Extracting Spec Design Ladders logo

Extracting Spec Design Ladders

Community
abagames
extracting-spec-design-ladders

Reverse-engineers existing source code into a two-layer artifact ladder — a concrete reproduction spec (preserves behavior-affecting constants, same-tick ordering, input edges, collision/threshold semantics; drops cosmetics) and an abstract design doc (intentionally omits reproduction detail and records what is unspecified vs. safe-to-assume). Use to document or recover a program's intent and reproducible behavior without leaking implementation-only detail into the design layer.

Overview

Publisherabagames
Repositoryagentic-gamedev-skills
Skill nameextracting-spec-design-ladders
Stars
39
Forks
6
Bundled files
1
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by abagames on GitHub. Read the source before you install it.

Installation

Install the Extracting Spec Design Ladders AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/abagames/agentic-gamedev-skills/tree/main/.agents/skills/extracting-spec-design-ladders
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/abagames/agentic-gamedev-skills.git /tmp/agentic-gamedev-skills
mkdir -p .claude/skills
cp -r /tmp/agentic-gamedev-skills/.agents/skills/extracting-spec-design-ladders .claude/skills/extracting-spec-design-ladders
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Extracting Spec Design Ladders in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Extracting Spec Design Ladders on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Extracting Spec Design Ladders is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Extracting Spec / Design Ladders

Purpose

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).

When to Use

  • Recovering intent and reproducible behavior from an existing program.
  • Producing documentation that must let someone REBUILD behavior (spec) and, separately, understand DESIGN intent (design doc) without the two contaminating each other.

When Not to Use

  • Pure summary or README work where reproduction fidelity is not required.
  • When a maintained spec already exists and only needs editing.

Required Inputs

  • Read-only source (treat as input only; never edit it).
  • Any engine/runtime convention doc, so shared helper behavior is referenced once, not re-specified in every artifact.

Procedure

  1. 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.

  2. 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:

    • What an effect does on contact with each entity class — arms it, destroys it, passes through it, is absorbed by it. "A blast arms its neighbours" and "a blast detonates its neighbours" describe two different games and neither requires a number.
    • Behaviour at boundaries — what a moving or committed object does at a wall or screen edge.
    • What counts toward the goal and the failure condition — in particular whether events the player did not cause are credited.

    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.

  3. 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.

Validation

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:

  • spec-only → can an implementable structure be recovered? (pass / weak-pass / fail)
  • design-only → can a reproduction spec hypothesis be recovered?

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.

Common Failure Modes

  • Reproduction detail leaking into the design doc (constants, tick counts, source names) — the two layers stop having distinct jobs.
  • Dropping ordering/edge behavior that silently changes the dominant strategy.
  • Over-specifying cosmetics, under-specifying timing/collision.
  • Writing the design doc from the source instead of from the spec, which re-imports detail the spec was meant to filter.

Output

Two artifacts — a reproduction spec and an abstract design doc — plus an extraction log, each validated by the restoration gate.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Extracting Spec Design Ladders AI skill do?

Reverse-engineers existing source code into a two-layer artifact ladder — a concrete reproduction spec (preserves behavior-affecting constants, same-tick ordering, input edges, collision/threshold semantics; drops cosmetics) and an abstract design doc (intentionally omits reproduction detail and records what is unspecified vs. safe-to-assume). Use to document or recover a program's intent and reproducible behavior without leaking implementation-only detail into the design layer.

Why use Extracting Spec Design Ladders on TypingMind?

Because you install it once and use it with any model. Extracting Spec Design Ladders is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Extracting Spec Design Ladders in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/abagames/agentic-gamedev-skills/tree/main/.agents/skills/extracting-spec-design-ladders. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Extracting Spec Design Ladders?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Extracting Spec Design Ladders?

As many as you like. As long as a model supports skills, you can use Extracting Spec Design Ladders with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Extracting Spec Design Ladders AI skill free?

Yes. It is published on GitHub by abagames under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇