.claude/skills/pr/SKILL.md
Create a feature branch, commit changes, push, and open a Pull Request. The standard way to ship changes. Use after implementation is complete.
npx skillsauth add lucidlabs-hq/agent-kit prInstall 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.
The standard workflow for shipping changes. Creates a branch, commits, pushes, and opens a PR.
This is the ONLY way to get code into main. Direct pushes are blocked by Branch Protection.
/pr
|
v
1. Detect current branch (expect feature branch from /execute)
2. Validate (lint + type-check)
3. Analyze changes vs main
4. Push branch
5. Create PR with CI checks
6. Report PR URL
Expected state: You are on a feature branch created by /execute. Commits are already there from /commit.
CURRENT_BRANCH=$(git branch --show-current)
Decision tree:
On which branch?
├── feature/* or fix/* or refactor/* or docs/* or chore/*
│ → Already on feature branch. Continue to Step 2.
│
├── main (with unpushed commits)
│ → FALLBACK: Create branch, move commits off main.
│ → git checkout -b feature/<name>
│ → git checkout main && git reset --hard origin/main
│ → git checkout feature/<name>
│ → Warn: "Next time, use /execute to create the branch first."
│
└── main (no unpushed commits)
→ ERROR: Nothing to PR. Run /execute first.
cd frontend && pnpm run validate
If validation fails: STOP. Fix the issues first.
If pnpm run validate does not exist, run lint and type-check separately:
cd frontend && pnpm run lint && pnpm run type-check
Run quality gate checks before creating the PR:
git diff main..HEAD (all branch changes)Results are included in the PR description under a "Quality Gate Results" section:
## Quality Gate Results
- architecture-guard: PASS
- code-reviewer: PASS (2 warnings)
- error-handling-reviewer: PASS
If CRITICAL findings: STOP. Fix before creating PR.
See .claude/reference/quality-gates.md for full gate architecture.
git status
git log --oneline main..HEAD
git diff --stat main..HEAD
Understand what is being pushed. Review all commits on the branch. Never push files that:
.env, credentials).next/, node_modules/)git push -u origin "$CURRENT_BRANCH"
gh pr create \
--title "<type>(<scope>): <description>" \
--body "$(cat <<'PREOF'
## Summary
<1-3 bullet points describing the changes>
## Changes
<list of key files changed and why>
## Test Plan
- [ ] CI passes (lint + type-check + build)
- [ ] <manual verification steps if applicable>
PREOF
)"
## PR Created
**Branch:** feature/<branch-name>
**PR:** <URL from gh pr create>
**CI Status:** Running (lint + type-check + build)
### Changes
- <X files changed, Y insertions, Z deletions>
### Next Steps
- Wait for CI checks to pass
- Get review approval
- Merge -> Auto-deploy
The deploy workflow runs automatically:
You do NOT need to do anything after merge. Deployment is fully automated.
If CI fails on the PR:
# Fix the issue locally
git add <fixed files>
git commit -m "fix: resolve CI failure"
git push
The PR will automatically re-run CI checks.
# Full flow in one go (after changes are ready):
git checkout main && git pull origin main
git checkout -b feature/my-change
git add <files>
git commit -m "feat(scope): my change"
git push -u origin feature/my-change
gh pr create --title "feat(scope): my change" --body "Summary of changes"
maingit add <files> (not git add -A)main (Branch Protection will reject it)development
Deploy invoice-accounting-assistant to HQ server. Runs tests first (TDD), then builds and deploys. Use when ready to push changes to staging/production.
testing
Visual UI verification with agent-browser. Use after implementing UI components to take screenshots, verify interactions, and self-check your work. FASTER than E2E tests.
documentation
Update README with current project status and features. Use after completing features.
tools
--- name: time-report description: Cross-project time report. Aggregates all session data from ~/.claude-time/sessions/. Use to see how much time was spent across all projects. disable-model-invocation: true allowed-tools: Bash, Read argument-hint: [all | this-week | this-month | last-month | {project-name}] --- # Time Report: Cross-Project Session Overview ## Objective Read ALL session files from `~/.claude-time/sessions/*.json` and produce an aggregated time report. Supports filtering by pe