Logo vun Spec Update

Spec Update

Communautéit
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.

Iwwersiicht

Editeurv0lka
Repositoryskills
Skill-Nummspec-update
Stären
28
Forks
1
Matgeliwwert Fichieren
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    Vum v0lka op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Spec Update an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/v0lka/skills/tree/main/development/sdd/spec-update
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

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
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Spec Update an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Spec Update automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Spec Update net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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.

Heefeg gestallte Froen

Wat mécht de KI-Skill 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.

Firwat Spec Update op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Spec Update besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Spec Update an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/v0lka/skills/tree/main/development/sdd/spec-update an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Spec Update benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Spec Update benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Spec Update domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Spec Update gratis?

Jo. De Skill gëtt vum v0lka ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