AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Fix Ci

skill-conn-castle-agent-layer-fix-ci · by conn-castle

>-

No reviews yet
0 installs
38 views
0.0% view→install

Install

$ agentstack add skill-conn-castle-agent-layer-fix-ci

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-conn-castle-agent-layer-fix-ci)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Fix Ci? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

fix-ci

This is the CI failure repair skill. It should:

  • diagnose why CI is failing
  • fix the underlying issue
  • audit the fix before committing
  • commit and push
  • verify CI passes
  • repeat if CI still fails

Defaults

  • Default PR is the current branch's open PR.
  • Default diagnosis uses CI logs from gh run view --log-failed and any artifacts available from the failed workflow run.
  • Default artifact location is ./.agent-layer/tmp/ci-artifacts/ so downloaded reports stay in the agent temp area.
  • Default fix scope is the minimum change needed to make CI pass.

Inputs

Accept any combination of:

  • a PR number or URL
  • a specific CI run ID
  • hints about the failure from the caller

Required behavior

Delegate to:

  • audit-and-fix-uncommitted-changes before every commit

Global constraints

  • Keep fixes minimal and targeted to the CI failure.
  • Do not push speculative fixes without a local reproducer.
  • Treat GitHub-only failures as local-reproduction bugs: identify the environmental difference, then write or adapt a local test or command that fails for the same reason before fixing.
  • Do not make unrelated changes just because CI logs reveal other warnings.
  • Do not disable, skip, or weaken tests or CI checks to make them pass.
  • Do not lower coverage thresholds or remove failing tests.
  • Treat each CI fix as a focused patch, not a refactoring opportunity.

Human checkpoints

  • Required: ask when the CI failure appears to be an infrastructure or environment issue rather than a code issue.
  • Required: ask when the same CI failure persists after 3 fix attempts.
  • Required: ask when fixing the CI failure would require a materially broader scope change.
  • Required: ask when no credible local reproducer can be built after inspecting logs, artifacts, CI config, environmental differences, and relevant code.
  • Stay autonomous during normal diagnose, fix, audit, commit, push, re-check cycles.

Fix workflow

Phase 1: Diagnose the failure (Diagnostician)

  1. Get CI status: gh pr checks to identify which checks failed.
  2. Get failure logs: gh run view --log-failed for each failed check.
  3. Download available artifacts for each failed workflow run before coding if available: mkdir -p .agent-layer/tmp/ci-artifacts/ then gh run download --dir .agent-layer/tmp/ci-artifacts/.
  • Inspect artifact contents alongside logs. Prioritize test reports, coverage reports, screenshots/videos, build output, generated files, and any tool-specific diagnostic bundles.
  1. Identify the root cause from logs and artifacts:
  • test failures
  • lint/format errors
  • type errors
  • build failures
  • other CI step failures
  1. Identify the CI-vs-local execution surface: command, OS, toolchain version, environment variables, working directory, cache behavior, permissions, timezone, filesystem behavior, and network requirements.
  2. Read the relevant source files and test files to understand the failure.

Phase 2: Fix the issue (Fixer)

  1. If the fix requires understanding project conventions, read COMMANDS.md first.
  2. Run the same failing CI command locally, or the closest repo-documented local equivalent, before changing code.
  3. If the command fails locally for the same reason, use that command as the red reproducer.
  4. If the command passes locally while CI failed, treat the mismatch as a bug: identify the environmental difference and write or adapt a local test or command that fails for the same reason.
  5. If no credible local reproducer can be built, stop at a human checkpoint instead of pushing a guess.
  6. Implement the minimum fix needed to resolve the CI failure.
  7. Re-run the local reproducer to confirm it passes, then run local verification using the same commands CI runs.
  8. Record the local reproducer command, initial red result, fix, and final green result before committing.

Phase 3: Audit and commit (Auditor + Committer)

  1. Use the audit-and-fix-uncommitted-changes skill to review and stabilize the fix.
  2. Stage all changes: git add -A
  3. Craft a commit message describing the CI fix.
  4. Commit and push.

Phase 4: Verify CI (Verifier)

  1. Wait for CI checks to complete on the new push.
  2. If all checks pass, the fix is complete.
  3. If any check still fails:

a. Track which failures are new vs. recurring. b. Return to Phase 1 with the new failure information.

Guardrails

  • Do not skip the audit-and-fix step before committing.
  • Do not disable or weaken CI checks to make them pass.
  • Do not expand scope beyond what is needed to fix the CI failure.
  • Do not patch from CI logs alone when CI artifacts are available; logs and artifacts together are the diagnostic source of truth.
  • Do not use GitHub Actions or other CI systems as debuggers; CI is only the final parity check after local red/green verification.
  • Do not push when the only evidence is a theory from CI logs.
  • Do not treat CI warnings as failures unless they are configured to fail the build.
  • Track recurring failures and escalate rather than looping indefinitely on the same issue.

Definition of done

  • gh pr checks shows every required CI check passing on the latest pushed commit.
  • Logs and any available artifacts for each failed run were inspected; missing or unavailable artifacts were called out explicitly.
  • Each fix cycle recorded the local reproducer command, initial red result, fix, and final green result before committing.
  • Each fix cycle committed through the audit-and-fix-uncommitted-changes skill before push; no check was disabled, skipped, weakened, or had its threshold lowered.
  • The fix iteration count is recorded and stayed below the 3-attempt escalation threshold for any single recurring failure.
  • Scope of the changes is confined to what the CI failures required, with no opportunistic edits.

Final handoff

After CI passes:

  1. State which CI checks were failing and what was fixed.
  2. State how many fix iterations were needed.
  3. State the local reproducer command, initial red result, and final green result for each fix cycle.
  4. Confirm all CI checks are now passing.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.