superforge-debug

superforge-debug is a skill for Claude Code, Codex from takaoumehara/superforge-skill. It costs 200 tokens per session (1,315 once invoked), scanned A, original, MIT.

A root-cause debugging process with a persistent record of past failed guesses and verified lessons in the project repository.

In plain words
What is it for?
Use it for errors, bugs, failed tests, and unexpected behavior when you want past failures checked before diagnosis and new lessons recorded afterward.
Why use it?
It reduces repeated mistakes and discourages quick patches that hide the underlying problem.

Skill for Claude CodeCodex

Part of the superforge-skills plugin — 15 skills shipped together

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.

agentmods
npx agentmods add skills/takaoumehara/superforge-skill/superforge-debug
Any agent
npx skills add takaoumehara/superforge-skill --skill superforge-debug
Clone the repo
git clone --depth 1 https://github.com/takaoumehara/superforge-skill

Made for: Claude Code, Codex.

Or install superforge-skills, the plugin that ships this one along with the rest of its 15 skills.

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 superforge-debug

README.md
[![agentmods](https://agentmods.dev/badge/skills/takaoumehara/superforge-skill/superforge-debug.svg)](https://agentmods.dev/skills/takaoumehara/superforge-skill/superforge-debug)
Your own site
<a href="https://agentmods.dev/skills/takaoumehara/superforge-skill/superforge-debug"><img src="https://agentmods.dev/badge/skills/takaoumehara/superforge-skill/superforge-debug.svg" alt="Measured on agentmods" height="20"></a>
Per session 200 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,315 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00200 $0.01315
Opus 5 $0.00100 $0.00658
Sonnet 5 $0.00040 $0.00263
Haiku 4.5 $0.00020 $0.00131

Measured 4d ago against content hash 5247502e6bc3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

superforge-debug 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 4d 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.

skills/superforge-debug/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.

Superforge Debug — Systematic Debugging & FailForward Memory Engine

Use this skill whenever an error, bug, test failure, or unexpected behavior occurs. NEVER apply trial-and-error edits or mask symptoms with dummy fallbacks.


1. FailForward Memory Pre-Flight (Mandatory)

Before forming diagnostic hypotheses, read the project's failure log:

docs/failforward.md — committed, in the repository. This is the memory, and it works whether or not any CLI is installed. Thirty seconds of reading it before hypothesising is the entire reason it exists, because the thing it records is not the list of past fixes but the list of past wrong first guesses, and those repeat.

If the local FailForward CLI is available, query it as well:

failforward recall "<error keyword or component name>"

If a relevant past failure is recalled:

  • Apply the verified lesson immediately.
  • Mark as useful via failforward useful <id>.

The file's entry format, and why the Looked like line is the one that pays → references/failforward.md.


2. 4-Phase Empirical Debugging Protocol

Phase 1 — Log Extraction & Inspection

  • Read the FULL, un-truncated log or stack trace.
  • Extract exact error symbols, line numbers, and file locations.

Phase 2 — Reproduce & Isolate

  • Isolate the minimal reproduction case.
  • Trace upstream data flow to pinpoint where the contract was broken.
  • If it will not reproduce, do not proceed to Phase 3 — a fix formulated without a reproduction cannot be verified. Narrow what "sometimes" means, match the environment one variable at a time, or instrument and wait (references/failforward.md §2). For "it used to work", stop reasoning about the code and bisect (§3 there).

Phase 3 — Root-Cause Fix Formulation

  • Diagnose based strictly on empirical log evidence.
  • Fix the underlying contract failure. Never swallow exceptions or bypass assertions.

Phase 4 — Verification & FailForward Recording

  • Run tests to confirm clean success — and re-run the original reproduction, not only the new test.
  • Append the entry to docs/failforward.md, including Looked like and Locked by (write 無し deliberately if no test locks it).
  • If the CLI is present, record it there too:
    failforward record \
      --category <build|type|test|lint|logic|debug|other> \
      --severity <p0|p1|p2|p3> \
      --symptom "<What happened>" \
      --cause "<Why it happened>" \
      --fix "<How it was fixed>" \
      --context "<File/function>" \
      --scope project
    

Read the full file on GitHub · 137 lines

Files

What ships with it

9 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. 4d ago First seen · 137 lines · 200 tokens per session scan A 5247502e6bc3

Subscribe to this mod's changes

superforge-debug is a skill published in the GitHub repository takaoumehara/superforge-skill (1 stars, last pushed 19d ago), licensed MIT. It adds 200 tokens to every session and 1,315 once invoked, about $0.0010 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.

Related

Other skills, from other repositories

spec-kitty-charter-doctrine

Run charter interview, generation, context, and sync workflows for project governance in Spec Kitty 3.x. Access doctrine artifacts programmatically via DoctrineService. Resolve agent profiles. Load action-scoped governance context iteratively, not all at once. Triggers: "interview for charter", "generate charter"…

Priivacy-ai/spec-kitty · 135 tokens

neo4j-modeling-skill

Design, review, and refactor Neo4j graph data models. Use when choosing node labels vs relationship types vs properties, migrating relational/document schemas to graph, detecting anti-patterns (generic labels, supernodes, missing constraints), designing intermediate nodes for n-ary relationships, enforcing schema with…

neo4j-contrib/neo4j-skills · 152 tokens

lov-article-creator

统一创建、改写、品牌化或忠实转载微信公众号文章包:正文写作调用唯一文风与作者性能力,离线完成结构、品牌、封面、4:3 首图、来源与质量验收。Use when asked to write, brand, audit, or faithfully repost a WeChat article package.

lovstudio/skills · 75 tokens

lov-env-management

统一管理平台、账号与多组 API Key,维护有效期和启用状态,安全同步到 zsh 或用户会话环境,并提供脱敏 Dashboard;用户说“管理环境变量”“rotate API keys”时使用。.

lovstudio/skills · 53 tokens

lov-repo2docs

Turn any folder of source material — a code repository, a pile of articles, a mixed knowledge dump with images — into a professional, polished Fumadocs (Next.js) documentation website, then deploy it to https://{product-id}.example.com/docs. Works by reading the folder one unit at a time and incrementally growing and…

lovstudio/skills · 186 tokens

lov-deploy-to-vercel

Deploy frontend projects to Vercel with automatic custom domain setup. Handles Vite, Next.js, CRA, and static sites. Auto-configures Cloudflare DNS CNAME records and Vercel domain aliases. Supports SPA routing via vercel.json. Trigger when user says "deploy to vercel", "部署到 vercel", "vercel deploy", or mentions a…

lovstudio/skills · 92 tokens