Git Workflow
Branch Naming
feature/{ticket-id}-short-description # New features
fix/{ticket-id}-short-description # Bug fixes
agent/{agent-name} # Agent worktrees (reserved)
Commit Format
{type}({scope}): {short description}
Types: feat, fix, refactor, test, docs, chore
Scope: phase number, module name, or "agents"
Examples:
feat(16-01): add tmux-setup.sh and agent-start.sh
fix(api): correct pagination offset in tasks route
Per-Task Commit Rule
- Stage only files modified by the current task
- Never
git add -Aorgit add . - One commit per logical change
Pre-commit Checklist
npx tsc --noEmit→ 0 errorsnpm run build→ succeeds (if touching routes or components)- No secrets or .env files staged
- No console.log in production code
Worktree Usage
Agent worktrees at ~/mission-control/worktrees/{coder,designer,chief}:
- Each on branch
agent/{name} - Run
tools/worktree-setup.shto initialize - Agent works in worktree; merge to main via PR
Protected
mainbranch: never force push- External actions (deploy, publish) require Tier 3 approval
Source: ProfFroggo/froggo-mission-control — distributed by TomeVault.