Agent skill

Spec Kitty Glossary Context

by spec-kitty in spec-kitty/spec-kitty

Curate and apply canonical terminology across Spec Kitty missions.

MITAuto-check passed

Install Spec Kitty Glossary Context

skills CLI
$ npx skills add spec-kitty/spec-kitty --skill spec-kitty-glossary-context -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install spec-kitty/spec-kitty spec-kitty-glossary-context --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/spec-kitty/spec-kitty.git skills-src && mkdir -p .claude/skills && cp -r skills-src/src/charter/offering/skills/spec-kitty-glossary-context .claude/skills/spec-kitty-glossary-context && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
spec-kitty-glossary-context
GitHub stars
1.7k
Token cost
~3.1k tokens
SKILL.md length
1,252 words
Files
3 (incl. references)
Skills in repo
50
Repo updated
First seen
Licence
MIT

At a glance

Curate and apply canonical terminology across Spec Kitty missions.

  • Works in 4 steps: Locate Glossary Context → Check Conflicts and Strictness → Update Terms and Resolve Conflicts → …
  • SKILL.md covers How the Glossary Works, Step 1: Locate Glossary Context, Step 2: Check Conflicts and… and Step 3: Update Terms and…, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Spec Kitty Glossary Context is an agent skill from spec-kitty/spec-kitty. Curate and apply canonical terminology across Spec Kitty missions. Triggers: "update the glossary", "use canonical terms", "check terminology", "add a term", "fix term drift", "glossary conflicts", "resolve ambiguity", "review terminology consistency", "shape a domain model's terms", "validate domain language against code". Does NOT handle: runtime loop advancement, setup or repair requests, agent configuration, or direct code implementation tasks.

Its SKILL.md is about 3.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including reference files (for example `references/glossary-field-guide.md` and `references/semantic-drift-examples.md`).

The repository describes itself as: Spec-Driven Development with organizational governance. Specs tell AI agents what to build; Charter governs how they build it. Git-native missions, enforceable workflows, and… The licence is MIT.

Example prompts

  • “update the glossary”
  • “use canonical terms”
  • “check terminology”
  • “/spec-kitty-glossary-context”

Requirements

  • Python 3

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Locate Glossary Context
  2. Check Conflicts and Strictness
  3. Update Terms and Resolve Conflicts
  4. Detect and Prevent Semantic Drift

What it can do on your machine

Read from SKILL.md and the folder at commit e533131. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are bash, yaml and python).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Spec Kitty Glossary Context loads about 3.1k tokens when it runs, and up to ~6.3k if it reads all its reference files. Until then it costs about 120 tokens; SKILL.md has 1,252 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~120
When it runs · the whole SKILL.md, loaded when a task matches
~3.1k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~6.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from spec-kitty/spec-kitty at commit e533131, republished under its MIT licence (© spec-kitty). 1,252 words, ~3,094 tokens.

Download SKILL.mdSave it as .claude/skills/spec-kitty-glossary-context/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
spec-kitty-glossary-context
description
Curate and apply canonical terminology across Spec Kitty missions. Triggers: "update the glossary", "use canonical terms", "check terminology", "add a term", "fix term drift", "glossary conflicts", "resolve ambiguity", "review terminology consistency", "shape a domain model's terms", "validate domain language against code". Does NOT handle: runtime loop advancement, setup or repair requests, agent configuration, or direct code implementation tasks.

spec-kitty-glossary-context

Maintain semantic integrity by curating the project glossary, detecting term drift, and ensuring that all mission artifacts use canonical terminology.

Use this skill when the user wants to inspect, update, or enforce glossary terms. Do not use it for purely operational tasks like advancing the runtime loop or repairing an installation.


How the Glossary Works

The glossary is a semantic integrity runtime — a 5-layer middleware pipeline that intercepts mission step execution, extracts terms from inputs/outputs, checks them against stored definitions, and can block generation if terminology conflicts are unresolved.

Data Model

Terms have a surface (normalized to lowercase), definition, scope, confidence (0.0–1.0), and status (draft/active/deprecated).

