Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add urmzd/dotfiles --skill fix-and-retrygit clone --depth 1 https://github.com/urmzd/dotfilesWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/urmzd/dotfiles/fix-and-retry)<a href="https://agentmods.dev/skills/urmzd/dotfiles/fix-and-retry"><img src="https://agentmods.dev/badge/skills/urmzd/dotfiles/fix-and-retry.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00106 | $0.00662 |
| Opus 5 | $0.00053 | $0.00331 |
| Sonnet 5 | $0.00021 | $0.00132 |
| Haiku 4.5 | $0.00011 | $0.00066 |
Grade A, and why
fix-and-retry scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 44 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Fix and Retry
Diagnose CI failure, fix it, and re-ship.
Steps
-
Diagnose: Follow the
diagnose-ciworkflow:gh run list --status=failure --limit 1 --json databaseId,name,headBranchto find the latest failuregh run view <id> --log-failedto get error logs- Identify root cause and affected files
-
Fix: Apply the fix to the codebase. Read the affected file(s), make the edit, and verify the fix makes sense.
-
Commit: Create a conventional commit for the fix (e.g.,
fix(ci): correct workflow syntax). Use a HEREDOC for the message. -
Push: Before pushing, capture the pre-push run id (
gh run list --branch $(git branch --show-current) --limit 1 --json databaseId -q '.[0].databaseId'). Thengit push. -
Watch: Poll for a NEWER run, not the previous failed one. Match the new run by the pushed commit's
headSha(git rev-parse HEAD) -- e.g.gh run list --branch $(git branch --show-current) --limit 5 --json databaseId,headSha,status,conclusionand pick the run whoseheadShaequals the new HEAD (and whose id differs from the captured pre-push id). Poll every 15s (max 5 minutes) until that run completes. This prevents the watcher from latching onto the previous failed run before the new run is registered. -
Report: Show whether the re-run passed or failed. If it failed again, show the new error.
Rules
- Only fix issues you can confidently diagnose from the logs. If the cause is unclear, report the diagnosis and ask the user rather than guessing.
- Never force push or amend the previous commit.
- If the fix requires secrets, env vars, or manual GitHub settings changes, explain what's needed instead of attempting it.
Gotchas
- A new CI run is not registered the instant you push. Capture the pre-push run id (step 4) and poll for a run whose
headShamatches the newly pushed HEAD before reading status. If you watch--limit 1blindly, the watcher can latch onto the previous failed run and report a false failure.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 7d ago First seen · 44 lines · 106 tokens per session scan A 890abff39c2b
fix-and-retry is a skill published in the GitHub repository urmzd/dotfiles (3 stars, last pushed yesterday), licensed Apache-2.0. It adds 106 tokens to every session and 662 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
save-debug-experience
Record a debugging session's findings into a timestamped markdown file under debugexperience/. Captures problem, root cause, solution, and key learnings in a structured, reusable format. Use when: you've just resolved a non-obvious bug, found an undocumented edge case, encountered an issue that took multiple attempts…
use-codefresh
Reference for using Codefresh via the CodeFresh CLI. Use when a Codefresh CI check is failing in a recursionpharma PR, or when working with Codefresh builds.
use-next-devtools
Reference for using the NextJS Dev Tools via the nextjs-agent. Use to debug or observe Next.js framework internals.
prisma-connection-pool-exhaustion
Fix Prisma "Too many connections" and connection pool exhaustion errors in serverless environments (Vercel, AWS Lambda, Netlify). Use when: (1) Error "P2024: Timed out fetching a new connection from the pool", (2) PostgreSQL "too many connections for role", (3) Database works locally but fails in production…
typescript-circular-dependency
Detect and resolve TypeScript/JavaScript circular import dependencies. Use when: (1) "Cannot access 'X' before initialization" at runtime, (2) Import returns undefined unexpectedly, (3) "ReferenceError: Cannot access X before initialization", (4) Type errors that disappear when you change import order, (5) Jest/Vitest…
nextjs-server-side-error-debugging
Debug getServerSideProps and getStaticProps errors in Next.js. Use when: (1) Page shows generic error but browser console is empty, (2) API routes return 500 with no details, (3) Server-side code fails silently, (4) Error only occurs on refresh not client navigation. Check terminal/server logs instead of browser for…