ci-sweeper
/ci-sweeper
Triage failing CI on integration branches and/or PR heads, classify failures, apply minimal fixes when actionable. Use in conversation when the user asks to triage or fix CI failures. Also the loop entry skill when automation detects failed workflow runs or supplies detection JSON. Interactive default is survey only; edit files when the user explicitly requests a fix or automation sets may_edit in Constraints.
- Author
- y-miyazaki ↗
- Repository
- terraform-aws-base ↗
- Licence
- Apache-2.0
- Last repository change
- 18.10.2026
Assessment and security
- Files in this package
- 35
- Scripts
- 11
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 18.10.2026, without references to retired models or APIs.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
- 11 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: scripts/detect_ci_failures.sh, scripts/lib/all.sh, scripts/lib/aws.sh, scripts/lib/common.sh, scripts/lib/csv.sh, scripts/lib/json.sh, scripts/lib/repo_paths.sh, scripts/lib/terraform.sh, scripts/lib/validation.sh, scripts/lib/yaml_map_order.py, scripts/update_run_ledger.sh
What it does and when to use it
Triage failing CI on integration branches and/or PR heads, classify failures, apply minimal fixes when actionable. Use in conversation when the user asks to triage or fix CI failures. Also the loop entry skill when automation detects failed workflow runs or supplies detection JSON. Interactive default is survey only; edit files when the user explicitly requests a fix or automation sets may_edit in Constraints.
Original author description
Triage failing CI on integration branches and/or PR heads, classify failures, apply minimal fixes when actionable. Use in conversation when the user asks to triage or fix CI failures. Also the loop entry skill when automation detects failed workflow runs or supplies detection JSON. Interactive default is survey only; edit files when the user explicitly requests a fix or automation sets may_edit in Constraints.
How it works
- Input
- Output Specification
- Execution Scope
- Reference Files Guide
- Workflow
SKILL.md preview
--- name: ci-sweeper description: >- Triage failing CI on integration branches and/or PR heads, classify failures, apply minimal fixes when actionable. Use in conversation when the user asks to triage or fix CI failures. Also the loop entry skill when automation detects failed workflow runs or supplies detection JSON. Interactive default is survey only; edit files when the user explicitly requests a fix or automation sets may_edit in Constraints. license: Apache-2.0 metadata: author: y-miyazaki version: "1.6.4" --- **UTILITY SKILL** — CI failure triage and minimal fix, not merge or release. ## Input - **Interactive (required):** natural-language request; optional failure context (URLs, logs, job names) — constraints in `## Constraints` or [category-scope.md](references/category-scope.md) - **Automation (optional):** detect JSON in prompt — from a caller or optional skill detect script; not required for interactive runs. Read `may_edit`, `write_target`, and `report_file` (when `write_target: report`) from `## Constraints` per [category-automation-envelope.md](references/category-automation-envelope.md) Path allowlist, when present, arrives in `## Constraints`. ## Output Specification Triage report per [common-output-format.md](references/common-output-format.md). Survey shape when files are not edited; apply shape when edited — within [category-scope.md](references/category-scope.md). ## Execution Scope ### USE FOR: - Classify CI failures; apply minimal lint/workflow/shell/doc fixes ### DO NOT USE FOR: - Infra outages, secrets, or runner capacity issues (classify as Watch) - Refactors >5 files or auth/payment/credential paths - Merge PRs or push to default branch ## Reference Files Guide - [common-checklist.md](references/common-checklist.md) (always read) - [common-output-format.md](references/common-output-format.md) (always read) - [category-scope.md](references/category-scope.md) (always read) - [category-detect-scope.md](references/category-detect-scope.md) (read on interactive path) - [category-input-schema.md](references/category-input-schema.md) (read when detect JSON is present or the optional detect script is run) - [category-run-ledger.md](references/category-run-ledger.md) (read when ignored[] is non-empty) - [category-automation-envelope.md](references/category-automation-envelope.md) (read on automation path) - [common-troubleshooting.md](references/common-troubleshooting.md) (read on failure) ## Workflow Resolve **may_edit** before classifying failures: | Source | `may_edit` | | ----------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | | Interactive — default | `false` — survey only; do not edit files | | Interactive — explicit fix language in the same request | `true` — examples: 直して, "fix the failing job", "apply the regression fix". Do **not** treat bare skill name `ci-sweeper` or bare `fix`/`apply` as edit | | Interactive — follow-up after a prior survey in the session | `true` when the user explicitly asks to apply or fix listed failures | | Automation — `## Constraints` | `may_edit: true` or `may_edit: false` from [category-automation-envelope.md](references/category-automation-envelope.md) | When `may_edit` is `true`, resolve `write_target`: on the **interactive** path use `fix` (this skill); on the **automation** path read `write_target` from `## Constraints`. Do not branch on other caller metadata outside `## Constraints`. 1. Resolve scope ([category-scope.md](references/category-scope.md)). Parse detect JSON when present; otherwise resolve the detect universe from the prompt ([category-detect-scope.md](references/category-detect-scope.md)), run this skill's optional detect script with the resolved `--scope` (default `all`), then Agent-complement beyond mechanical output; if tools for detect are unavailable, gather failures from the user request and available CI/log context instead of silent no-op. Load [category-input-schema.md](references/category-input-schema.md) when parsing detect output. On detect script non-zero exit, read stdout and stop. 2. On the automation path, read [category-automation-envelope.md](references/category-automation-envelope.md) for Constraints, PR templates, and Session Metrics. 3. IF detect reports `skip` OR no actionable failures after gathering → emit survey no-op; on automation path append `## Session Metrics` per [category-automation-envelope.md](references/category-automation-envelope.md); stop. 4. Classify every failure per [common-checklist.md](references/common-checklist.md). Note `ignored[]` in Overview when non-empty. 5. IF `may_edit` is `false` → emit survey shape with `### Candidates`; on automation path load `assets/pr-body-template-survey.md` at synthesis and append `## Session Metrics` per [category-automation-envelope.md](references/category-automation-envelope.md); stop — do not edit files. 6. ELSE IF `may_edit` is `true` AND `write_target` is not `fix` → emit survey shape; note expected `write_target: fix` in Overview; stop — do not edit files. 7. ELSE IF `may_edit` is `true` AND `write_target` is `fix` AND (infra/env/flake OR >5 files required) → classify as Watch with no edits; emit survey shape with `### Watch` per [common-output-format.md](references/common-output-format.md); on automation path append `## Session Metrics` per [category-automation-envelope.md](references/category-automation-envelope.md); stop — do not emit apply shape. 8. ELSE IF `may_edit` is `true` AND `write_target` is `fix` → fix the first `regression` only when more than three failures are present; defer the rest within [category-scope.md](references/category-scope.md). 9. When validation was run (interactive fix path or caller CI), record commands and outcomes in Session Metrics on the automation path. 10. IF `may_edit` is `true` AND `write_target` is `fix` AND NOT (infra/env/flake OR >5 files required) → emit apply shape per [common-output-format.md](references/common-output-format.md); reconcile **Changes** / **Deferred** with `git diff --name-only`; on automation path load `assets/pr-body-template.md` at synthesis and append `## Session Metrics` per [category-automation-envelope.md](references/category-automation-envelope.md). ### Error Handling | Condition | Severity | Action | | --------------------------------------------------------------- | ----------- | -------------------------------------------------------------------------------- | | Detect script non-zero exit or `status: "error"` (when invoked) | Fatal | Read stdout; stop — do not treat as success-path detect JSON | | `skip` or no actionable `failures` | Info | Outcome `no actionable failures`; stop | | Fix requested but `may_edit` is `false` | Info | Survey only; note that edits require an explicit fix request or `may_edit: true` | | `may_edit` true with `write_target` not `fix` | Recoverable | Survey only; note expected `write_target: fix` | | Infra/env/flake or >5 files required | Recoverable | Classify Watch; no edits | | Validation tooling missing | Recoverable | Defer Watch unless fixing one line from `log_excerpt` | | Path outside allowlist | Recoverable | Watch or defer; do not edit | ### Examples - Prompt: `Triage failing CI on the integration branch` - Result: Survey report per [references/common-output-format.md](references/common-output-format.md); apply one-line regression fixes only when `may_edit` is true and `write_target` is `fix`.
Files in this package (35)
- SKILL.md 8 KB
- eval.yaml 1 KB
- assets/pr-body-template-survey.md 1 KB
- assets/pr-body-template.md 2 KB
- evals/tasks/automation-dist01-negative.yaml 1 KB
- evals/tasks/automation-production-constraints.yaml 1 KB
- evals/tasks/basic.yaml 1 KB
- evals/tasks/classification.yaml 1 KB
- evals/tasks/interactive-fix-follow-up.yaml 1 KB
- evals/tasks/interactive-fix-same-turn.yaml 1 KB
- evals/tasks/interactive-survey-default.yaml 1 KB
- evals/tasks/may-edit-false.yaml 1 KB
- evals/tasks/noaction.yaml 1 KB
- evals/tasks/regression-defer.yaml 1 KB
- evals/tasks/trigger-negative.yaml 1 KB
- references/category-automation-envelope.md 4 KB
- references/category-detect-scope.md 3 KB
- references/category-input-schema.md 4 KB
- references/category-pr-body-links.md 2 KB
- references/category-run-ledger.md 1 KB
- references/category-scope.md 2 KB
- references/common-checklist.md 2 KB
- references/common-output-format.md 3 KB
- references/common-troubleshooting.md 1 KB
- scripts/detect_ci_failures.sh 35 KB
- scripts/update_run_ledger.sh 10 KB
- scripts/lib/all.sh 1 KB
- scripts/lib/aws.sh 29 KB
- scripts/lib/common.sh 9 KB
- scripts/lib/csv.sh 4 KB
- scripts/lib/json.sh 8 KB
- scripts/lib/repo_paths.sh 15 KB
- scripts/lib/terraform.sh 13 KB
- scripts/lib/validation.sh 14 KB
- scripts/lib/yaml_map_order.py 6 KB
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · y-miyazaki/terraform-aws-base | 100 | Apache-2.0 |
| y-miyazaki/terraform-aws-base | 100 | Apache-2.0 |
Identical content appears in 1 other GitHub folders. We show one copy with the highest score.
Database snapshot: 13.11.2026 · package version f843af46028e (SHA-256 digest of the entire package)
Downloads in the last 30 days: 2 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100ci-triage
Use when the user wants to diagnose why a PR's CI is red, bucket the failures by type, and get minimal fix commands. Triggers on "triage PR", "why is CI failing", "/triage <N>", "fix CI on PR <N>". - 100tech-debt
Discover and classify technical debt from mechanical signals; apply closed-set fixes when requested. Use in conversation when the user asks to survey or fix safe documentation/dependency debt. Also the loop entry skill for scheduled scans or detect JSON. Interactive default is… - 100changelog
Survey and update CHANGELOG.md from unreleased commits and undocumented releases. Use in conversation when the user asks to check, review, or update the changelog. Also the loop entry skill when automation supplies commit/release detect JSON. Interactive default is survey only;… - 100sweeper-query
Answer natural-language questions about the VS Code Sweeper's published issue index (index-<name>.json for microsoft/vscode and the enrolled family repos) — which issues are agent-ready to implement or plan, what the sweeper proposed for an assignee or area, whether the sweeper… - 100check-ci
Diagnose CI failures by inspecting GitHub Actions run logs, identifying root causes, and suggesting fixes. Use when CI is failing, a workflow run failed, checks are red, or the user asks "why is CI failing" or "fix CI". - 90local-circleci-builds-51727943
Diagnose and fix failing CircleCI builds quickly and safely. Use when users ask to investigate failed CircleCI jobs, triage flaky pipelines, identify root causes from logs, and implement minimal fixes in configuration, test setup, or build-related code paths.