install
source · Clone the upstream repo
git clone https://github.com/alamenai/terrae
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/alamenai/terrae "$T" && mkdir -p ~/.claude/skills && cp -r "$T/.claude/skills/pr" ~/.claude/skills/alamenai-terrae-pr && rm -rf "$T"
manifest:
.claude/skills/pr/SKILL.mdsafety · automated scan (low risk)
This is a pattern-based risk scan, not a security review. Our crawler flagged:
- references .env files
Always read a skill's source content before installing. Patterns alone don't mean the skill is malicious — but they warrant attention.
source content
Pull Request Skill
Commit changes, push the branch, and open a pull request on GitHub.
Instructions
-
Check Current State
- Run
to see changed filesgit status - Run
andgit diff --staged
to see all changesgit diff - Run
to see recent commitsgit log --oneline -5
- Run
-
Stage and Commit
- Stage specific files by name (avoid
orgit add -A
)git add . - Never stage sensitive files (.env, credentials, etc.)
- Follow conventional commit format:
type(scope): description - Keep commit messages concise (under 72 characters)
- Stage specific files by name (avoid
-
Create or Use Branch
- If on
, create a new branch:maingit checkout -b <branch-name> - Branch name format:
(e.g.,type/short-description
,feat/code-comparison
)fix/marker-cleanup - If already on a feature branch, use it
- If on
-
Push to Remote
- Push with upstream tracking:
git push -u origin <branch-name>
- Push with upstream tracking:
-
Assign Labels Add
flags to--label
based on the PR type and scope.gh pr createType labels — pick based on the commit type:
Commit type Label fixbugfeatenhancementdocsdocumentationtest(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 compassCompassinteractionInteractionRun
to check available labels if unsure. Multiple labels can be combined:gh label listgh pr create --label "bug" --label "Compass" ... -
Open Pull Request
- Use
to open the PRgh pr create - Write a clear title (under 70 characters)
- Write a description that follows the structure below based on PR type
- Start with a Type checklist — check the one that applies:
gh 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 )" - Use
-
Verify and Report
- Show the PR URL to the user
- Run
to confirm clean stategit status
Important Rules
- Do NOT push to
directly — always use a feature branchmain - Do NOT force push unless explicitly requested
- Ask user before proceeding with each step