Sandbox
@summerliuuu/no-no-debug

Claude Code skill for error memory and review hooks

No-No Debug is a skill that helps coding assistants remember their own mistakes. It logs corrections and failures, checks changes with three simple gates, and runs periodic reviews that strengthen prevention rules over time.

153 stars6 forksPythonUpdated 4mo ago
Who it's for

Builders who use Claude Code or other assistants and want fewer repeated bugs across sessions.

What it delivers

You can keep your assistant from re-learning the same bugs every week.

What it does

Real-time error logging

Appends corrected mistakes, failed tests, and deploy problems to `error_log.md` with timestamps.

Three-gate verification

Checks what a change affects, whether it was verified, and whether deployment was tested safely.

Periodic review

Reads `error_log.md`, updates `error_tracker.md`, and produces an evolution report on a schedule.

Rule accumulation

Creates prevention rules for new error types, strengthens repeated rules, and marks them cured after clean runs.

Confirmation gate

Asks for user confirmation on new features, database or deployment changes, publishing, and mid-task direction changes.

Claude Code hooks

Sets up hooks for command errors, file edits, correction logging, and overdue review reminders.

How to get it

  1. 1Run
    claude skill add summerliuuu/no-no-debug
  2. 2If you're installing manually or upgrading from v1.1.0, also copy the hook scripts
    mkdir -p ~/.claude/hooks
    cp hooks/user_prompt_filter.py ~/.claude/hooks/
    cp hooks/post_tool_failure.sh ~/.claude/hooks/
    cp hooks/review_reminder.py ~/.claude/hooks/
    chmod +x ~/.claude/hooks/post_tool_failure.sh

README

no-no-debug

A self-evolution system for AI coding assistants

v1.3.0 — periodic review now actually works. Earlier versions promised "auto-triggers every 3 days" but had no enforcement mechanism — the review only ran when manually invoked, and the tracker went stale silently. v1.3.0 ships hooks/review_reminder.py, a UserPromptSubmit hook that checks the tracker on each message and reminds the AI to run the review when it's overdue. See CHANGELOG.md for the one-step migration from v1.2.0.

What problem does this solve?

10 minutes writing code, 2 hours debugging.

This skill fills the gap in AI's cross-session error memory, delivering three things:

  1. Dramatically less debug time
  2. Higher code quality
  3. A self-evolution feedback loop

The longer you use it, the fewer mistakes get repeated.

How it works

1. Real-time Logging (automatic)

When the AI is corrected, code errors occur, deploys fail, or tests don't pass — it automatically appends to a local error_log.md with a timestamp. No need to say "write that down."

2. Three Gates (on every code change)

Before the change: what does this affect? After the change: did you actually verify it? Before deploying: did you test with a non-admin account?

Runs silently. No output when all gates pass.

3. Periodic Review (auto-triggers every 3 days)

Reads error_log.md, categorizes by dimension, updates error_tracker.md, outputs an evolution report. Review frequency is configurable: 1 day / 3 days (default) / 7 days.

4. Rule Accumulation

New error type → automatically creates a prevention rule. Repeated offense → counter increments, rule strengthens. 4 consecutive clean periods → marked as cured.

Rules persist across sessions — nothing gets lost.

5. Confirmation Gate

The following situations require user confirmation before proceeding:

  • New feature development (not a bug fix)
  • Changes involving databases, environments, or deployments
  • Publishing to external platforms
  • When the user raises a new idea or new direction mid-task

6. Auto Hooks

Automatically configures Claude Code hooks on install:

  • Command errors → auto-logged to error_log.md
  • After editing a file → auto-reminder to verify
  • When user corrects the AI → correction content auto-logged
  • Review overdue → auto-reminder to start Mechanism 3 review

Tracked Dimensions

