원클릭으로
ci-fix
Auto-fix CI failures (lint, format, type errors). Diagnoses, fixes, commits and pushes.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Auto-fix CI failures (lint, format, type errors). Diagnoses, fixes, commits and pushes.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Force a full-file rewrite (Write) instead of patch (Edit) when Edit keeps failing or diff is large. Context rot mitigation — use when Edit has failed ≥2× on same file, or when estimated diff >30% of file size.
STOA PR Guardian — advisory three-axis review (ADR compliance, security, AI code smell) with binary GO/NO-GO verdict + confidence. Never approves, never blocks merge.
Analyze cycle capacity gap and propose backlog items to fill the sprint to ~80% of proven velocity.
Visual roadmap snapshot — theme progress, milestones, velocity. Zero new infra (Linear MCP + velocity.json).
Cycle-aware bidirectional sync between plan.md and Linear. Discovers all cycle tickets, detects drift, updates markers.
Debug GitHub Actions CI pipeline failures. Analyse les logs de workflow, identifie la cause racine et propose un fix.
| name | ci-fix |
| description | Auto-fix CI failures (lint, format, type errors). Diagnoses, fixes, commits and pushes. |
| argument-hint | [PR-number|run-url] |
git branch --show-currentgh pr checks 2>/dev/null | head -20gh run list --limit 5 --json name,status,conclusion,headBranch --template '{{range .}}{{.name}} | {{.status}} | {{.conclusion}} | {{.headBranch}}{{"\n"}}{{end}}' 2>/dev/nullAuto-fix CI failure for: $ARGUMENTS
If PR number:
gh pr checks $ARGUMENTS
gh run list --branch $(gh pr view $ARGUMENTS --json headRefName -q .headRefName) --limit 3
If workflow run URL or ID:
gh run view $ARGUMENTS --log-failed
# Get the failed run ID, then read logs
gh run view <run-id> --log-failed 2>&1 | head -200
Auto-fixable (proceed to Step 4):
| Check | Error pattern | Fix command |
|---|---|---|
| Python lint (ruff) | Found N errors | cd <component> && ruff check --fix . |
| Python format (black) | would reformat | cd <component> && black . |
| Python import order | I001 | cd <component> && ruff check --fix --select I . |
| TS/JS lint (eslint) | N problems (N errors, N warnings) | cd <component> && npm run lint -- --fix |
| TS/JS format (prettier) | Code style issues | cd <component> && npx prettier --write . |
| Rust format | Diff in | cd stoa-gateway && cargo fmt |
| Rust clippy (simple) | warning: with help: ... suggestion | cd stoa-gateway && cargo clippy --fix --allow-dirty |
NOT auto-fixable (report and STOP):
| Category | Examples |
|---|---|
| Logic errors | Test assertions failing, wrong behavior |
| Test failures | vitest/pytest/cargo test failures |
| Security issues | Gitleaks, Bandit findings, SAST violations |
| Type errors (complex) | Missing interfaces, wrong generics |
| Build errors | Missing dependencies, Docker build failures |
| Infrastructure | K8s deploy, ArgoCD, Helm issues |
If the failure is NOT auto-fixable, report what you found and stop. Do NOT attempt manual fixes.
Run the appropriate fix command from the table above. Then verify locally:
Python:
cd <component> && ruff check . && black --check .
TypeScript:
cd <component> && npm run lint && npm run format:check
Rust:
cd stoa-gateway && cargo fmt --check && RUSTFLAGS=-Dwarnings cargo clippy --all-targets --all-features -- -D warnings
GUARDRAILS (mandatory checks before any git operation):
# Verify we are NOT on main
BRANCH=$(git branch --show-current)
if [ "$BRANCH" = "main" ] || [ "$BRANCH" = "master" ]; then
echo "ABORT: Cannot push CI fixes to main. Checkout the feature branch first."
exit 1
fi
Then commit and push:
git add <only-fixed-files>
git commit -m "fix(ci): auto-fix <check-name> lint/format issues"
git push
## CI Fix: [check-name] on [branch]
### Fixed
- **Check**: [failing check name]
- **Error**: [error summary]
- **Fix**: [command run]
- **Files**: [list of modified files]
### Verification
- Local check: PASS/FAIL
- Pushed to: [branch]
### Not Fixed (if any)
- [check]: [reason — requires manual intervention]
Append metrics entry:
Append to ~/.claude/projects/.../memory/metrics.log:
YYYY-MM-DDTHH:MM | CI-FIX | task=<current-task> check=<check-name> auto_fixed=true|false
--force push--no-verify on commits