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

to-spec

/to-spec

Zamienia ustalone decyzje w specyfikację, PRD lub RFC opartą na kodzie, po jednej rundzie pytań, tak by nowy agent mógł ją wdrożyć.

Repozytorium
skills ↗
Licencja
MIT
Ostatnia zmiana repozytorium
10.11.2026

Ocena i bezpieczeństwo

90/ 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ść25 / 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
4
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 10.11.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

Zamienia ustalone decyzje w specyfikację, PRD lub RFC opartą na kodzie, po jednej rundzie pytań, tak by nowy agent mógł ją wdrożyć.

Oryginalny opis (EN)

Use when the user asks for a spec, PRD or RFC, or to turn a discussion into one. Turns what is decided into a code-grounded spec a fresh agent can implement from, after one round of questions. Triggers: write a spec, spec this, PRD for <feature>, to-spec, /to-spec.

Jak działa

  1. Instructions that shape the run
  2. Process
  3. Rules for the content
  4. Check before handing over
Sekcje z nagłówków SKILL.md, w oryginale · 52 linii, 1 104 słów
Podgląd SKILL.md
---
name: to-spec
description: "Use when the user asks for a spec, PRD or RFC, or to turn a discussion into one. Turns what is decided into a code-grounded spec a fresh agent can implement from, after one round of questions. Triggers: write a spec, spec this, PRD for <feature>, to-spec, /to-spec."
---

# To spec

Write one spec for one outcome. The reader is a fresh agent or engineer who has none of this conversation: after reading the spec, they can plan and build the change without asking you anything.

The spec says **what** must be true and **why**, plus the design decisions that were actually made. It does not say how to edit each file. That belongs to planning and implementation.

## Instructions that shape the run

Read the workspace and repository instructions (`AGENTS.md`, `CLAUDE.md` and the files they point to) before step 1. They decide where specs live (a docs folder, a topics folder, an issue tracker), their language, file naming, a template that replaces the one here, and which writes need approval. They win over the defaults below.

Defaults when nothing says otherwise:

- Location: `docs/specs/<slug>.md` in the repository the change lives in. For a change across several repositories, workspace-level instructions win over repository ones; if none says where, add the location to the round of questions (step 6).
- Language: the one the instructions give for specs, else the language the user writes in.
- Writes: show the draft first. Commit, push or publish to a tracker only after the user approves.

If the project has a glossary or decision records (`GLOSSARY.md`, `docs/adr/`), use their terms and respect their decisions. When the user's word conflicts with the glossary, ask which one they mean.

## Process

1. **Collect what is decided.** Read the conversation, the linked task, designs and docs. List the goal, the decisions and the constraints you already have. If there is no agreed problem or goal yet, stop and suggest a grilling session first. A spec cannot settle what nobody decided.
2. **Ground it in the code.** Read every part of the system the change touches: entry points, data flow, who owns each piece of state, external contracts (API, schema, events, stored data) and the tests around them. Find the closest existing feature that solves a similar problem; it is the prior art the design follows or explicitly departs from. Check the state of related PRs and tasks too. Finding facts is your job, never the user's. For a large area, send a subagent and keep only its summary.

   If the code already does part of the goal, describe that in *Current state* and narrow the spec to what is missing. When little is missing, say so and propose a short acceptance checklist instead of a spec.

   When sources disagree, the newest decision by the person who owns it wins. Note the replaced decision in *Current state*. If you cannot tell which is newer, ask.
