Логотип Spec Author

Spec Author

Спільнота
llopresto87
spec-author

Write an executable specification under docs/graph/specs/ that turns a clear goal into testable contracts. Use whenever a feature, endpoint, job, significant function, or AI interaction needs a contract that the tester can encode and the implementer can satisfy. Coordinates product (§3, §9), architect (§4, §6, §7), and tester (§10 testability review) into a single signed-off document. Specs are the source of truth for behavior (`rule.spec`).

Add to TypingMind

Огляд

Видавецьllopresto87
РепозиторійCypress
Назва навичкиspec-author
Зірки
113
Форки
6
Файли в пакеті
Лише інструкції
ЛіцензіяMIT
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Усе необхідне — в інструкціях

    Усе потрібне моделі міститься в інструкціях — жодних додаткових файлів для синхронізації.

  • Відкритий вихідний код

    Видавець на GitHub: llopresto87. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Spec Author у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/llopresto87/Cypress/tree/main/skills/spec-author
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/llopresto87/Cypress.git /tmp/Cypress
mkdir -p .claude/skills
cp -r /tmp/Cypress/skills/spec-author .claude/skills/spec-author
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Spec Author в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Spec Author, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Spec Author не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

spec-author

This skill is the discipline of writing a spec that another agent can turn into failing tests and another into passing code. It is invoked from docs/graph/protocols/specify.md.

A spec is executable when every functional contract maps to at least one test in the suite and the test name names the contract. Specs that read like marketing or like implementations are not specs; implementation detail belongs in grill.md §8.

When to apply this skill

  • brainstorm has converged and the next step is to formalize the behavior.
  • An existing feature's contract is changing.
  • A bug investigation revealed a contract that was implicit and is now being made explicit.
  • An ADR introduces a new system behavior that needs a spec.

How to write each section

§1 Summary

One paragraph: what this spec covers and why, in the two sentences you would give the next agent on the team before they implement it.

§2 Scope

Two bullet lists: "in scope" and "out of scope". The out-of-scope bullets are equally important. Reading the spec a year later, the out-of-scope list is what tells the next agent "no, we considered that and excluded it deliberately."

§3 User-facing behavior (product)

Describe what the user experiences. Use the user's vocabulary, not the system's. If the spec is for an internal API or a job, the "user" might be another service or a developer: name them and describe their experience.

§4 Functional contracts (architect)

The heart of the spec. Each contract is one Given/When/Then, single- outcome, observable from outside.

Naming. Use UPPER_SNAKE_CASE slugs that read as sentences. Tester turns these into test names.

### Contract: SUBMIT_VALID_FORM_RETURNS_2XX
### Contract: SUBMIT_FORM_SCHEMA_INVALID
### Contract: SUBMIT_FORM_PERSISTS_RECORD
### Contract: GET_SUBMITTED_RECORD_RETURNS_BY_ID

The ### heading form is load-bearing: spec-lint.py only counts ### Contract: SLUG headings as live contracts, so a bare Contract: line is invisible to coverage.

One outcome per contract. "Returns 201 and sends an email" is two contracts: one for the response, one for the side effect. Many small, single-outcome contracts compose into the behavior.

Observable from outside. If the test has to inspect a private field, the contract is wrong. Move the observation to a public surface (a returned value, a queried record, an emitted event).

§5 Non-functional requirements

Only the constraints that bind this behavior; the template carries the category list and the bind-only rule at point of use.

§6 Data shapes (architect)

Schemas for inputs, outputs, persisted state. Use a language- agnostic notation (YAML-like) by default; cross-link to native schema files when they exist.

Required fields, types, allowed values, max sizes. These become test fixtures and validation rules.

§7 Failure modes (architect, with security)

For each contract, the named ways it can fail and what happens. This is what separates a spec from a description: a happy-path-only spec is half a spec.

Failure: SUBMIT_FORM_SCHEMA_INVALID
- Trigger: payload violates §6 schema
- Response: 422 with field-level error in body
- Side effects: audit log entry; nothing persisted
- Recovery: client may resubmit with corrections

Security adds adversarial cases here: prompt injection, tool hijacking, data exfiltration when AI is involved.

§8 Examples

Concrete input/output pairs. Three minimum: one happy, one edge, one failure. Examples are the seed for test fixtures and turn abstract contracts into concrete tests, so make them real values, not <placeholders>.

§9 Acceptance criteria (product)

Measurable conditions for "done". Each criterion maps to one or more contracts in §4 and to one or more tests in §10.

Acceptance criteria include the non-functional ones (latency, accessibility). Write them now, beside the functional ones, so the tester can encode them.

§10 Test mapping (tester)

A table mapping each contract and each acceptance criterion to the tests that cover them. Update as tests are written. Status values: pending (no test yet), red (test exists, fails), green (test exists, passes), skipped (with reason).

§11 Open questions

Every "we'll decide later" with a named resolution path. A spec with open questions stays in draft.

