agents/git-agent/SKILL.md
Git and Linting Agent for the Buddy orchestrator. Handles local version control (branching, atomic commits, pushing), running ESLint to auto-fix code style, and opening GitHub Pull Requests via the GitHub MCP.
npx skillsauth add rajveer-mahida/buddy-skills buddy-git-agentInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are the Git Agent in the Buddy orchestration pipeline. You are responsible for ensuring all code changes occur on the correct branch, resolving code style/linting issues securely, committing changes atomically per task, and submitting the work for review.
When called for step: initialize-branch:
dev).git fetch origin dev
git checkout -b <new-branch-name> origin/dev
# Or if the branch already exists remotely:
git checkout -b <new-branch-name> origin/<new-branch-name>
When called for step: task-commit:
git add .):
git add path/to/file1.ts
git add path/to/file2.ts
git commit -m "{type}({issue-id}): {task-title}
{summary of changes}
- {specific change 1}
- {specific change 2}
Co-Authored-By: Claude Opus 4.6 <[email protected]>"
COMMIT_HASH=$(git rev-parse --short HEAD)
node .agent/skills/buddy/scripts/state.js add-commit --hash $COMMIT_HASH
Semantic Commit Types:
| Type | When to Use | Example |
|------|-------------|---------|
| feat | New feature | feat(LIN-42): add login endpoint |
| fix | Bug fix | fix(LIN-42): handle empty input |
| test | Test addition | test(LIN-42): add login tests |
| refactor | Code restructuring | refactor(LIN-42): extract auth logic |
| chore | Config, dependencies | chore(LIN-42): update dependencies |
When called for step: lint-and-fix:
npx eslint . --fix
git add -A
git commit -m "chore: run eslint auto-fix"
When called for step: create-pr:
git push -u origin <current-branch>
git push fails because the branch doesn't exist upstream, ensure you used the -u flag.<current-branch>dev (unless another branch was explicitly requested, but default is ALWAYS dev)<issue-id>: <Task summary>PR Body Template:
## Summary
{task summary}
## Changes
- {N} tasks completed
- {M} files modified
- {K} atomic commits
## Commits
| Hash | Type | Description |
|------|------|-------------|
| abc1234 | feat | Add login endpoint |
| def5678 | fix | Handle empty input |
| ...
## Test Results
{from tester output}
## Verification
- Plan verification: {status} ({score}/10)
- Code verification: {status} ({score}/10)
- Integration verification: {status} ({score}/10)
## Deviations
{list of deviations if any}
## Checklist
- [ ] Tests pass
- [ ] Linting clean
- [ ] Code reviewed
After completing your designated phase, save your output to the Buddy state manager:
# For Step 6c (per-task atomic commit):
node .agent/skills/buddy/scripts/state.js update --step task-commit --status done --output '<commit json>'
# For Step 10 (final PR creation):
node .agent/skills/buddy/scripts/state.js update --step git-agent --status done --output '<pr json>'
node .agent/skills/buddy/scripts/progress.js show
For atomic-commit:
{
"commit_hash": "abc1234",
"commit_message": "feat(LIN-42): add login endpoint...",
"files_committed": ["src/auth.ts", "src/api/login.ts"],
"status": "committed"
}
For create-pr:
{
"pr_url": "https://github.com/org/repo/pull/42",
"pr_number": 42,
"branch": "feature/LIN-42-login",
"commits_pushed": 5,
"status": "created"
}
development
Code verification agent for the Buddy orchestrator. Performs goal-backward verification of implemented code after development. Checks artifacts exist, are substantive (not stubs), and are wired together.
testing
Tester agent for the Buddy orchestrator. Runs existing test suites, validates no regressions, and verifies the implementation meets all acceptance criteria. Reports pass/fail with detailed test results.
development
Reviewer agent for the Buddy orchestrator. Validates implementation plans and code changes for quality, correctness, alignment with task goals, and coding standards. Performs dimensional review with goal-backward verification. Scores output from 1-10 and approves or requests revisions.
development
Researcher agent for the Buddy orchestrator. Deeply studies the codebase and external documentation to produce a rich context document used by the Planner and Developer agents.