Description
Summary
An agent whose playbooks live in .claude/commands/ has them listed by no Trinity surface. The Skills tab says "This agent has no skills of its own yet", the chat / typeahead offers nothing, and the Library card shows nothing — while the agent's slash commands work perfectly well in a turn.
This is not a corner case: it is what all three visible bundled starter templates do, and the seeded Steward too.
| template | .claude/skills/*/SKILL.md |
.claude/commands/*.md |
what the Skills tab says |
|---|---|---|---|
local:sage (visible) |
0 | 5 | no skills of its own |
local:scout (visible) |
0 | 5 | no skills of its own |
local:scribe (visible) |
0 | 5 | no skills of its own |
local:demo-analyst (hidden) |
0 | 4 | no skills of its own |
local:demo-researcher (hidden) |
0 | 2 | no skills of its own |
local:trinity-system (the Steward) |
0 | 15 | no skills of its own |
Measured on dev@173e58cc over config/agent-templates/: not one of the 25 bundled templates ships a single .claude/skills/ directory.
Reproduction
- Fresh install, create an agent from the Sage starter.
- Agent → Skills.
- Own skills reads
0, with "This agent has no skills of its own yet. A skill is a folder with a SKILL.md under .claude/skills/ in its repository." - In chat,
/analyze what should we do about Xruns — the command exists at.claude/commands/analyze.mdwith its owndescription:andargument-hint:.
Reported from a 2026-11-24 evaluation call by someone running a local install off the public templates: "when I go to one of these agents and I click on the skills tab it always just says there's no skills yet even though I'm using one of your templates". The answer on the call was a guess; this is the mechanism.
Mechanism
docker/base-image/agent_server/routers/skills.py::list_skills scans exactly two paths, which are the same folder in the container:
skill_paths = list(dict.fromkeys([
home_dir / '.claude' / 'skills',
Path.home() / '.claude' / 'skills' # Personal skills
]))scan_skills_directory walks one level and requires SKILL.md per immediate subdirectory. Its docstring already states the scope honestly and names two known blind spots (deeper nesting, plugin-provided skills, out of scope per #2213) — .claude/commands/ is a third it does not mention.
Everything downstream inherits it: services/agent_skills_listing.py is the one proxy behind GET /api/agents/{name}/playbooks, which the Skills tab, the chat / menu, the dashboard, the exposed-skills panel, the public link and the MCP connector all read.
A third declaration makes it worse rather than better: config/agent-templates/sage/template.yaml declares all five commands with name / description / usage — and template_service reads no commands: key, so nothing renders it either. Per ent#584 a capability is described once, in its SKILL.md description:; commands: is a fourth surface that reads nothing (cf. #1655, #3290).
Why it matters
The Skills tab's own subtitle is "Everything this agent can do: its own skills and the ones it uses from the shared library." For the three agents a newcomer is most likely to create first, that sentence is false, and the empty state actively teaches the wrong thing: it tells the operator to go write a SKILL.md, when the agent already has five working playbooks.
Options (product call, not ruled here)
- Enumerate
.claude/commands/too — one more scan root in the agent server, each command as a card labelled so a reader can tell the two idioms apart (description:andargument-hint:are already the right shape). Ships in the agent base image, so an instance only gets it after a base-image rebuild — the bug: Workspace composer '/' typeahead lists only part of an agent's skills #2213 / ent#123 release-note trap applies, and the stale-image alert (bug(upgrade): agents stay on the old base image after an upgrade and nothing says which ones — agent-side fixes are silently inert #4483) is the existing mitigation. - Convert the bundled templates to skills — 26 command files across six templates. Narrower, no image change, and it is where the platform's own idiom already points. Does nothing for an operator's own
.claude/commands/. - Say it in the empty state — cheapest: the Own-skills empty text names
.claude/commands/as a thing this surface does not list. Honest, fixes nothing.
(2) and (3) are not exclusive. Note that ent#593 (retire the bundled starters from the Library, seed from the registry) would remove the three visible cases without touching the mechanism — the Steward's 15 commands and every operator-written command stay invisible.
Acceptance criteria
- An agent whose playbooks are in
.claude/commands/is not described by any Trinity surface as having nothing of its own. - Whatever is chosen, the three visible starter templates read truthfully on the Skills tab of a freshly created agent.
- If the scan root changes: the base-image dependency is in the release notes, and an instance on an older image is not silently wrong.
-
template.yaml commands:is either read by something or removed from the bundled templates (it is currently parsed by nothing).
Technical notes
Grounded on abilityai/trinity dev@173e58cc:
docker/base-image/agent_server/routers/skills.py(list_skills,scan_skills_directory)src/backend/services/agent_skills_listing.py(the one proxy)src/frontend/src/components/skills/SkillsTab.vue(ownEmptyText),src/frontend/src/utils/skillCards.js(buildSkillCards— the Own section is not source-gated, so an older image's listing still lands correctly; the empty state really is an empty listing)config/agent-templates/{sage,scout,scribe,demo-analyst,demo-researcher,trinity-system}/.claude/commands/
Related: #2213 (scan scope) · ent#754 (one Skills tab) · ent#584 (described once) · #1655 · #3290 · ent#593.
Activity