fix-term
FreeNo executable scriptsNot checkedUse to capture or update domain terms in CONTEXT.md before their meaning drifts — whenever a fuzzy word shows up in an interview, PRD, or review and you want…
by genkovich★ 17 GitHub starsAbout this skill
Skill: fix-term
Lazy utility that fixes the meaning of a domain term in CONTEXT.md the moment it first surfaces, so its sense doesn't drift across the pipeline. For each term it captures a one-sentence canonical definition and — when the word is ambiguous — a NOT-reference naming the concept it's confused with. Runs anytime, with no upstream gate: a single term mid-interview, or a batch handed over by write-prd. The output feeds write-prd (role + domain-term names) and architecture-design (invariants), which treat ## Glossary as canonical and override anything that contradicts it.
This is a capture utility, not a Socratic stage — it does not run the shared Socratic loop or critic. The one shared dependency is question phrasing:
→ ../_shared/ask-style.md
Owner
Whoever drives the conversation — anyone who spots ambiguity. Tech Lead approves the canonical form when a term is contested.
Inputs
<term>— the domain word/phrase to fix. If not given, ask for it.- (Optional)
<slug>— feature slug; targetsdocs/features/<slug>/CONTEXT.md. Absent → single-context check below. - (Optional)
<context>— bounded-context name (for multi-context repos); detected viaCONTEXT-MAP.md. - (Optional)
pending_glossary_terms— a batch handed over bywrite-prdafter it writes the PRD. Process each term in turn. - (Optional) proposed phrasings already surfaced in an interview/brainstorm — offer them as definition options instead of asking blank.
Protocol
- Detect context mode.
test -f CONTEXT-MAP.mdat the repo root.- Multi-context (file exists and contains real rows): ask which bounded context
<term>belongs to: «Available contexts:<list from CONTEXT-MAP.md>.» (phrasing per../_shared/ask-style.md). Target<ctx>/CONTEXT.md. If the context isn't yet registered in CONTEXT-MAP.md, add a row now (| <ctx> | <path> | <1-line scope> |). - Single-context (no CONTEXT-MAP.md or only a stub): if
<slug>is given →docs/features/<slug>/CONTEXT.md; otherwise → repo-rootCONTEXT.md. One glossary per file; don't split a term across both.
- Multi-context (file exists and contains real rows): ask which bounded context
- Generic-term filter. Reject words that name infrastructure or transport rather than the business domain (e.g. HTTP, queue, cache, the datastore, a framework, JSON, REST, gRPC). Refuse: «
<term>is technical, not a domain word — its choice belongs in the SAD or an ADR, not the glossary». Continue only for genuine domain vocabulary. - Bootstrap (lazy).
test -f <target>. Missing → copy./templates/CONTEXT.mdto<target>. Present → read it. - Conflict check.
grep -i "^- <term>" <target>.- Found, identical sense → STOP, report «already in the glossary».
- Found, different sense → escalate via
AskUserQuestion(phrasing per../_shared/ask-style.md): «<term>is already defined as<existing>— same concept or a different one?». If different, propose a disambiguating pair of names (e.g. a billing-scoped vs a runtime-scoped variant) and fix both. - Not found → continue.
- Ask the canonical definition — one
AskUserQuestion: «Define<term>in this domain, in one sentence». Offer interview/brainstorm phrasings as options when available; otherwise free text. Follow the explanatory style in../_shared/ask-style.md— gloss every technical term inline, explain why the definition matters. - Ask the NOT-reference — one
AskUserQuestion: «Which concept does<term>get confused with, so a future reader doesn't mix them up?». No plausible homonym →None. - Compose one line.
- <term> — <one-sentence definition>. NOT <confused concept + how it differs>.— or, when step 6 = None,- <term> — <definition>. - Append under
## Glossary. Read the file, insert the line in## Glossary(alphabetical if the section is already sorted, else at the end). Never rewrite existing entries. - Prune empty H2s. On a fresh bootstrap, delete
## Invariants/## Out of scopeif they hold no real content — only## Glossaryis mandatory. (A genuine invariant or out-of-scope note goes in its section, never as implementation detail.) - Stamp + commit + handoff. Set
updated_at: <today>in the frontmatter. Proposecontext: + <term>(orcontext: + <term>, <term2>for a batch). May fold into the caller's intake/PRD commit. Then emit the stage-handoff block per../_shared/handoff.md(utility variant) — What I did + Review (CONTEXT.md) + Run next: resume your backbone stage (e.g./sdlc:architecture-design <slug>);/clearoptional.
Definition of Done
<target>exists and contains<term>under## Glossaryin the «one-sentence canonical + optional NOT-reference» format.- Any conflict with an existing entry is resolved (reported as duplicate, or disambiguated into distinct names).
- Generic tec
Install fix-term in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
FAQ
What does the fix-term skill do?
Use to capture or update domain terms in CONTEXT.md before their meaning drifts — whenever a fuzzy word shows up in an interview, PRD, or review and you want one canonical definition plus a NOT-reference so a homonym can't bite you in six months. Triggers on "add term {X}", "what is {X} in our domain", "add to CONTEXT", "fix the glossary", "define {X}", "/sdlc:fix-term {term}", "fix term {X}", "додай термін", "онови глосарій", "що означає {X}". Lazy-bootstraps docs/features/{slug}/CONTEXT.md (or repo-root CONTEXT.md; multi-context repos also get CONTEXT-MAP.md updated) from a template, checks for a conflicting existing entry, asks for a one-sentence definition + the concept it's confused with, and appends one line to ## Glossary. Skip generic tech words (HTTP, queue, cache) — those are not domain terms. Output: created/edited CONTEXT.md (+ CONTEXT-MAP.md updated when multi-context). Runs anytime, no input gate; write-prd and architecture-design read its ## Glossary as the canonical source of role and domain-term names.
How do I install the fix-term skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the fix-term skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
by AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
by Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
by Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
by Anthropic