원클릭으로
finishing-a-branch
Use after code review is approved to finalize, push, open PR, and clean up the development branch.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Use after code review is approved to finalize, push, open PR, and clean up the development branch.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Check for drift between spec.md, plan.md, tasks.md, and the actual code. Reports the gaps; does not fix them.
Run a category-specific quality pass (security / performance / accessibility / i18n / privacy / observability) against the current plan and code.
Surface [NEEDS CLARIFICATION] markers in spec.md (or plan.md) to the user, one at a time, and edit the file with the answers.
Bootstrap or amend constitution.md (framework, preset, or project). Inspects existing project context first; enforces the amendment process: issue first, one article per PR, reviewer non-author.
Print the pipeline quick-reference — a one-screen summary of every /aia:* command and its hand-offs, prefixed by a state-aware "Próximo passo" line.
Execute an approved plan + tasks list by dispatching one fresh subagent per task and applying two-stage review (spec compliance, then code quality) before moving on.
| name | finishing-a-branch |
| description | Use after code review is approved to finalize, push, open PR, and clean up the development branch. |
Complete the development cycle: final checks, push, open PR, link to issue, clean up.
Announce at start: "Using finishing-a-branch skill. Finalizing the branch."
Before pushing:
aiadev preflight finishing-a-branch --feature <slug> and confirm exit 0. The CLI checks every upstream artifact and refuses to proceed unless .aiadev/review.yaml records status: approved. Bypass is AIADEV_PREFLIGHT=warn (debug only).cd backend && pytest --tb=short
cd frontend && npx jest --no-coverage
cd frontend && npx tsc --noEmit
cd backend && ruff check .
cd frontend && npm run lint
cd backend && python manage.py showmigrations | grep "\[ \]"
python manage.py migrate --check
git fetch origin && git rebase origin/main
If commits are messy, squash into logical units:
# Squash last N commits into logical commits
git rebase -i HEAD~N
# Use 'r' (reword) for commits to keep, 's' (squash) for ones to fold in
Commit message format:
feat(<app>): short description of what was added
- Detail 1
- Detail 2
Closes #<issue_number>
git push origin <branch-name>
Then open PR with this template:
## Summary
- [What was built — bullet points]
- [Key technical decisions]
## Traceability
- Closes #<issue_number>
- Spec: `specs/YYYY-MM-DD-<feature>/spec.md`
- Plan: `specs/YYYY-MM-DD-<feature>/plan.md`
## Test Plan
- [ ] `pytest` — all backend tests pass
- [ ] `npx jest` — all frontend tests pass
- [ ] `npx tsc --noEmit` — no TypeScript errors
- [ ] Migrations applied without conflicts
- [ ] Manual smoke test performed
## Screenshots (if UI changes)
<add if applicable>
Closes #N)specs/YYYY-MM-DD-<feature>/spec.md:
**Status**: PR Open — #<PR number>
When PR is approved and CI passes:
# Squash merge (preferred for clean history)
git checkout main && git merge --squash <branch>
git commit -m "feat(<scope>): <description> (#<PR>)"
# Or regular merge (preserves history)
git merge <branch>
After merge:
# Delete remote branch
git push origin --delete <branch>
# Delete local branch
git branch -d <branch>
# Apply any pending migrations in production
# (coordinate with deploy process)
Depending on what changed:
| Changed | Action |
|---|---|
| Backend Python | deploy skill → Cloud Run |
| Database migrations | Run migrations before deploy |
| Frontend React | deploy skill → build + deploy |
| Mobile JS-only | ota-update skill |
| Mobile native changes | build-android / build-ios skills |
| Celery tasks | Restart workers after deploy |