Initial commit
This commit is contained in:
15
commands/trk-resolve.md
Normal file
15
commands/trk-resolve.md
Normal file
@@ -0,0 +1,15 @@
|
||||
---
|
||||
description: Mark a report as resolved
|
||||
---
|
||||
|
||||
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/<id>.md"
|
||||
29
commands/trk-review.md
Normal file
29
commands/trk-review.md
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
description: Review active improvement reports
|
||||
---
|
||||
|
||||
Review all active improvement reports:
|
||||
|
||||
1. Read all files from `~/.claude/trk-db/active/`
|
||||
2. Parse YAML frontmatter from each report
|
||||
3. Present organized summary:
|
||||
|
||||
```
|
||||
Found X active reports:
|
||||
|
||||
Recent (last 7 days):
|
||||
- [id]: [description] ([project])
|
||||
- [id]: [description] ([project])
|
||||
|
||||
Older:
|
||||
- [id]: [description] ([project])
|
||||
|
||||
By category:
|
||||
- rule-violation: X
|
||||
- improvement: X
|
||||
- confusion: X
|
||||
```
|
||||
|
||||
4. Ask user: "Which would you like to review in detail?"
|
||||
5. When user selects, read and display full report
|
||||
6. Discuss patterns, root causes, and potential resolutions
|
||||
44
commands/trk.md
Normal file
44
commands/trk.md
Normal file
@@ -0,0 +1,44 @@
|
||||
---
|
||||
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:
|
||||
|
||||
```markdown
|
||||
---
|
||||
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"
|
||||
Reference in New Issue
Block a user