Seed files (.kittify/glossaries/{scope}.yaml) provide initial definitions. Event logs (.kittify/events/glossary/*.events.jsonl) record all runtime mutations as append-only JSONL. State is reconstructed by replaying seed files then events.

4 Scopes (narrowest wins)
PrecedenceScopeUse For
0 (highest)mission_localFeature-specific jargon
1team_domainTeam/org conventions
2audience_domainIndustry/domain standards
3 (lowest)spec_kitty_coreFramework terms (lane, work package, mission)
The 5-Layer Middleware Pipeline

When a mission primitive executes (via @glossary_enabled decorator or GlossaryAwarePrimitiveRunner), this pipeline processes the step:

Layer 1 — Term Extraction. Scans step input/output for terminology using multiple methods (in priority order):

MethodConfidenceExample
Metadata hints (glossary_watch_terms)1.0Explicit list of terms to monitor
Quoted phrases0.8"work package" in text
Acronyms (2-5 uppercase)0.8WP, API
Casing patterns (snake_case, CamelCase)0.8worktree_node, WorkspaceManager
Repeated nouns (3+ occurrences)0.5Frequent domain words

Emits TermCandidateObserved events.

Layer 2 — Semantic Check. Resolves each extracted term against the scope hierarchy and classifies conflicts:

Conflict TypeTriggerSeverity
UNKNOWNTerm not in any scopeVaries by confidence + criticality
AMBIGUOUS2+ active senses for same surfaceHIGH in critical steps
INCONSISTENTOutput contradicts glossary definitionLOW (informational)
UNRESOLVED_CRITICALUnknown term in critical step, low confidenceHIGH

Emits SemanticCheckEvaluated events.

Layer 3 — Clarification (runs BEFORE the gate). Users get a chance to resolve conflicts before generation is blocked:

  • In interactive mode: prompts user to select a candidate sense, provide a custom definition, or defer
  • In non-interactive mode (CI/headless): auto-defers all conflicts
  • Resolved conflicts are removed; deferred ones pass to Layer 4

Emits GlossaryClarificationRequested, GlossaryClarificationResolved, and GlossarySenseUpdated events.

Layer 4 — Generation Gate. Evaluates whether to block based on strictness:

StrictnessBehavior
offNever block
medium (default)Block only HIGH severity conflicts
maxBlock any unresolved conflict

Strictness resolved via 4-tier precedence: runtime flag > step metadata > mission config > global default (.kittify/config.yaml).

If blocking: saves a checkpoint (SHA256 input hash, scope versions, retry token), emits StepCheckpointed and GenerationBlockedBySemanticConflict events, then raises BlockedByConflict.

Layer 5 — Resume. For retry after a block:

  • Loads checkpoint from event log
  • Verifies input hash hasn't changed (detects context drift)
  • Prompts user if context changed
  • Restores execution state
Step-Level Configuration

Individual mission steps can control glossary behavior via metadata:

yaml
# In step definition
glossary_check: enabled          # or "disabled" to skip this step
glossary_check_strictness: max   # override strictness for this step
glossary_watch_terms:            # explicit terms to monitor (confidence 1.0)
  - work package
  - lane
glossary_aliases:                # map synonyms to canonical forms
  task: work package
  status: lane
glossary_exclude_terms:          # terms to ignore
  - the
  - a
8 Event Types
EventWhenEffect
GlossaryScopeActivatedScope loaded at runtimeInformational
TermCandidateObservedTerm extracted from textRecords extraction
SemanticCheckEvaluatedSemantic check completesRecords findings
GlossaryClarificationRequestedConflict needs resolutionCreates pending conflict
GlossaryClarificationResolvedUser selects a sensePromotes selected sense
GlossarySenseUpdatedTerm added/definition changedUpdates store
GenerationBlockedBySemanticConflictGate blocks generationRecords block
StepCheckpointedState saved before blockEnables resume

All events are append-only in .kittify/events/glossary/{mission-id}.events.jsonl.

Integration Patterns
python
# 1. Decorator (simplest)
@glossary_enabled(repo_root=Path("."))
def my_primitive(context):
    return {"result": "ok"}

# 2. Function processor
processor = attach_glossary_pipeline(repo_root, runtime_strictness, interaction_mode)
processed_context = processor(context)  # May raise BlockedByConflict

# 3. Runner class
runner = GlossaryAwarePrimitiveRunner(repo_root, runtime_strictness)
result = runner.execute(primitive_fn, context)

The BlockedByConflict exception carries the conflicts list, strictness mode, and a user-facing message. Callers should catch it, present the conflicts, and offer resolution before retrying.


Step 1: Locate Glossary Context

Identify the glossary state for the current project.

What to check:

  • Seed files under .kittify/glossaries/ (one YAML per scope)
  • Event logs under .kittify/events/glossary/ (JSONL, event-sourced)
  • The store replays seed files then events at query time

Commands:

bash
spec-kitty glossary list
spec-kitty glossary list --scope spec_kitty_core
spec-kitty glossary list --status active --json

Expected outcome: You know which scopes are populated and whether event logs contain runtime mutations.


Step 2: Check Conflicts and Strictness

The glossary gates mission execution through the strictness system.

Commands:

bash
spec-kitty glossary conflicts
spec-kitty glossary conflicts --unresolved
spec-kitty glossary conflicts --strictness max --mission 012-documentation-mission

Expected outcome: You understand why a conflict blocked the runtime, or you can confirm no blocking conflicts exist.


Step 3: Update Terms and Resolve Conflicts

Adding or editing terms: Edit the seed file for the appropriate scope.

Choose the scope by term ownership:

  • Project-internal jargon: mission_local.yaml
  • Shared domain vocabulary: team_domain.yaml
  • User-facing terms: audience_domain.yaml
  • Spec Kitty concepts: spec_kitty_core.yaml (rarely edited)

Rules: surface must be lowercase/trimmed; status is active, deprecated, or draft; confidence is 0.0–1.0.

Seed file format:

yaml
terms:
  - surface: <lowercase trimmed string>
    definition: <non-empty string>
    confidence: <float 0.0-1.0>       # default 1.0
    status: <active|deprecated|draft>  # default draft

Status lifecycle: draft → (promote) → active → (retire) → deprecated → (re-draft) → draft. Deprecated senses are excluded from resolution but remain in event history.

Resolving conflicts interactively:

bash
spec-kitty glossary resolve <conflict_id>
spec-kitty glossary resolve <conflict_id> --mission 012-docs

The resolver presents candidate senses. You can select one, enter a custom definition, or defer. Custom definitions emit both a GlossaryClarificationResolved and a GlossarySenseUpdated event.

Expected outcome: The glossary reflects intended terminology and runtime- blocking conflicts are resolved.


Show full SKILL.md (494 more words)Show less

Step 3A: Pressure-Test Domain Model Terms When Needed

Use this step when the task is shaping a domain model or a term is ambiguous, contested, or load-bearing. Skip it for an already canonical, uncontroversial usage correction.

This step is a self-contained summary of canonical doctrine: the domain-aware-decision-interview procedure (packs/built-in/procedures/domain-aware-decision-interview.procedure.yaml) and the adr-drafting-workflow / language-driven-design tactics. When those artifacts are loaded, defer to them and treat their wording as authoritative if it ever diverges from the summary below.

Cross-check code evidence

Identify the model claim being made, then inspect the relevant domain types, API contracts, and tests before accepting it. Name the surfaces checked and report concrete mismatches. If code evidence is unavailable, label the claim as a hypothesis rather than presenting it as confirmed.

Challenge the term with a concrete edge case

Choose at least one small concrete edge case that could expose ambiguity. State the expected behavior, then check whether the proposed definition, boundary, or relationship explains it. If not, refine the model instead of adding more terminology around the mismatch.

Apply the ADR gate

Recommend an ADR only when all three conditions are true:

  1. The decision is hard to reverse.
  2. The decision is surprising without context.
  3. There is a real trade-off between plausible alternatives.

If any condition is false, keep the rationale in the glossary, spec, or plan. When an ADR already covers the decision, update or reference it instead of creating a duplicate.

Expected outcome: The term is supported by available code evidence, survives a concrete edge case, and creates an ADR only for a decision that passes all three conditions.


Step 4: Detect and Prevent Semantic Drift

Semantic drift occurs when artifacts gradually diverge from glossary definitions. See references/semantic-drift-examples.md for six concrete drift patterns.

Detection:

  1. Run spec-kitty glossary list --json and compare definitions against spec, plan, and task files
  2. Run spec-kitty glossary conflicts --unresolved for terms the runtime flagged
  3. Search WP frontmatter for informal synonyms (e.g., "task" instead of the canonical "work package")

Correction:

  • Artifact is wrong: replace with the canonical term
  • Glossary is outdated: update the seed file definition
  • Genuinely ambiguous: add a second sense and let the strictness system force disambiguation

Prevention:

  • Set strictness to medium or max so the runtime catches conflicts early
  • Add domain terms to the glossary before writing specs that use them
  • Use glossary_watch_terms in step metadata for high-value terms
  • Use glossary_aliases to map known synonyms to canonical forms
  • Review the conflict log after each completed mission

Consistency checklist:

  1. Every WP title and description uses canonical surface forms
  2. Plan documents reference terms as defined in the glossary
  3. No informal synonyms appear without a corresponding glossary entry
  4. Deprecated terms are not reintroduced in new artifacts

Expected outcome: Terminology is consistent across all mission artifacts and the glossary remains a living, enforced contract.


References

  • references/glossary-field-guide.md -- Seed file schema, scope precedence, status lifecycle, event-sourcing mechanics, and CLI quick reference
  • references/semantic-drift-examples.md -- Concrete drift patterns with detection and correction strategies

© spec-kitty, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files (references) in src/charter/offering/skills/spec-kitty-glossary-context of spec-kitty/spec-kitty.

  • SKILL.md
  • references/glossary-field-guide.md
  • references/semantic-drift-examples.md

Open the folder on GitHubat commit e533131

Compare with similar skills

Spec Kitty Glossary Context next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Spec Kitty Glossary Context compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Spec Kitty Glossary Context this skillspec-kitty/spec-kitty1.7k—~3.1kAutomated safety check: PassMIT
Library Curatornexu-io/open-design100k—~574Automated safety check: PassApache-2.0
Openapi Glossaryscalar/scalar16k—~3.3kAutomated safety check: PassMIT
Nemo CuratorOrchestra-Research/AI-Research-SKILLs13k4 repos~2.3kAutomated safety check: PassMIT
Dataset Curationwshobson/agents40k—~2kAutomated safety check: PassMIT
Kleros Curateinternet-court/internet-court-skill6.5k1 repos~3.8kAutomated safety check: PassMIT

Similar skills

  • Library Curator

    nexu-io/open-design

    Search the OD Library (the global asset registry) and apply matching assets into the current project mid-task.

    100k GitHub stars~574 tokensUpdated today
    Auto-check passed
  • Openapi Glossary

    scalar/scalar

    Use consistent OpenAPI terminology and definitions when writing documentation, educational material, and tooling guidance.

    16k GitHub stars~3.3k tokensUpdated today
    Backend & APIsAuto-check passed
  • Nemo Curator

    Orchestra-Research/AI-Research-SKILLs

    GPU-accelerated data curation for LLM training. An agent skill from Orchestra-Research/AI-Research-SKILLs.

    13k GitHub starsUsed in 4 repos~2.3k tokens
    Data & AnalyticsAuto-check passed
  • Dataset Curation

    wshobson/agents

    Prepare, format, and validate datasets for supervised fine-tuning and preference training.

    40k GitHub stars~2k tokensUpdated 4 days ago
    AI & LLM EngineeringAuto-check passed
  • Kleros Curate

    internet-court/internet-court-skill

    Interact with Kleros Curate registries across Ethereum Mainnet, Gnosis Chain, and Sepolia.

    6.5k GitHub starsUsed in 1 repo~3.8k tokens
    Legal & ComplianceAuto-check passed
  • Curate

    rweekly/rweekly.org

    Guide the R Weekly curation team through preparing a new weekly issue.

    826 GitHub stars~1.8k tokensUpdated 4 days ago
    Data & AnalyticsAuto-check: notes

More from spec-kitty/spec-kitty

All 50 skills in this repo
  • Spec Kitty Setup Doctor

    spec-kitty/spec-kitty

    Install, verify, and recover the modern Spec Kitty 2.0.11+ operating surface.

    1.7k GitHub stars~1.4k tokensUpdated today
    Auto-check passed
  • Spk Doctrine Show Me

    spec-kitty/spec-kitty

    Explain Spec Kitty work with compact, checkable visuals. An agent skill from spec-kitty/spec-kitty.

    1.7k GitHub stars~944 tokensUpdated today
    Auto-check passed
  • Spec Kitty Git Workflow

    spec-kitty/spec-kitty

    Understand how Spec Kitty manages git: what git operations Python handles automatically, what agents must do manually, worktree lifecycle, auto-commit behavior, merge execution, and the safe-commit…

    1.7k GitHub stars~2.3k tokensUpdated today
    Auto-check passed
  • Spec Kitty Mission System

    spec-kitty/spec-kitty

    Understand how Spec Kitty missions work: the 4 built-in mission types, how they define workflows via step contracts and action indices, how missions and work packages relate, how templates are…

    1.7k GitHub stars~4.3k tokensUpdated today
    Auto-check passed
  • Teach agents and external systems how to use spec-kitty orchestrator-api to drive workflows from outside the host CLI.

    1.7k GitHub stars~3k tokensUpdated today
    Auto-check passed
  • Spec Kitty Runtime Review

    spec-kitty/spec-kitty

    Review runtime-owned outputs using the Spec Kitty review workflow surface, then direct approval or rejection with structured feedback.

    1.7k GitHub stars~1.5k tokensUpdated today
    Auto-check passed

Questions about Spec Kitty Glossary Context

What does Spec Kitty Glossary Context do?

Curate and apply canonical terminology across Spec Kitty missions. Spec Kitty Glossary Context is an agent skill from spec-kitty/spec-kitty. Curate and apply canonical terminology across Spec Kitty missions.

How do I install Spec Kitty Glossary Context in Claude Code?

Run `npx skills add spec-kitty/spec-kitty --skill spec-kitty-glossary-context -a claude-code`. Or copy the skill folder (src/charter/offering/skills/spec-kitty-glossary-context in spec-kitty/spec-kitty) into .claude/skills/spec-kitty-glossary-context in your project. Claude Code loads it when a task matches its description.

How do I install Spec Kitty Glossary Context in Codex?

Run `npx skills add spec-kitty/spec-kitty --skill spec-kitty-glossary-context -a codex`. Or copy the skill folder (src/charter/offering/skills/spec-kitty-glossary-context in spec-kitty/spec-kitty) into .agents/skills/spec-kitty-glossary-context in your project. Codex loads it when a task matches its description.

Can I use Spec Kitty Glossary Context in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add spec-kitty/spec-kitty --skill spec-kitty-glossary-context -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/spec-kitty-glossary-context, .gemini/skills/spec-kitty-glossary-context, .github/skills/spec-kitty-glossary-context and .opencode/skills/spec-kitty-glossary-context in your project.

What does Spec Kitty Glossary Context need to run?

SKILL.md names no scripts, command-line tools or credentials: Spec Kitty Glossary Context is instructions for the agent only. Our summary lists: Python 3.

Does Spec Kitty Glossary Context access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Spec Kitty Glossary Context safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Spec Kitty Glossary Context use?

Spec Kitty Glossary Context is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Spec Kitty Glossary Context use?

About 3.1k tokens (SKILL.md is roughly 12k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 3.3k tokens, read only when the agent opens those files.

What are the alternatives to Spec Kitty Glossary Context?

Skills that share tags, products or a category with Spec Kitty Glossary Context: Library Curator (nexu-io/open-design, 100k stars), Openapi Glossary (scalar/scalar, 16k stars), Nemo Curator (Orchestra-Research/AI-Research-SKILLs, 13k stars) and Dataset Curation (wshobson/agents, 40k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Spec Kitty Glossary Context?

spec-kitty (a GitHub organization) maintains it in spec-kitty/spec-kitty, which has 1,678 GitHub stars. The repository holds 50 skills in this directory. The repository was last updated on October 9, 2026.

Source: spec-kitty/spec-kitty on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.