/mosdat:mosdat-insightfrom mosdat
Use when the user invokes /insight, says 'capture insight', or after repeated failures to surface relevant project and personal lessons. Captures structured insight entries and surfaces existing knowledge to prevent repeated mistakes.
Ships in mosdat. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Triggers: /insight, "insight", "capture insight"
/insight or "capture insight"<project>/.knowledge/**/*.md — project-specific lessons~/.knowledge/**/*.md — personal cross-project lessons<project>/shared/recipes/*.yaml — F2 recipe corpus (if present)--no-autoinsight passed.Elicit or infer from session context:
Determine scope:
project-shared → <project>/.knowledge/ — specific to this codebase/tooling.user-personal → ~/.knowledge/<tech>/ — reusable across projects for this tech.tech-specific → ~/.knowledge/<tech>/ — platform/framework behavior.Determine kind:
war-story — painful failure with root cause and fixlesson — non-obvious discovery about how something workspattern — reusable approach that workedinsight — principle or observation with broad applicabilityWrite the entry (see format below). Keep body under 15 lines — dense, not verbose.
Write path:
<project>/.knowledge/<category>/<slug>.md~/.knowledge/<tech>/<slug>.mdIf scope = user-personal: append entry path to ~/.knowledge/index.md (create if missing).
Report the written path to the user.
---
date: "YYYY-MM-DD"
project: <project-name or "general">
tags:
- <tag1>
- <tag2>
topic: <one-line summary — what future-you will search for>
kind: war-story|lesson|pattern|insight
scope: project-shared|user-personal|tech-specific
category: <tech/subtopic — e.g., electron/ipc, git/rebase>
confidence: high|medium|low
cost: "<N attempts × ~Xmin = ~Yhr>"
---
## Context
<1-2 sentences: what were you doing, what went wrong or what were you exploring>
## Root cause
<The actual reason — not symptoms>
## Pivot
<What fixed it or what the discovery was>
## Rule
<Concrete, actionable rule: one sentence a future agent can apply immediately>
If mastermind is active (check: mastermind --help), use mm_write instead of writing raw markdown for user-personal entries. Mastermind's extract hook (PreCompact) reads the conversation and can auto-extract insights — /insight ensures deliberate, structured capture with frontmatter that matches .knowledge conventions.
For project-shared entries, write raw markdown to .knowledge/ directly — mastermind's suggest hook (PostToolUse on Read/Edit/Write) will surface them automatically on next relevant file touch.
mastermind extract reads conversation transcripts and writes to ~/.knowledge/. Structured .knowledge/*.md entries (with frontmatter) are read by mastermind suggest --from-hook, which fires on every Read/Edit/Write and surfaces matching lessons. Insight entries written here ARE auto-pulled into the knowledge surface — no extra wiring needed.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: commands: Invalid input, author: Invalid input: expected object, received string
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
11 skills in this plugin
/gitnexus-cliUse when the user needs to run GitNexus CLI commands like analyze/index a repo, check status, clean the index, generate a wiki, or list indexed repos. Examples: "Index this repo", "Reanalyze the codebase", "Generate a wiki"/gitnexus-debuggingUse when the user is debugging a bug, tracing an error, or asking why something fails. Examples: "Why is X failing?", "Where does this error come from?", "Trace this bug"/gitnexus-exploringUse when the user asks how code works, wants to understand architecture, trace execution flows, or explore unfamiliar parts of the codebase. Examples: "How does X work?", "What calls this function?", "Show me the auth flow"/gitnexus-guideUse when the user asks about GitNexus itself — available tools, how to query the knowledge graph, MCP resources, graph schema, or workflow reference. Examples: "What GitNexus tools are available?", "How do I use GitNexus?"/gitnexus-impact-analysisUse when the user wants to know what will break if they change something, or needs safety analysis before editing code. Examples: "Is it safe to change X?", "What depends on this?", "What will break?"/gitnexus-refactoringUse when the user wants to rename, extract, split, move, or restructure code safely. Examples: "Rename this function", "Extract this into a module", "Refactor this class", "Move this to a separate file"