Przejdź do treści
Biblioteka skilli
Zarządzanie i produkt · Pisanie

spec

/spec

Zamienia problem w testowalne wymagania z kryteriami akceptacji, przechodząc przez bramkę pierwszych zasad, bramkę wcześniejszych rozwiązań z pamięci i schemat PRD, przed planowaniem.

Repozytorium
ai-agents ↗
Licencja
MIT
Ostatnia zmiana repozytorium
25.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
6
Skrypty
2
Komentarze HTML
1
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 25.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co sprawdzić przed instalacją
  • 2 skrypty w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.
  • SKILL.md zawiera komentarze HTML (1). Nie widać ich w podglądzie Markdown, a model je czyta.

Skrypty: scripts/metrics_writer.py, scripts/redact_secrets.py

Co robi i kiedy

Zamienia problem w testowalne wymagania z kryteriami akceptacji, przechodząc przez bramkę pierwszych zasad, bramkę wcześniejszych rozwiązań z pamięci i schemat PRD, przed planowaniem.

Argumenty

/spec problem-statement-or-issue-number
Oryginalny opis (EN)

Turn a problem into testable requirements with acceptance criteria, through a first-principles gate, a memory-first prior-art gate, and a PRD schema. Use when you say `spec this out`, `what should we build`, or `define the requirements`, and run it before plan. Do NOT use to sequence work into milestones (use plan), do NOT use to write the code (use build), and do NOT use to emit the REQ, DESIGN and TASK files directly (use spec-generator, which this invokes).

Jak działa

  1. Triggers
  2. Arguments
  3. Process
  4. Evaluation Axes
  5. Principles
  6. Output
  7. Writing Style, Completeness Scores, Confusion Protocol
  8. Scripts
  9. Verification
  10. Anti-Patterns
Sekcje z nagłówków SKILL.md, w oryginale · 168 linii, 1 919 słów
Podgląd SKILL.md
---
name: spec
version: 1.0.0
description: Turn a problem into testable requirements with acceptance criteria, through a first-principles gate, a memory-first prior-art gate, and a PRD schema. Use when you say `spec this out`, `what should we build`, or `define the requirements`, and run it before plan. Do NOT use to sequence work into milestones (use plan), do NOT use to write the code (use build), and do NOT use to emit the REQ, DESIGN and TASK files directly (use spec-generator, which this invokes).
license: MIT
argument-hint: problem-statement-or-issue-number
user-invocable: true
---

# Spec

