Repository navigation
feat(agent): add pr_solve skill and skill naming enforcement - #142
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add the
pr_solveskill — a single entry point that diagnoses all PR failures (CI, review feedback, merge conflicts), presents a structured diagnosis, plans fixes with user approval, and executes them with TDD discipline.Also introduces a pre-commit hook and BATS test suite to enforce the new underscore-based skill directory naming convention, and expands the TDD scenario checklist with three new categories.
Closes #133
Type of Change
feat-- New featuretest-- Adding or updating testsdocs-- Documentation onlyChanges Made
pr_solve skill
.cursor/skills/pr_solve/SKILL.md— 6-step workflow: identify PR, gather problems (CI/reviews/merge state), present diagnosis, plan fixes, execute with TDD, verify via ci_checkCLAUDE.mdcommand tablesync_manifest.pySkill naming enforcement
scripts/check-skill-names.sh— validates skill directory names match[a-z0-9][a-z0-9_-]*check-skill-namesin.pre-commit-config.yaml— triggers on changes under.cursor/skills/tests/bats/skill-naming.bats— 12 BATS tests covering valid names, invalid names (colons, dots, uppercase, spaces), multiple violations, empty dirs, real repo validation, and a canary test that injects a bad name into the real.cursor/skills/to prove the guard catches itTDD checklist expansion
.cursor/rules/tdd.mdc— added canary, idempotency, and concurrency to the test scenario checklistChangelog Entry
Added
check-skill-namesenforces[a-z0-9][a-z0-9_-]*naming for skill directoriesTesting
just test-bats)check-skill-namespasses on real repoManual Testing Details
npx bats tests/bats/skill-naming.bats— 12/12 passscripts/check-skill-names.sh .cursor/skills— exits 0bad:canarydir, checker rejects it, dir is cleaned upChecklist
CHANGELOG.mdin the[Unreleased]section (and pasted the entry above)Refs: #133