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

Self Fix Loop

skill-d-oit-rust-2026-template-self-fix-loop · by d-oit

>

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

Install

$ agentstack add skill-d-oit-rust-2026-template-self-fix-loop

✓ 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-d-oit-rust-2026-template-self-fix-loop)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
1mo 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 Self Fix Loop? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Self-Fix Loop Skill

When to Use

  • User asks for this skill's functionality

Automated self-learning cycle: commit → push → monitor → analyze failures → fix → retry until all CI checks pass.

Self-Fix Threshold: If 2+ similar errors occur during the loop, pause and diagnose the root cause before attempting another fix.

Overview

Continuous improvement loop that:

  1. Commits all changes atomically
  2. Pushes to feature branch
  3. Creates/updates PR/MR
  4. Monitors CI (GitHub Actions or GitLab CI)
  5. On failure: diagnoses and fixes
  6. Repeats until ALL checks pass

Platform Detection

Auto-detect from git remote:

REMOTE=$(git remote get-url origin)
if echo "$REMOTE" | grep -qi "github"; then
  PLATFORM="github"; CLI="gh"
elif echo "$REMOTE" | grep -qi "gitlab"; then
  PLATFORM="gitlab"; CLI="glab"
fi

CLI Command Mapping

| Action | GitHub (gh) | GitLab (glab) | |--------|---------------|-----------------| | Check CI | gh pr checks | glab ci status | | Create PR/MR | gh pr create | glab mr create | | View logs | gh run view --log-failed | glab ci view |

Arguments

| Argument | Description | Default | |----------|-------------|---------| | --max-retries N | Maximum fix iterations | 5 | | --platform github\|gitlab | Force platform | auto-detect | | --auto-research | Use web research on failures | true | | --fix-issues | Attempt automatic fixes | true | | --strict-validation | ALL checks must pass | true | | --timeout SECONDS | Per-iteration timeout | 1800 | | --dry-run | Simulate without pushing | false |

Loop Phases

[Start]
   ↓
Phase 1: COMMIT & PUSH
   - Stage all changes
   - Run quality gate
   - Atomic commit
   - Push to feature branch
   ↓
Phase 2: CREATE/UPDATE PR/MR
   - Create new PR/MR or update existing
   ↓
Phase 3: MONITOR CI
   - Poll GitHub Actions / GitLab CI
   - Wait for all checks complete
   ↓
Phase 4: ANALYZE FAILURES
   - Identify failed checks
   - Extract error messages
   - Categorize failure type
   ↓
Phase 5: FIX (if failures)
   - Diagnose root cause
   - Apply fixes
   - Commit fix
   ↓
Phase 6: RETRY LOOP
   - If retries remaining → Phase 1
   - If max retries → FAIL
   - If all pass → SUCCESS

Rust Failure Types

| Failure Type | Action | |--------------|--------| | cargo fmt | Run cargo fmt --all | | cargo clippy | Fix warnings, respect -D warnings | | cargo test | Debug test failures, fix or skip flaky | | cargo audit | Update vulnerable dependency | | cargo deny | Fix license or advisory violations | | cargo machete | Remove unused dependencies | | Linker errors | Check build-essential, pkg-config |

Rationalizations

| Rationalization | Reality | |-----------------|---------| | "The loop is stuck, I'll just force merge" | Force merging defeats the purpose of CI and introduces regressions. | | "One more retry should fix it" | Repeated identical failures indicate a root cause, not a flaky test. | | "I'll disable strict validation to pass faster" | Strict validation catches issues early; disabling it pushes bugs to production. |

Red Flags

  • [ ] Exceeding max retries without diagnosing root cause
  • [ ] Disabling strict validation to bypass failing checks
  • [ ] Force merging when the self-fix loop reports failure

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.