From workflows
Manages GitHub operations including branching, commits, PRs, merging, PR review comments, and security gates. Use when working with git, creating branches, making commits, pushing code, creating pull requests, addressing PR review comments, or merging PRs (ONLY when user explicitly requests).
npx claudepluginhub andercore-labs/claudes-kitchen --plugin workflowsThis skill uses the workspace's default tool permissions.
**Security → Branch → Commit → Push → Check → PR**
Implements structured self-debugging workflow for AI agent failures: capture errors, diagnose patterns like loops or context overflow, apply contained recoveries, and generate introspection reports.
Monitors deployed URLs for regressions in HTTP status, console errors, performance metrics, content, network, and APIs after deploys, merges, or upgrades.
Provides React and Next.js patterns for component composition, compound components, state management, data fetching, performance optimization, forms, routing, and accessible UIs.
Security → Branch → Commit → Push → Check → PR
[ ! -f .git/hooks/pre-commit ] && cp git-templates/hooks/* .git/hooks/ && chmod +x .git/hooks/pre-commit .git/hooks/pre-push
git fetch origin main
git checkout -b feature/VC-1234-description origin/main
git commit -m "feat(VC-1234): description"
pnpm format && pnpm lint && pnpm lint:deps && pnpm test && pnpm test:e2e
git push -u origin feature/VC-1234-description
BRANCH=$(git branch --show-current)
PR_STATE=$(gh pr list --head $BRANCH --json state --jq '.[0].state // "none"')
[ "$PR_STATE" = "OPEN" ] && echo "PR exists" && exit 0
[ "$PR_STATE" = "MERGED" ] && echo "PR merged - create new branch" && exit 1
PR_URL=$(gh pr create --title "feat(VC-1234): desc" --body-file PR.md --label "claudes-kitchen")
open "$PR_URL"
Git branches | commits | push | PRs | PR merging (ONLY when user explicitly requests) | PR review comments
Security:
.git/hooks/pre-commit missing? → cp git-templates/hooks/* .git/hooks/ && chmod +x
verify: ls .git/hooks/pre-commit .git/hooks/pre-push
origin/main → fetch + checkout
format: <type>/(VC|[A-Z]{3})-\d+-<kebab>
format: <type>(<ticket>): <desc>
signing: GPG mandatory
gitleaks: pre-commit hook scans for secrets
main branch → ABORT
gitleaks: pre-push hook scans for secrets
src/ exists? → format + lint + test (MANDATORY) | no src/ → skip to push
check PR state first (MANDATORY)
No PR → create | OPEN → skip | MERGED → new branch
single type only → mixed → ABORT
label: claudes-kitchen
open $PR_URL → auto
⚠️ ONLY when user EXPLICITLY requests
Check reviews → required? → ABORT
Check status → failed? → ABORT | pending? → WAIT | passed? → MERGE
Fetch → Process → Fix → Commit → Reply → Repeat
ONE COMMIT PER COMMENT → granular history
ALWAYS REPLY → communicate resolution
Validation:
git log --show-signature
git diff --stat | tail -1
PR operations:
gh pr list --author @me
gh pr checks {number} # Check status
gh pr view {number} --json reviewDecision # Check reviews
gh pr merge {number} --auto # Merge (ONLY when user requests)
gh pr merge {number} --squash --delete-branch # Squash merge (ONLY when user requests)
(VC|[A-Z]{3})-\d+
No ticket? → VC-0
✓ VC-0 (internal/personal work)
✓ VC-1234 (Jira ticket)
✓ CPL-5678 (Jira ticket)
✗ AB-99 (too short)
"not all refs are readable" → git push origin {branch}
"401 Unauthorized" → gh auth refresh
"422 Validation Failed" → validate_pr_data()
"repository moved" → git remote set-url origin {new_url}
| Phase | Action |
|---|---|
| 1. Execute | Perform git operation (branch/commit/push/PR) |
| 2. Validate | Review conversation context for workflow compliance |
| 3. Report | ✓ Pass → Done | ✗ Fail → List violations with evidence |
| 4. Fix | Violations found → Correct → Re-run operation |
| 5. Store Metrics | After ALL validation passes, call mcp__agent-orchestrator__store-skill-metrics |
| Operation | Verification |
|---|---|
| Security | Verify gitleaks hooks installed: ls .git/hooks/pre-commit .git/hooks/pre-push |
| Branch | Check git checkout command in conversation |
| Commit | Check git commit output for signature, gitleaks scan passed |
| Push | Check git push succeeded, not to main, gitleaks scan passed, IF src/ exists verify tests run |
| PR | Search conversation for gh pr list BEFORE gh pr create |
VALIDATION REPORT:
✓ Branch format: feature/VC-1234-add-feature
✓ Commit format: feat(VC-1234): add feature
✓ Commit signed: Verified in git commit output
✓ PR state checked: [Evidence] gh pr list --head feature/... returned {"state": "none"}
✓ Temporal order: State check performed BEFORE gh pr create
✓ Label added: claudes-kitchen
ALL CHECKS PASS ✓
VALIDATION REPORT:
✗ FAIL: PR state check NOT found in conversation
✗ Evidence: No gh pr list --head command before gh pr create
✗ Result: Pushed to merged PR #7
VIOLATIONS (1):
1. Missing required check in workflow
Evidence: Conversation shows gh pr create without prior gh pr list
Fix: Add state check as first step in PR creation workflow
ACTION: Workflow violation documented - update recipe to prevent recurrence