Open-source status page, incident response and uptime monitoring
TypeScript alertingincident-managementmcpmcp-servermonitoringmonitoring-as-codeobservabilityon-callopen-sourcesrestatus-pagestatuspagesynthetic-monitoringterraformtinybirdtursouptimeuptime-checkeruptime-monitor
description: Create a new git branch, commit changes, and create a pull request allowed-tools: Bash(git:), Bash(gh:)
Current Git State
- Branch: !
git branch --show-current - Status: !
git status --porcelain - Recent commits: !
git log --oneline -5
Arguments
$ARGUMENTS - optional branch name
Workflow
1. Validate
- Confirm there are uncommitted changes (from status above). If none, stop.
- Confirm current branch. If not on
main, ask user before proceeding. - Warn if any .env or credential files would be staged.
- Run
pnpm formatin the root directory to fix formatting issues
2. Create Branch
- If
$ARGUMENTSprovided, use it as branch name - Otherwise, generate from task context using conventional prefixes:
feat/,fix/,chore/,refactor/,docs/in kebab-case
git checkout -b <branch-name>
3. Commit
- Run
git diffto review all changes - Think about context: What was the user trying to achieve? What problem does this solve?
- Draft commit message:
- Conventional commit format:
feat:,fix:,chore:,docs:,refactor: - Write at the outcome level, not implementation level
- Bad: "change timeout from 5000 to 10000 in checker/monitor.go"
- Good: "increase monitor check timeout to handle slow API responses"
- Conventional commit format:
- Stage relevant files (not .env/credentials)
- Commit with heredoc format:
git commit -m "$(cat <<'EOF'
<message>
Co-Authored-By: Claude Opus 4.6 <[email protected]>
EOF
)"
- Run
git statusto verify success
4. Push & Create PR
git push -u origin <branch-name>
Create PR with gh:
- Title from commit message (same high-level framing)
- Summary explains outcomes, not file changes
- Bad: "Added
getMonitorStatus()to monitor.ts, updatedMonitortype" - Good: "Status pages now reflect real-time monitor degradation states"
- Bad: "Added
gh pr create --title "<title>" --body "$(cat <<'EOF'
## Summary
- <outcome 1>
- <outcome 2>
🤖 Generated with [Claude Code](https://claude.com/claude-code)
EOF
)"
Return the PR URL.
Error Handling
If any step fails, report the error and stop. Don't proceed to the next step.