Add /gc and /pr skills for commit and PR creation#38
Merged
Jason-Adam merged 2 commits intomainfrom Mar 29, 2026
Merged
Conversation
Implements two new skills ported from crsdigital-skills: - /gc: autonomous git commit with auto-branching from main, atomic commits, and no confirmation prompts - /pr: PR creation that respects existing repo templates and falls back to a slim inline default (no template file creation) Updates router with Tier 0 patterns, Tier 2 keywords, model mapping, and skill qualification. Adds 8 new router tests (61 total, all pass). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
Adds two new Autodidact skills (/gc for autonomous git commits and /pr for PR creation) and wires them into the router, installer, command entrypoints, tests, and docs so they can be invoked deterministically and installed globally.
Changes:
- Added new skills and user-facing commands:
gc(commit creation) andcreate-pr(PR creation viagh) - Updated
src/router.pyto route Tier 0 patterns and Tier 2 keyword heuristics to the new skills (plus model mapping and qualification) - Extended installation lists and added router tests covering the new routes
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
skills/gc/skill.md |
New 5-section skill defining autonomous commit workflow with branch safety and atomic commits |
skills/create-pr/skill.md |
New 5-section skill defining PR creation workflow, including PR template discovery and gh pr create usage |
commands/gc.md |
New /gc entrypoint that delegates to autodidact-gc |
commands/pr.md |
New /pr entrypoint that delegates to autodidact-create-pr |
src/router.py |
Adds Tier 0 patterns + Tier 2 keywords and includes both skills in autodidact qualification + model map |
install.py |
Installs the new skill directories and command files (gc.md, pr.md) |
tests/test_router.py |
Adds Tier 0 and Tier 2 routing tests for gc and create-pr |
CLAUDE.md |
Updates documented skill/command counts to reflect the new additions |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Remove bare "pr" keyword (weight 0.5) from create-pr — too broad, causes false-positive routing on informational queries. Replace with "submit pr" which requires clear intent. - Tighten Tier 0 regex from create.?pr to create[-\s]?pr to prevent matching createXpr. - Detect default branch dynamically in create-pr skill instead of hardcoding "main" — uses git symbolic-ref with main fallback. - Auto-commit uncommitted changes in create-pr instead of asking for confirmation — matches /gc's autonomous contract. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
Summary
Adds two new autodidact skills ported from crsdigital-skills, with modifications to fit autodidact's 5-section skill format and avoid naming collisions with Claude's built-in
/commitcommand.Changes
skills/gc/skill.md+commands/gc.md: Autonomous git commit skill — auto-branches from main, groups changes into atomic commits, imperative mood messages, never asks for confirmationskills/create-pr/skill.md+commands/pr.md: PR creation skill — respects existing repo PR templates (checks multiple locations), falls back to a slim inline default without creating template files in the reposrc/router.py: Added Tier 0 patterns, Tier 2 keywords, model mapping (sonnet), and_AUTODIDACT_SKILLSentries for both new skillsinstall.py: Addedgcandcreate-prtoSKILL_DIRS,gc.mdandpr.mdtoCOMMAND_FILEStests/test_router.py: 8 new tests covering pattern matching and keyword routing (61 total, all pass)CLAUDE.md: Updated skill/command counts (12→14 skills, 15→17 commands)Test Plan
uv run python3 -m pytest tests/test_router.py -v— 61 tests pass./installand verify/gcand/prcommands appear in Claude Code🤖 Generated with Claude Code