Логотип 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 по мере необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой большой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Всё необходимое — в инструкциях

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

  • Открытый исходный код

    Издатель навыка на GitHub — llopresto87. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Spec Author в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/llopresto87/Cypress/tree/main/skills/spec-author
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Добавить навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
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 по лицензии MIT. Издатель — llopresto87. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это набор инструкций, которыми модель ИИ может пользоваться каждый раз, когда ей нужно выполнить конкретную задачу. Он соответствует открытому формату 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/`. Поддерживаются проверки ожидающих изменений, отдельных файлов и вставленных diff. Не используйте этот навык для задач, ограниченных реализацией,…

24.9K
157.6K
Файлы: 4
Открыть

Создайте своё рабочее пространство с ИИ прямо сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