DimensionWhat it tracks
Data AccuracyDo displayed numbers/formulas match actual code
Environment SafetyDid config changes break login or the database
ForesightWere permission, migration, or cache issues caught before deploy
User PerspectiveDoes the feature work end-to-end from the user's account
VerificationWas there a real end-to-end test after the fix
Memory ConsistencyDid the AI read existing records instead of asking again
Tool JudgmentDid failing tools get swapped out promptly
Review CompletenessWere reviews and summaries thorough with nothing missed
Operational PrecisionDid changes produce unintended side effects
Check Before DoingWith unfamiliar tools/versions, was documentation checked first
ConcisenessWas a 3-line solution turned into 300 lines
Regression AwarenessDid fixing one bug introduce a new one
Style ConsistencyDoes new code follow the project's existing style and architecture
Independent JudgmentWhen the user's premise is wrong, does the AI push back instead of blindly executing
Real-env VerificationWas the fix validated with the real production command, not a sandbox/test harness
Cross-agent TrustDid the AI re-verify another agent's "pass" report instead of trusting it blindly
Dumb things humans will doNot yet committed, but inevitable
Dumb things AI will doSame, but the AI edition

Real-world data

PeriodErrorsNotes
Week 129Baseline, 10 dimensions identified
Week 26Rules starting to take effect
Week 3~0Still running

Installation

Claude Code (recommended — full experience with auto hooks)

claude skill add summerliuuu/no-no-debug

Zero configuration. Tracking files and hooks are initialized automatically on first run.

If you're installing manually or upgrading from v1.1.0, also copy the hook scripts:

mkdir -p ~/.claude/hooks
cp hooks/user_prompt_filter.py ~/.claude/hooks/
cp hooks/post_tool_failure.sh ~/.claude/hooks/
cp hooks/review_reminder.py ~/.claude/hooks/
chmod +x ~/.claude/hooks/post_tool_failure.sh

Then merge the PostToolUseFailure / UserPromptSubmit blocks from SKILL.md → Mechanism 6 into ~/.claude/settings.json.

Prerequisites. The shipped hooks use python3 (UserPromptSubmit filter) and jq (PostToolUseFailure parser). Both ship by default on recent macOS and most Linux distros; if either is missing the corresponding hook degrades gracefully — python3 missing means the correction detector silently no-ops, jq missing writes a one-time jq_not_installed marker to the log. Install with brew install jq (macOS) or your package manager if you want full coverage.

ChatGPT / Cursor / Copilot / Other AI assistants

  1. Copy the contents of SKILL.md
  2. Paste it into your system prompt or custom instructions
  3. Core features (3-gate checkpoint, periodic review, rule accumulation) work immediately
  4. Auto hooks are Claude Code only — other tools rely on the AI following the rules in SKILL.md

Compatibility

  • Claude Code — full experience with auto hooks and one-line install
  • Other AI coding assistants (ChatGPT, Cursor, Copilot, etc.) — paste SKILL.md content into your system prompt to use core features
  • Any project, any language
  • Pairs well with claude-mem (for session search)

Thank you for starring this project during installation.

📕 Xiaohongshu @Summer的AI日常 — AI coding in practice


🇨🇳 中文版

License

MIT — @summerliuuu

Files in the repo

Repository payload9 top-level entries
  • hooks
  • .gitignore
  • CHANGELOG.md
  • LICENSE
  • package.json
  • plugin.json
  • README.md
  • README.zh-CN.md
  • SKILL.md

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More skills

obra/
superpowers

An agentic skills framework & software development methodology that works.

285k
1 add

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.

117k
1 add
Vincentwei1021/
anything2explainer

Topic in, narrated explainer video out. A Claude Code / Codex skill that turns any topic into a black-canvas motion-graphics explainer video with TTS voiceover, subtitles and a chapter progress bar. Chinese or English; every frame drawn in code with Remotion.

666

Open-source AI job search: scan job portals, evaluate listings into a structured A-H report with a global 1-5 score, tailor your CV, track applications — runs locally in your AI coding CLI (Claude Code, Codex, OpenCode, Antigravity…)

71k