troubleshoot

troubleshoot is a skill for Claude Code from MadAppGang/magus. It costs 44 tokens per session (2,288 once invoked), scanned A, original, MIT.

A troubleshooting guide for meroku operations that fail during planning, applying, destroying, or AWS single sign-on setup. It uses meroku's briefing, project files, environment YAML, and generated Terraform to find an evidence-based fix.

In plain words
What is it for?
Use it from a meroku “Fix with AI” session when an infrastructure operation has failed and the briefing identifies the project and operation.
Why use it?
It prevents fixes made directly in AWS or generated files from being overwritten or causing configuration drift. It keeps the repair in the meroku project so the next run can reproduce it.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions Claude Code.

Part of the meroku plugin — 4 skills, 1 agent shipped together

Good fit Use it from a meroku “Fix with AI” session when an infrastructure operation has failed and the briefing identifies the project and operation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/madappgang/magus/troubleshoot
Install

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.

Any agent
npx skills add MadAppGang/magus --skill troubleshoot
Clone the repo
git clone --depth 1 https://github.com/MadAppGang/magus

Made for: Claude Code.

Or install meroku, the plugin that ships this one along with the rest of its 4 skills, 1 agent.

Wrote 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.

agentmods badge for troubleshoot

README.md
[![agentmods](https://agentmods.dev/badge/skills/madappgang/magus/troubleshoot/github.svg)](https://agentmods.dev/skills/madappgang/magus/troubleshoot)
Your own site
<a href="https://agentmods.dev/skills/madappgang/magus/troubleshoot"><img src="https://agentmods.dev/badge/skills/madappgang/magus/troubleshoot/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for troubleshoot

Your own site · 80×15
<a href="https://agentmods.dev/skills/madappgang/magus/troubleshoot"><img src="https://agentmods.dev/badge/skills/madappgang/magus/troubleshoot.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,288 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00044 $0.02288
Opus 5.5 $0.00018 $0.00915
Sonnet 5.5 $0.00009 $0.00458
Haiku 4.5 $0.00004 $0.00229

Measured 13d ago against content hash b4f670d7f7dc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

troubleshoot 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 13d 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.

plugins/meroku/skills/troubleshoot/SKILL.md · 137 lines

How it starts

The opening of the file, as written. The whole thing — 137 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Troubleshoot a meroku failure

meroku's "Fix with AI" writes a briefing to .meroku/claude/<YYYYMMDD-HHMMSS>-<operation>.md at the project root and starts Claude Code there. Your job: find why the operation failed, explain it with evidence, and fix it the way meroku can keep, so the next meroku run succeeds instead of reverting or drifting from your change.

You work in a meroku project: infrastructure/ (meroku's templates and modules), the env YAML (<env>.yaml at the root, else project/<env>.yaml), and the generated env/<env>/. Not the meroku source tree.

Written against meroku 6.2.0 (plus 6.4.0's event-consumer grants, 6.5.0's HMAC keys and 6.7.0's backend IAM keys), YAML schema v32 (v33 from 6.7.0). When this text disagrees with the briefing, the project's own infrastructure/ copy, or the YAML's schema_version, those win.

THE RULES

They come from the user and hold for the whole session. The briefing states them too.

  1. No direct writes to AWS. No console changes, no AWS CLI or SDK writes (create-*, put-*, update-*, delete-*, attach-*, tag-*, …). A change made in AWS is not in the YAML or the Terraform state, so the next meroku run reverts it or fails on the drift.
  2. Never edit the generated Terraform in env/<env>/. meroku rewrites every file there from the YAML on each run.
  3. Investigate and explain first; ask before any write. Wait for a yes before you change a file, run anything that changes AWS or Terraform state, or rerun meroku.
  4. Fix in this order.
    • (a) meroku bug — a template, module, migration or the binary does the wrong thing for a valid configuration. Give the evidence: file, line, and the input that triggers it. Ask the user for the path to their local meroku checkout and fix it there. infrastructure/ is a copy meroku replaces on update: edit it only as a stop-gap, and only when the user asks for one.
    • (b) Edge case no migration handles — a resource that already exists under another name, state that has to move, something created outside meroku. Interview the user first (what they expect, what is deployed, what may be lost), agree each command before it runs, and keep a written log of commands and results.
    • (c) Configuration problem — the YAML asks for something invalid or inconsistent. Change the env YAML, then the user reruns meroku.

Read the full file on GitHub · 137 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

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.

  1. 13d ago Changed · +2 lines b4f670d7f7dc
  2. 14d ago Changed · +5 lines ca845f9afbf4
  3. 15d ago Changed · +19 lines 5c236fa1c5c0
  4. 16d ago Changed d6ae25ebcb11
  5. 17d ago Changed · +2 lines 86989c1da677
  6. 19d ago First seen · 109 lines · 44 tokens per session scan A 4351df065ea9

Subscribe to this mod's changes

troubleshoot is a skill published in the GitHub repository MadAppGang/magus (16 stars, last pushed today), licensed MIT. It adds 44 tokens to every session and 2,288 once invoked, about $0.0002 per session on Opus 5.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-11-11.

Related

troubleshoot compared with skills from other repositories

troubleshoot next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
troubleshootMadAppGang/magusSkill16todayMITA44Claude Code
application-integration-troubleshootinggoogle/skillsSkill25ktodayApache-2.0A105Claude Code, Codex
pathways-workloadgoogle/skillsSkill25ktodayApache-2.0A178Claude Code, Codex
compute-mig-autoscaling-troubleshootinggoogle/skillsSkill25ktodayApache-2.0A150Claude Code, Codex
gke-workload-troubleshootinggoogle/skillsSkill25ktodayApache-2.0A69Claude Code, Codex
gke-workload-scaling-troubleshootinggoogle/skillsSkill25ktodayApache-2.0A170Claude Code, Codex
api-gateway-troubleshootinggoogle/skillsSkill25ktodayApache-2.0A196Claude Code, Codex