/tcw:taxonomyfrom tcw
Drives `tcw taxonomy` — the Taxonomy axis of TCW (the registered Vocabulary + Feature registry). Use when declaring or maintaining a project's registered language and features. The capabilities axis is the `capabilities` skill, the work axis the `work` skill.
Ships in tcw. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Version check. Under Claude Code, skip this: the session-start hook already ran it. Under any other harness, once per session before your first tcw command, run bash "<plugin>/scripts/check_versions.sh", where <plugin> is two folders above the folder holding this SKILL.md, and pass on anything it prints to the user.
What it is: the taxonomy axis is the project's registered language and feature registry. It has two entry kinds:
It is the first layer in the TCW chain: Vocabulary -> Features -> Capabilities -> Work. It exists so the other axes point at shared, unambiguous entries
instead of re-defining words: capabilities can name a loose Subject and a
strong Feature, and work references taxonomy entries. The pointers are
one-directional — taxonomy never points back at capabilities or work.
Drive tcw taxonomy; never hand-edit entry files when a command applies. Read
with list / show / search; create with add; rename or move one of the
project's own terms with rename and move; remove one with rm;
tcw validate checks the tree with the rest of the project. The capabilities
axis is REQUIRED SUB-SKILL: Use the capabilities skill.
Naming a term. Each term has a path inside the taxonomy store, such as
invoice/refund, and a full identifier, <project-id>.taxonomy/<path> (for
example shop.taxonomy/invoice/refund), which names the project the term
belongs to. Every command that takes a term accepts its full identifier, its
tcw:// address (tcw://shop.taxonomy/invoice/refund), or its path in the
active project, the project whose folder the command runs in. Listings print
full identifiers, one per line; --json gives records with full-id, owner,
parent and overrides.
Where a term's fields are kept. A term is a folder holding
tcw-taxonomy.yaml (its fields: name, kind, links, labels) and
description.md (its description). A project whose .tcw/tcw-config.yaml sets
record-layout: front-matter keeps those fields instead as YAML front matter
at the top of description.md, between two --- lines, with no
tcw-taxonomy.yaml; every command behaves the same either way. So when this
skill says to edit a field in tcw-taxonomy.yaml, edit it in the front matter
in such a project. Never change the layout by editing record-layout: run
tcw project convert-records, which converts every record and then sets it.
The taxonomy tree is not necessarily docs/taxonomy. taxonomy.path in
.tcw/tcw-config.yaml can put it anywhere, and a taxonomy.repository block
can put it in another repository entirely, fetched here by
tcw project provision. So never compose a store path from the project root —
ask tcw taxonomy path. A command that needs a declared but missing tree fails
(exit 1), names the repository it lives in, and tells you to run
tcw project provision --component taxonomy; do not work around that by
running tcw project new, which would create a second, empty tree beside the
real one. A malformed taxonomy.repository fails the same way and names the
offending setting.
Use tcw taxonomy path when an agent needs the absolute, resolved filesystem
store folder. Because path is reserved as that command, read a term literally
named path with explicit tcw taxonomy show path.
Term.modified is read-only, adapter-provided presentation metadata for
viewers; it is not an editable taxonomy field.
Web editing: Taxonomy entries can also be created and edited through the local
tcw serveweb app; check failures are surfaced in the UI.
A work item that adds, changes or removes terms or Features declares them in
the spec, under taxonomy: in the item's capabilities.yaml, each by its full
identifier (the capabilities skill shows the file). Implement changes the
taxonomy in the same change as the code, with tcw taxonomy add and rm,
so the records say what the code does by the time review reads them. The move
out of implement checks every declared term: a new or changed one present,
a removed one gone.
relatesTo link (in the term's
tcw-taxonomy.yaml, written as the other term's full identifier), not a
second term.--kind feature and
repeat --vocab <ref> for each vocabulary term they operate on or involve.
A <ref> is a term's full identifier, a path the project can read (one of
its own terms or an inherited one, such as invoice/refund), or a leaf
slug (the last part of a term's path, such as refund) that is unique
among the project's own terms. Whatever form is given, the term's full
identifier is what gets stored. add refuses a ref that does not
resolve, one that is ambiguous, and one that points at a Feature, and it
refuses a Feature carrying no --vocab at all; a refused add writes
nothing and exits non-zero. So register vocabulary before the features
that name it. The leaf-slug convenience is for add only:
tcw taxonomy show <ref> and rm <ref> take a full identifier or a path.tcw-taxonomy.yaml or description.md (whichever it has) is a symlink out is not
read. Such an entry does not resolve, does not appear in list, and cannot be
written to; a stored ref of that shape reports as dangling. Inheriting
from a parent project (below) is the supported way to reference another
project.tcw taxonomy add <Name> --parent <path>
records parent: (the parent's full identifier) in the new term's
tcw-taxonomy.yaml, and makes the new term's folder inside the parent's
when the parent is one of the project's own terms; under an inherited parent
the folder goes at the top of the store, and a not nested: line says so.
--flat puts it at the top of the store under any parent, recording
parent: all the same. --slug overrides the leaf slug,
which must already be a slug: lowercase words joined by single hyphens,
never a /, or it is refused with exit 2. The description is piped on
stdin. Reading stdin is bounded: nothing piped adds the term with no
description and warns, and a stream that stalls part-way is refused rather
than stored truncated (TCW_STDIN_TIMEOUT sets the bound).tcw taxonomy rename <path> <name> changes the last part of a term's path;
tcw taxonomy move <path> --into <id-path> puts its folder inside another
term or folder, and --top at the top of the store. The terms nested in it
go with it, every reference to it in the project's own records and documents
is rewritten, and one <old full id> -> <new full id> line is printed for
each identifier changed. References in other projects are not rewritten: pass
those lines on to whoever keeps them, and tcw validate there reports what
still points at the old identifiers. Both work only on the project's own
terms; an override is refused (exit 3), since it must stay at the path of the
term it overrides.tcw validate after edits — it checks taxonomy kinds, feature
vocabulary refs, every relatesTo / subject reference (dangling refs), and
that a term overriding nothing is complete (below).tcw:// links — a term description may link
to another object by its address, [text](tcw://<project-id>.taxonomy/<path>)
(or .capabilities and .work in place of .taxonomy), in this project or
in any other project TCW can find. tcw validate resolves those links and
the tcw serve viewer makes them clickable.A term can carry labels: key and value pairs, such as audience: public, that
TCW stores and filters on but gives no meaning. Use them for a distinction the
project already makes and readers need to filter on, such as product terms
versus internal technical ones; follow the keys and values the project already
uses (tcw taxonomy list --json shows them) rather than inventing new ones,
and do not put in a label what belongs in the description. add --label K=V
labels a new term; set <path> --label K=V changes one, K= clears it. On an
inherited term, set writes this project's override holding only labels, and
inherited labels combine key by key, so a cleared key is written as null.
list and search take --label K=V, K!=V or K; the filter leaves links
alone, so a kept term may still name one it dropped.
A project inherits the taxonomy of every parent whose inherit includes
taxonomy, through every level: a parent's own parents are inherited too,
without being listed. The parent links are configured under parents: in
.tcw/tcw-config.yaml, which the configure skill's reference on projects
explains; there is no taxonomy command for it. An inherited term keeps the full
identifier of the project it belongs to (<parent-id>.taxonomy/<path>).
Which projects a command reads. list and search read only the project's
own terms by default (--scope own). --scope up adds the terms it inherits
from its parents; --scope down adds the terms of its children and their
children, and --scope all both. --project <id> keeps only one covered
project's own terms. show of an inherited term by its path needs
--scope up; without it, the command exits 4 and says to add --scope up or
name the term by its full identifier, which show always accepts.
Changing another project's term. rename, move and rm of a term that
belongs to another project, a parent included, are refused with exit 3; the
message names that project and the folder to run the command in, as
tcw -C <folder> taxonomy rm <path> and the like. To change an inherited term
for this project only, override it.
Overriding an inherited term. To change an inherited term, the project puts
its own term at the same path, holding only what it changes; nothing else marks
it as an override. The two are combined field by field, and a list field
(relatesTo, vocabulary) is replaced whole. tcw taxonomy add at an
inherited path writes such an override, holding only what differs from the
inherited term, and says on standard error what it overrides; a description
piped on stdin always counts as a change, and the add is refused (exit 3)
when no description is piped and nothing else given differs.
tcw taxonomy rm <path> removes the override and says what the path shows
afterwards. The JSON
records carry overrides (the full identifier of the term overridden, or
null), and show prints an overrides: line.
A term that overrides nothing must be complete — a name and a description.md,
which may be empty (under front-matter it always has one) — or tcw validate reports it; that is how an override whose
original was moved or removed is caught. When two parents that do not inherit
from each other both have a term at one path, the one that comes later in the
project's load order (the order in which TCW reads its parents) is used whole,
with a warning; a complete term of the project's own at that path settles it.
When a parent is not on this machine. tcw taxonomy list under the default
--scope own, and show of one of the project's own terms, still work, with a
warning naming the missing parent: each JSON record read that way has
"partial": true and no overrides key, since what it overrides is not
known. The commands that need the inherited terms (list and search with
--scope up, add, show of an inherited term by its path) stop with exit
code 7, and the message says where TCW looked and how to make the parent
known; show of an inherited term by its full identifier exits 5. Report
which project is missing and pass on the message; do not retry.
To seed a new taxonomy from an existing codebase, use the setup skill.
| Goal | Command |
|---|---|
| add vocabulary | tcw taxonomy add "<Name>" [--parent <path>] [--slug <slug>] |
| add a feature | tcw taxonomy add "<Name>" --kind feature --vocab <ref> [--vocab <ref>...] — a full identifier, a path, or a leaf slug unique among the project's own terms; refused if it does not resolve |
| nest under a parent | tcw taxonomy add "<Name>" --parent <path> [--flat] — records parent:; the folder goes inside the parent's unless --flat |
| rename or move a term | tcw taxonomy rename <path> <name> · tcw taxonomy move <path> --into <id-path> (or --top) — the project's own terms only; prints each changed identifier |
| link related terms | edit relatesTo in the term's tcw-taxonomy.yaml (full identifiers), then tcw validate |
| label an entry | tcw taxonomy add "<Name>" --label K=V · tcw taxonomy set <path> --label K=V (K= clears; on an inherited entry writes this project's override, labels only) |
| filter by label | tcw taxonomy list --label K=V · --label K!=V · --label K (any value); same key twice = either value, different keys = all; also on search |
| browse / read / find | tcw taxonomy list · tcw taxonomy show <path> · tcw taxonomy search <q> |
| include inherited terms | tcw taxonomy list --scope up · tcw taxonomy search <q> --scope up · tcw taxonomy show <path> --scope up |
| locate the filesystem store | tcw taxonomy path — prints only the absolute, resolved store folder |
| inherit another project's terms | name it under parents: with an inherit that includes taxonomy (the configure skill's projects reference); no taxonomy command |
| override an inherited term | tcw taxonomy add "<Name>" [--parent <path>] at the inherited path — writes the project's own term there, holding only what differs; tcw taxonomy rm <path> removes it |
| read without a parent present | tcw taxonomy list · show <own path> — records marked "partial": true; commands needing inherited terms exit 7 |
| validate | tcw validate (the whole project: YAML, tcw:// links, every axis's checks) |
| remove a local term | tcw taxonomy rm <path> — refused while a term is nested under it, another local term names it in relatesTo or a feature's vocabulary, one of the project's own capabilities, an override included, names it in Subject or Feature (or the capabilities cannot be read); fix those first. Every other file in its folder goes with it |
What SKILL.md sets; muted values are Claude Code's defaults
Use when planning or maintaining a project's registered language and feature registry — declaring Vocabulary terms, declaring Features that operate on vocabulary, or linking related entries.
Other plugins' skills for the same job
npx claudepluginhub brocef/tcw --plugin tcw14 skills in this plugin
/capabilitiesDrives `tcw capabilities` — the Capabilities axis of TCW (what a user can do). Use when a tcw work item has a product (user-facing) delta, or when coordinating capability wording across repos. The taxonomy axis is the `taxonomy` skill, the work axis the `work` skill./commands-drive-work-to-completionDrive a TCW work item from wherever it is through implement, review and qa, to completed where the agent may record the qa verdict, or to qa for a person where it may not./commands-pause-workStop the work in hand gracefully, write down what resuming needs, and wait for the user./commands-plan-workPlan a TCW work item from an existing item or the user's chat request, writing its request, spec and plan./commands-process-inboxDecide on every arrival in a TCW project's work inbox, then write the request for each one accepted./configureChanges how a project that already uses TCW is configured. Use when a user wants to set up or change the stages a project uses, the text or commands bound to a stage, hook limits, procedures, the Jira backend, documentation entries that track which documents a change must update, where a store lives, a project's parents and children, where related projects are on this machine, what a project inherits from its parents, or their own personal configuration. Getting TCW working in the first place is the `setup` skill.