Agent skill
mem
Captures quick knowledge insights during work sessions into structured learning files.
Install this agent skill to your Project
npx add-skill https://github.com/goffity/claude-km-skill/tree/main/skills/mem
SKILL.md
Memory - Quick Knowledge Capture
จับความรู้แบบรวดเร็วระหว่างทำงาน (Layer 1)
Usage
/mem [descriptive title]
Output: $PROJECT_ROOT/docs/learnings/YYYY-MM/DD/HH.MM_[slug].md
Instructions
- Process title → slug (lowercase, hyphens)
- Gather context: timestamp, branch, recent commits
- Create directory:
docs/learnings/YYYY-MM/DD/ - Generate file with template below
- Commit:
git commit -m "learn: [title]"
Template
# [Title]
| Field | Value |
|-------|-------|
| **Captured** | YYYY-MM-DD HH:MM (Asia/Bangkok) |
| **Branch** | current-branch |
| **Context** | what were you working on |
---
## Key Insight
> One-sentence summary
## What We Learned
- Discovery 1
- Discovery 2
## Gotchas & Warnings
- Pitfall to avoid
## Related
- Commits: `abc1234`
- Files: `path/to/file.go`
## Tags
`tag1` `tag2`
Rules
| Rule | Description |
|---|---|
| FAST | Complete in < 20 seconds |
| KNOWLEDGE-FOCUSED | Insights, not task logs |
| SEARCHABLE | Clear titles and tags |
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
commit
Creates atomic commits by invoking TDG and commenting on related GitHub issues.
distill
Synthesizes related learnings into reusable knowledge base patterns.
security-auditor
Audits code for security vulnerabilities including OWASP Top 10 and authentication issues.
code-reviewer
Reviews code changes for bugs, security vulnerabilities, and performance issues.
example
Saves reusable code examples to the examples library with metadata and tags.
flow
Documents workflow diagrams and process flows with Mermaid diagram support.
Didn't find tool you were looking for?