skills/kb-distill/SKILL.md
--- Skill name: kb-distill Skill description: Distill raw observations into structured knowledge notes and propose AGENTS.md rules. Use when asked to distill, synthesize, compress, review, or summarize accumulated memory/observations. Also runs automatically when triggered by session-start or weekly cadence. --- # kb-distill — Knowledge Distillation Compresses raw `amp-mem` observations into structured knowledge and proposes behavioral rules for AGENTS.md. This is the middle layer of the Secon
npx skillsauth add abhiroopb/synthetic-mind skills/kb-distillInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
4 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Compresses raw amp-mem observations into structured knowledge and proposes behavioral rules for AGENTS.md. This is the middle layer of the Second Me flywheel: observations → distilled notes → promoted rules.
amp-mem distill-status — if >50 pending observations or >7 days since last run)amp-mem distill-status shows significant backlog# Check what's pending
amp-mem distill-status
# Dump all observations since last distillation
amp-mem distill-dump
If --since DATE is needed (e.g., user says "distill the last month"):
amp-mem distill-dump --since 2026-02-01
Read all dumped observations and identify:
AGENTS.md rule.For each cluster/pattern, produce one of three output types:
For topic clusters, save a synthesized note:
amp-mem save distilled "<topic>" "<synthesized summary>" --tags "distilled,<cluster-tags>"
The summary should be actionable (tells future-you what to do), concise (shorter than source observations), and cross-referenced (mentions source observation IDs).
For repeated patterns (3+ occurrences), propose a rule to add to AGENTS.md. Present each rule to the user for approval — do NOT auto-add.
Present each proposal with the pattern, evidence (observation IDs), and an approve/skip prompt. If approved, append to ~/AGENTS.md.
This is the key differentiator. Look for patterns the user never explicitly stated but consistently does:
For these, present the inferred preference with evidence and ask to codify.
After producing all outputs:
# Record that distillation happened
amp-mem distill-record <observation_count> <notes_produced> <rules_proposed> "<brief summary>"
Then present a summary to the user:
✅ Distillation Complete
━━━━━━━━━━━━━━━━━━━━━━━━
Observations processed: 47
Notes produced: 8
Rules proposed: 3
Inferred preferences: 2
📝 Notes:
1. "User Account Lookup Workflow" — consolidated 4 observations
2. "Feature Rollout Feedback Process" — consolidated 6 observations
...
📋 Proposed Rules:
1. Always use admin dashboard search for account lookups
2. Save feature feedback to the tracking document
3. ...
🔍 Inferred Preferences:
1. Always create Google Docs for reports (never raw text)
2. ...
On session start, after loading context, check:
amp-mem distill-status
If pending observations > 50 or last distillation > 7 days ago, auto-run silently:
---
🧠 While warming up, I distilled N observations and noticed:
📋 Rule: "Always use admin dashboard search for account lookups" → approve / skip
🔍 Inferred: "You prefer Google Docs over chat for reports" → approve / skip
The user should never have to ask for distillation. It just happens.
User says: "distill my recent work" → Run the full Phase 1–4 workflow above.
User says: "what patterns have you noticed?" → Run Phase 1–2 only, then present findings without saving.
User says: "distill and auto-approve all rules" → Run Phase 1–4, but add all proposed rules to AGENTS.md without asking.
User says: "distill the last month"
→ amp-mem distill-dump --since $(date -v-30d +%Y-%m-%d) then proceed normally.
testing
Track TV shows and movies with Trakt.tv. Search, get watchlist, history, up-next, recommendations, trending, calendar, ratings, stats, add/remove from watchlist, mark watched, rate, and check in. Use when asked about what to watch, TV shows, movies, watch history, or Trakt.
development
Send and receive SMS messages via Twilio API. Used for text message notifications, forwarding important alerts, and two-way SMS communication.
documentation
Organizes files in the local Downloads folder into proper folders. Use when asked to organize, sort, or file downloaded documents.
tools
Book and manage appointments on Sutter Health MyHealth Online portal. Uses browser automation via Playwright MCP to interact with the patient portal.