Skip to content

docs(issues): [#2866] add issue specification for moving the skills to .claude/skills - #2869

Merged
josecelano merged 19 commits into
torrust:developfrom
josecelano-bot:2866-move-skills-to-claude-skills-spec
Nov 16, 2026
Merged

josecelano merged 19 commits into
torrust:developfrom
josecelano-bot:2866-move-skills-to-claude-skills-spec

Conversation

@josecelano-bot

@josecelano-bot josecelano-bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Related to #2866 (sub-issue of EPIC #2003, order 21).

Summary

Spec-only PR for moving the repository's 53 agent skills from .github/skills/<area>/<name>/ to a flat .claude/skills/<name>/, so Claude Code discovers them. It adds the issue specification, its manual-verification evidence and the EPIC #2003 row at order 21. No skill, tool or validator changes yet: implementation starts after this PR merges.

The spec records:

  • Two checks run with Claude Code 2.1.318 before it was written: a category folder between skills/ and the skill folder is not discovered (so the layout must be flat), and the 53 descriptions cost about 7k tokens with /context, which pushes the skill listing over Claude Code's 1% budget. The descriptions are shortened in a follow-up sub-issue.
  • The defect, explained in plain terms and reproduced in a fresh clone of develop at abd7a10ff (M0, recorded in manual-verification-evidence.md V0): no project skill is listed, and /create-issue does not run as a command.
  • The plan, which follows fix-bug: a placement-rule regression task (T2) proven red before the move, then the move and every live path fix (T3), redirect stubs at the old SKILL.md paths checked against an inventory of the 53 original paths (T4), the index .claude/skills/README.md (T5), the remaining validator rules with the test-design review checkpoints (T6), add-new-skill (T7), a new ADR (T8), and the final sweep with the like-for-like recheck (T9).
  • The maintainer's decisions of 2026-11-15: flat layout with an index by area; redirect stubs instead of rewriting about 520 historical records; .github/agents/ profiles left to the custom-agents migration; one implementation PR with staged commits.
  • The reference inventory (663 files outside the folder contain the literal .github/skills), the rule that decides which references are rewritten, and the validator rules after the move.

Files

  • docs/issues/open/2866-2003-move-skills-to-claude-skills/ISSUE.md (new): the specification.
  • docs/issues/open/2866-2003-move-skills-to-claude-skills/manual-verification-evidence.md (new): the M0 reproduction (V0).
  • docs/issues/open/2003-overhaul-guardrails-and-automation/EPIC.md: row 21, its Progress Log line, related artifacts and last-updated time.
  • docs/pr-reviews/pr-2869-review/PR-REVIEW.md (new): the review audit of this PR.

Validation

  • frontmatter-validator on the issue folder and the EPIC: exit 0.
  • linter markdown and linter cspell: pass.
  • The pre-commit hook passed on every commit of the branch.
  • validate-audit-record.py --pr-number 2869: no failure.

🤖 Generated with Claude Code

…kills to .claude/skills

Spec-only change for issue torrust#2866, a sub-issue of EPIC torrust#2003 at order 21:
move the 53 agent skills to a flat .claude/skills/<name>/ so Claude Code
discovers them, with an index by area, redirect stubs at the old paths,
and validator rules that keep both in step.

The spec records the two pre-spec checks (a category folder is not
discovered; the 53 descriptions push the skill listing over Claude
Code's 1% budget) and the maintainer's design decisions of 2026-11-15.
The EPIC table gains the order 21 row.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@josecelano josecelano self-assigned this Nov 15, 2026
@josecelano
josecelano requested review from da2ce7 and a balanced review from Copilot November 15, 2026 20:27

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The plan still omits required bug-verification and test-review checkpoints and leaves gaps in moved-script path handling and missing legacy redirect-stub detection.

4 open issues
What changed in this PR

This spec-only PR plans issue #2866 under EPIC #2003: moving 53 agent skills to a flat .claude/skills/ layout for Claude Code discovery. It does not move skills or change tooling yet.

Changes:

  • Defines migration scope, redirect stubs, reference updates, validator rules, and verification steps.
  • Records discovery and context-budget checks, with description shortening deferred to a follow-up issue.
  • Adds the migration to EPIC #2003 at order 21, before the custom-agents migration.
File Description
docs/​issues/​open/​2866-2003-move-skills-to-claude-skills/​ISSUE.md Adds the migration specification, implementation plan, and acceptance criteria.
docs/​issues/​open/​2003-overhaul-guardrails-and-automation/​EPIC.md Registers issue #2866 and updates related artifacts and timestamp.

Review effort: Balanced

josecelano-bot and others added 6 commits November 15, 2026 20:45
… skill path

Deleting only a stub left the other stubs and the index valid, so the
checks could pass while historical links broke. The stubs README now
inventories the 53 original paths and the validator requires the stub
files and the inventory to match exactly; skills added later are not
inventoried and need no stub. AC5 and M5 cover the stub-only deletion.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…move commit

validate-skill-links.sh finds the repository root by walking six folders
up; after the move its scripts folder is four levels deep, so the
links-only rule for moved files would have left it broken. T2, its
commit point and the risk now allow depth-dependent path changes, the
inventory names the script (a search found no other moved file that
resolves a path by depth), and M3 runs it from the new path.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…o T5

T5 adds validator unit tests, but its commit policy left out the
progressive test-design review the issue template and create-issue
require. T5 now names the write-unit-test skill, a recorded prose-first
Arrange-Act-Assert review after each passing increment and before the
next, one commit per reviewed increment, and a maintainer-review stop
after the last increment before the final verification and the PR.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…scovery defect

The Background describes broken behavior, so the Bug-Fix Process and
Regression Test Strategy sections cannot be "Not applicable". Following
fix-bug, the spec now explains the bug in plain terms, records the
reproduction in a fresh clone of develop at abd7a10 (M0, Reproduced:
no project skill listed, /create-issue not run as a command) in a new
manual-verification-evidence.md, and plans a placement-rule regression
task (new T2) proven red before the move, with the green run and the
like-for-like recheck (M1, M2) after it. The later tasks are renumbered
T3 to T9, and AC10 covers the placement rule.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…enamed or removed

Found while sweeping for the same kind of gap as the missing-stub
finding: the stub rules covered the state right after the move but not
a later rename or removal of an inventoried skill, which would have made
the validator fail with no documented way to keep the stub. Inventory
rows and stubs are never deleted; a renamed skill's stub links to the
new name, and a removed skill's stub says so and its row records it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…t#2869

Copilot's review 5912836984 raised four Minor findings (F2, R1, F1, R2);
all are fixed in their own spec commits, replied to and resolved. The
record notes that the R1 fix renumbered the plan, so the F1 and R2 fixes
name tasks that are now T3 and T6.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@josecelano

Copy link
Copy Markdown
Member

ACK 6c9840b

@josecelano

Copy link
Copy Markdown
Member

ACK 4f3e9aa

da2ce7
da2ce7 previously approved these changes Nov 15, 2026

@da2ce7 da2ce7 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed at 4f3e9aa931947edc047abf2ee5a2e004adb3ac08. Recomputed from the bytes at this head, against the merge base abd7a10ff; git merge-tree against develop abd7a10ff merges cleanly, with no conflict, and its result tree equals this head's tree.

Process: a spec-only PR, governed by create-issue, by fix-bug for the bug sections, by the issue and evidence templates, by open-pull-request for the description, and by process-pr-review for the answered threads. The folder layout, frontmatter, Related to link, -spec branch name and EPIC row follow them.

The change against its claim: the inventory recomputes at abd7a10ff: 71 files, 53 unique skill names, 663 files containing .github/skills (320, 199, 55, 19, 18, 13, 6, 6 and 27), 32 files with 96 link lines that leave their skill folder, 40 paths in the report-contract checker, and the six-level root walk of validate-skill-links.sh. The stub, inventory and validator rules agree with the link checker, which skips only docs/issues/closed/. The description-length row does not recompute (F2).

Review audit: the record added by 4f3e9aa93 has one row per thread of the earlier review, four in all, each with its detail entry, reply on its own thread, resolution subject on this branch and matching severity; every thread is resolved. The validator's own checks, run against the captured review comments with only the commit listing taken from the local branch, report 4 rows, 4 log entries and no failure.

Consistency: every related artifact, skill link, anchor, package name and named path resolves at this head; nothing is renamed; the project dictionary is unchanged.

Hygiene: seven commits, six docs(issues): [#2866] and one docs(pr-reviews): [#2866], author equal to committer, bodies matching their diffs; each carries one attribution footer, which no rule in the tree forbids (the provenance discussion's Outcome is pending). git diff --check is clean, the skill's commit-id check prints nothing, and no closing keyword appears in the title, description or messages.

Findings: F1 to F4 Minor, F5 and F6 Nit; none blocks, and each can be fixed in a later commit of this PR or the implementation PR.

Checked, no finding: stubs after the move keep the renames detectable; the red-then-green placement rule meets the fix-bug sequence; the test-design checkpoints match create-issue; the frontmatter validator accepts directory artifacts.

Checks

On the loop's compute node at this head, against the merge base abd7a10ff (receipt server-gates-kranich-904): the repository's pre-commit gate and lint roster exit 0 (679 s wall, on a node shared with three other gates), and the review-audit validator reports 4 rows, 4 log entries and no failure. The PR changes documentation only, so no package tests apply. The inventory was checked against the bytes at posting: at abd7a10ff, .github/skills holds 71 files, 53 of them SKILL.md, and 663 files outside the folder contain .github/skills, as the spec's line 131 states. GitHub checks at this head at posting time: "Docs Lint: completed/success". At posting, develop is 4c8c88c0b.

@da2ce7

da2ce7 commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

ACK 4f3e9aa — the spec's inventory, paths and plan recompute against abd7a10, and every earlier review thread is answered, resolved and recorded in an audit record whose validator checks pass

josecelano-bot and others added 6 commits November 15, 2026 21:29
…e evidence

The V0 lead-in promised the category table and the whole Skills table,
but the block held two category rows, and the 26-row breakdown rested on
a scratch file outside the issue folder. The block now holds the
category, Memory Files and Skills tables verbatim (the clone's scratch
path shortened), and the text names the grep that shows AGENTS.md is
the only Project row. Two words of the verbatim output are ignored for
the spell checker in this file only.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…how it was measured

The row said 37 of 53 descriptions are 300 characters or more; on the
YAML-parsed description values at abd7a10 the count is 42, a
miscount. The total, mean and maximum (19,489 / 368 / 724) recompute on
the parsed values. The spec now states the method, and that counting
the raw frontmatter text with its quotes and escapes gives about 19,950,
376 and 43 of 53, the figures a reviewer recomputed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ress log

The spec commit added row 21 and moved the EPIC's last-updated time,
but the Progress Log gained no line, while the EPIC template asks for
one per meaningful update and row 20 got one. The log now names the new
sub-issue, when its row was added, and this spec PR.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…rence inventory

At abd7a10 the six .github files that contain the .github/skills
literal are the five agent profiles and .github/agents/README.md, which
is not a profile and so is live. .github/workflows/AGENTS.md and one
profile link the skills through ../skills/dev/ and are not in the
count. The row is relabelled, the count is said to be of the literal,
In Scope names .github/agents/README.md, and the two relative-link files
are listed with the T9 search that covers them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ts migration

The EPIC gives a sub-issue its order when its issue is created, and no
row, draft or recorded decision names the custom-agents migration yet,
so "order 22" named an order the EPIC does not record. The spec now
calls it a planned sub-issue that is not created yet.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…eir descriptions

Found while sweeping the spec's measurements after the description
count did not recompute: the context-cost row said 9 built-in skills
lost their descriptions, but in the /context output of the 53-skill
scratch repository the rows under 20 tokens are 7, and all of them have
the source claude.ai sync, not Built-in. The row now says 7 of the 26
other skills and names their source.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@josecelano-bot

Copy link
Copy Markdown
Contributor Author

Review 5913004050, F4: the PR description is rewritten to match the branch at 88286a7bd. Its Files list names all four files (the spec, manual-verification-evidence.md, the EPIC and the review audit), Validation no longer speaks of "both files" and "the commit", and the Summary covers the M0 reproduction, the T2 placement rule, the stub inventory and the renumbered plan.

…st#2869

da2ce7's review 5913004050 approved the PR with four Minor and two Nit
findings. His F1 and F2 collide with Copilot's IDs and are recorded as
F7 and F8; F3 to F6 keep their IDs. All six are fixed (F4 by rewriting
the PR description), replied to and resolved; F8's sweep corrected one
more measurement row.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
da2ce7
da2ce7 previously approved these changes Nov 16, 2026

@da2ce7 da2ce7 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed at 499e3dfe2b6175a3d6ec212962a40df70dfd2b6f. Recomputed from the bytes at this head, against the merge base abd7a10ff; git merge-tree against develop 4c8c88c0b merges cleanly, with no conflict; develop has changed none of this PR's files, nor .github/skills/, since abd7a10ff.

Process: unchanged: create-issue, fix-bug, the issue and evidence templates, open-pull-request and process-pr-review govern this spec-only PR.

The change against its claim: the six commits since the last posted review fix its six findings. F1: the V0 tables are verbatim, 26 Skills rows summing to the 4.6k category row. F2: the parsed counts recompute exactly (19,489, mean 367.7, max 724, 42 of 53). F3, F5 and F6 are fixed as described. F4 is fixed in the description. 499e3dfe2 adds only audit rows.

Review audit: ten rows, one for each thread, each with a detail entry, a reply on its own thread, a resolution and the source severity. The colliding reviewer IDs F1 and F2 are recorded as F7 and F8, as step 3 asks. The record's own verification greps reproduce. The validator's checks pass offline: 10 rows, 7 log entries, no failure. All ten threads are resolved.

Consistency: the new paragraphs and rows name only paths that exist; the file-local spell-check ignore follows the form other evidence files use.

Hygiene: author equal to committer on all seven new commits; each carries one attribution footer, which no rule in the tree forbids. git diff --check is clean, and no closing keyword appears in the title, description or messages. The skill's commit-id check prints one id, 4f3e9aa93, from the record (F8).

Findings: F7 and F8 Minor; none blocks. Their IDs collide with the record's F7 and F8, so step 3's next free IDs apply.

Checked, no finding: the EPIC log line is in order; the evidence percentages agree with a 1M window; the record's Processing Log times match the push, the replies and the commits.

Checks

On the loop's compute node at this head, against the merge base abd7a10ff (receipt server-gates-kranich-912): the repository's pre-commit gate and lint roster exit 0 (118 s wall), and the review-audit validator reports 10 rows, 7 log entries and no failure. The PR changes documentation only, so no package tests apply. F8 checked against the bytes at posting: line 199 of docs/pr-reviews/pr-2869-review/PR-REVIEW.md names the PR-branch commit 4f3e9aa93. GitHub checks at this head at posting time: "". At posting, develop is 4c8c88c0b.

@da2ce7

da2ce7 commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

ACK 499e3df — the six findings of the last posted review are fixed and recorded at this head, every review thread is answered and resolved, and the spec's figures recompute against abd7a10

josecelano-bot and others added 2 commits November 16, 2026 06:05
… the count gap

The gap between the raw and parsed description counts comes almost
entirely from the write-markdown-docs description, which YAML cuts at
the " #NUMBER" comment marker (123 of 578 characters kept), not from
quotes and escapes. State that and hand the fix to T1's follow-up issue.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…and log the dismissal

The Processing Log named the PR-branch commit 4f3e9aa by id, which a
rebase would orphan; name it by its subject instead. Record that the
push of the fixes dismissed review 5913004050, which the record still
called APPROVED.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…t#2869

Add F9 and F10 from da2ce7's review 5915663318, their details with
reply URLs, and the processing log entries for the review, the push,
the replies and the resolutions.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
da2ce7
da2ce7 previously approved these changes Nov 16, 2026

@da2ce7 da2ce7 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed at 1b8448929010df7338f283359492f5dd540d7a80. Recomputed from the bytes at this head, against the merge base abd7a10ff; git merge-tree against develop 4c8c88c0b merges cleanly, with no conflict; develop has changed none of this PR's files, nor .github/skills/, since abd7a10ff.

Process: unchanged: create-issue, fix-bug, open-pull-request and process-pr-review govern this spec-only PR.

The change against its claim: since the last posted review, 6d135231c names the cause of the count gap. The quotes add 6 characters, and the write-markdown-docs description, cut at a # after a space, keeps 123 of 578; T1 owns the fix. 35e23e1e3 cites the reviewed head by subject and logs the first dismissal. 1b8448929 adds rows F9 and F10 for the last review, keeping its IDs F7 and F8 as reviewer IDs.

Review audit: twelve threads, twelve rows, each with a detail entry, a reply on its own thread, a resolution and the source severity; all twelve are resolved. The validator's checks pass offline: 12 rows, 9 log entries, no failure. The Processing Log times match the commits, the push and the replies.

Consistency: the new spec paragraph and T1 note name only what exists; no new path or link.

Hygiene: author equal to committer on the three new commits; each carries one attribution footer, which no rule in the tree forbids. git diff --check is clean, the skill's commit-id check prints nothing, and no closing keyword appears in the title, description or messages.

Findings: F9 Minor; none blocks. Its ID collides with the record's F9, so step 3's next free ID applies.

Checked, no finding: the description is unchanged and still lists all four files; the record's per-file verification for the cut description reproduces.

Checks

On the loop's compute node at this head, against the merge base abd7a10ff (receipt server-gates-kranich-916): the repository's pre-commit gate and lint roster exit 0 (238 s wall), and the review-audit validator reports 12 rows, 9 log entries and no failure. The PR changes documentation only, so no package tests apply. The record was checked against the bytes at posting: at this head docs/pr-reviews/pr-2869-review/PR-REVIEW.md names review 5915663318 four times, which it did not at 35e23e1e3. GitHub checks at this head at posting time: "". At posting, develop is 4c8c88c0b.

@da2ce7

da2ce7 commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

ACK 1b84489 — the findings of the last two posted reviews are fixed and recorded at this head, all twelve review threads are answered, recorded and resolved, and the spec's figures recompute against abd7a10

The push of the F9 and F10 fixes dismissed review 5915663318 at
06:09:20 UTC, but the record still called it APPROVED, left the event
out of the 06:09 log entry, and F10's verification said the timeline
held one review_dismissed event instead of two.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…st#2869

Add F11 from da2ce7's review 5915860000, its detail with the reply URL,
and the log entries for the review, the push that dismissed it, the
reply and the resolution.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@da2ce7 da2ce7 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed at dd4c66305b8110eb01d841138b6f4c30096ad2c7. Recomputed from the bytes at this head, against the merge base abd7a10ff; git merge-tree against develop 4c8c88c0b merges cleanly, with no conflict; develop has changed none of this PR's files, nor .github/skills/, since abd7a10ff.

Process: unchanged: process-pr-review and open-pull-request govern the record; the spec, evidence and EPIC have not moved since the last posted review.

The change against its claim: 1825e4b73 gives the dismissal of review 5915663318 at 06:09:20 UTC in its paragraph, its log entry and F10's verification, which fixes the last posted F9. dd4c66305 records that review as F11, keeping its ID F9 as the reviewer ID. It adds the detail entry with the reply URL and the resolution subject, a paragraph giving the review's dismissal at 06:32:20 UTC, and log entries for the review, the push that dismissed it, the reply and the resolution, all matching the timeline.

Review audit: thirteen threads, thirteen rows, each with a detail entry, a reply on its own thread, a resolution and the source severity; all thirteen are resolved, and every review is named with its state. The validator's checks pass offline: 13 rows, 11 log entries, no failure.

Hygiene: author equal to committer on both commits; each carries one attribution footer, which no rule in the tree forbids. git diff --check is clean, the skill's commit-id check prints nothing, and no closing keyword appears in the title, description or messages.

Findings: none.

Checked, no finding: the three dismissal times match the timeline; each Processing Log entry cites the reviewed head by subject; the description is unchanged and lists all four files.

Checks

On the loop's compute node at this head, against the merge base abd7a10ff (receipt server-gates-kranich-918): the repository's pre-commit gate and lint roster exit 0 (153 s wall), and the review-audit validator reports 13 rows, 11 log entries and no failure. The PR changes documentation only, so no package tests apply. The record was checked against the bytes at posting: at this head docs/pr-reviews/pr-2869-review/PR-REVIEW.md names review 5915860000 six times, which it did not at 1825e4b73. GitHub checks at this head at posting time: "". At posting, develop is 4c8c88c0b.

@da2ce7

da2ce7 commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

ACK dd4c663 — every finding of the posted reviews is fixed and recorded at this head, all thirteen review threads are answered, recorded and resolved, and the spec's figures recompute against abd7a10

@josecelano

Copy link
Copy Markdown
Member

ACK dd4c663

@josecelano
josecelano merged commit 4342dd6 into torrust:develop Nov 16, 2026
1 check passed
josecelano added a commit that referenced this pull request Nov 16, 2026
…de/skills so Claude Code discovers them

96c1dd8 docs(pr-reviews): [#2866] record the first review of PR #2886 (josecelano-bot)
b19e7f3 docs(issues): [#2866] link the implementation PR in the spec (josecelano-bot)
16475c0 docs(adrs): [#2866] cross-link the skills ADR and the skill layout rules (josecelano-bot)
f2702e6 docs(issues): [#2866] cite the tested commit by its subject in the evidence (josecelano-bot)
7f3e0fd docs(issues): [#2866] point two specs from develop at the moved skills (josecelano-bot)
cb1cd7b docs(issues): [#2866] record the final sweep and verification (josecelano-bot)
0acae3a docs(adrs): [#2866] record the move of the skills to .claude/skills (josecelano-bot)
d0ede69 docs(skills): [#2866] tell add-new-skill where a new skill goes (josecelano-bot)
d1f522f ci(skills): [#2866] run the skill layout check on every commit and in CI (josecelano-bot)
a3c8f83 feat(frontmatter-validator): [#2866] check that the index lists every skill once (josecelano-bot)
e1f75cb feat(frontmatter-validator): [#2866] check that a skill's name is its folder name (josecelano-bot)
b9012b1 feat(frontmatter-validator): [#2866] check the redirect stub contents (josecelano-bot)
52ab186 feat(frontmatter-validator): [#2866] check the redirect stub inventory (josecelano-bot)
f2cb36b docs(skills): [#2866] add the skills index (josecelano-bot)
57da804 docs(skills): [#2866] add redirect stubs at the old skill paths (josecelano-bot)
e3c24d6 refactor(skills): [#2866] move the skills to .claude/skills (josecelano-bot)
94f730e feat(frontmatter-validator): [#2866] add the skill placement rule (josecelano-bot)

Pull request description:

  Closes #2866 (sub-issue of EPIC #2003, order 21). Follow-up: #2873 shortens the skill descriptions.

  ## Summary

  Moves the repository's 53 agent skills from `.github/skills/dev/<area>/<name>/` to a flat `.claude/skills/<name>/`, the only place Claude Code discovers project skills. It follows the spec merged in #2869 (`docs/issues/open/2866-2003-move-skills-to-claude-skills/ISSUE.md`).

  Before: in a fresh clone of `develop`, `/context` listed no project skill and `/create-issue` was not a command (evidence V0). After: in a fresh clone of this branch, `/context` lists 53 `Project` skills, one per folder under `.claude/skills/`, and `/create-issue` runs (V1, V2).

  ## Changes, one commit per task

  - **T2, the placement rule:** `frontmatter-validator --skill-layout` reports a `SKILL.md` outside `.claude/skills/<name>/`. It failed on the tree before the move (53 `misplaced-skill`, exit 1).
  - **T3, the move:** `git mv` of the 71 files (Git shows 71 renames; `git log --follow` reaches the history before the move), and every live reference: relative links in the skills, depth-dependent script paths, tooling paths (`Cargo.toml`, `.dockerignore`, `include_str!`), `AGENTS.md`, docs, and open specs. Five edited legacy specs were migrated to the v1 frontmatter, because the commit gate rejects an edited legacy spec.
  - **T4, redirect stubs:** each of the 53 old `SKILL.md` paths holds a stub that links to the moved skill, so about 520 historical records (closed specs, review audits) stay navigable without being rewritten. `.github/skills/README.md` inventories the 53 paths.
  - **T5, the index:** `.claude/skills/README.md` lists the skills under the 15 former areas.
  - **T6, the other rules:** `--skill-layout` also checks that stubs match their inventory and lead to existing skills, that each skill's `name` is its folder name, and that the index lists every skill once. Four reviewed and mutation-tested increments. The mode runs in the pre-commit hook and in the Docs Lint workflow.
  - **T7:** `add-new-skill` puts a new skill at `.claude/skills/<name>/` with an index row and no stub.
  - **T8:** new ADR `20261116082711` (store agent skills flat in `.claude/skills/`); ADR `20260420200013` is marked partly superseded; the governance ADR's Skills row and a 2026-11-16 review record.
  - **T9:** final sweep, checks, manual scenarios M1 to M5, acceptance criteria. After a merge of `develop`, two new live specs (#2867 and the `peer-id-test-helper` draft) were pointed at the moved skills.

  ## Decisions and limits

  - `.github/agents/*.agent.md` keep their old paths: they are out of scope until the custom-agents migration; the stubs resolve them.
  - `linter lychee` (`torrust-linting` 0.2.0) checks `**/*.md` and `.github/**/*.md`, so links inside `.claude/skills/` are no longer link-checked. A one-off check of the 115 relative links in `.claude/skills/` and `.github/` found none broken. Closing the gap needs a change in `torrust-linting`; it is recorded in the evidence and the ADR.
  - The 53 descriptions now reach Claude Code's 1% listing budget (`/context` Skills: 9.9k tokens). #2873 shortens them.

  ## Validation

  - `linter all`: pass.
  - `cargo test` for `frontmatter-validator`, `agent-review-report-contract`, `github-review-threads` and `wait-for-pr-review`: pass.
  - `python3 -m unittest discover -s .claude/skills/process-pr-review/scripts`: pass.
  - `frontmatter-validator --skill-layout`: no finding.
  - Pre-commit hook on every commit and pre-push checks on the push: pass.
  - Manual scenarios M1 to M5 in `manual-verification-evidence.md` V1 to V5: discovery, a skill run by name, the moved scripts and tool, an old link reaching its stub, and the validator failing on drift.

  🤖 Generated with [Claude Code](https://claude.com/claude-code)

ACKs for top commit:
  josecelano:
    ACK e91c859
  da2ce7:
    ACK e91c859 — the hand-resolved merge of `develop` keeps both sides exactly, the audit record still validates, and F1 and F2 stay fixed

Tree-SHA512: e30cec922083d3225ed9fcd59b264b927e6d36ffd41102fdd163fcb2ea89abbdf11251e8b2fae45e631d01229c09d3a71630397497fd12e8302655e07a1ce21a
josecelano added a commit that referenced this pull request Nov 17, 2026
…it DONE in EPIC #2003

6f59500 docs(pr-reviews): [#2866] record the first review round of PR #2892 (josecelano-bot)
575c391 docs(pr-reviews): [#2866] record F3 of the PR 2886 audit as superseded (josecelano-bot)
059b590 docs(issues): [#2866] note that not every moved skill was under dev/ (josecelano-bot)
3b360ff docs(issues): [#2866] stamp the evidence frontmatter edit of the archive (josecelano-bot)
9a9d92d docs(issues): [#2866] say which merge push dismissed an approval (josecelano-bot)
6f4f653 docs(pr-reviews): [#2866] cite the maintainer's F3 decision in the PR 2886 audit (josecelano-bot)
781a661 docs(pr-reviews): [#2866] record the last reviews and the merge of PR #2886 (josecelano-bot)
baca43b chore(issues): [#2866] archive the closed spec and mark it DONE in EPIC #2003 (josecelano-bot)

Pull request description:

  Related to #2866 (closed by #2886; sub-issue of EPIC #2003, order 21).

  ## Summary

  Close-out of #2866 after its implementation PR #2886 merged:

  - Archives `docs/issues/open/2866-2003-move-skills-to-claude-skills/` to `docs/issues/closed/` with `status: done`, the new `spec-path`, the ticked checkpoints and a progress-log entry; the evidence file's frontmatter follows the new path.
  - Adds `implementation-retrospective.md`, which the spec requires.
  - Marks EPIC #2003 row 21 DONE, points it at the archived spec, and logs the change. A merge of `develop` keeps #2887's Issue Body Pointer changes to the same file.
  - Updates the live references to the old spec path: the skills ADR and the #2873 spec. The PR #2869 audit keeps the path it recorded.
  - Completes the PR #2886 audit: da2ce7's two later approvals, the merges of `develop` that dismissed one of them, finding F3 (a closing keyword in a merge message, left as is: `NO_ACTION`/`SUPERSEDED`), the maintainer's decision recorded in a [PR #2886 comment](#2886 (comment)), and the merge.
  - Adds this PR's own audit, `docs/pr-reviews/pr-2892-review/PR-REVIEW.md`, for the round 1 findings F1 to F5, all fixed.

  ## Files

  - `docs/issues/closed/2866-2003-move-skills-to-claude-skills/` (moved): `ISSUE.md`, `manual-verification-evidence.md`, and the new `implementation-retrospective.md`.
  - `docs/issues/open/2003-overhaul-guardrails-and-automation/EPIC.md`: row 21, its frontmatter path, last-updated time and Progress Log.
  - `docs/adrs/20261116082711_store_agent_skills_flat_in_claude_skills.md` and `docs/issues/open/2873-2003-shorten-skill-descriptions/ISSUE.md`: the archived spec path.
  - `docs/pr-reviews/pr-2886-review/PR-REVIEW.md` and `docs/pr-reviews/pr-2892-review/PR-REVIEW.md` (new).

  ## Validation

  - Issue #2866 is `CLOSED` on GitHub.
  - `validate-audit-record.py`: ok for PR 2886 (3 rows, 9 log entries) and PR 2892 (5 rows, 6 log entries).
  - No live reference to `docs/issues/open/2866-2003-move-skills-to-claude-skills` remains outside the PR #2869 audit and the spec's own history note.
  - The pre-commit hook passed on all eight commits and the merge, and the pre-push checks passed on each push. Two pushes were first rejected by tests unrelated to this documentation-only change, which passed on retry: `shipped-features-check` and the `wait-for-pr-review` SIGTERM test.

  🤖 Generated with [Claude Code](https://claude.com/claude-code)

ACKs for top commit:
  josecelano:
    ACK 6f59500
  da2ce7:
    ACK 6f59500 — the four round 1 fixes, the PR 2886 audit's approval reference and F3 state, and this PR's audit record recomputed at this head, with no blocking finding

Tree-SHA512: a6cef2723fc823b6e79ea26fa5f6884d7b7c9696a5f02cea4f4f9ef9318624ae77fecaade3a37c66c9d2717c4f6b28d9195a78d86a3abd33a2ee0fa36a01a1c6
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.

4 participants