agentleFS
cdvelcdvel/architecture-skills/skills/glossary-md/SKILL.md

glossary-md

Skill4 starsChanged 53 days agoMITView on GitHub

Maintains the project glossary (docs/GLOSSARY.md, or an existing GLOSSARY.md or TERMINOLOGY.md) as one table of terms, each with a one-sentence definition and its source (an ADR, a standard or a team convention). Use when the user wants to start a glossary or a terminology list, draft one from the terms the code and docs already use, add, define, rename or retire terms for the team, record what we call something, write down the project's vocabulary or domain terms, build the ubiquitous language, backfill terms from existing ADRs, or clean up, deduplicate, sort or reconcile the glossary. Also takes the terms of a newly accepted ADR, handed over by adr-md or described in a message. Not for recording a decision (adr-md), writing ARCHITECTURE.md (architecture-md), a plain question about what a word means with nothing to record, API reference docs, or a glossary section inside a README.

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 7 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Ask in plain text, or with the harness's question tool if it has one.

    line 54
  2. Distinctive:

    Never remove a row without a yes.

    line 55
  3. Distinctive:

    If the request already says to go ahead without asking, that is the yes for every question here, removals included: take the default each …

    line 56
  4. Distinctive:

    Before writing a term, compare it with every row.

    line 60
  5. Distinctive:

    Check for duplicates, then write and report.

    line 75
  6. Distinctive:

    If the record's status isn't Accepted, add nothing and say why.

    line 85
  7. Very specific:

    If terms is empty, there is nothing to add.

    line 86
  8. Distinctive:

    Check the whole file, show all findings at once, then apply the approved changes in one write:

    line 104

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

glossary-md

Keeps the project's vocabulary in one file that describes the current state. Rows that no longer apply are removed, except a replaced term, which keeps a row naming its replacement while the old name still appears in the repo. This skill is the only writer of the file; it reads ADRs and never edits them.

Files

  • Glossary: an existing GLOSSARY.md or TERMINOLOGY.md, at the root or in docs/, is used where it is. If several exist, ask which one. If none exists, create docs/GLOSSARY.md. If the existing file is a list or has other columns, ask before converting it, and keep every term.
  • ADR register: the first of docs/adr, docs/decisions, adr, doc/adr that exists. Read each record's frontmatter (status, supersedes, supersedes_in_part, terms). A record without frontmatter takes its number from the filename and its status from its ## Status section.

Format

A new file starts like this:

# Glossary

This file is the project's current vocabulary: each term has one definition and the source it comes from. The Source column is a citation, not a history. A replaced term keeps a row naming its replacement while the old name still appears in the repo; other rows that no longer apply are removed.

| Term | Definition | Source |
|---|---|---|
| Variant | A resized copy of an uploaded image at one preset's size. | [ADR-0002](adr/0002-resize-on-upload.md) |
| Preset | A named combination of width, height and output format. | Convention |
  • Term: singular, in the casing the project uses in prose.
  • Definition: one declarative sentence on what the term means in this project. An ADR-sourced row uses the definition from the record's terms as written.
  • Source: one or more of the following, separated by ; , ADRs first. A | in any cell is written \|.
    • [ADR-0007](adr/0007-slug.md): an accepted record that defines or adopts the term, linked relative to the glossary file.
    • Predates ADRs: in use before the register began; no ADR defines it.
    • Standard: <name or link>: used as an external standard defines it, e.g. Standard: RFC 9110.
    • Convention: agreed by the team outside any ADR. The default for a term the user defines.
  • Replaced term: when a term is renamed or replaced and the old name still appears in the repo outside the glossary (code, docs, ADRs), the old name keeps a row whose definition is Don't use; say <new term>. and whose source is the source of the change. It tells readers of old code, and agents writing new code, which name to use. Once the old name appears nowhere, the row is a removal candidate.

Sort order, applied on every write: rows citing an ADR first, by the lowest ADR number they cite; then the other rows grouped as Predates ADRs, Standard, Convention (a row citing several types goes in the first group it cites). Within one ADR number or group, alphabetical by term, ignoring case. If a write moves rows that were out of order, say so in the report.

Changes from ADRs

An accepted ADR changes a row, whatever its source, in two ways:

  • it redefines the term (different meaning): its definition and source replace the old ones. If the replaced source was an accepted ADR it doesn't supersede, report that two accepted records disagree.
  • it adopts the term (same meaning): it is added as a source, taking the place of any record it supersedes.
  • it replaces the term with a new name: the new term takes the row's meaning with this ADR as its source, and the old name becomes a replaced term.

A row citing an ADR changes only that way, or when that ADR is fully superseded or deprecated: if it was the only source, the row is a removal candidate; otherwise only that ADR leaves the Source cell. Decline other changes to an ADR-sourced definition; changing it takes a new ADR (adr-md). Fixing a link or the layout is allowed. Other rows can be edited at any time.

Questions and pre-approval

  • State your reading of the request and start; don't open with questions.
  • Ask in plain text, or with the harness's question tool if it has one.
  • Never remove a row without a yes. List each removal candidate with its reason.
  • If the request already says to go ahead without asking, that is the yes for every question here, removals included: take the default each step names and state it in the report.

Duplicates

Before writing a term, compare it with every row. Duplicates: the same term ignoring case, plural, hyphens and spaces. Near-duplicates: an abbreviation and its expansion, or a term whose definition describes the same thing. Show both rows and offer:

  • merge into one row under the name the repo uses most, sources combined, keeping the ADR-sourced definition if there is one, else the more specific one. Default when both describe the same thing.
  • rename both so each name says what differs. Default when they describe different things.
  • skip.

Rows from two accepted ADRs that disagree can't be settled here: report them and suggest superseding one record with adr-md.

Workflow

Take the intent (add, draft, backfill, reconcile) from the invocation or the request. Read the glossary in full and list the records with their status. If the glossary is missing or empty, offer backfill first when accepted ADRs exist, then draft; with pre-approval, or for a handoff, do the requested work and suggest the others in the report.

add

  1. Take each term's definition and source from the request. When a definition is missing, draft one from how the repo uses the term and ask for approval (default: the draft). When the source is unclear, use Convention and say so.
  2. Check for duplicates, then write and report.

Rewording or renaming a row without an ADR source works the same way; a renamed term keeps its old name as a replaced term. "What do we call X?" is answered from the glossary; if no row fits, propose a term and offer to add it.

Handoff from adr-md

An accepted ADR's terms arrive either as an invocation from adr-md with intent add (the ADR id, its file path, its terms, and for each record it supersedes: the old id, full or partial, and that record's terms), or as a request or message saying an ADR was accepted. In the second case, read the same data from the record and the records it supersedes.

Then, asking only about removals:

  1. If the record's status isn't Accepted, add nothing and say why.
  2. If terms is empty, there is nothing to add. If the field is missing, propose terms from the text as backfill does.
  3. For each term: if no row matches, add one sourced from this ADR; if a row matches, this ADR redefines or adopts it (Changes from ADRs); handle a near-duplicate under another name as in Duplicates.
  4. For each fully superseded record, rows still citing it follow Changes from ADRs. Rows of a partially superseded record stay unless step 3 changed them.
  5. Write and report.

draft

Proposes terms from what the code and docs already use, for people to review; nothing is written before approval. Read draft.md and follow it.

backfill

  1. Take the Accepted records in number order; skip all other statuses.
  2. A record's candidates are its terms. Only when it has no terms field, read its text and propose the terms it introduces or gives a project-specific meaning. An empty terms: [] means none.
  3. Drop candidates already sourced from this record. The user accepts, edits or skips each of the rest (default: accept).
  4. Apply them with handoff steps 3 and 4, and write before the next record, so an interrupted run keeps its progress.

reconcile

Check the whole file, show all findings at once, then apply the approved changes in one write:

  1. Duplicates and near-duplicates.
  2. Removal candidates: those Changes from ADRs defines, rows without an ADR source whose term appears nowhere in the repo outside the glossary (ignoring case, plurals included), and replaced terms whose old name appears nowhere. An ADR-sourced term that appears nowhere is only reported; its record may need deprecating with adr-md.
  3. Broken ADR links: fix the link if the register has that number under another filename; otherwise report it.
  4. Format: a missing preamble, empty Source cells, multi-sentence definitions in rows without an ADR source.
  5. Sort.

Report

End every run with: the glossary path; rows added, changed and removed; removal candidates still open; each choice taken under pre-approval; for draft, the other names found for each term, the names left out because they have several meanings, and how many candidates remain; anything left for adr-md or a later backfill.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.