From ai-assistant-ops
Use this skill when the user says "/ai-insights-hunter", "extract insights from conversation", "harvest this session", "what should we remember from this chat", "save insights from this conversation", or provides a path to an AI Assistant conversation log and wants to capture decisions, patterns, and preferences for future sessions. This skill reads a full conversation log (or finds it automatically), extracts valuable insights using parallel agents, interviews the user about what to keep, then stores the chosen insights in the right places to improve future AI Assistant interactions. Use PROACTIVELY when a long or complex session is wrapping up and the user wants to preserve learnings.
How this skill is triggered — by the user, by Claude, or both
Slash command
/ai-assistant-ops:ai-insights-hunterThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Extract valuable, reusable knowledge from an AI Assistant conversation log and store it in the right places so future AI Assistant sessions start smarter.
Extract valuable, reusable knowledge from an AI Assistant conversation log and store it in the right places so future AI Assistant sessions start smarter.
references/writing-conventions.md — diff format, inline command style, pre-write checklist. Read when writing to files.Read these files before spawning the corresponding agents:
agents/decisions-hunter.md — technical decisions & architectural choicesagents/preferences-hunter.md — user preferences & feedback patternsagents/patterns-hunter.md — reusable patterns & proven approachesagents/project-context-hunter.md — project-specific facts & contextUse it directly. If it's a directory, list .jsonl files inside and pick the most recent.
Use the default conversation-log directory for the active AI Assistant runtime.
Find logs automatically:
/ with - and leading / drops (e.g. /Users/foo/bar → Users-foo-bar)If the session used Agent with TeamCreate or parallel TaskCreate subagents, find their separate conversation logs:
Run the full insight extraction pipeline on each log independently — one set of 4 parallel agents per conversation log. Label findings with their source log so the user knows which agent session produced them.
For each conversation log, read all agent specs defined in agents/, then spawn those agents simultaneously in a single message. Pass the full log content to each agent's prompt.
If there are multiple logs (multi-agent session), spawn every agents/ hunter for each log in a single message — all in parallel.
Wait for all agents to complete before continuing.
Collect all FINDING blocks. Deduplicate near-identical findings across logs. Group by tier.
Present the full summary:
## Insights Hunter — Findings
[N logs analyzed: main session + N agent sessions]
### 🔴 HIGH — Must Store (n items)
1. **[Title]** · Decisions · [source log label]
[Detail — 1-2 sentences]
...
### 🟡 MEDIUM — Worth Storing (n items)
...
### 🟢 LOW — Optional (n items)
...
AskUserQuestion({
questions: [{
header: "What to store?",
question: "Found [n-HIGH] must-store, [n-MEDIUM] medium, [n-LOW] low-value insights across [N] conversation logs. Which do you want to walk through?",
options: [
{ label: "HIGH only", description: "Walk through [n] critical insights" },
{ label: "HIGH + MEDIUM", description: "Walk through [n] insights" },
{ label: "HIGH + MEDIUM + LOW", description: "Walk through all [n] insights" },
{ label: "Skip — store nothing", description: "Exit without saving" }
],
multiSelect: false
}]
})
If "Skip": jump to Step 7.
Create a TaskCreate for each selected finding. Each task holds:
pendingUse TaskList to confirm all tasks are created before proceeding.
Walk through tasks one-by-one using AskUserQuestion. For each item, decide: store it? where?
Storage location guide:
| Context | Location |
|---|---|
| User behavior / how they like AI Assistants to work | Runtime memory file or <path_to_where_the_ai_assistant_stores_memory>/<memory_file> |
| Applies to all projects | Global agent instruction file |
| Applies to one project | {project}/AGENTS.md or the runtime-specific project instruction file |
| Relates to a specific subdirectory | {that-dir}/AGENTS.md or the runtime-specific instruction file |
| Named reference (patterns log, decisions log) | {project}/docs/decisions.md or similar |
| README-level context | {project}/README.md |
Include a preview showing the exact text that will be written.
Question format:
AskUserQuestion({
questions: [{
header: "#[N] [TIER] — [Category]",
question: "[Finding title]: [Detail] — Store this?",
options: [
{
label: "Store (Recommended)",
description: "→ [recommended file path]",
preview: "[exact content to be written]"
},
{
label: "Store elsewhere",
description: "I'll tell you where"
},
{
label: "Skip",
description: "Not worth keeping"
}
],
multiSelect: false
}]
})
After each response:
completed, acknowledge: #3 stored -> {path} · 3/8 doneskippedWriting rules:
For agent instruction files — show a diff block first, explain why in one line, then apply only after the user confirms "Store":
### Update: {file path}
**Why:** [one-line reason this helps future sessions]
\`\`\`diff
+ [the addition — keep it brief, one concept per line]
\`\`\`
For memory files — use the memory frontmatter format (name, description, type), add a pointer from the runtime's memory index when one exists. Show the full content in the preview before writing.
General: prefer editing existing files over creating new ones. Group related insights into the same file rather than scattering them.
Avoid writing:
If the user explores an item, asks questions, or revisits a decision, continue the side conversation, then use TaskList to re-orient and resume.
Use $ai-assistant-ops:agents-md-improver when available, scoped only to the files written during Step 6.
Before it runs, tell it explicitly: "Focus only on these files that were just modified: [list]. Do not audit pre-existing content — only check whether the new additions conflict with, duplicate, or contradict what was already there."
The $ai-assistant-ops:agents-md-improver skill will read the files, score the additions, and flag any issues. Its quality criteria (conciseness, actionability, no obvious info) apply directly to what we just wrote.
If no issues are found, it will say so — no further action needed.
## Insights Hunter — Complete
Stored [n] insights, skipped [n].
| # | Tier | Finding | Stored at |
|---|------|---------|-----------|
| 1 | HIGH | ... | ~/.agents/AGENTS.md |
| 2 | HIGH | ... | project/AGENTS.md |
| 3 | MED | ... | skipped |
$ai-assistant-ops:agents-md-improver is mandatory when the skill is available and must be scoped to only files modified during this session — never a full repo audit of pre-existing content.npx claudepluginhub alex-kopylov/zweihander --plugin ai-assistant-opsCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.