<!-- vendor-portability: contributor-scoped citation. The retrospective at
     .project-toolkit/retrospective/2026-05-05-pr-1887-iteration-paradox.md is the evidence for
     why the Step 0 gate exists and lives upstream in the rjmurillo/ai-agents
     repo; it is cited, not resolved at runtime (ADR-083, issue #5632). -->

Define what to build: a problem turned into requirements each of which can be
judged pass or fail, gated twice before any of it is written.

Migrated from the spec command under ADR-064, which makes skills the single
user-invocable surface. The command file is gone, so its path is named here in
plain text rather than as a citation to something a reader could open.

## Triggers

`spec this out`, `what should we build`, `define the requirements`,
`turn this into acceptance criteria`

## Arguments

Spec: $ARGUMENTS

If `$ARGUMENTS` is empty, ask the user what problem to solve. Do not proceed
without a problem statement.

## Process

### Step 0: First Principles Gate (blocking, runs before Step 1)

Before any clarification work, answer six forcing questions. The gate exists because every retro citing wasted spec work in the last six months traces to a question this gate forces upfront. The strongest single citation is `.project-toolkit/retrospective/2026-05-05-pr-1887-iteration-paradox.md` Phase 6, where the retro itself names the question this gate asks ("is the framework worth building at all if its design space misses the dominant failure modes?") and explicitly defers it as out of scope. That deferral landed after 69 commits.

The six questions, asked in order:

| Label | Question |
|-------|----------|
| **Q1 Demand Reality** | Who has explicitly requested this? Name three or more individuals, teams, or systems by name. (Question is about requesters; production signals go to Q5.) |
| **Q2 Status Quo** | What is the exact workaround users do today, step by step? |
| **Q3 Desperate Specificity** | Name the single most blocked person or system right now. What exactly are they blocked on? |
| **Q4 Narrowest Wedge** | What is the smallest possible deliverable that unblocks Q3, measured in hours of implementation? |
| **Q5 Observation** | What direct production signal proves the gap exists? Cite a metric, log entry, error count, ticket, retro line, or trend. (Question is about signals; requesters go to Q1.) |
| **Q6 Future-fit** | If the system grows 10x, does this feature still make sense, or does it become a liability? |

Write the answers as a structured block (the `## Step 0 First Principles` block) with six `### Q1..Q6` subheads, each containing the author's verbatim answer. The block flows downstream as input: Step 1 (Clarify) reads it as problem context, Step 2 (`requirements-interview`) carries it into the PRD it produces, Step 3 (Tier classification) re-validates Q4 at Tier 5, Step 6 (`spec-generator`) formalizes the PRD into durable artifacts with this block as the first section, and Step 9 (critic pre-mortem) checks that Q1/Q3/Q4 did not drift. Do not paraphrase; downstream steps depend on the verbatim answers.

The pass criteria, hedge phrase validation table, script-resolution rules, kill criteria, and archival policy are in the `spec-generator` skill's `references/spec-step0-gates.md`.

#### Reframing check (only while the architecture is open)

Runs with Q2. Treat today's workflow as evidence of the goal and its constraints, not as a template for the solution. Ask what becomes possible if the agent works through a purpose-built interface, instrument, representation, or coordination protocol instead of repeating human UI or process steps.

- Workflow automation is the same work, faster. Capability invention is new work, or a materially different and previously impractical way to reach the goal. Say which one the spec proposes, and name the capability it enables.
- A proposed tool needs grounded demand (Q1), an owner, an authority boundary, a falsifiable success check, and a maintenance cost. Novelty alone is not value. Judge the resulting system, not the number of tools.
- Skip this check when the spec is frozen, the task is a narrow edit, or the architecture is already accepted. Downstream agents honor that decision and do not reopen it. Autonomy tiers and approval gates are unchanged.
- Map, GPS, or both (`skill-bootstrap`) is chosen after this question is settled.

End the Q2 answer with one sentence recording the outcome: `Reframing: skipped (<reason>)`, `Reframing: automation only`, or `Reframing: capability invention, check: <falsifiable signal>`.

### Step 0.5: Memory-First Gate

**Bound the search.** If three tool calls have not surfaced anything useful, stop searching and switch to first-principles reasoning. Document what you tried (which tool, what query, what came back) so the user can extend the search if the answer matters more than your time budget suggests.

Runs after Step 0 and before Step 1. It searches prior art before any new spec
work, halts when the search shows the question is already answered, and runs the
Check 9 series over the result. The gate in full, including its halt criteria,
halt block format, metrics tally and every check, is in
`references/step-0-5-memory-gate.md`. Read it before running the gate: the halt
conditions are the point, and a summary of them is not the gate.

## Evaluation Axes

1. **Problem clarity** - Is the right problem being solved? Could a reframing yield 10x impact?
2. **Requirement testability** - Can each requirement be verified pass/fail?
3. **Completeness** - No gaps between problem statement and acceptance criteria?
4. **Traceability** - REQ to DESIGN to TASK linkage established?
5. **Feasibility** - Buildable within constraints? Existing code to leverage?

## Principles

- **CVA**: Identify commonalities first, then variabilities, then relationships. Greatest risk is the wrong abstraction.
- **YAGNI**: Only specify what is needed now. Speculative requirements create waste.
- **Separation of Concerns**: Each requirement addresses one concern. Mixed concerns signal a missing decomposition.

- **Output schema**: Include a `Buy-vs-build decision` section recording: core-vs-context classification, alternatives evaluated, recommendation (build/buy/partner/defer), and rationale. Required for any spec that introduces a new capability; mark `N/A (bug fix / doc / refactor)` otherwise.

## Output

No em dashes or en dashes in anything this skill writes.
Use commas, periods, colons, parentheses, hyphens, or restructure.

Structured requirements document. Mirror the PRD schema produced in step 2; do not collapse to acceptance criteria alone.

- **Problem statement** (1-2 sentences)
- **User stories** (who, action, observable outcome)
- **Ontology** (Step 1 OntologyFragment summary: canonical O2 names, relationships, aggregate boundaries, decision rules, bounded-context boundaries, open questions)
- **Data model** (entities, identity, invariants, lifecycle; entity names match the OntologyFragment O2 names)
- **Integrations** (external systems, failure modes, idempotency)
- **Failure modes** (retries, partial failures, conflicts, replay, schema evolution; initially drafted at Step 2 and written into the artifacts at Step 6, then augmented in place by the Step 9 `pre-mortem` skill: failure scenarios, modes, early warnings, prevention)
- **Security** (authn, authz, secrets, PII, input validation; populated from the Step 6 `threat-modeling` skill: threats, trust boundaries, abuse cases, mitigations; or an explicit "no security surface" justification at Tier 1-2)
- **Observability** (logs, metrics, traces, alerts; populated from the Step 6 `slo-designer` skill: SLIs, SLOs, error budgets, alert thresholds; or a lightweight "what metric proves this works" line at Tier 1-2)
- **Acceptance criteria** (numbered, EARS syntax, each independently testable as pass/fail)
- **Out of scope** (explicit exclusions to prevent creep)
- **Deferred** (decisions punted with owners)
- **Open questions** (unresolved unknowns with owners)
- **CVA summary** (what is common, what varies, what relationships exist)
- **Buy-vs-build decision** (core-vs-context classification, alternatives evaluated, recommendation: build/buy/partner/defer, rationale; or `N/A (bug fix / doc / refactor)` when step 4a was skipped)
- **Complexity classification** (engineering tier 1-5 from Step 3, plus problem domain Clear/Complicated/Complex/Chaotic from the Step 3 `cynefin-classifier` skill, plus derived methodology)
- **Operating Model Context** (Tier 5 only; the 5-layer model elicited by the Step 1 `work-operating-model` skill: decision rights, communication patterns, work intake, conflict resolution, retrospection; omit at Tier 1-4)
- **ADR cross-reference** (Tier 4-5 only; the `ADR-NNN-{slug}.md` produced by the Step 6 `adr-generator` skill and its `adr-review` verdict, with the bidirectional ADR<->REQ link; omit at Tier 1-3)

## Writing Style, Completeness Scores, Confusion Protocol

Read `references/writing-style-and-confusion-protocol.md` before the first
`AskUserQuestion` of a run. It carries the jargon-glossing and outcome-framing
rules, the `Completeness: X/10` scoring rule, and the Confusion Protocol with
its unattended-run fallback. They lived in the always-on voice rule until epic
#5456 M4 moved them here; the body stays under the 200-line spec ceiling (issue
#3632) by keeping them in a reference, as Step 0.5 already does.

## Scripts

Two helpers ship inside this skill so an installed plugin can run the gates
without a toolkit checkout. Resolve them from this skill's own directory, not
from a repository path.

Both live in this skill's own `scripts/` directory, named here without a
leading path so nobody reads them as the upstream tree they were copied from.

| Script | Purpose | Exit codes |
|--------|---------|------------|
| `redact_secrets.py` | Redacts secrets from Step 0 and Step 0.5 tally text before any durable write. BLOCKING: a failure means do not write. | 0 clean, 1 redaction applied or logic error, 2 config error |
| `metrics_writer.py` | The single safe append point for the metrics tally files. Refuses a symlinked target (CWE-59) and opens with `O_NOFOLLOW` where the platform supports it. | 0 appended, 1 refused or logic error, 2 config error |

`spec-entity-aliases.json` ships in this skill's `data/` directory beside them:
the alias table Step 0.5 uses to normalize topic names. All three are byte-identical copies of their canonical
sources, pinned by `tests/skills/test_spec_bundle_parity.py`, so a toolkit run
and an installed-plugin run cannot disagree.

## Verification

- [ ] Step 0 answered all six forcing questions before any clarification work
- [ ] Step 0.5 ran and its halt criteria were evaluated, not skimmed
- [ ] Every acceptance criterion is numbered, in EARS syntax, and independently pass/fail
- [ ] Requirement names match the Step 1 OntologyFragment canonical names
- [ ] Out of scope and Deferred are both populated, or explicitly empty
- [ ] The buy-vs-build section is filled, or marked N/A with its reason
- [ ] Complexity tier recorded, and the Tier 5 sections present only at Tier 5

## Anti-Patterns

| Avoid | Why | Instead |
|-------|-----|---------|
| Skipping Step 0 because the problem seems obvious | Every retro citing wasted spec work in the last six months traces to a question this gate forces upfront | Answer the six questions, even quickly |
| Treating Step 0.5 as a formality | Its job is to halt when the question is already answered, and a skim cannot halt | Read the halt criteria in the reference and apply them |
| Acceptance criteria that restate the user story | A criterion nobody can fail is not a criterion | Write each one so a reader can say pass or fail from evidence |
| Speculative requirements | YAGNI: a requirement for a need nobody has yet becomes waste plus a constraint | Specify what is needed now, and record the rest under Deferred |
| Collapsing the output to acceptance criteria alone | Downstream plan and build read the ontology, data model and failure modes, not just the criteria | Mirror the full PRD schema |

## Extension Points

- **New evaluation axis.** Add a row to the axes list and a matching Verification
  checkbox, so the axis is both stated and checked.
- **Different gate content.** Step 0.5 lives in `references/step-0-5-memory-gate.md`;
  a project that searches prior art differently edits that file, not the process.
- **Additional output section.** The Output list is the PRD schema. Adding a
  section there is what makes downstream skills able to rely on it.
Pliki w paczce (6)
  • SKILL.md 13 KB
  • data/spec-entity-aliases.json 1 KB
  • references/step-0-5-memory-gate.md 13 KB
  • references/writing-style-and-confusion-protocol.md 6 KB
  • scripts/metrics_writer.py 7 KB
  • scripts/redact_secrets.py 16 KB

Wersje

RepozytoriumWynikLicencja
Ta strona · rjmurillo/ai-agents100MIT
renzrollon/interlock100MIT
duronext/jig100MIT
rjmurillo/ai-agents100MIT
flavien-ia/hypervibe-craft100Apache-2.0
kdlbs/kandev100AGPL-3.0
friendlyinternet/nuxt-crouton100MIT
lamngockhuong/aiteamkit100MIT
alienfast/claude100MIT

Identyczna treść występuje jeszcze w 3 innych folderach na GitHubie. Tu pokazujemy jedną, najlepiej ocenioną kopię.

Migawka bazy z 28.10.2026 · wersja paczki bc31450a9772 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100write-spec
    Zamienia pomysł na funkcję lub opis problemu w uporządkowaną specyfikację albo PRD z celami, wyłączeniami, metrykami sukcesu i testowalnymi kryteriami akceptacji.
  • 100writing-acceptance-criteria
    Zamienia zatwierdzoną specyfikację w testowalne kryteria akceptacji przed planem wdrożenia, w ustrukturyzowanym dokumencie.
  • 100ql-spec
    Tworzy uporządkowany dokument wymagań produktowych (PRD) z historyjkami użytkownika, kryteriami akceptacji i wymaganiami funkcjonalnymi na podstawie zatwierdzonego projektu.
  • 100product-capability
    Tworzy testowalne, wykonalne wymagania techniczne w formie specyfikacji możliwości z kryteriami akceptacji, podziałem zadań i śledzeniem od wymagania do zgłoszenia implementacyjnego.
  • 100prd-generator
    Tworzy gotowe do produkcji PRD dla systemów programowych i funkcji opartych na AI: ujęcie problemu, mierzalne wyniki, zakres, testowalne wymagania i ryzyka, także z mglistego pomysłu.
  • 100prd-writing
    Opisuje metodę pisania krótkiego PRD z problemem, metrykami, zakresem, historiami użytkownika z kryteriami akceptacji, przypadkami brzegowymi i kryteriami startu, bez narzucania implementacji.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.