sw-glossary

sw-glossary is a skill for Claude Code from anton-abyzov/specweave. It costs 49 tokens per session (1,123 once invoked), scanned A, a copy of glossary, MIT.

A guided process for creating a shared project glossary in GLOSSARY.md. It defines important terms consistently across business language, data, code, and the user interface.

In plain words
What is it for?
Use it when starting a project, adding a new business area, or resolving words that have multiple meanings. It interviews the user about each term and records definitions, alternatives to avoid, and where the term appears.
Why use it?
When the same concept has different names in conversations, databases, code, and screens, developers and agents can misunderstand requirements. A shared glossary reduces that ambiguity and keeps naming consistent.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions AGENTS.md.

Good fit Use it when starting a project, adding a new business area, or resolving words that have multiple meanings. It interviews the user about each term and records definitions, alternatives to avoid, and where the term appears.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/anton-abyzov/specweave/sw-glossary
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add anton-abyzov/specweave --skill sw-glossary
Clone the repo
git clone --depth 1 https://github.com/anton-abyzov/specweave

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sw-glossary

README.md
[![agentmods](https://agentmods.dev/badge/skills/anton-abyzov/specweave/sw-glossary/github.svg)](https://agentmods.dev/skills/anton-abyzov/specweave/sw-glossary)
Your own site
<a href="https://agentmods.dev/skills/anton-abyzov/specweave/sw-glossary"><img src="https://agentmods.dev/badge/skills/anton-abyzov/specweave/sw-glossary/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sw-glossary

Your own site · 80×15
<a href="https://agentmods.dev/skills/anton-abyzov/specweave/sw-glossary"><img src="https://agentmods.dev/badge/skills/anton-abyzov/specweave/sw-glossary.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,123 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 95% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00049 $0.01123
Opus 5.5 $0.00020 $0.00449
Sonnet 5.5 $0.00010 $0.00225
Haiku 4.5 $0.00005 $0.00112

Measured 4d ago against content hash abbe79d48f91, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sw-glossary scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

95% identical to glossary — 1 line differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/sw-glossary/SKILL.md · 90 lines

How it starts

The opening of the file, as written. The whole thing — 90 lines — stays where its author put it; the contents beside it link to each section on GitHub.

sw-glossary: one word for one thing, everywhere

Domain-driven design's ubiquitous language: an Order should be an Order when the client talks about it, in the database, in the code and on the screen. When the words drift ("purchase" table, Order type, "basket" button), agents spend tokens decoding jargon, name new code inconsistently and build the wrong thing. A short glossary fixes that for every session after it. Run this at a project's start, when a new domain area arrives, or whenever one word means two things or two words mean one.

GLOSSARY.md

One file at the repository root. A repo with several bounded contexts keeps a GLOSSARY-MAP.md at the root that links one GLOSSARY.md per context; follow it. Create the file when the first term settles, never empty.

# Glossary

A shop that sells refurbished laptops to small businesses.

## Ordering

### Order
A customer's request to buy one or more products, placed at checkout and paid once.
- Avoid: purchase, basket, transaction
- Data: `orders` table; its lines in `order_lines`
- Code: `Order` in `src/orders/order.ts`; `POST /orders`
- UI: "Order", "My orders"
- Rules: never deleted; cancelling sets the status to cancelled
  • The definition says what the thing is, in the client's words, in one or two sentences. No implementation detail there.
  • Avoid lists the synonyms nobody should use for it. Be opinionated: one term wins.
  • Data, Code and UI say where the term lives at each level. Put table, column, type and file names in backticks so specweave glossary check can find them. Leave out a level the term does not have.
  • Rules (optional) holds the invariants the business states about it.
  • Only terms specific to this domain. Timeouts, caches and retries are not glossary terms even if the code uses them everywhere.
  • Group terms under ## headings when clusters appear; a flat list is fine.

The interview

  1. Harvest. Read the README, the schema or migrations, the models and types, the routes and the UI strings. List the nouns that recur, and every mismatch: one concept with several names (purchases table, Order type, "Basket" label) and one name with several meanings ("account" as login and as billing account).
  2. Ask in rounds, as sw-grill-me does: a few terms per round, each question with your recommended answer, worded so "yes" accepts it. "The table is purchases, the type is Order, the button says Basket. Call all three an Order?" Use your tool's structured question tool when it has one.
  3. Sharpen with scenarios. "A customer pays for 3 items and one ships late: one Order or two?" Invent the edge case that forces a boundary.
  4. Check the code. When the user says how something works, read the code. If it disagrees ("the code cancels whole Orders; you said a single line can be cancelled"), say so and settle which one is right.
  5. Write each term as it settles, not in a batch at the end.
  6. Drift is work, not an edit. Where the code or data uses an avoided word, do not rename silently. List it for the user, and plan the renames as an increment (sw-increment): a table rename is a migration and the user's call.

Read the full file on GitHub · 90 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 90 lines · 49 tokens per session scan A abbe79d48f91

Subscribe to this mod's changes

sw-glossary is a skill published in the GitHub repository anton-abyzov/specweave (166 stars, last pushed today), licensed MIT. It adds 49 tokens to every session and 1,123 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 95% identical to glossary, differing in 1 line, and is treated as a copy.