Логотип Spec Update

Spec Update

Спільнота
v0lka
spec-update

Update existing specification documents after code changes that alter documented behavior, interfaces, or invariants. Use after implementation when you have changed behavior covered by a spec, added/removed/renamed interfaces in a contract, modified architectural boundaries, or changed configuration. Ensures format preservation, cross-reference integrity, and INDEX.md currency.

Огляд

Видавецьv0lka
Репозиторійskills
Назва навичкиspec-update
Зірки
28
Форки
1
Файли в пакеті
Лише інструкції
ЛіцензіяMIT
Посилання
  • Інструкції у форматі Markdown

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

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

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

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

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

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

    Опубліковано на GitHub користувачем v0lka. Перегляньте вихідний вміст перед установленням.

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

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

1

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Spec Update

Update existing specification documents to reflect code changes. Specs are the source of truth about intended behavior — when code changes, affected specs must be updated to stay aligned.


When to Invoke

Update specs after any change that:

  • Alters behavior documented in a domain spec
  • Adds, removes, or renames interfaces that appear in a contract
  • Changes architectural boundaries or invariants
  • Modifies configuration parameters documented in a spec
  • Adds or removes files referenced in a spec's "Key Files" section
  • Changes event payloads, types, or protocols documented in a contract

Do NOT update specs for:

  • Internal refactoring that preserves documented behavior
  • Bug fixes that bring code INTO alignment with the spec (the spec was already correct)
  • Changes to code not covered by any spec

Procedure

Step 1 — Identify affected specs

Determine which specs need updating based on what you changed:

What you changedUpdate
Component behaviorDomain detail file for that component
New component in existing domainDomain README (catalog/table) + new detail file (use spec-create)
Interface signaturesContract spec for that boundary
Initialization/wiringContract spec "Initialization" section
Configuration parametersDomain README "Configuration" section
Error handling strategyDomain detail "Error Handling" + contract "Error Propagation"
Architectural rulesArchitecture spec + potentially affected contracts
File paths (rename/move)All specs referencing those paths in "Key Files"

Step 2 — Read the current spec FULLY

Read the entire spec before making any modifications. This is critical because:

  • You need to understand the existing structure to preserve it
  • There may be invariants you're about to violate
  • Cross-references may need updating
  • The document format has a required section order

Step 3 — Make targeted updates

Rules for updating:

  1. Preserve the document format — sections and their order are defined in META.md. Never reorder, remove, or rename sections.
  2. Update, don't append — modify existing content in place. Don't add "Updated:" prefixes or changelog entries within the spec.
  3. Maintain voice — specs use declarative, factual statements. No hedging ("should", "might"), no changelog language ("was changed to").
  4. Keep invariants affirmative — "X always does Y", not "X never does Z".
  5. Update cross-references — if file paths changed, update all references across all affected specs.
  6. Preserve information density — no filler prose. Every sentence carries information.

Step 4 — Handle ADR immutability

Status: Accepted locks an ADR only once its current content is committed to the repository. Establish which case applies before touching an accepted ADR — git: git status --porcelain -- specs/decisions/NNN-slug.md; empty output = committed (outside a git repository, treat the ADR as committed):

  • Uncommitted (untracked, or content differs from the last commit) — the ADR is still a draft: edit it freely in place — reword, correct, or even reverse the decision; no superseding ADR is needed. The commit is what locks it
  • Committed — do NOT edit it. If your change contradicts the decision:
    • Create a new ADR that supersedes it (use spec-create skill)
    • Update only the ## Status line of the old ADR to: Superseded by [NNN](./NNN-slug.md)
    • This is the ONLY permitted edit to a committed accepted ADR

If you have no way to run git, establish the commit state from the task context or ask the user — never guess about a committed accepted ADR.

Step 5 — Update INDEX.md (if applicable)

Update specs/INDEX.md if:

  • You added or removed a spec file
  • You renamed a spec file
  • The "task → spec" mapping table needs a new entry for discoverability

Step 6 — Update cross-references in other specs

If your changes affect content referenced by other specs:

  • Search for references to the updated file across all specs
  • Verify section anchors still resolve (lowercase, hyphen-separated)
  • Update any broken links

Step 7 — Validate (embedded checklist)

Before declaring the update complete, verify:

  • All sections from the template are still present and in correct order
  • No sections were accidentally removed or reordered
  • Cross-references point to existing files and valid section anchors
  • Paths in "Key Files" are accurate (verify the files exist)
  • Invariants are stated affirmatively
  • INDEX.md reflects the current file set (if files were added/removed)
  • ADR immutability was respected (committed accepted ADRs touched only via superseding; uncommitted drafts edited in place)
  • No filler prose was introduced
  • ASCII diagrams are consistent with updated behavior
  • Tables/catalogs include any new entries

Common Mistakes to Avoid

MistakeWhy it's badWhat to do
Silently skipping spec updateSpecs drift, next agent gets wrong contextAlways check if specs are affected
Rewriting the entire specLoses carefully worded invariantsMake minimal, targeted edits
Adding changelog entriesClutters the spec, wastes context windowUpdate in-place, git history tracks changes
Editing a committed accepted ADRLoses decision historyCreate new ADR with Superseded by (uncommitted accepted ADRs are drafts — edit in place)
Updating spec before code is doneRisk of spec-code mismatch if implementation changesUpdate spec AFTER implementation is complete
Skipping cross-reference checkBroken links make specs unreachableSearch for references to modified content
Stating invariants negativelyHarder to verify complianceAlways use affirmative phrasing

Multiple Specs Affected

When a single code change affects multiple specs (e.g., adding a new interface touches both a domain spec and a contract), update them in this order:

  1. Contract specs (boundary definitions)
  2. Domain detail specs (component behavior)
  3. Domain READMEs (catalogs, extension points)
  4. Architecture specs (system-level rules)
  5. INDEX.md (navigation)

This order ensures that references from higher-level docs to lower-level docs are valid at each step.

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

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

Update existing specification documents after code changes that alter documented behavior, interfaces, or invariants. Use after implementation when you have changed behavior covered by a spec, added/removed/renamed interfaces in a contract, modified architectural boundaries, or changed configuration. Ensures format preservation, cross-reference integrity, and INDEX.md currency.

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

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

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

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

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

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

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

Зі скількома забажаєте. Якщо модель підтримує навички, ви можете використовувати з нею Spec Update — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama та інші — усе в TypingMind із власними ключами API.

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

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

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

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

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

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

Усі

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

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