Agent skill
git-commit
Complete git commit workflow in a worktree. Includes review, staging, and message generation.
Install this agent skill to your Project
npx add-skill https://github.com/nex-agi/weaver/tree/main/.claude/skills/git-commit
SKILL.md
Git Commit Workflow (Worktree-Aware)
Prerequisites
Verify you're in a worktree (not main clone):
# Should show a worktree path, not the main repo
git rev-parse --show-toplevel
git worktree list
Workflow
Step 1: Analyze Changes
git diff --name-only
git diff --cached --name-only
Determine testing needs:
| File Types Changed | Run Code Review | Run Testing |
|---|---|---|
Code (.py, tests) |
Yes | Yes |
Docs only (.md) |
Yes | Skip |
Config (.yaml, .toml, .github/) |
Yes | Skip |
| Mixed (code + docs/config) | Yes | Yes |
Step 2: Run Review & Tests
Launch code-review and testing as appropriate (in parallel when possible).
Step 3: Address Issues
Fix any problems found by review or testing before proceeding.
Step 4: Stage Changes
git add path/to/changed/files
git diff --staged # Review
Never stage: Build artifacts (dist/, *.egg-info), .env, __pycache__/, coverage files
Step 5: Commit
Format: type(scope): description (72 chars max)
Types: feat, fix, refactor, test, docs, style, chore, perf Scope: Module/component (client, types, cli, http, sampling)
git commit -m "type(scope): description
Detailed explanation if needed.
Fixes #ISSUE_NUMBER"
Good examples:
feat(client): add async export-sampler support
fix(http): handle connection timeout gracefully
test(types): add model input serialization tests
No AI co-author lines.
Step 6: Verify
git show HEAD --name-only
git log -1
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
address-pr-comments
Address GitHub PR review comments. Navigate to the correct worktree, make fixes, push updates.
testing
Run linting and tests for Weaver SDK. Works in any worktree.
fix-issue
Fix a GitHub issue using git worktree for isolation. Fetches issue, creates worktree, plans and implements fix, then creates PR.
weaver-regression-test
Run the full Weaver provisioner regression test suite against the production service. Covers full_ft, LoRA, debug modes, and edge cases.
github-pr
Create a GitHub PR from a worktree branch. Use after committing changes.
code-review
Review code changes against Weaver SDK project standards before committing. Works in any worktree.
Didn't find tool you were looking for?