Skip to content

refactor(skills): [#2866] move the agent skills to .claude/skills so Claude Code discovers them - #2886

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

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

Conversation

@josecelano-bot

Copy link
Copy Markdown
Contributor

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 (UDP health check panics when the tracker answers with an invalid response #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). Shorten the agent skill descriptions so they fit Claude Code's skill listing budget #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

josecelano-bot and others added 14 commits November 16, 2026 08:03
Claude Code discovers a project skill only at
.claude/skills/<name>/SKILL.md. Add the regression test for torrust#2866: a
pure rule that reports any other SKILL.md path as misplaced-skill, and
a --skill-layout mode that runs it over the index. It is not wired into
the hook yet: run on the tree before the move, it reports the 53
skills under .github/skills/ and exits 1 (recorded in the issue's
evidence with two mutations it catches and the test-design review).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude Code discovers project skills only at .claude/skills/<name>/SKILL.md.
Move all 71 files from .github/skills/<area>/<name>/ with git mv, one
flat folder per skill, and fix every reference the commit gate needs:

- links inside the moved skills, whose depth changed;
- Markdown links into the skills wherever lychee checks them, including
  historical records (their plain-text paths and frontmatter stay);
- literal paths in live files: AGENTS.md, specs, ADRs, templates, READMEs;
- tooling: the Cargo.toml workspace member, .dockerignore,
  agent-review-report-contract, the include_str! in github-review-threads;
- frontmatter-validator resolves skill-links against .claude/skills/
  only, through the placement rule;
- validate-skill-links.sh walks four folders up to the root, not six;
- five legacy specs whose paths changed are migrated to v1, as the
  validator requires for an edited draft or open spec.

Sweep commands:

  while IFS=$'\t' read n area d; do git mv "$d" ".claude/skills/$n"; done < .tmp/skill-map.tsv
  python3 -I rewrite_skill_paths.py   # recorded in the issue's evidence, T3

then hand edits, listed in the evidence. The placement rule now passes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Keep each of the 53 old .github/skills/**/SKILL.md paths as a stub with
no frontmatter and one link to the moved skill, so links and paths in
historical records still lead somewhere. .github/skills/README.md says
the folder only holds redirects and inventories the 53 original paths.
Added after the move commit so git still records the move as renames.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude Code reads skills only from a flat .claude/skills/<name>/, so the
grouping by area that the old folders gave moves to an index:
.claude/skills/README.md lists the 53 skills under the 15 former areas,
each with a one-line purpose, and notes where the skills used to live.
AGENTS.md, docs/agents/README.md, docs/testing.md and the stub inventory
link to it.

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

--skill-layout now reads the stub inventory .github/skills/README.md
from the index: an inventoried old SKILL.md path is a redirect stub,
not a misplaced skill; an inventoried path without a stub is
missing-redirect-stub, so deleting only a stub fails; any other file
under .github/skills/ is stray-redirect-file.

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

A redirect stub of a skill that was not removed must have no
frontmatter, so no tool reads it as a skill, and exactly one link,
which resolves to .claude/skills/<current name>/SKILL.md, an existing
skill. The current name comes from the stub inventory, so a renamed
skill's stub links to its new name; a removed skill's stub is not
checked. Otherwise invalid-redirect-stub.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… is its folder name

Claude Code lists a skill by its frontmatter name; the stubs and the
index link skills by folder. --skill-layout now reports a skill under
.claude/skills/<folder>/ whose name is different, missing, or
unreadable as skill-name-mismatch.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…s every skill once

.claude/skills/README.md replaces the old area folders as the grouping
of the skills. --skill-layout now reports skill-index-mismatch when its
table rows do not link every skill folder exactly once, or link a skill
that does not exist, and when the index is missing while skills exist.
The rules read a file's text only when the file is in the snapshot.
The validator README lists every --skill-layout finding.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… and in CI

Add frontmatter-validator --skill-layout as a pre-commit hook step and
as a Docs Lint workflow step, which runs on every push and pull
request, so a skill outside .claude/skills/, a deleted stub or skill,
or an index that disagrees with the skill folders fails before merge.
The run-pre-commit-checks skill lists the new step.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A new skill goes to .claude/skills/<name>/, flat, with a row in the
fitting area table of the index .claude/skills/README.md, and needs no
redirect stub; nothing new goes under .github/skills/. The skill now
runs the --skill-layout check before committing.

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

Add ADR 20261116082711, "Store Agent Skills Flat in .claude/skills/":
the flat layout Claude Code requires, the index, the redirect stubs,
the --skill-layout check, and the rejected options (symlinks, plugins,
nested area folders, rewriting historical records). It partly
supersedes ADR 20260420200013, which now says so. The governance ADR's
Skills inventory row names the new source and gains a 2026-11-16 review
record.

The spec's progress log entries for T2 to T7 were written with
estimated times; they now carry the commit times.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
T1 is done as issue torrust#2873, a sub-issue of EPIC torrust#2003 whose spec PR
merged. T9: the final search for old skill paths finds only stubs,
text about the move, out-of-scope agent profiles, and dated records.
linter all, the crate and Python tests, and --skill-layout pass.

Manual scenarios M1 to M5 ran in a fresh clone of the branch: Claude
Code lists the 53 project skills, /create-issue runs, the moved
scripts and tool run, an old link reaches its stub, and drift fails
the validator. The acceptance criteria are reviewed with evidence.

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

The merge of develop brought the torrust#2867 spec and the peer-id-test-helper
draft, which still named fix-bug and create-issue at their old
.github/skills/dev/ paths. Their frontmatter paths and links now name
.claude/skills/<name>/. Recorded audit records keep their old paths,
which the redirect stubs resolve.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@josecelano-bot
josecelano-bot requested a review from a team as a code owner November 16, 2026 15:52
@josecelano josecelano self-assigned this Nov 16, 2026
@josecelano
josecelano requested review from da2ce7 and a balanced review from Copilot November 16, 2026 15:58

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.

Copilot wasn't able to review this pull request because it exceeds the maximum number of lines (20,000). Try reducing the number of changed lines and requesting a review from Copilot again.

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 47691ec383fb8c760414e7a739cc03d1e7fd9122. Recomputed from the bytes at this head, against the merge base 3134dea62; git merge-tree against develop c8b1477ad returns this head's own tree: 47691ec merges develop with no manual change (its tree equals the automatic merge of 7f3e0fd and develop), and the net diff against c8b1477ad is the earlier change unchanged.

Process: open-pull-request, commit-changes, create-issue, create-adr, add-new-skill, implement-workflow and write-unit-test govern it. Closes #2866 is the only closing-keyword match. The one review so far says it could not review the PR and asks for nothing, so no audit record is due.

The change against its claim: 71 files move to flat .claude/skills/<name>/ (71 renames in e3c24d6); the 41 moved skills that differ change only paths and link depth, plus the new text in add-new-skill and run-pre-commit-checks. 53 stubs without frontmatter each link to their skill; the inventory has 53 rows; the index lists the 53 skills once under the 15 former areas; every name is its folder. The --skill-layout rules match the spec, read the git index and fail closed; every rule branch traced has a test that fails without it. The body's counts recompute.

Consistency: 775 relative links and anchors resolve. Files from develop still name moved skills only in history: a closed spec (three frontmatter paths, one link in a folder the link checker skips) and the frontmatter of three review records; each path is a stub whose link reaches an existing skill.

Hygiene: 15 commits (two merges), Conventional subjects with [#2866], bodies match their diffs, author equals committer; each commit ends with one attribution footer, which no rule in the tree forbids. git diff --check flags only seven trailing-space hard breaks carried unchanged from the old skill files. The open-pull-request commit-id check prints PR-branch commit id: 0acae3ab9 (F1).

Findings

  • F1 [Minor] the evidence cites the PR-branch commit 0acae3ab9 four times.
  • F2 [Nit] the new ADR and skills.rs do not point at each other.

Checked, no finding: Cargo.toml member, .dockerignore, include_str!, agent-review-report-contract paths; the hook and Docs Lint steps; the ADR index row and partial-supersession status; the governance ADR row; EPIC rows 21 and 22.

Checks

On the loop's compute node, against the merge base c8b1477ad: the repository's pre-commit gate and lint roster exit 0 at this head (receipt server-gates-kranich-978; markdown 43 s, cspell 36 s, lychee, and the workspace check with every artifact fresh from the earlier gate). The repository-wide frontmatter scan reports 10 errors here against 15 on develop, all pre-existing. Package tests for frontmatter-validator, agent-review-report-contract, github-review-threads and wait-for-pr-review exit 0 at 7f3e0fdfa (receipt server-gates-kranich-974): 357 passed, 0 failed, 0 ignored across 14 test binaries; the later merge of develop changes no Rust file. This PR has no audit record of its own. F1 checked against the bytes at posting: the evidence file names 0acae3ab9 at lines 511, 543, 558 and 654. GitHub checks at this head at posting time: "". At posting, develop is c8b1477ad.

@da2ce7

da2ce7 commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

ACK 47691ec — the 71-file move, 53 stubs, inventory, index and --skill-layout rules recomputed clean at this head, whose merge of develop equals the automatic merge

josecelano-bot and others added 3 commits November 16, 2026 16:24
… the evidence

The T9, V1 and V5 sections named the tested branch head by its commit
id, which a rebase would leave dangling. They now name it by its
Conventional Commit subject, as open-pull-request requires for durable
references.

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

The ADR gains an Affected Code section that links the --skill-layout
rules in frontmatter-validator, and the module doc of skills.rs names
the ADR, as create-adr asks when an ADR governs a specific area of
code.

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

Copy link
Copy Markdown
Member

ACK 47691ec

…t#2886

The audit records da2ce7's review with F1 and F2, both fixed and their
threads resolved, and Copilot's review, which could not review the PR
because the diff exceeds its 20,000-line limit.

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

Copy link
Copy Markdown
Member

ACK 37515d9

@josecelano
josecelano requested a review from da2ce7 November 16, 2026 16:42
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 37515d920965fa1cc132baf7582f6c62ed047c4b. Recomputed from the bytes at this head, against the merge base a388fe7cc; git merge-tree against develop a388fe7cc returns this head's own tree: 37515d9 merges develop with no manual change (its tree equals the automatic merge of 96c1dd8 and develop), and the one moved skill path in what it brings in, the related-artifacts of the new 2883 review record, is a tracked stub that links to process-pr-review.

Process: since the last reviewed head come three fix commits (f2702e6, 16475c0, b19e7f3), the audit record (96c1dd8) and the merge. F1 is fixed: the commit-id check prints nothing. F2 is fixed: the ADR and skills.rs point at each other. related-pr: 2886 is a positive integer, as the validator's profile requires.

Audit record: docs/pr-reviews/pr-2886-review/PR-REVIEW.md follows the template's headings, table and detail fields. Its two rows match both threads: source review, severity bracket, a reply on the row's own thread, resolution subjects on the branch, FIXED and RESOLVED. The bot review that could not run has no row, as process-pr-review asks for a review with no actionable assertion, and is in the log. The dismissal at 16:30:15 and the replies at 16:30:28 and 16:30:30 match the timeline. The validator's own logic, run offline on the captured comments, reports ok: 2 rows, 3 log entries, 0 failures.

Consistency: the live old-path hits are the same list as before, and git diff --check is clean on the new commits.

Hygiene: 20 branch commits. In both new ones the author equals the committer. The audit commit has a Conventional subject with [#2866] and a body that matches it. Each commit ends with one attribution footer, which no rule in the tree forbids. Closes #2866 is still the only closing-keyword match, and the description is unchanged.

Findings: none.

Checked, no finding: the Processing Log names the reviewed head by a merge subject that three branch commits share, but its timestamp and the review's own commit identify it. The record's long lines and unpadded table pass the configured lint (MD013 and MD060 off).

Checks

On the loop's compute node at this head, against the merge base a388fe7cc (receipt server-gates-kranich-985): the repository's lint roster exits 0 (markdown, cspell, lychee); the repository-wide frontmatter scan reports 10 errors here against 15 on develop, all pre-existing. The frontmatter-validator package tests, run at this head in a fresh target directory, exit 0: 222 passed, 0 failed, 0 ignored across 5 test binaries (61 s wall). Two earlier runs in the node's shared target directory failed to compile with unresolved import frontmatter_validator::skills although lib.rs declares pub mod skills at this head; that is a defect of the loop's own build cache, not of this branch, and it is being fixed on the loop's side. GitHub checks at this head at posting time: "Package Coverage (frontmatter-validator): completed/success; Package Coverage (agent-review-report-contract): in_progress/pending; Package Coverage (github-review-threads): completed/success; Package Coverage (torrust-tracker-udp-server): completed/success; Package Coverage (wait-for-pr-review): completed/success; Docker E2E: completed/skipped; Documented Clippy Allows: completed/success; Layer Boundary Bans: completed/success; Shipped Features: completed/success; Unit (stable): in_progress/pending; Unit (nightly): in_progress/pending; Workspace Packaging: completed/success; Test (Docker) (release): queued/pending; copilot-setup-steps: completed/success; Discover Package Coverage: completed/success; Generate Coverage Report: in_progress/pending; Build on macos-latest (nightly): queued/pending; Build on ubuntu-latest (nightly): completed/success; Build on windows-latest (stable): completed/success; Build on ubuntu-latest (stable): completed/success; Build on windows-latest (nightly): completed/success; Build on macos-latest (stable): completed/success; Docs Lint: completed/success". At posting, develop is b009b6425.

@da2ce7

da2ce7 commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

ACK 37515d9 — F1 and F2 fixed, the audit record's two rows recomputed against both threads with the validator logic passing, and the merge of develop equal to the automatic merge

@josecelano

Copy link
Copy Markdown
Member

ACK 37515d9

…-skills

develop archived the torrust#2838 spec to docs/issues/closed/ and pointed its
related artifact at the closed torrust#2850 spec, while this branch had moved
its skill paths to .claude/skills/. The resolution keeps both changes.

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

Copy link
Copy Markdown
Member

ACK e91c859

@josecelano
josecelano requested a review from da2ce7 November 16, 2026 17:13

@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 e91c8591b535fe4717b81c6c12f4da061a9efb8f. Recomputed from the bytes at this head, against the merge base b0fa2abaf; git merge-tree against develop b0fa2abaf returns this head's own tree. e91c859 was resolved by hand: the automatic merge of 37515d9 and develop conflicts in docs/issues/closed/2838-1347-udp-reject-negative-announce-bytes/ISSUE.md, and that file is the only one that differs from it. The resolved file differs from develop's copy only by the branch's three skill-path lines, and from the branch's copy only by develop's archive edits; every related artifact it names exists. The merge message says the same.

What develop brought in names a moved skill path only in history: the related-artifacts of the 2881 and 2884 review records are tracked stubs that link to process-pr-review. The archived 2838 and 2850 specs and the 1347 EPIC carry the branch's rewrites, and the new discussion names no skill path.

Process: no thread or review comment is new; the earlier approval was dismissed by the push and asked for no reply, so no audit row is due. The audit record is unchanged, and the validator's own logic, run offline on the captured comments, reports ok: 2 rows, 3 log entries, 0 failures. F1 and F2 stay fixed; the commit-id check prints nothing.

The change against its claim: the net diff against develop is the earlier change, 272 files, +11165/-9363, with the 2838 and 2850 rewrites at their archived paths.

Hygiene: 21 branch commits. In the merge the author equals the committer, and it ends with one attribution footer, which no rule in the tree forbids. git diff --check is clean on the resolved file, and the description is unchanged. The closing-keyword scan of the folded branch messages now matches closed #2850 in the merge message (F3).

Findings

  • F3 [Minor] the merge message carries the closing keyword closed #2850; #2850 is already closed, so it cannot close anything.

Checked, no finding: the hand resolution, the stubs behind develop's two review records, and the live old-path list, which is unchanged.

Checks

On the loop's compute node at this head, against the merge base b0fa2abaf (receipt server-gates-kranich-991): the repository's gate exits 0. The merge brings only documentation from develop (the merged PRs 2881 and 2884); the frontmatter-validator package tests passed at the previous head in a fresh target directory (222 passed, 0 ignored), and this merge changes no Rust file. F3 checked against the bytes at posting: line 4 of the merge message of e91c8591b reads "related artifact at the closed #2850 spec". GitHub checks at this head at posting time: "". At posting, develop is b0fa2abaf.

@da2ce7

da2ce7 commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

ACK e91c859 — the hand-resolved merge of develop keeps both sides exactly, the audit record still validates, and F1 and F2 stay fixed

@josecelano

Copy link
Copy Markdown
Member

ACK e91c859

@josecelano
josecelano merged commit 9e463cb into torrust:develop Nov 16, 2026
23 of 24 checks passed
josecelano-bot added a commit to josecelano-bot/torrust-tracker that referenced this pull request Nov 16, 2026
GitHub reported the branch as conflicting after torrust#2886 moved the agent
skills to .claude/skills and updated the skill paths in the torrust#2867 spec,
which this branch moves to docs/issues/closed/. Git's rename detection
merges those path updates into the moved spec with no conflict.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
josecelano-bot added a commit to josecelano-bot/torrust-tracker that referenced this pull request Nov 16, 2026
…process-pr-review skill

torrust#2886 moved the skills to .claude/skills and left redirect stubs for
historical records. This audit is still being written, so it names the
live skill path, as the template on develop does.

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

Copy link
Copy Markdown
Contributor Author

Maintainer decision on finding F3 of review 5924308761 (the closing keyword closed #2850 in the message of the hand-resolved merge of develop), recorded on behalf of the maintainer, who decided in chat at about 17:25 UTC on 2026-11-16: merge as is, with no change (NO_ACTION). Rewording the pushed merge commit would need a force push, and #2850 was already closed, so the keyword acts on nothing. The F3 thread was replied to at 17:26:20 UTC and resolved at 17:26:24 UTC; the PR merged at 17:34:52 UTC. The audit docs/pr-reviews/pr-2886-review/PR-REVIEW.md records F3 in the #2866 close-out PR #2892.

josecelano-bot added a commit to josecelano-bot/torrust-tracker that referenced this pull request Nov 16, 2026
… the PR 2886 audit

F3 entered the audit after the merge, so the post-merge rule asks for
a durable approval reference. A PR torrust#2886 comment records the
maintainer's chat decision to merge as is; the Ownership line, F3's
resolution reference and the 17:26 log entry cite it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
josecelano added a commit that referenced this pull request Nov 16, 2026
…nic issue

50ab209 docs(pr-reviews): [#2867] link the PR 2885 audit to the moved process-pr-review skill (josecelano-bot)
356efc0 docs(pr-reviews): [#2867] audit the second da2ce7 review of PR 2885 (josecelano-bot)
9c11ca9 docs(pr-reviews): [#2867] record the Copilot review of PR 2885 as a re-raise of F1 (josecelano-bot)
0e616b1 docs(pr-reviews): [#2867] audit the first da2ce7 review of PR 2885 (josecelano-bot)
f3f3c16 docs(issues): [#2867] leave the reviewer checkpoint open (josecelano-bot)
a70c193 docs(pr-reviews): [#2867] cite the fix commit as the resolution of the PR 2868 follow-ups (josecelano-bot)
b2bccc0 docs(pr-reviews): [#2867] close the PR 2868 follow-up findings after PR 2879 merged (josecelano-bot)
845accc chore(issues): archive closed issue #2867 spec to docs/issues/closed (josecelano-bot)

Pull request description:

  Close-out for #2867 after #2879 merged. Documentation only; no code changes.

  ## Changes

  - Archive the #2867 spec folder from `docs/issues/open/` to `docs/issues/closed/`. The spec now has `status: done`, `related-pr: 2879`, the new `spec-path`, the remaining workflow checkpoints ticked except "Reviewer validated acceptance criteria", and progress-log entries for the merge and this close-out. The reviewer checkpoint stays open: the approving reviews of #2879 validated the criteria, but no reviewer edited the boxes. The evidence file and the PR 2879 audit point at the new path.
  - Close the loop on the two #2868 findings deferred to #2879 (audit rows F7 and F8, da2ce7's F6 and F7 there). Both are now `FIXED`/`RESOLVED`. Their resolution reference is the follow-up's fix commit, `docs(issues): [#2867] record the regression tests, the fix recheck and the deferred PR 2868 findings`, and their Solution names the #2879 merge commit. Their Reply URLs are the closing replies, which carry the merge reference; both threads are resolved, and a GraphQL refresh shows no unresolved thread on #2868. The verification greps say they run at this PR's head, where the spec folder is closed.
  - Add this PR's review audit, `docs/pr-reviews/pr-2885-review/PR-REVIEW.md`: da2ce7's F1 to F4 (all fixed), Copilot's re-raise of F1 (F5, superseded by F1), and da2ce7's F9 (this description, fixed by editing it) and F11 (a push recorded before it happened, fixed in the audit).

  - Merge `develop` after #2886 moved the agent skills to `.claude/skills/`. GitHub reported a conflict on the moved spec; git's rename detection carries #2886's skill-path updates into `docs/issues/closed/2867-.../ISSUE.md` with no conflict. This PR's own audit then links the moved `process-pr-review` skill, as the template does; the older audits keep the old paths, which now lead to redirect stubs.

  The audits' verification greps that name the old `docs/issues/open/...` path record checks made at that time. They are kept on purpose, as the cleanup-completed-issues skill allows for historical records.

  ## History rewrite

  To remove a closing-keyword match from a commit body (review finding F2), the branch was rebuilt on the same base with the archive commit's body reworded, and force-pushed with `--force-with-lease`. Every commit was kept, and the final tree did not change. The review audit maps the two pre-rewrite commit ids to their subjects.

  ## Validation

  - `linter markdown` and `linter cspell` pass. The pre-commit hook passed when each commit was first made and on the reworded archive commit; the three commits replayed after it by `git cherry-pick` keep the trees that passed.
  - `validate-audit-record.py`, run with its GitHub calls sent through the bot account, reports `status ok` with 0 failures on the PR 2868 record and on this PR's record.
  - The `open-pull-request` closing-keyword scan matches nothing in the title, the description or the commit messages.

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

ACKs for top commit:
  da2ce7:
    ACK 50ab209 — the develop merge (tree equal to a clean merge), the moved-skill link and the unchanged close-out, description and audit record (seven threads, validator logic 0 failures) recomputed against 9e463cb
  josecelano:
    ACK 50ab209

Tree-SHA512: c5a57325687150517fe389a4a3de07ca59154d136d1178540b661c414aa03c65133b238fd74d291eb102e74797f32f3244ad1ed0b64d58b5d1fdf479c6297046
josecelano pushed a commit that referenced this pull request Nov 17, 2026
#2003

PR #2886 merged and closed issue #2866. The spec folder moves to
docs/issues/closed/ with status done, its new spec path, the ticked
checkpoints and a progress-log entry, plus the implementation
retrospective. EPIC #2003 row 21 is DONE and points at the archived
spec; the skills ADR and the #2873 spec follow the new path.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
josecelano pushed a commit that referenced this pull request Nov 17, 2026
…2886

The audit adds da2ce7's two later approvals, the two merges of
develop that dismissed the first of them, F3 (a closing keyword in a
merge message, left as is by the maintainer's decision), and the
merge.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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
josecelano pushed a commit that referenced this pull request Nov 17, 2026
…cription rule

T1: at develop 9e463cb, the merge of #2866's PR #2886, /context shows
the Skills category at 9.9k tokens (its 1% cap) with 53 Project rows
summing to 6,980 tokens, the same as the spec measured. All eight M3
prompts load their skill, write-markdown-docs included.
description-measurements.md keeps each description, its length and its
row.

T2: the opt-in --skill-descriptions run fails on write-markdown-docs,
cut at a comment, and on 49 descriptions over 200 characters. The
evidence records the mutations for each clause of the rule and the
test-design review.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
josecelano added a commit that referenced this pull request Nov 17, 2026
…ns to fit Claude Code's listing budget

9cac3a4 docs(pr-reviews): [#2873] name the reply to da2ce7's fifth review of PR #2893 (josecelano-bot)
37a34be docs(pr-reviews): [#2873] address da2ce7's fifth review of PR #2893 (josecelano-bot)
9c14502 docs(pr-reviews): [#2873] name the replies to da2ce7's fourth review of PR #2893 (josecelano-bot)
ab79297 docs(issues): [#2873] address da2ce7's fourth review of PR #2893 (josecelano-bot)
19a127f docs(issues): [#2873] address da2ce7's third review of PR #2893 (josecelano-bot)
c54f16c docs(issues): [#2873] address da2ce7's second review of PR #2893 (josecelano-bot)
3a84c14 fix(frontmatter-validator): [#2873] report a skill description that is only a comment (josecelano-bot)
d3ebe42 docs(issues): [#2873] address da2ce7's first review of PR #2893 (josecelano-bot)
849567e docs(skills): [#2873] word every skill description to the Use when shape (josecelano-bot)
0dc1967 docs(pr-reviews): [#2873] record Copilot's first review of PR #2893 (josecelano-bot)
1618ba0 fix(frontmatter-validator): [#2873] find the description key and its value start as YAML does (josecelano-bot)
37fd816 docs(issues): [#2873] cite the branch commits by subject, not by id (josecelano-bot)
e8ee1e7 docs(issues): [#2873] record the measurements after the shorter skill descriptions (josecelano-bot)
c8f7fce docs(skills): [#2873] state the skill description rules in add-new-skill (josecelano-bot)
ce2d5fe ci(skills): [#2873] check the skill descriptions in the pre-commit hook and Docs Lint (josecelano-bot)
84ee1e0 docs(skills): [#2873] shorten the Using the tracker skill descriptions (josecelano-bot)
9d4951b docs(skills): [#2873] shorten the Testing skill descriptions (josecelano-bot)
62b238b docs(skills): [#2873] shorten the Task reviews skill descriptions (josecelano-bot)
356f199 docs(skills): [#2873] shorten the Rust code quality skill descriptions (josecelano-bot)
4da1c53 docs(skills): [#2873] shorten the Pull request reviews skill descriptions (josecelano-bot)
ebb12ee docs(skills): [#2873] shorten the Planning skill descriptions (josecelano-bot)
809f927 docs(skills): [#2873] shorten the Maintenance skill descriptions (josecelano-bot)
a0e9561 docs(skills): [#2873] shorten the Logging skill descriptions (josecelano-bot)
d62914d docs(skills): [#2873] shorten the GitHub skill descriptions (josecelano-bot)
dc5da6b docs(skills): [#2873] shorten the Git workflow skill descriptions (josecelano-bot)
76fe654 docs(skills): [#2873] shorten the Environment setup skill descriptions (josecelano-bot)
2ef3b83 docs(skills): [#2873] shorten the Debugging skill descriptions (josecelano-bot)
49065e9 docs(skills): [#2873] shorten the CI skill descriptions (josecelano-bot)
a76cf4e docs(skills): [#2873] shorten the Benchmarking skill descriptions (josecelano-bot)
b5d086c docs(skills): [#2873] shorten the Skill authoring skill descriptions (josecelano-bot)
1787ec8 fix(skills): [#2873] quote the write-markdown-docs description so YAML reads all of it (josecelano-bot)
3a1a2d3 docs(issues): [#2873] record the baseline after #2866 and the red description rule (josecelano-bot)
6e4d7e4 feat(frontmatter-validator): [#2873] add the opt-in --skill-descriptions mode (josecelano-bot)
7cd7222 feat(frontmatter-validator): [#2873] report a skill description longer than 200 characters (josecelano-bot)
e3f7264 feat(frontmatter-validator): [#2873] report a skill description that YAML cuts at a comment (josecelano-bot)

Pull request description:

  Closes #2873. Parent EPIC: #2003.

  Claude Code loads every skill's name and description into every session, within a budget of 1% of the context window. After #2866 moved the 53 skills to `.claude/skills/`, they filled that budget on a 1M window, and YAML cut the `write-markdown-docs` description at a `#` comment. This PR shortens every description to 200 characters or less, fixes the cut one, and adds a check that keeps both from coming back.

  ## Changes

  - `frontmatter-validator`: a `--skill-descriptions` mode with two rules. `skill-description-cut-by-comment` reports a plain description holding a space or a tab before `#`, or one that is only a comment (read as null); it finds the key plain or quoted, with white space before the `:`, and the value's style after tags, anchors and a comment on the key's line; `skill-description-too-long` reports one longer than 200 characters, counted on the parsed value. Unit tests and CLI tests; the two skill modes move into a flattened `SkillChecks` struct.
  - `write-markdown-docs`: the description is quoted, so YAML reads all of it (the bug fix, in its own commit).
  - All 53 descriptions rewritten to the spec's rules ("what", then `Use when`, two to four distinguishing trigger words), one commit per area of `.claude/skills/README.md`.
  - The pre-commit hook and the Docs Lint workflow run `--skill-descriptions` (the last description commit; before it the rule was opt-in so no commit failed on it). `run-pre-commit-checks` and the validator README list the step.
  - `add-new-skill`: a Description Rules section; the 200-character limit replaces "max 1024 chars".
  - The governance ADR gets its review-record row; the issue spec, `manual-verification-evidence.md` and `description-measurements.md` hold the evidence.

  ## Results

  Measured with `claude -p "/context"` (Claude Code 2.1.318, `claude-sonnet-5-5`, 1M window) in fresh checkouts of `develop` after #2886 and of this branch:

  | Measurement | Before | After |
  | --- | --- | --- |
  | 53 project skill rows | 6,980 tokens | 3,270 tokens (47%) |
  | Skills category | 9.9k (1.0%, the cap) | 7.9k (0.8%) |
  | Description characters, total / max | 19,489 / 724 | 8,431 / 187 |
  | Skills with a dropped description | 7 (`claude.ai sync`) | 0 |
  | `write-markdown-docs` parsed / row | 123 of 578 chars / ~50 | 179 of 179 chars / ~70 |

  Eight task-like prompts (`write-markdown-docs`, `create-issue`, `process-pr-review`, `run-pre-push-checks`, `commit-changes`, `fix-bug`, `add-rust-dependency`, `write-unit-test`) load the same skill after as before. `write-markdown-docs` already loaded before, so the spec's "loads where it did not" does not apply to this sample. The red run of the rule, its mutations (11, then 6 more for the review fixes) and the test-design review are in the evidence file's T2 section.

  ## Notes for review

  - The spec asked me to stop for maintainer review after the last test increment, before T6. I did not stop: I went on to T3 to T6 in the same session. The test increments are separate commits, so they can still be reviewed on their own.
  - A tab before `#` is cut by `serde_yaml` (the validator's parser) but rejected as an error by PyYAML; the rule reports it either way.
  - Review rounds: Copilot's review led to the reader finding quoted or spaced keys and the value's style after tags, anchors and comments; da2ce7's reviews led to rewording 16 descriptions to the `Use when` shape, code spans in the measurements file, and reporting a comment-only description again. The audit record is `docs/pr-reviews/pr-2893-review/PR-REVIEW.md`.
  - `linter all` exits 0; the `frontmatter-validator` tests pass (257).

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

ACKs for top commit:
  da2ce7:
    ACK a1ac0a9 — the merge of develop leaves the pull request's own change intact apart from the #2866 spec path, and its descriptions, reader, measurement figures and audit record recompute from the bytes at this head
  josecelano:
    ACK a1ac0a9

Tree-SHA512: cfea82a74f3c2aaaacbf4273915bc7e9b831df6820acde468515613d50424b72132b85ba47c2a6a2605b65eacba171d3c5d5ee7b39a518808027e60beb8ae58b

This branch was previously deployed

1 inactive deployment
coverage — e91c8591 Deployed Nov 16, 2026 by josecelano-bot via Generate Coverage Report #3233
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.

Move the agent skills to .claude/skills/ so Claude Code discovers them

4 participants