Skip to content

feat: add capability-matrix maintenance skill - #73

Merged
grdsdev merged 2 commits into
mainfrom
guilherme/sdk-994-llm-skill-for-maintaining-the-capability-matrix
Aug 7, 2026
Merged

feat: add capability-matrix maintenance skill#73
grdsdev merged 2 commits into
mainfrom
guilherme/sdk-994-llm-skill-for-maintaining-the-capability-matrix

Conversation

@grdsdev

@grdsdev grdsdev commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Adds a repo-local Claude Code skill at .claude/skills/capability-matrix/SKILL.md that helps contributors keep capabilities/*.yaml and specs/ internally consistent: semantic duplicate detection, naming-convention drift within a group, grouping fit, spec-file suggestions, and platform-scope notes. It's advisory only — always defers to npm run validate for anything mechanical (schema, exact duplicate IDs, orphaned specs).
  • Narrows the repo-wide .claude/ gitignore rule (.claude/* + !.claude/skills/) so committed skills are tracked while session/worktree state stays ignored.
  • Supersedes the original CI-bot / PR-review-comment scope in SDK-994 — that issue's description has been rewritten to reflect this direction (a local skill, not a GitHub Actions step).

Ran the skill as a full audit against the current matrix; findings are tracked separately in SDK-1439 since they're judgment calls for area owners, not part of this PR.

Test plan

  • npm run validate passes (mechanical checks unaffected)
  • git check-ignore .claude/skills/capability-matrix/SKILL.md confirms the file is tracked, other .claude/ state stays ignored
  • Ran the skill end-to-end against capabilities/*.yaml as a manual audit to confirm the instructions produce sensible, non-filler output

Adds a repo-local Claude Code skill (.claude/skills/capability-matrix/)
that helps contributors keep capabilities/*.yaml and specs/ internally
consistent: semantic duplicate detection, naming-convention drift within
a group, grouping fit, spec-file suggestions, and platform-scope notes.
It's advisory only and defers to `npm run validate` for anything
mechanical.

Carves out .claude/skills/ from the repo-wide .claude/ gitignore rule so
committed skills are tracked while session/worktree state stays ignored.

Supersedes the CI-bot / PR-review-comment scope in SDK-994.
@grdsdev
grdsdev requested a review from a team as a code owner August 6, 2026 22:59
@coderabbitai

coderabbitai Bot commented Aug 6, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 6480c1f7-3130-43ff-8ace-fad3d0e84e6f

📥 Commits

Reviewing files that changed from the base of the PR and between 88ba848 and 0d68d02.

📒 Files selected for processing (2)
  • .claude/skills/capability-matrix/SKILL.md
  • .github/workflows/validate-capabilities.yml
🚧 Files skipped from review as they are similar to previous changes (1)
  • .claude/skills/capability-matrix/SKILL.md

📝 Walkthrough

Summary by CodeRabbit

  • Documentation
    • Added guidance for maintaining capability definitions, including validation, consistency checks, duplicate detection, and platform-specific behavior.
  • Chores
    • Updated repository ignore rules so skill documentation can be committed while other .claude contents remain excluded.
    • Expanded automated capability validation to run when specification files are changed.

Walkthrough

The change adds the capability-matrix skill documentation. The skill defines workflows for validating capability YAML and specification files, checking duplicates, enforcing naming and grouping consistency, assessing specification needs, documenting platform-specific behavior, and reporting findings by priority. The .gitignore rules allow .claude/skills/ to remain tracked, and the capability validation workflow now runs for pull requests that modify specs/**.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.claude/skills/capability-matrix/SKILL.md:
- Around line 20-32: Update the capability-matrix validation workflow trigger so
pull requests modifying specs/** also run the validator job. Add specs/** to the
paths in validate-capabilities.yml, ensuring spec-only changes cannot bypass the
mandatory validation check.
- Around line 29-31: Update the capability-matrix path guidance so spec
directories use the feature ID namespace: place an ID such as auth.mfa.challenge
under auth/mfa/, regardless of the optional group value. Rename the path
placeholders to <group_namespace> and <method_stem>, and preserve the existing
validation requirements.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: ff30d5a6-1a54-440f-ab3f-8eaaa0d7da8b

📥 Commits

Reviewing files that changed from the base of the PR and between fabb9a7 and 88ba848.

📒 Files selected for processing (2)
  • .claude/skills/capability-matrix/SKILL.md
  • .gitignore

Comment thread .claude/skills/capability-matrix/SKILL.md Outdated
Comment thread .claude/skills/capability-matrix/SKILL.md Outdated
Two review findings on the capability-matrix skill, both still valid:

- validate-capabilities.yml's PR trigger didn't include specs/**, so a
  spec-only change (e.g. a typo'd path that orphans a spec) could merge
  without ever running the validator that catches exactly that.
- SKILL.md described spec paths as specs/<area>/<group>/<method>.md,
  implying the current `group` field. The directory is actually derived
  from the feature id's own segments (<group_namespace>/<method_stem>
  per the schema), which can now diverge from `group` since SDK-1439
  regrouped several features without renaming their ids. Reworded to
  match the schema's own terminology and call out the divergence.
@grdsdev
grdsdev requested a review from a team as a code owner August 7, 2026 08:11
@grdsdev
grdsdev merged commit 070e2c9 into main Aug 7, 2026
5 checks passed
@grdsdev
grdsdev deleted the guilherme/sdk-994-llm-skill-for-maintaining-the-capability-matrix branch August 7, 2026 08:17
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.

2 participants