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 agentmods add skills/stfade/moth/moth-debug-first-fixnpx skills add stfade/moth --skill moth-debug-first-fixgit clone --depth 1 https://github.com/stfade/mothWhat 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 | $0.00064 | $0.00338 |
| Opus 5 | $0.00032 | $0.00169 |
| Sonnet 5 | $0.00013 | $0.00068 |
| Haiku 4.5 | $0.00006 | $0.00034 |
Grade A, and why
moth-debug-first-fix 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 2d 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.
What it actually says
Moth Debug First Fix
Workflow
- Capture the exact failing command, error output, package context, and the smallest relevant file excerpts.
- Redact secrets before storing, quoting, or sending the error anywhere.
- Call
analyze_errorwhen available. Treat itslikely_cause,best_first_fix,avoid, andconfidenceas a starting brief, not certainty. - If context is missing, gather only the narrow missing context named by the brief.
- Patch the smallest code surface that explains the key error line.
- Follow the verified memory lifecycle:
analyze_error-> apply/attempt fix -> run verification command -> callremember_fix_resultwithverification_commandandverification_result. - Call
remember_fix_resultonly when a fix/change was actually attempted, the verification command was actually run, and the result is unambiguouslypassedorfailed.
Guardrails
- Do not start with a broad refactor.
- Do not scan the whole repository unless the user explicitly asks.
- Do not treat Moth confidence as proof.
- Do not call
remember_fix_resultfor suggestions, unapplied changes, skipped changes, missing verification, ambiguous results, or guesses. - Do not record full sensitive logs in memory.
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.
- 2d ago First seen · 25 lines · 64 tokens per session scan A aa7a6f544bbb
moth-debug-first-fix is a skill published in the GitHub repository stfade/moth (2 stars, last pushed 4mo ago), licensed MIT. It adds 64 tokens to every session and 338 once invoked, about $0.0003 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
agy-delegate
Delegate a coding task to the Google Antigravity CLI (agy) as a background implementer, then review its diff and land it yourself. Use this whenever the user wants to hand implementation work to Antigravity or agy - phrasings like "have Antigravity do X", "delegate this to agy", "run it through agy", or "use…
telnyx-messaging-hosted-curl
Set up hosted SMS numbers, toll-free verification, and RCS messaging. Use when migrating numbers or enabling rich messaging features. This skill provides REST API (curl) examples.
opik-diagnose
Surface the Opik traces worth a developer's attention, ranked by signal — errors, failed tool calls, latency, regressions, and low online-eval scores — plus Diagnostics issues. Reads live/production traces via the SDK (searchtraces and agentinsights) and works with no MCP; uses the MCP issue entity when connected.…
mcp-server
Use when exposing Spring Boot 3 application capabilities through Model Context Protocol tools, resources, or prompts. Covers Spring AI 1.x tool callback registration, transports, schemas, errors, security, and standalone MCP Java SDK compatibility.
client-scripts
Write ServiceNow client scripts (onLoad/onChange/onSubmit/onCellEdit) using gform, guser, GlideAjax, field visibility/mandatory toggles, and validation with debounced server calls.
Presentations
Read, create or edit PowerPoint or Google Slides decks. Use for presentation, slide deck, PowerPoint, PPT, PPTX, or Google Slides requests.