debug-trail

debug-trail is a skill for Claude Code, Codex from tellmefrankie/news-engine. It costs 0 tokens per session (974 once invoked), scanned A, original, MIT.

A debugging session record that captures the ideas tested, commands run, files examined, dead ends, cause, and fix as you work.

In plain words
What is it for?
Use it to document debugging work and produce a structured bug report ready to paste into a team knowledge base.
Why use it?
It prevents you from reconstructing a bug investigation from memory and gives you a record if the same problem returns.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to document debugging work and produce a structured bug report ready to paste into a team knowledge base.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tellmefrankie/news-engine/debug-trail
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 tellmefrankie/news-engine --skill debug-trail
Clone the repo
git clone --depth 1 https://github.com/tellmefrankie/news-engine

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/tellmefrankie/news-engine/debug-trail/github.svg)](https://agentmods.dev/skills/tellmefrankie/news-engine/debug-trail)
Your own site
<a href="https://agentmods.dev/skills/tellmefrankie/news-engine/debug-trail"><img src="https://agentmods.dev/badge/skills/tellmefrankie/news-engine/debug-trail/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 debug-trail

Your own site · 80×15
<a href="https://agentmods.dev/skills/tellmefrankie/news-engine/debug-trail"><img src="https://agentmods.dev/badge/skills/tellmefrankie/news-engine/debug-trail.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 974 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.00000 $0.00974
Opus 5 $0.00000 $0.00487
Sonnet 5 $0.00000 $0.00195
Haiku 4.5 $0.00000 $0.00097

Measured 8d ago against content hash a92f51b78dce, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

debug-trail 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 8d 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/debug-trail/SKILL.md · 125 lines

How it starts

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

Debug Trail

Automatically document your debugging session as you go. When the bug is fixed, you have a complete trail: what you tried, what you learned, what solved it.

The problem

You spend 3 hours debugging. You find the fix. Your manager asks you to write it up. You stare at the blank Confluence page and try to remember what you tried 2 hours ago.

Or worse: the same bug comes back in 3 months and you have to debug it again from scratch.

What it does

At the start of a debugging session, activate this skill. As you work, it tracks:

  • Each hypothesis you formed and tested
  • Commands run and their output
  • Files examined and what you found
  • Dead ends (just as important as the solution)
  • The actual root cause and fix

At the end: structured bug report, ready to paste anywhere.

Usage

Start of session:

Start debug trail for: TypeScript type error in options/analyzer.ts line 247
Error: Type 'string' is not assignable to type '"rising" | "falling" | "stable"'

During session — the skill tracks your work automatically as you run commands and read files.

End of session:

Close debug trail. Write up the full report.

Example Report Output

# Debug Trail — TS2322 lottery_trend Type Error
Date: 2026-05-13 | Duration: 23 minutes | Status: RESOLVED

## The Bug
File: src/options/weekly-anomaly-report.ts:24
Error: Type 'string' is not assignable to type '"rising" | "falling" | "stable"'

## Root Cause
TypeScript's type narrowing failed on the ternary expression:
  const trend = last - first > 20 ? 'rising' : last - first < -20 ? 'falling' : 'stable'

TypeScript inferred `trend` as `string` (widened from string literals).
The TickerWeekly interface expected the literal union type.

## What I Tried

[DEAD END] Tried casting: `trend as 'rising' | 'falling' | 'stable'`
  → Works but is unsafe — type assertion, not type inference

[DEAD END] Tried `as const` on the ternary
  → Syntax error — as const only works on object/array literals

[SOLUTION] Explicit type annotation on the variable:
  const trend: 'rising' | 'falling' | 'stable' = ...
  → TypeScript now validates the ternary against the declared type

## Files Changed
- src/options/weekly-anomaly-report.ts:24 — added explicit type annotation

## Lesson Learned
When TypeScript widens string literal ternaries to `string`, add explicit
type annotation rather than casting. The annotation lets TS validate, the
cast just suppresses the error.

## Commands Run
- npx tsc --noEmit  (initial discovery)
- npx tsc --noEmit  (verification after fix)

Read the full file on GitHub · 125 lines

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. 8d ago First seen · 125 lines · 0 tokens per session scan A a92f51b78dce

Subscribe to this mod's changes

debug-trail is a skill published in the GitHub repository tellmefrankie/news-engine (1 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 974 tokens. 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.