agentleFS
AVANT-ICONICAVANT-ICONIC/gpt-webui-skills/spec-mode/SKILL.md

spec-mode

Skill0 starsChanged 2 months agoMITView on GitHub

Autonomous ChatGPT WebUI specification work that converts settled planning decisions into a coherent, implementation-ready spec, preferably using the target project's existing OpenSpec schema.

The file

Show its rules and text

We split this skill into the rules it gives an agent

22 rules. About 0 are common, 20 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈20

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Start only when the important product and architecture decisions are already settled.

    line 15
  2. Distinctive:

    If a material decision is genuinely unresolved, do not invent it.

    line 19
  3. Distinctive:

    If the target project already uses OpenSpec:

    line 25
  4. Distinctive:

    follow the project's active schema and artifact graph.

    line 28
  5. Distinctive:

    update artifacts coherently in whichever direction a change requires.

    line 30
  6. Very specific:

    Do not assume every OpenSpec project uses literal proposal.md, specs/, design.md, and tasks.md files.

    line 32
  7. Distinctive:

    If OpenSpec CLI access is available, prefer its status/configuration output over guessing paths.

    line 36
  8. Distinctive:

    If the project does not already define a specification system, use the default OpenSpec-style shape:

    line 40
  9. Distinctive:

    Keep acceptance evidence explicit.

    line 59
  10. Distinctive:

    Do not turn implementation guesses into requirements.

    line 68
  11. Distinctive:

    keep scope aligned with the Plan Mode handoff.

    line 79
  12. Distinctive:

    Do not repeatedly ask the user to approve routine specification details that are derivable from settled decisions and project facts.

    line 81
  13. Distinctive:

    If new evidence changes the implementation route without changing intent, update the design coherently.

    line 93
  14. Distinctive:

    If new evidence changes the intended behavior, scope, or user-visible contract, stop that branch and request a planning decision instead of …

    line 95
  15. Distinctive:

    Before declaring completion, perform a coherence pass across all artifacts.

    line 111
  16. Distinctive:

    Keep the canonical spec in the target project's existing source of truth whenever writes are authorized.

    line 117
  17. Distinctive:

    Do not create a parallel shadow spec merely to checkpoint progress.

    line 129
  18. Distinctive:

    Treat 64 as an observed GitHub connector boundary, not a universal guarantee.

    line 137
  19. Very specific:

    When the user sends continue, resume the exact unfinished operation.

    line 163
  20. Distinctive:

    Do not ask the user to restate information that exists in the repository or durable artifacts.

    line 185
  21. Distinctive:

    When ready, report compactly:

    line 189
  22. Distinctive:

    Do not start implementation merely because the specification is complete.

    line 197

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Spec Mode

Turn settled decisions into a buildable specification.

Spec Mode is not another planning interview. The default behavior is autonomous: inspect the project, resolve factual gaps, write or refine the specification, verify coherence, and continue until the spec is ready for implementation.

Entry condition

Start only when the important product and architecture decisions are already settled.

Recover the latest Plan Mode handoff and the target project's current state before doing new work.

If a material decision is genuinely unresolved, do not invent it. Record the exact decision needed and hand it back to Plan Mode.

Minor factual gaps are not planning questions. Retrieve the facts yourself.

Prefer the project's real specification system

If the target project already uses OpenSpec:

  1. inspect its existing openspec/ structure and configuration;
  2. follow the project's active schema and artifact graph;
  3. preserve existing naming and conventions;
  4. update artifacts coherently in whichever direction a change requires.

Do not assume every OpenSpec project uses literal proposal.md, specs/, design.md, and tasks.md files.

Current OpenSpec is schema-driven.

If OpenSpec CLI access is available, prefer its status/configuration output over guessing paths.

Default when no schema exists

If the project does not already define a specification system, use the default OpenSpec-style shape:

proposal
  ↓
specs
  ↓
design
  ↓
tasks

