New advertisers: 50% off your first month with code FIRSTMONTHSee slots
NTCoding avatar

track-and-improve

Structured capture of mistakes and improvement ideas with automatic root cause analysis for Claude Code sessions.

version
1.0.0
GitHub stars
365
View on GitHub

What it does

  • Adds 3 commands (/trk, /trk-review, /trk-resolve) for capturing, reviewing, and closing out reports
  • Runs a 5 whys root cause analysis on each entry and saves the last 5 conversation messages as context
  • Stores reports in ~/.claude/trk-db/ with active/ and resolved/ folders under git version control
  • Designed for weekly pattern review, feeding fixes into CLAUDE.md, hooks, or skills

Capture mistakes and improvement opportunities with automatic 5 whys analysis

Add marketplace

/plugin marketplace add NTCoding/claude-skillz

Run it inside Claude Code once, then install the plugin below.

Install

/plugin install track-and-improve@claude-skillz

Run it inside Claude Code after adding the marketplace.

Files

Discovered from source

Resolve an improvement report. Expected format: /trk-resolve <id> <resolution description>

  1. Parse the report ID and resolution from the command
  2. Read the report from ~/.claude/trk-db/active/<id>.md
  3. Update the report:
    • Change status: active to status: resolved
    • Add resolved timestamp to frontmatter
    • Fill in Resolution section with the description
  4. Move file from active/ to resolved/
  5. Git add and commit with message: "Resolve: [id] - [resolution]"
  6. Confirm to user: "Report resolved and moved to ~/.claude/trk-db/resolved/.md"

Readme

Track and Improve

Capture mistakes and improvement opportunities with automatic 5 whys root cause analysis.

Installation

/plugin marketplace add file:///path/to/claude-skillz
/plugin install track-and-improve@claude-skillz

Usage

Capture a mistake:

/trk Added comments when CLAUDE.md forbids them

Claude performs 5 whys analysis, extracts session context, creates report in ~/.claude/trk-db/active/, and auto-commits to git.

Review reports:

/trk-review

Shows summary of active reports organized by recency and category.

Resolve a report:

/trk-resolve 2025-01-15-10-30-00 Added PreToolUse hook to block comments

Moves report to resolved/ and commits resolution.

Storage

Reports stored in ~/.claude/trk-db/ with git version control:

  • active/ - Unresolved reports
  • resolved/ - Completed improvements

Each report contains:

  • Your description
  • Claude's 5 whys root cause analysis
  • Last 5 messages of conversation context
  • Metadata (timestamp, project, category)
  • Resolution (when resolved)

Workflow

  1. Spot a mistake during session
  2. Type /trk <description>
  3. Continue working
  4. Weekly: /trk-review to analyze patterns
  5. Update CLAUDE.md, create hooks, or add skills based on insights

Details

Marketplace
NTCoding/claude-skillz
Source
track-and-improve
Category
Productivity
Keywords
improvement, tracking, feedback, learning
Listed since
Apr 7, 2026

More from NTCoding/claude-skillz

All 13

Similar to track-and-improve

More Agent Workflow & Planning