Skip to content

skills: required-reading gates; remove the ai-docs command and skill#20

Open
Tanq16 wants to merge 2 commits into
mainfrom
feat/skill-required-reading-gates
Open

skills: required-reading gates; remove the ai-docs command and skill#20
Tanq16 wants to merge 2 commits into
mainfrom
feat/skill-required-reading-gates

Conversation

@Tanq16

@Tanq16 Tanq16 commented Jul 22, 2026

Copy link
Copy Markdown
Owner

Two related changes to the shipped skills.

1. Required-reading gates for every skill's references

Every skill that ships reference files now opens — right after When to Use — with a ## Start here — required reading gate, tiered as:

  • Always — the rule-defining reference(s), read in full before acting. Non-empty for every gated skill, so there is always something the agent must read.
  • When <trigger> — heavy templates (html-template.md, highway-template.md, command-templates.md, …), each tagged with the sub-task that requires it; a subagent may read it on delegation.

This moves the enforcement point from an optional ## References table at the foot of each file to a mandatory, tiered gate at the top. review-code and develop get orchestrator variants (their "references" are the domain files / other skills they route to); skills with no reference files are exempt.

Enforcement: new repo-root skills_gate_test.go walks both shipped roots — internal/embedded/default-skills/ and skills/ — and asserts a gate exists whenever a skill has reference files, every references/*.md is named inside the gate block, and no cited ./references/… or ../sibling/references/… path is dead. Verified the guard bites (planted an orphan ref and a dead link — each failed the exact skill; reverted, green).

2. Remove the ai-docs feature entirely

The AI-docs command/skill/viewer wasn't pulling its weight, so it's stripped end to end:

  • claudex ai-docs subcommand (cmd/ai-docs.go + its root.go registration)
  • the embedded ai-docs skill and its Node viewer assets (internal/embedded/default-skills/ai-docs/)
  • the develop Skill Map row pointing at it
  • every README mention (capabilities row, global-plugin bullet, ai-docs command section)

The global plugin now ships the cross-ai skill plus the ClaudeX output style and .lsp.json. History keeps the feature if it's ever wanted back. A synthetic test fixture that happened to be named ai-docs was renamed to nested-skill so no deleted skill is referenced in tests.

gofmt clean, go build ./... and go test ./... pass; grep confirms zero remaining ai-docs references.

🤖 Generated with Claude Code

Tanq16 added 2 commits July 22, 2026 13:40
Every skill that carries reference files now opens with a "Start here —
required reading" gate, tiered into Always (rule-defining refs, read in
full before acting) and When-<trigger> (heavy templates, read on demand or
by a delegated subagent). This makes reading the relevant references the
first instruction the model sees, instead of an optional table at the foot
of the file.

A new repo-root test (skills_gate_test.go) keeps the gates honest across
both shipped roots — the embedded global plugin and the claudex-dev plugin:
it asserts the gate exists when a skill has references, that every
references/*.md is named inside the gate block, and that no cited
./references or ../sibling/references path is dead. Skills with no
reference files (cross-ai, develop) are exempt but still link-checked.
Strips the AI-docs feature end to end: the `claudex ai-docs` subcommand
(cmd/ai-docs.go + its root registration), the embedded ai-docs skill and
its Node viewer assets under internal/embedded/default-skills/ai-docs, the
develop Skill Map row that pointed at it, and every README mention (the
capabilities row, the global-plugin bullet, and the `ai-docs` command
section). The global plugin now ships only the cross-ai skill plus the
ClaudeX output style and .lsp.json. History retains the feature if it is
ever wanted back.

The plugins_test synthetic fixture named "ai-docs" is renamed to
"nested-skill" so no deleted skill is referenced in tests.
@Tanq16 Tanq16 changed the title skills: required-reading gates for every skill's references skills: required-reading gates; remove the ai-docs command and skill Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant