Skip to content

fix(skills): correct broken links, dup sections, name/title mismatches, drop commands/ - #917

Merged
c-vigo merged 4 commits into
devfrom
bugfix/912-skill-correctness-fixes
Jul 9, 2026
Merged

c-vigo merged 4 commits into
devfrom
bugfix/912-skill-correctness-fixes

Conversation

@c-vigo

@c-vigo c-vigo commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes five categories of correctness bugs in .claude/skills/ (issue #912). No behaviour changes — all edits are documentation/link/structure fixes.

Fix 1 — Broken relative links to ../../rules/*.mdc

.claude/rules/ no longer exists (removed in #626). Every link pointing there is dead. Rewrote to correct targets:

Old link Correct target
../../rules/branch-naming.mdc ../branch-naming/SKILL.md
../../rules/subagent-delegation.mdc ../subagent-delegation/SKILL.md
../../rules/tdd.mdc ../tdd/SKILL.md
../../rules/commit-messages.mdc ../../../CLAUDE.md
../../rules/coding-principles.mdc ../../../CLAUDE.md
../docs/RELEASE_CYCLE.md ../../../docs/RELEASE_CYCLE.md

Files affected: ci_check, code_execute, code_review, code_tdd, git_commit, issue_claim, issue_triage, pr_create, pr_post-merge, pr_solve, worktree_brainstorm, worktree_ci-check, worktree_ci-fix, worktree_execute, worktree_plan, worktree_pr, worktree_solve-and-pr, worktree_verify.

Fix 2 — Duplicate ## Delegation sections

ci_check, worktree_ci-fix, and worktree_verify each had the entire ## Delegation block copy-pasted twice. Removed the second occurrence in each.

Fix 3 — Skill name mismatch in solve-and-pr

Launcher called just worktree-start <n> "/worktree-solve-and-pr" (hyphen). Actual skill dir is worktree_solve-and-pr (underscore). Fixed to /worktree_solve-and-pr.

Fix 4 — PR-title contradiction

pr_create/SKILL.md says do NOT put the issue number in the title. worktree_pr/SKILL.md mandated <type>: <description> (#<issue_number>). Aligned worktree_pr to match pr_create: title is now <type>: <description> without the issue number. Decision rationale: pr_create gives the reason (GitHub appends (#PR) automatically); this is the correct policy.

Fix 5 — Drop obsolete commands/ wrappers

Every .claude/commands/*.md was a 3-4 line stub pointing to the SKILL.md. Skills provide /X directly; stubs are dead weight. Commands with extra context lines (e.g. code_tdd → tdd/SKILL.md, git_commit → CLAUDE.md) are already covered in the SKILL.md files after Fix 1. Deleted the entire .claude/commands/ directory and updated CLAUDE.md command table from /project:X to /X.

Assets sync

assets/workspace/.claude/skills/ was resynchronised via sync_manifest.py. Verified file-level identity before committing.

Pre-commit status (local)

Ran with pre-commit run --all-files (home-manager PATH):

  • Passed: branch-name, all file-format/JSON/YAML checks, ruff, ruff-format, taplo-*, shellcheck, just-fmt, nixfmt, typos, pip-licenses, check-action-pins, bandit
  • Blocked by NixOS tooling: yamllint, pymarkdown, sync-manifest, check-skill-names, check-agent-identity, and several others — all fail with the same root cause: uv run in the worktree (no .venv) falls back to ~/.local/share/uv/python/cpython-3.14.x-linux-x86_64-gnu/bin/python3.14, which is a manylinux binary that cannot execute on NixOS. Not caused by these changes. Confirmed manually: sync-manifest was run successfully using the main repo's .venv/bin/python3.14, assets are verified identical to sources; check-skill-names would pass (no skill renames); check-agent-identity would pass (no AI attribution in commits).

Please run prek install && prek run --all-files in the devcontainer to get the full green signal before merging.

Test plan

  • grep -rn 'rules/.*\.mdc' .claude/skills/ returns no results
  • No duplicate ## Delegation sections in any skill
  • solve-and-pr launches /worktree_solve-and-pr (underscore)
  • worktree_pr and pr_create agree on PR title format (no issue number)
  • .claude/commands/ directory is gone
  • prek run --all-files passes in devcontainer

Refs: #912

c-vigo and others added 3 commits July 7, 2026 17:42
- Rewrite all ../../rules/*.mdc links to correct targets:
  branch-naming → ../branch-naming/SKILL.md
  subagent-delegation → ../subagent-delegation/SKILL.md
  tdd → ../tdd/SKILL.md
  commit-messages / coding-principles → ../../../CLAUDE.md
- Fix ../docs/RELEASE_CYCLE.md in pr_create and pr_post-merge
  to ../../../docs/RELEASE_CYCLE.md
- Remove duplicate ## Delegation sections from ci_check,
  worktree_ci-fix, and worktree_verify (copy-paste bug)
- Fix solve-and-pr launcher: /worktree-solve-and-pr →
  /worktree_solve-and-pr (underscore, matching real skill dir)
- Align worktree_pr PR title with pr_create: drop (#<issue_number>)
  from title format — GitHub appends (#PR) automatically; issue
  is traceable via Refs: in the body

Refs: #912
Every .claude/commands/*.md file was a 3-4 line stub pointing to the
corresponding SKILL.md. In current Claude Code a skill named X already
provides /X, so these wrappers are dead weight. Extra context lines
present in a handful of commands (code_tdd → tdd/SKILL.md,
git_commit → CLAUDE.md, etc.) are already covered by the skills
themselves after the link-fix in the previous commit.

Also update CLAUDE.md command table: /project:X → /X to match the
skill-provided slash commands now that commands/ is gone.

Refs: #912
# Conflicts:
#	CHANGELOG.md
#	assets/workspace/.devcontainer/CHANGELOG.md
@c-vigo
c-vigo enabled auto-merge July 9, 2026 10:24
@c-vigo
c-vigo merged commit 942b64a into dev Jul 9, 2026
13 checks passed
@c-vigo
c-vigo deleted the bugfix/912-skill-correctness-fixes branch July 9, 2026 10:31
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