Markdown Converter
Agent skill for markdown-converter
4-layer knowledge capture system for development sessions. Use when user says /mem (quick capture), /distill (extract patterns), /td (post-task retrospective with Before/After context), /improve (work on pending items), or /commit (atomic commits via TDG). Manages docs/learnings/, docs/knowledge-base/, and docs/retrospective/ directories.
Sign in to like and favorite skills
4-layer system for capturing and organizing development knowledge.
| Command | Layer | Output | Trigger |
|---|---|---|---|
| 1 | | Quick insight capture |
| 2 | | 3+ learnings on same topic |
| 3 | | Task completed |
| 4 | Implementation | Work on pending items |
| - | Git commits | Atomic commits via TDG |
| - | Learning doc + PR updates | Handle PR review feedback |
| - | Notification daemon | Auto PR review notifications |
| - | | Save code snippets |
| - | | Session summaries |
| - | Search results | Search knowledge index |
| - | | Cross-project knowledge |
| - | | Process flow diagrams |
| - | | Design pattern docs |
| - | Archive + cleanup | Retention policy management |
ทำงาน → /mem "insight" → /distill topic → /td → /improve (Layer 1) (Layer 2) (Layer 3) (Layer 4)
docs/ ├── learnings/ # /mem output │ └── YYYY-MM/DD/ ├── knowledge-base/ # /distill output ├── examples/ # /example output │ └── [language]/ ├── summaries/ # /summary output ├── shared-knowledge/ # /share output (cross-project) ├── flows/ # /flow output (Mermaid diagrams) ├── patterns/ # /pattern output (design patterns) └── retrospective/ # /td output └── YYYY-MM/
Run init script to create directory structure:
./scripts/init.sh $PROJECT_ROOT
Or manually:
mkdir -p docs/{learnings,knowledge-base,retrospective}
Quick knowledge capture - ใช้ระหว่างทำงานเมื่อพบ insight
TZ='Asia/Bangkok' date '+%Y-%m/%d/%H.%M' # Path format
Output:
docs/learnings/YYYY-MM/DD/HH.MM_[slug].md
Template: See
references/mem-template.md
Key sections: Key Insight, What We Learned, Gotchas, Tags
Extract patterns - รวม learnings เป็น reusable patterns
When: มี 3+ learnings เรื่องเดียวกัน หรือ weekly review
Output:
docs/knowledge-base/[topic-name].md
Template: See
references/distill-template.md
Key sections: Key Insight, The Problem, The Solution (with code), Anti-Patterns, When to Apply
After: Mark source learnings as "Distilled"
Post-task retrospective with Before/After context
Output:
docs/retrospective/YYYY-MM/retrospective_YYYY-MM-DD_hhmmss.md
Template: See
references/td-template.md
| Type | Use When |
|---|---|
| New functionality |
| Bug fix |
| Code restructure |
| Architecture decision |
| Research/learning |
| Configuration changes |
| Documentation only |
## Context: Before - **Problem**: ปัญหาที่เจอ - **Existing Behavior**: พฤติกรรมเดิม - **Metrics**: ตัวเลขก่อนแก้ ## Context: After - **Solution**: วิธีแก้ - **New Behavior**: พฤติกรรมใหม่ - **Metrics**: ตัวเลขหลังแก้
| Decision | Options Considered | Chosen | Rationale | |----------|-------------------|--------|-----------|
Atomic commits via TDG plugin
Delegates to:
/tdg:atomic-commit from https://github.com/chanwit/tdg
What it does:
Usage: Simply run
/commit and it will invoke TDG's atomic-commit skill.
Work on pending items from all knowledge sources
Scan order (priority):
docs/knowledge-base/ - Patterns to applydocs/retrospective/ - Future Improvements (- [ ])docs/learnings/ - Gotchas to fix (skip if "Distilled")Workflow:
- [ ] → - [x])# Find by type grep -l "type: bugfix" docs/retrospective/**/*.md # Search content grep -r "mongodb" docs/ # Recent learnings find docs/learnings -name "*.md" -mtime -7
Automatic PR review notifications - Polling daemon ตรวจสอบ PR reviews
What it does:
/pr-review to respondUsage:
/pr-poll # Show daemon status /pr-poll start # Start polling daemon /pr-poll stop # Stop daemon /pr-poll check # Check once without daemon
Notification sounds:
Files:
~/.pr-review-poll.pid - Daemon PID~/.pr-review-poll.log - Daemon logs~/.pr-review-state.json - PR state trackingRetention policy management - จัดการไฟล์เก่าด้วย retention policy
What it does:
Usage:
/cleanup # Preview (30 days default) /cleanup 7 # Preview with 7 days retention /cleanup 14 --archive # Archive & delete files older than 14 days /cleanup --all # Clean all targets
Protected directories (never auto-deleted):
docs/retrospective/ - Permanent recordsdocs/knowledge-base/ - Distilled knowledgeบันทึก session อัตโนมัติเมื่อจบงาน
| Option | Command | Trigger |
|---|---|---|
| Hooks | - | Auto on session stop |
| Wrapper | (alias) | Interactive prompt |
| AI-Powered | | Manual with AI analysis |
# Add to ~/.claude/settings.json { "hooks": { "Stop": [{ "matcher": "", "hooks": [{ "type": "command", "command": "~/.claude/skills/knowledge-management/scripts/auto-capture.sh . 2>/dev/null || true" }] }] } }
docs/auto-captured/YYYY-MM/DD/HH.MM_session-*.md
See
AUTO-CAPTURE.md for full documentation.
references/mem-template.md - Full /mem templatereferences/distill-template.md - Full /distill templatereferences/td-template.md - Full /td templatereferences/improve-workflow.md - /improve detailed workflow