Przejdź do treści
Biblioteka skilli
Programowanie · Pisanie

spec

/spec

Pisze specyfikację zachowania zmiany w pliku specs/capability/spec.md w formie scenariuszy GIVEN, WHEN, THEN po zatwierdzonej propozycji.

Repozytorium
sdlaic ↗
Licencja
MIT
Ostatnia zmiana repozytorium
03.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
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 03.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 robi i kiedy

Pisze specyfikację zachowania zmiany w pliku specs/capability/spec.md w formie scenariuszy GIVEN, WHEN, THEN po zatwierdzonej propozycji.

Oryginalny opis (EN)

Use to author specs/<capability>/spec.md for a change — the Behavioral Requirements phase (Phase 1B). Runs after an approved proposal and an optional spec grill, producing formal GIVEN/WHEN/THEN scenarios, then hands off to the review gate.

Jak działa

  1. Core Principle
  2. Pre-conditions
  3. Process
  4. Output Artifacts
  5. Verification
  6. Common Mistakes
  7. Handoff / Gate
Sekcje z nagłówków SKILL.md, w oryginale · 112 linii, 721 słów
Podgląd SKILL.md
---
name: spec
description: Use to author specs/<capability>/spec.md for a change — the Behavioral Requirements phase (Phase 1B). Runs after an approved proposal and an optional spec grill, producing formal GIVEN/WHEN/THEN scenarios, then hands off to the review gate.
---

# Behavioral Requirements Phase (Spec)

## Core Principle

The spec is the **verifiable WHAT** — formal, testable behavioral requirements
derived from an approved proposal. It locks down observable behavior (including
error and edge behavior) before any architecture is designed, so the design
cannot quietly change the contract. This skill produces one directory-based
artifact: `specs/<capability>/spec.md`. It does not design or plan.

## Pre-conditions

- `proposal.md` exists and its gate is `approved` (or `skipped` in light/free).
- If workflow is `strict`, the spec grill has run first.

## Process

### Step 1: Derive requirements from the approved scope

Read `proposal.md`. For each IN-SCOPE deliverable, identify the observable
behavior a tester could verify. Ignore OUT-OF-SCOPE items entirely.

### Step 2: Enumerate the hard cases

Before writing happy paths, list the failure surface: null / malformed / boundary
inputs, race conditions, partial failures, and error handling. Each must become a
scenario or be explicitly declared out of behavioral scope.

### Step 3: Write `specs/<capability>/spec.md`

Request the template guidance (`instructions spec`), then write to
`$(sdlaic path change --change <name>)/specs/<capability-name>/spec.md`:

```markdown
# <capability-name> (delta)

## ADDED Requirements

### Requirement: [Verb statement of what the system MUST do]
[One paragraph, max 5 sentences. If the requirement needs more, the extra material is a scenario or a table — never more prose.]

#### Scenario: [happy path — descriptive name]
- **GIVEN** [precondition]
- **WHEN** [action]
- **THEN** [observable outcome]

#### Scenario: [malformed / boundary input]
- **GIVEN** [invalid or edge precondition]
- **WHEN** [action]
- **THEN** [defined error behavior — not a crash]

## CHANGED Requirements

### Requirement: [existing requirement being modified]
[What changed and why.]
```

Split multiple capabilities into separate `specs/<capability>/spec.md` files.

**Writing rules — size is part of the contract:**

- **One requirement = one paragraph (max 5 sentences).** If it needs more, the
  extra material is a scenario or a table — never more prose.
- **Enumerate, don't qualify.** Precedence rules, branching, and case lists
  belong in ordered tables or enumerations, not in English universal claims
  (`only`, `never`, `always`, `every`). Tables are auditable; qualifiers drift.
- **Re-drafts shrink or convert — they do not just add.** Answer a review
  finding by converting the offending prose into a scenario/table (or deleting
  it), never by appending a defensive sentence to the same paragraph. Grill
  resolutions are applied into the content (requirements/scenarios), never
  into a separate log.
- **Report the size delta on every re-draft** (e.g. `spec.md: 284 → 271
  lines`) so unbounded growth is visible to the operator.

### Step 4: Hand off to the review gate

Do not advance to design yourself.

## Output Artifacts

- `$(sdlaic path change --change <name>)/specs/<capability>/spec.md` — formal GIVEN/WHEN/THEN
  requirements, one directory per capability.

## Verification

- [ ] At least one `specs/<capability>/spec.md` exists and is populated.
- [ ] Every ADDED requirement has ≥1 happy-path scenario AND ≥1 error/edge scenario.
- [ ] Scenarios use GIVEN/WHEN/THEN and describe observable behavior, not implementation.
- [ ] Each requirement is one paragraph (max 5 sentences); enumerations and precedence rules are tables, not prose.
- [ ] On re-draft, the size delta was reported, and prose did not grow to answer findings.
- [ ] Null/malformed/boundary inputs and error handling are covered or explicitly excluded.
- [ ] Requirements trace back to IN-SCOPE items in `proposal.md`; nothing OUT-OF-SCOPE appears.

## Common Mistakes

| Mistake | Fix |
|---------|-----|
| Only happy-path scenarios | Every requirement needs at least one failure/edge scenario. |
| Describing HOW (functions, tables) | Specs describe observable behavior; architecture is `design.md`. |
| Specifying OUT-OF-SCOPE behavior | Honor the proposal boundary strictly. |
| One giant spec for many capabilities | One `specs/<capability>/spec.md` per capability. |
| Multi-paragraph requirements, or prose appended to defend a rule | Convert to scenarios/tables; one paragraph (max 5 sentences) per requirement. |
| Advancing to design without the gate | Every `spec:<capability>` gate must be `approved`/`skipped` first. |

## Handoff / Gate

1. **Grill first (strict):** the spec grill (bundled with `skills/grillme`) runs before drafting.
2. **Review after:** hand the drafted spec to `skills/review` for the `spec` audit (checklist bundled with the review skill).
3. The reviewer records the verdict **per capability** via `sdlaic gate set --phase spec:<capability> --status <approved|failed> [--verdict ...]` — one `spec:<capability>` gate per `specs/<capability>/` directory.
4. On `approved`, the enforcer advances to Phase 2 (`skills/design`). On `failed`, re-draft here.

Wersje

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

Migawka bazy z 28.10.2026 · wersja paczki cb69e050af30 (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

  • 100design
    Pisze design.md dla zmiany w fazie architektury technicznej, po zatwierdzonej specyfikacji i opcjonalnym design grillu, a następnie przekazuje do bramki przeglądu.
  • 90spec-driven-implementation
    Tworzy lub aktualizuje specyfikacje behawioralne na początku funkcji i utrzymuje je zgodnie z tym, co wydano.
  • 100spec-dd
    Pisze specyfikacje testowe i behawioralne przed implementacją, wyprowadza scenariusze i sprawdza zgodność implementacji ze specyfikacją.
  • 100write-specs
    Tworzy lub doprecyzowuje specyfikację funkcji SPEC SDD przed rozpoczęciem implementacji.
  • 100execute-specs
    Pomaga wdrożyć zatwierdzoną specyfikację SPEC SDD metodą test-driven development, czyli od testów do działającego kodu.
  • 90specsmith-init
    Tworzy w projekcie strukturę katalogu specs z szablonami specyfikacji, planu i zadań z zainstalowanej wtyczki Specsmith.

Uwagi i zgłoszenia

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