Spec Update logo

Spec Update

Community
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.

Overview

Publisherv0lka
Repositoryskills
Skill namespec-update
Stars
28
Forks
1
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by v0lka on GitHub. Read the source before you install it.

Installation

Install the Spec Update AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/v0lka/skills/tree/main/development/sdd/spec-update
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Spec Update in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Spec Update on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Spec Update is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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.

Frequently asked questions

What does the Spec Update AI skill do?

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.

Why use Spec Update on TypingMind?

Because you install it once and use it with any model. Spec Update is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Spec Update in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/v0lka/skills/tree/main/development/sdd/spec-update. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Spec Update?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Spec Update?

As many as you like. As long as a model supports skills, you can use Spec Update with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Spec Update AI skill free?

Yes. It is published on GitHub by v0lka under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