The sign-off rule

A spec is signed when every sign-off below that applies is recorded; until then it is unsigned and nobody plans against it:

  • product ✓ confirms §3 and §9 reflect the user outcome.
  • architect ✓ confirms §4, §6, §7 are coherent.
  • tester ✓ confirms every contract in §4 is testable (the testability review).
  • security ✓ if the spec touches auth, secrets, payments, uploads, external integrations, or AI behaviors that act on data.

Sign-off goes in §0 (Metadata), and the signed spec stays draft. Sign-off says the contract is authoritative; active says it is under test. The signed spec moves to active in the change that lands its first RED tests (test-first's COMMIT; verify.status-evidence owns the moment), and to implemented when every contract is green. A live status over an empty assertion set is a false green: active with no test is a red gate until RED lands, and a false green once someone silences it.

A spec that grows by slice (specify.flow) is signed the same way, one slice at a time. The slice's contracts, their §10 rows (status pending) and a §12 changelog row naming its signers are written before the tester writes the slice's RED, and they land in the same commit as that RED, so a live spec never holds a contract with no test.

Before a spec is signed, its prose passes docs/graph/skills/humanizer.md in file mode and python3 docs/graph/prose-lint.py --file <spec> --against HEAD reports no strong tell and no dropped contract slug, number, or code span.

The sign-offs are judgment; the shape and the coverage are mechanical. python3 docs/graph/spec-lint.py (the kernel §3.1 gate in the gate table of docs/graph/protocols/verify.md) checks every spec's shape (unique slugs, a §10 row per contract, §9 criteria that map to real slugs, sign-offs present on anything past draft) and, for live specs, that every slug appears in at least one test. A draft is shape-checked and not counted for coverage, so a spec in authoring never reports uncovered.

Spec drift management

When the code and the spec disagree, decide deliberately which side is right (kernel §4 owns the boundary):

  • Code is right, spec is wrong: edit the spec deliberately, add a §12 changelog entry, get re-sign-off.
  • Spec is right, code is wrong: file a bug, add a regression test, fix the code.
  • Both partially right: the brainstorm needs to revisit the contract; back up to brainstorm or specify and write a new version.

Reference files

  • docs/graph/templates/spec.template.md : the template.
  • docs/graph/protocols/specify.md : the protocol.
  • docs/graph/protocols/test-first.md : what happens next.
  • docs/graph/agents/01-architect.md, docs/graph/agents/04-tester.md, docs/graph/agents/08-product.md : the three co-authors.

Поширені запитання

Що робить навичка ШІ Spec Author?

Write an executable specification under docs/graph/specs/ that turns a clear goal into testable contracts. Use whenever a feature, endpoint, job, significant function, or AI interaction needs a contract that the tester can encode and the implementer can satisfy. Coordinates product (§3, §9), architect (§4, §6, §7), and tester (§10 testability review) into a single signed-off document. Specs are the source of truth for behavior (`rule.spec`).

Навіщо використовувати Spec Author у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Spec Author — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Spec Author у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/llopresto87/Cypress/tree/main/skills/spec-author. TypingMind прочитає файл SKILL.md і встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Spec Author?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Spec Author?

Зі скількома забажаєте. У TypingMind ви можете використовувати Spec Author із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Spec Author?

Так. На GitHub цю навичку публікує llopresto87 за ліцензією MIT. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі
Логотип affaan-m

Springboot Security

affaan-m
СпільнотаПопулярне

Рекомендації з Spring Security щодо автентифікації й авторизації, валідації, CSRF, секретів, заголовків, обмеження частоти запитів і безпеки залежностей у сервісах Java Spring Boot.

39.1K
261.1K
Інструкції
Відкрити
Логотип affaan-m

Agent Architecture Audit

affaan-m
СпільнотаПопулярне

Повна діагностика агентів і LLM-застосунків. Перевіряє 12 рівнів стека агента на регресії обгорток, забруднення пам’яті, збої дисципліни роботи з інструментами, приховані цикли відновлення та порушення рендерингу. Формує список висновків, упорядкованих за серйозністю, і виправлення з акцентом на код. Незамінний інструмент для розробників, які створюють застосунки на основі агентів, автономні цикли або функції з використанням LLM.

39.1K
261.1K
Інструкції
Відкрити
Логотип NousResearch

Antigravity Cli

NousResearch
ОрганізаціяПопулярне

Керуйте Antigravity CLI (agy): плагінами, автентифікацією та пісочницею.

53.5K
250.4K
Файлів: 1
Відкрити
Логотип langgenius

Backend Code Review

langgenius
ОрганізаціяПопулярне

Використовуйте лише тоді, коли користувач явно просить перевірити або провести аудит серверного коду в `api/`. Підтримуються перевірки незбережених змін, окремих файлів і вставлених відмінностей. Не використовуйте для запитів лише на реалізацію,…

24.9K
157.6K
Файлів: 4
Відкрити

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