Skip to content
Agent Orchestration
Command

/trk

Capture mistake or improvement opportunity with 5 whys analysis

From plugin
claude-skillz
36713 skills11 agents13 commands
> /plugin marketplace add NTCoding/claude-skillz

Command definition

trk.md
description: Capture mistake or improvement opportunity with 5 whys analysis

Capture a mistake or improvement opportunity. Follow these steps:

1. Extract the description from the user's `/trk` command 2. Identify your current persona/role (what system prompt you're operating under) 3. Perform 5 whys root cause analysis of why this mistake happened 4. Extract last 5 message exchanges from the current conversation 5. Create a report in `~/.claude/trk-db/active/` with format:

---
id: YYYY-MM-DD-HH-MM-SS
created: ISO8601 timestamp
project: current project name
persona: current persona/role
status: active
category: rule-violation|improvement|confusion
---

# [User's description]

## 5 Whys Analysis

1. **Why did this happen?** [Your analysis]
2. **Why did that happen?** [Your analysis]
3. **Why did that happen?** [Your analysis]
4. **Why did that happen?** [Your analysis]
5. **Root cause:** [Your conclusion]

## Context (Last 5 Messages)

[Extracted conversation]

## Resolution

[Empty - filled when resolved]

6. Initialize git repo if `~/.claude/trk-db/.git` doesn't exist 7. Git add and commit with message: "Add report: [description]" 8. Confirm to user: "Report captured: ~/.claude/trk-db/active/[id].md"

@ntcoding
Ships withclaude-skillz

Reusable skills and composable system prompts for Claude Code.

Stars on GitHub

Momentum

stars in total
367
Star history of NTCoding/claude-skillz on GitHub, a chart by star-history.com

Other commands on claude-skillz.

arc-prd

arc-prd

Command

Architecture review for a PRD. Analyzes codebase through separation-of-concerns and tactical-ddd lenses, surfaces architectural…

@ntcoding@ntcodingInstall Command
collab

collab

Command

Define the collaboration style between Claude Code and the user for the current session

@ntcoding@ntcodingInstall Command

More commands from other plugins.

COMMAND_COMPLIANCE_REPORT

COMMAND_COMPLIANCE_REP…

Command

Reviewed all command files in `.claude/commands/analysis/` directory to ensure proper usage of: - `mcp__claude-flow__*` tools…

@ruvnet@ruvnetInstall Command
ask

ask

Command

This compatibility command keeps `/oh-my-claudecode:ask` available without loading the full `ask` skill description in every…

@yeachan-heo@yeachan-heoInstall Command