with one click
with one click
Read a GitHub issue, summarize it, and create a branch for it
Verify all outputs exist after creating a new component and fix any issues
Create standardized git commits following Terrae's conventions
Generate or update documentation for Terrae components
Systematically fix issues found by /review or reported by the user
Run linting and type checking across the Terrae codebase
| name | pr |
| description | Commit, push, and open a pull request on GitHub |
| allowed-tools | Bash(git *), Bash(gh *) |
Commit changes, push the branch, and open a pull request on GitHub.
Check Current State
git status to see changed filesgit diff --staged and git diff to see all changesgit log --oneline -5 to see recent commitsStage and Commit
git add -A or git add .)type(scope): descriptionCreate or Use Branch
main, create a new branch: git checkout -b <branch-name>type/short-description (e.g., feat/code-comparison, fix/marker-cleanup)Push to Remote
git push -u origin <branch-name>Assign Labels
Add --label flags to gh pr create based on the PR type and scope.
Type labels — pick based on the commit type:
| Commit type | Label |
|---|---|
fix | bug |
feat | enhancement |
docs | documentation |
test | (no type label) |
refactor | (no type label) |
chore | (no type label) |
Component labels — if the scope matches a component label in the repo, add it:
| Scope | Label |
|---|---|
compass | Compass |
interaction | Interaction |
Run gh label list to check available labels if unsure. Multiple labels can be combined:
gh pr create --label "bug" --label "Compass" ...
Open Pull Request
gh pr create to open the PRgh pr create --title "type(scope): description" --label "label" --body "$(cat <<'EOF'
## Type
- [ ] Feature
- [ ] Bug fix
- [ ] Refactor
- [ ] Test
- [ ] Docs
- [ ] Chore
## Summary
- bullet points describing what changed and why
## Bug Details (only for bug fixes)
**What was the bug?**
Describe the incorrect behavior.
**Why did it happen?**
Explain the root cause.
**How was it fixed?**
Describe the solution.
## Test Coverage
If tests were added or updated, link to the file on the branch (permalink):
- [`src/registry/map/__tests__/component.test.tsx`](https://github.com/alamenai/terrae/blob/<branch-name>/src/registry/map/__tests__/component.test.tsx)
EOF
)"
Verify and Report
git status to confirm clean statemain directly — always use a feature branch