Skip to content
Back to skills

Systematic Debugging

ASecurity

Root-cause debugging through the vendored superpowers systematic-debugging procedure, with the lesson recorded through ytstack:lesson and decisions routed into DECISIONS.md. Use when hitting a bug, a failing test, flaky behaviour or any unexpected output, before proposing a fix. Not for a one-line fix with an obvious, already-known cause (quick-task).

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 11, 2026
ai-agentsgoshellbashdebugginggit

Security analysis

A100/100

Scanned November 15, 2026

npx -y skills add Yesterday-AI/ytstack --skill systematic-debugging --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Systematic Debugging?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Systematic Debugging
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/yesterday-ai-systematic-debugging/badge)](https://www.skillsdirectory.com/skills/yesterday-ai-systematic-debugging)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: systematic-debugging
metadata:
  tier: core
  version: 0.2.0
description: "Root-cause debugging through the vendored superpowers systematic-debugging procedure, with the lesson recorded through ytstack:lesson and decisions routed into DECISIONS.md. Use when hitting a bug, a failing test, flaky behaviour or any unexpected output, before proposing a fix. Not for a one-line fix with an obvious, already-known cause (quick-task)."
allowed-tools:
  - Bash
  - Read
  - Edit
  - Write
  - AskUserQuestion
---

# ytstack:systematic-debugging

Thin wrapper around the vendored superpowers `systematic-debugging` skill (`vendor/superpowers/skills/systematic-debugging/SKILL.md`). Injects ytstack project context, then inlines the vendored procedure verbatim. Findings are routed into ytstack artifacts. Vendor is single source of truth.

## ytstack context (resolved at render time)

```!
# ytstack resolver (M016): checkout = where this shell runs, via the shared lib.
_LIB="${CLAUDE_SKILL_DIR}/../../hooks/lib/git-ctx.sh"
if [ -f "$_LIB" ]; then
  . "$_LIB"; yt_git_ctx "$PWD"; yt_resolve_yt_dir >/dev/null
  _PROJECT_DIR="$YT_TOPLEVEL"; _YT_DIR="$YT_DIR"; _YT_SCOPE="$YT_SCOPE"; _IS_GIT="$YT_IS_GIT"; _PROJECT_KEY="$YT_REPO_KEY"
else
  # Host did not substitute CLAUDE_SKILL_DIR (e.g. Codex adapter): project scope only.
  _IS_GIT=$([ "$(git rev-parse --is-inside-work-tree 2>/dev/null)" = true ] && echo yes || echo no)
  _PROJECT_DIR=$(git rev-parse --show-toplevel 2>/dev/null || pwd -P)
  _YT_DIR=""; _YT_SCOPE=none; _PROJECT_KEY=""
  [ -d "$_PROJECT_DIR/.ytstack" ] && { _YT_DIR="$_PROJECT_DIR/.ytstack"; _YT_SCOPE=project; }
fi
cd "$_PROJECT_DIR" 2>/dev/null || true
_PROJECT_SLUG=$(basename "$_PROJECT_DIR")
_M=none; _T=none
if [ -n "$_YT_DIR" ] && [ -f "$_YT_DIR/STATE.md" ]; then
  _M=$(sed -n 's/^current_milestone: *//p' "$_YT_DIR/STATE.md" | head -1)
  _T=$(sed -n 's/^active_task: *//p' "$_YT_DIR/STATE.md" | head -1)
fi
echo "HAS_YTSTACK: $([ -n "$_YT_DIR" ] && echo yes || echo no)"
echo "YT_DIR: $_YT_DIR"
echo "CURRENT_MILESTONE: $_M"
echo "ACTIVE_TASK: $_T"
```

## ytstack invocation notes

You are invoked inside a ytstack project (or without -- systematic-debugging is useful outside ytstack too). The Iron Law from the vendored skill holds: no fixes until root cause is identified.

HARD-GATE: none. Debugging may happen before ytstack is initialized.

**A test that fails only sometimes.** Do not rerun it until it is green, and do not skip it. Raise the reproduction rate first: run it in a loop, alone and inside the full suite, with the same seed and with a changed one, and pin the randomness, the clock and the order. Then run the same test on the base commit. If it flakes there too, the flake is not this change's defect: it becomes a tracked follow-up with the reproduction rate and the conditions, and the required check on the current commit still has to turn green before the change is called done. If it fails only with the change, it is a defect of the change and goes through the root-cause procedure below. Where the vendored text and this paragraph differ, this paragraph applies.

After the vendored procedure completes:
- Once the root cause is known, always: invoke `ytstack:lesson`. Hand it what happened and the cause in two sentences, with the commit and the failing check, the area (`production` for an incident record or a production finding, `ci` for a red check, `review` for a defect a review found, `evidence` or `process` otherwise), the incident record's id when the debugging started from one, and that this session may change code within the task's files: the regression test the fix needs is usually the lesson's check (`check:<test path>`), and it is `fixed` once that test passes on the fix. A project-level pattern no test can see (e.g. "config race between env-vars and config.json reads that will recur elsewhere") becomes the lesson's `KNOWLEDGE.md` entry through that skill, not a line written here, and never a line in `AGENTS.md` or `CLAUDE.md`.
- If the root cause forces an architectural decision (e.g. "we must enforce X pattern across all future modules"), append to `DECISIONS.md` in append-only format.
- If the root cause relates to an active task, reference it in the task-plan body so future sessions see the context.

## Vendored procedure (inlined verbatim)

```!
cat "${CLAUDE_SKILL_DIR}/../../vendor/superpowers/skills/systematic-debugging/SKILL.md"
```

## Namespace note (ytstack)

The text above is upstream superpowers content (v7.0.2) rendered inside ytstack. Read `superpowers:<skill>` as `ytstack:<skill>` (`superpowers:verification-before-completion` is `ytstack:verification-before-completion`, `superpowers:test-driven-development` is `ytstack:test-driven-development`) and invoke the ytstack-namespaced skill via the Skill tool. Relative links resolve under `vendor/superpowers/skills/systematic-debugging/` in the ytstack plugin directory (`${CLAUDE_SKILL_DIR}/../../vendor/superpowers/skills/systematic-debugging/`); read them from there when you need them.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.