Loading...
Loading...
Use when setting up a GitHub project board, labels, and Actions workflows for a new or existing repo.
npx skill4agent add fellowship-dev/dogfooded-skills setup-githubnpx skills add fellowship-dev/dogfooded-skills/skills/ops/setup-github1. PR opened
↓
2. GitHub Actions: claude-code-review.yml
- Claude reviews the diff
- Applies "reviewed" label
↓
3. event-rules.yml: review-pr-on-reviewed
- /double-check PR_NUMBER org/repo dispatched
- Curates CI findings, fixes must-fix items
- Applies "double-checked" label
↓
4. event-rules.yml: cto-review-on-double-checked
- /cto-review PR_NUMBER org/repo dispatched
- Docs/deps/downstream checklist
- Applies "approved" or "needs-work" label
- Merges if approveddouble-checkcto-reviewfellowship-dev/dogfooded-skillsunset GH_TOKEN
gh auth login
claude
/install-github-app
# Select repo → "long-lived token" → auto-adds CLAUDE_CODE_OAUTH_TOKEN secretANTHROPIC_API_KEY# Repo identity
gh repo view --json nameWithOwner
# Existing labels
gh label list --repo $REPO --json name
# Existing workflows
ls .github/workflows/ 2>/dev/null || echo "No workflows"
# Project board
gh project list --owner $ORG --format json 2>/dev/null | head -20gh label create| Label | Color | Description |
|---|---|---|
| | CI/automated review complete |
| | Full review + fixes complete |
| | CTO approved — ready to merge |
| | Needs work before merge |
| | Ready for implementation |
| | Actively being worked on |
| Label | Color | Description |
|---|---|---|
| | Something isn't working |
| | New feature or improvement |
| | Documentation only |
| | Infra/tooling/refactoring |
# Create all labels (idempotent — 2>/dev/null suppresses "already exists" errors)
gh label create "reviewed" --repo $REPO --color "3da46e" --description "CI/automated review complete" 2>/dev/null || true
gh label create "double-checked" --repo $REPO --color "0075ca" --description "Full review + fixes complete" 2>/dev/null || true
gh label create "approved" --repo $REPO --color "0e8a16" --description "CTO approved — ready to merge" 2>/dev/null || true
gh label create "needs-work" --repo $REPO --color "d93f0b" --description "Needs work before merge" 2>/dev/null || true
gh label create "ready-to-work" --repo $REPO --color "f6a80a" --description "Ready for implementation" 2>/dev/null || true
gh label create "in-progress" --repo $REPO --color "97f157" --description "Actively being worked on" 2>/dev/null || true
gh label create "bug" --repo $REPO --color "d73a4a" --description "Something isn't working" 2>/dev/null || true
gh label create "enhancement" --repo $REPO --color "54d9ee" --description "New feature or improvement" 2>/dev/null || true
gh label create "documentation" --repo $REPO --color "0075ca" --description "Documentation only" 2>/dev/null || true
gh label create "groundwork" --repo $REPO --color "C5DEF5" --description "Infra/tooling/refactoring" 2>/dev/null || true# Create project
gh project create --owner $ORG --title "$REPO_NAME"
# Add Status field with standard columns
# (Use GitHub UI to configure Status options — API support is limited)
# Columns: Backlog → Ready → In Progress → In Review → Done
# Link repo to project
gh project link $PROJECT_NUMBER --owner $ORG --repo $REPO.github/workflows/reviewedmkdir -p .github/workflows
# Copy selected templates from this skill's templates/ directory
# Skip if file already exists## GitHub Setup Complete: $REPO
### Labels
- ✅ Created N labels, skipped N (already existed)
### Project Board
- ✅ Created "$REPO_NAME" project (or "Skipped — already exists")
⚠️ Configure automations manually in project settings
### Workflows
- ✅ Installed: claude-code-review.yml
- ⏭️ Skipped: dependabot.yml (already existed)
- ⚠️ Secrets needed: ANTHROPIC_API_KEY or CLAUDE_CODE_OAUTH_TOKEN
### Review Pipeline (after claude-code-review.yml is installed)
PR opened → reviewed label → double-check → double-checked label → cto-review → approved/needs-work
### Manual Next Steps
- [ ] Install Claude GitHub App: https://github.com/apps/claude
- [ ] Add ANTHROPIC_API_KEY or CLAUDE_CODE_OAUTH_TOKEN secret
- [ ] Configure project board automations (link above)
- [ ] Wire event-rules.yml with review-pr-on-reviewed + cto-review-on-double-checked rulesANTHROPIC_API_KEYCLAUDE_CODE_OAUTH_TOKEN| Workflow | Trigger | Output | Pipeline Role |
|---|---|---|---|
| PR opened/reopened | Review comment + | Stage 1 |
| New issue | Labels + priority | Standalone |
| Issue label or @claude | PRD document | Standalone |
| Push to main | Fly.io deploy | CD |
| Push to main | ECS deploy (prod) | CD |
| Push to develop | ECS deploy (staging) | CD |
| Weekly cron | Dep update PRs | Maintenance |
| Secret | Where | Notes |
|---|---|---|
| https://console.anthropic.com/settings/keys | Recommended. Starts |
| Run | Alternative to API key |
| | For Fly.io deployment |
| AWS IAM Console | For ECS deployment |
| AWS IAM Console | For ECS deployment |
templates/claude-code-review.ymltemplates/claude-issue-triage.ymltemplates/claude-prd-creation.ymltemplates/dependabot.ymltemplates/deploy-fly.ymltemplates/deploy-ecs-production.ymltemplates/deploy-ecs-staging.ymltemplates/deploy-mkdocs.yml