| name | implement-issue |
| description | Read a GitHub issue, create a branch, implement the solution, and open a PR. Use when given an issue number to implement. |
| argument-hint | ["issue-number"] |
| allowed-tools | Bash(gh *), Bash(git *), Bash(zig *), Bash(cat *), Bash(ls *), Read, Edit, Write, Grep, Glob |
Implement GitHub Issue
Task
Implement issue: $ARGUMENTS
Steps
-
Read the issue
gh issue view $ARGUMENTS --repo gHashTag/trinity
-
Create branch
git checkout -b feat/issue-$ARGUMENTS
-
Plan implementation
- Analyze the issue requirements
- Identify files to create or modify
- Check existing code for patterns to follow
-
Implement
- Write code following project conventions (Zig 0.15,
zig fmt)
- Every public function needs a test
- Use allocators explicitly, no hidden allocations
-
Build and test
cd /Users/playra/trinity-w1 && zig build
cd /Users/playra/trinity-w1 && zig build test
-
Commit
git add -A
git commit -m "feat: <description> (closes #$ARGUMENTS)"
-
Push and create PR
git push -u origin feat/issue-$ARGUMENTS
gh pr create --title "feat: <title>" --body "Closes #$ARGUMENTS\n\n## Changes\n- ...\n\n## Tests\n- zig build test passes"
-
Close issue
gh issue close $ARGUMENTS --repo gHashTag/trinity
Key Paths
- Source:
src/ (core library), src/tri-api/ (API client), src/firebird/ (LLM engine)
- Specs:
specs/tri/*.tri (VIBEE specifications)
- Tests: inline in each
.zig file via test "..." { ... }