modules/home/programs/cli-agents/shared/skills/workflows/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 |
| CodSpeed integration, benchmark setup | codspeed-bench |
| Binary analysis, unpacking, emulation | reverse-engineer |
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, preferencesdocumentation
Save notes, journal entries, and research to the personal-notes Obsidian vault (personal-vault-v2). Use when the user asks to 'save note', 'save to notes', 'write to personal notes', 'save to daily notes', 'note this down', or wants to persist findings/analysis to their personal vault.
documentation
Use whenever the user asks to address, fix, resolve, review, or respond to pull-request comments or review feedback.
development
Apply Not Matthias's Rust-first personal coding style. Use whenever the user explicitly asks to apply or review their code style, make Rust match their preferences, perform a style pass, or simplify/refactor according to their conventions. Inspect only task-touched code, honor local project conventions first, and make only safe opt-out style edits.
development
Guide for writing ast-grep rules to perform structural code search and analysis. Use when users need to search codebases using Abstract Syntax Tree (AST) patterns, find specific code structures, or perform complex code queries that go beyond simple text search. This skill should be used when users ask to search for code patterns, find specific language constructs, or locate code with particular structural characteristics.