3. **Consider two shapes.** When the design is not obvious, sketch at least two structurally different approaches, not two variants of one. Reject a shape that gives one task two ways to be done, gives one piece of state two owners, or makes two lists that must be kept in sync by hand. Choose one and keep one line on why the other lost. Skip this step when only one sensible shape exists, and say so.
4. **Pick the test seams.** Choose where the behaviour is tested: the highest existing seam that can observe it, and as few seams as possible. Name the existing tests the new ones follow. Name the live check (driving the real app or calling the real endpoint) that proves it works end to end.
5. **Check compatibility and rollout.** Go through *Compatibility and rollout* in [`references/template.md`](references/template.md) and write down what applies (`None` when nothing does).
6. **Ask one round.** Collect every decision that is still open and that only the user can make: product choices, trade-offs, scope cuts, your seams. Ask them in one numbered message. Give your recommended answer for each, worded so that "yes" accepts it. Never ask what the code, the docs or a quick experiment can answer. When an answer would only change a detail, decide it yourself, mark it as an assumption and move on. End the message with a short list of what you assumed without asking, so the user can catch a wrong one. Whatever stays open goes to *Open questions*.
7. **Write the spec** with [`references/template.md`](references/template.md). Keep every required section.
8. **Check it** against the list below and fix what fails.
9. **Hand it over.** Show the spec or its path, then list its assumptions and blocking open questions. It stays `Draft` until the user approves the written spec; answers to the questions are not that approval. Then set `Approved` and save or publish it as the instructions say. Do not create tickets or start implementation. Suggest the next step: breaking it into tickets (`to-tickets`).

## Rules for the content

- **Behaviour over code.** Describe modules, interfaces, contracts, state ownership and tests by name. Do not write file paths, line numbers or code: they go stale before the work starts. Commands are fine where they are the check itself, as in the live check. Exception: a short snippet that states a decision more precisely than prose (a schema, a type shape, a state machine). Keep only the part that carries the decision.
- **Every scenario is observable.** Each one has an ID (`S1`, `S2`, …) that tasks can refer to, an actor, an action and a result someone can see or measure. "Works correctly" and "handles errors" are not results. Write one scenario per distinct behaviour: the main path, each edge case that changes the result and each failure. Variations that behave the same share one scenario.
- **Facts and assumptions stay apart.** A statement about the current system is something you read in the code. Anything you could not verify is marked `Assumption:`.
- **Decisions keep their reason.** One line per decision: what was chosen, why, who decided and when.
- **Out of scope is explicit.** Name what someone could reasonably expect from this change but will not get.
- **Plain words.** Cut every word that does no work. Use the short, everyday word and the project's own names for things.
- **A measure without data is still a measure.** Name the signal. If nobody can set the threshold yet, write that it is set after the first data and add a non-blocking open question.
- **One outcome per spec.** When the spec grows into several independent outcomes that could ship on their own, propose splitting it.

## Check before handing over

- Could an agent without this conversation plan the work from the spec alone?
- Does the testing section say where each scenario is tested?
- Is every open question marked blocking or non-blocking, with someone who answers it?
Pliki w paczce (4)
  • CREDITS.md 1 KB
  • SKILL.md 7 KB
  • agents/openai.yaml 1 KB
  • references/template.md 3 KB

Wersje

RepozytoriumWynikLicencja
Ta strona · k0siara/skills90MIT
h2xd/skills100MIT
hachemsoft/ia-toolkit100MIT
sammcj/agentic-coding100Apache-2.0
VladButacu/agentkit100MIT
lttr/claude-marketplace100MIT
maximechbt/skills100MIT
OutlineDriven/outline-driven-development100Apache-2.0
FradSer/dotclaude100MIT

Migawka bazy z 13.11.2026 · wersja paczki 93d362174fe6 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 2 · ranking

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

Podobne skille

  • 100to-feature-spec
    Zamienia ustalenia z rozmowy i wiedzę o kodzie w specyfikację funkcji lub PRD, bez nowego wywiadu o wymaganiach.
  • 100write-spec
    Pisze specyfikację funkcji lub PRD na podstawie opisu problemu albo pomysłu na funkcję.
  • 100prd
    Pisze PRD w czterech głębokościach: jednostronicowy, brief, pełny PRD lub RFC, dobierając poziom z kontekstu.
  • 81spec
    Zamienia uzgodnioną dyskusję w lokalną specyfikację zmiany, PRD lub przekazanie wdrożenia.
  • 100prd
    Pisze PRD, specyfikację funkcji lub jednostronicowy opis wymagań produktowych, gdy trzeba spisać, co i dlaczego budować.
  • 100spec-panel
    Ocenia specyfikację, PRD, BRD lub RFC przed rozpoczęciem budowy, szukając luk, zapachów specyfikacji i brakujących elementów.

Uwagi i zgłoszenia

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