modules/home/programs/cli-agents/shared/skills/extract-knowledge/SKILL.md
Extract patterns and challenges from past Claude Code conversation logs and convert them into reusable skills or memory entries. Run periodically to capture recurring solutions.
npx skillsauth add not-matthias/dotfiles-nix extract-knowledgeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Extract recurring challenges, solutions, and patterns from past Claude Code sessions and distill them into skills or memory entries.
~/.claude/projects/<path-encoded-dir>/
├── sessions-index.json # Metadata index for all sessions in this project
└── <uuid>.jsonl # Individual session (JSON Lines)
sessions-index.json — use this to quickly find relevant sessions:
[{
"sessionId": "uuid",
"firstPrompt": "what the user asked",
"summary": "auto-generated summary",
"messageCount": 42,
"created": "2025-01-01T00:00:00Z"
}]
# List all projects
ls ~/.claude/projects/
# Scan session index for a project
cat ~/.claude/projects/<project>/sessions-index.json | \
jq '.[] | {prompt: .firstPrompt, count: .messageCount}' | head -50
# Filter by topic
cat ~/.claude/projects/<project>/sessions-index.json | \
jq '.[] | select(.firstPrompt | test("error|fix|debug|fail"; "i")) | .firstPrompt'
cat ~/.claude/projects/<project>/<session>.jsonl | \
jq 'select(.type == "user") | .message.content' 2>/dev/null | head -30
| What you found | Target skill |
|----------------|--------------|
| Nix hash errors, build failures, overlays | nix-package |
| IDA SDK patterns, plugin boilerplate | ida-plugin-dev |
| CodSpeed integration, benchmark setup | codspeed-bench |
| Binary analysis, unpacking, emulation | reverse-engineer |
| Rust cargo patterns | rust |
Use this format when adding to a skill:
### [Problem Title]
**Context**: When does this happen?
**Symptom**: What error/behavior do you see?
**Fix**:
```code```
**Why**: Brief explanation
modules/home/programs/cli-agents/shared/skills/<name>/SKILL.md):
reusable techniques, non-obvious gotchas, command patterns~/.claude/projects/<dir>/memory/):
project-specific context, preferencestools
Spawn the pi coding agent with a specific model/provider. Use when asked to run pi with a particular model, switch pi's model, use DeepSeek V4 Flash/Pro in pi, or look up pi's --model/--provider/--models CLI flags and thinking-level shorthand.
development
Navigate to directories using zoxide (frecency-based directory jumper). Use when the user says "go to", "navigate to", "cd to", "jump to" a project or directory by nickname/partial name (e.g. "go to my dotfiles", "jump to dot").
tools
Use when manipulating Zellij sessions, creating tabs or panes, sending commands to panes, capturing output, or looking up Zellij CLI commands for terminal multiplexer operations
development
Emulates not-matthias's technical blog writing style. Use when writing blog posts, technical articles, README content, or any long-form technical prose. Produces investigation-driven, first-person narratives with dry humor, practical code examples, and concrete takeaways.