Conceptually:

  • Proposal — why the change exists, scope, non-goals, impact;
  • Specs — observable requirements and concrete scenarios;
  • Design — architecture, interfaces, data flow, constraints, tradeoffs;
  • Tasks — implementation slices derived from the settled design.

Keep acceptance evidence explicit.

For behavioral requirements, prefer concrete scenarios such as:

WHEN <condition or action>
THEN <observable outcome>

Do not turn implementation guesses into requirements.

Work autonomously

Once the input decisions are sufficient:

  • inspect relevant repository files before specifying their replacement;
  • research current APIs, libraries, constraints, and external facts when needed;
  • reconcile the spec against the actual codebase;
  • identify migrations, compatibility concerns, tests, rollout constraints, and failure states;
  • eliminate contradictions between artifacts;
  • keep scope aligned with the Plan Mode handoff.

Do not repeatedly ask the user to approve routine specification details that are derivable from settled decisions and project facts.

Preserve the decision boundary

Use this rule:

retrievable fact → retrieve it
implementation detail inside settled behavior → specify it
material product/scope decision → return to Plan Mode

If new evidence changes the implementation route without changing intent, update the design coherently.

If new evidence changes the intended behavior, scope, or user-visible contract, stop that branch and request a planning decision instead of silently rewriting intent.

Definition of ready

The specification is implementation-ready when:

  • scope and non-goals are explicit;
  • requirements are observable and non-contradictory;
  • important edge cases and failure behavior are covered;
  • architecture and interfaces are clear enough to implement;
  • tasks are derived from the design rather than invented independently;
  • acceptance criteria are testable;
  • repository facts used by the spec match the current project;
  • unresolved product decisions are empty or explicitly deferred;
  • Dev Mode can start without reconstructing intent from chat history.

Before declaring completion, perform a coherence pass across all artifacts.

Durable state

Spec Mode may span multiple WebUI turns.

Keep the canonical spec in the target project's existing source of truth whenever writes are authorized.

A continuation checkpoint must preserve:

  • target project/repository;
  • specification/change identifier;
  • artifacts completed;
  • artifacts still incomplete;
  • evidence/research already gathered;
  • unresolved blockers;
  • exact next operation.

Do not create a parallel shadow spec merely to checkpoint progress.

Tool-budget continuity

ChatGPT WebUI may hard-stop a tool-heavy assistant turn.

Observed on 2026-09-18: a GitHub-connector-heavy turn stopped at exactly 64 connector calls before a normal assistant final reply.

Treat 64 as an observed GitHub connector boundary, not a universal guarantee.

For GitHub-heavy Spec Mode turns:

  • 1–48 connector calls: normal;
  • 49–54: keep durable state current;
  • around 56: preferred voluntary checkpoint;
  • 57–60: finish only useful atomic work or secure state;
  • 61–63: close out and checkpoint;
  • 64: do not intentionally reach it.

For other tools or future WebUI behavior, adapt conservatively.

At the voluntary stop:

  1. save the canonical work first;
  2. record the exact unfinished operation;
  3. end with:
╭─ TOOL BUDGET ──────────────╮
│ 🟡 checkpoint saved        │
│ → send: continue           │
╰─────────────────────────────╯

When the user sends continue, resume the exact unfinished operation. Do not restart repository discovery, reread everything indiscriminately, or regenerate completed artifacts.

Fresh-session recovery

When invoked as:

continue spec on <repo>

first reload this skill.

Then recover:

  1. the target repository and current branch/change state;
  2. the existing spec/OpenSpec artifacts;
  3. the latest durable checkpoint or Plan Mode handoff;
  4. completed versus unfinished specification work;
  5. the exact next operation.

Resume from there.

Do not ask the user to restate information that exists in the repository or durable artifacts.

Completion

When ready, report compactly:

  • specification/change identifier;
  • canonical artifact locations;
  • important deferred items, if any;
  • evidence that the spec is coherent;
  • that it is ready for Dev Mode.

Do not start implementation merely because the specification is complete.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.