com um clique
fixing-ci
// Use when CI is failing on a branch and you need to diagnose failures from GitHub, fix them locally with iterative verification, and re-push clean commits.
// Use when CI is failing on a branch and you need to diagnose failures from GitHub, fix them locally with iterative verification, and re-push clean commits.
Generate Stage chapters for the current local git branch and open them in a browser for review.
Use when building or reviewing UI components, pages, or layouts to ensure premium, intentional design that never looks vibe coded
Use when a pull request has unresolved review comments that need to be addressed, or when asked to fix PR feedback
Use when a PR is open and the user wants to autonomously monitor and fix PR review comments, CI failures, and rebase conflicts on a recurring loop, or when asked to babysit/iterate on a PR
Use when creating a Linear issue from the current coding context, or when the user invokes /linear-issue. Infers team, priority, status, and relationships from conversation context, working directory, and git branch.
Use when reviewing code changes against AGENTS.md implementation quality standards, or when asked to do an implementation quality review
| name | fixing-ci |
| description | Use when CI is failing on a branch and you need to diagnose failures from GitHub, fix them locally with iterative verification, and re-push clean commits. |
| metadata | {"internal":true} |
Diagnose failing CI from GitHub logs, fix each issue with an atomic commit, and iterate locally until the full suite is green — then push once.
Principle: One fix, one commit. Never push until all checks pass locally.
1. DIAGNOSE → Pull failure logs from GitHub, list all failures
2. For each failure:
a. REPRODUCE → Run the failing check locally to confirm you see it
b. FIX → Fix root cause (not downstream symptoms)
c. VERIFY FIX → Re-run the check to confirm it passes
d. COMMIT → Atomic commit for this fix
3. VERIFY ALL → Run the full suite locally
↳ If anything fails → go back to step 2
↳ All green → proceed
4. PUSH → Push all commits
# See recent CI runs on current branch
gh run list --branch $(git branch --show-current) --limit 5
# View failing run (find run-id from above)
gh run view <run-id>
# Stream logs from only the failed steps
gh run view <run-id> --log-failed
Read top-to-bottom and list all distinct failures before fixing any of them. Find the first error in each job — not symptoms that cascade from it.
Check the project's AGENTS.md for exact commands. Common mappings:
| CI Job | Typical Local Command |
|---|---|
| Lint | pnpm lint |
| Typecheck | pnpm typecheck |
| Tests | pnpm test |
| Build | pnpm build |
Run the failing check and confirm you see the same error locally before touching code.
Re-run the specific check to confirm it passes before committing.
git add -p # Review every hunk before staging
git commit -m "fix: <what broke>" # Specific message, not "fix CI"
Use git add -p to catch accidental debug code or unrelated changes. Then loop back to the next failure.
After all individual fixes are committed, run the full suite:
# Run all checks (adapt to project — check AGENTS.md)
pnpm lint && pnpm typecheck && pnpm test && pnpm build
If anything fails here, go back to step 2. A fix in one area can break another. Do not push until this full pass is clean.
Only push once the full suite is green locally:
git push
STOP here. Do not poll GitHub to check if CI passed remotely. Local verification is sufficient — if all checks pass locally, the push is done. Only revisit if the user explicitly reports CI is still failing, then start from Step 1 with the new run ID.
gh run list, gh run watch, or any GitHub polling after pushing. Local green = done.git add . — use git add -p to review and avoid committing debug code