Automated summary
Searches local indexed markdown knowledge bases using full-text and vector search.
Strengths
- Retrieves specific document IDs and line numbers for verifiable citations.
- Supports hybrid search combining exact terms, semantic vectors, and hypothetical document embeddings.
- Integrates with Claude Code via MCP, skill, and extension layers for seamless AI-assisted note retrieval.
- Allows cross-referencing between documents through links and backlinks.
Limitations
- Requires initial setup and indexing of markdown files, which may be time-consuming.
- Depends on the mnemonic CLI tool and cannot search unindexed or non-markdown files.
- Vector search quality relies on availability of a local embedding provider like Ollama.
Use this skill when you need to quickly retrieve specific information from a large collection of personal or team markdown notes, wikis, or documentation.
Do not use this skill for real-time queries against external databases, web sources, or file formats other than markdown.
Security analysis
SafeThe skill uses only read-only local CLI commands (mne status, search, query, get, links, backlinks) against a local SQLite index. No network calls, file modification, or destructive operations are instructed. The skill explicitly warns against mutation unprompted and shell-slicing with sed/head/tail, advocating safe parameterized retrieval. It poses no security risk.
No concerns found
How this analysis is madeExamples
What did I write about metrics as cockpit instruments and Goodhart's law?Find all documents that link to my note on product judgment metrics.Set up mnemonic to index my ~/notes directory and enable AI search.name: mnemonic
description: Search local indexed markdown knowledge bases. Use when the user asks to find notes, dig up a concept from personal docs, cross-reference ideas across wikis, or answer from indexed local files. Triggers on "look up in notes", "search my docs", "what did I write about", "find in my vault", "check my index", "retrieve from mne".
license: MIT
compatibility: Requires @naveenadi/mnemonic CLI. Install via npm install -g @naveenadi/mnemonic.
metadata:
version: "0.1.0"
allowed-tools: Bash(mne:*)
mnemonic — dig your local index
mnemonic runs searches against a local SQLite index of markdown files — notes, docs, wikis, vaults. Three branches: dig (the loop), setup (add collections), cross-reference (follow links between documents). Most runs only need the dig loop.
Dig loop
Run through every time. Every dig completes when the answer cites the documents it came from — docid and line numbers on every claim.
# 1. Check what's indexed
mne status
# 2. Find candidates
# Exact terms? Use BM25:
mne search "cockpit OKR Goodhart" -n 5
# Concept, vague wording, or the user paraphrases? Use hybrid with structured fields:
mne query $'intent: Find the concept note about metrics as instruments without replacing judgment.\nlex: cockpit instruments OKR Goodhart metrics\nvec: data informed not metric driven product judgment\nhyde: A concept note explains metrics are cockpit instruments that should inform, not drive, product judgment.'
Structured query fields:
intent:what you're trying to find and what to avoidlex:exact terms, titles, code symbols, rare wordsvec:paraphrase of the idea in natural languagehyde:a hypothetical document that would answer the request
Always write intent: plus at least one of lex:/vec:. You know the domain and what to dodge — do not delegate this to the expansion model.
# 3. Retrieve matched documents
# Results carry a docid (#abc123) and mne:// path
mne get "#abc123"
mne get "#abc123:120:40" # 40 lines from line 120
mne multi-get "#abc123,#def432" --json
# Output is line-numbered by default; cite line numbers with every claim
Completion criterion: every claim backed by a docid and line numbers. Do not answer from snippets alone — fetch the source.
# 4. Scope collections when results drift
mne query "headcount autonomous agents" -c concepts -n 10
mne ls concepts # List files in a collection
Cross-reference
After digging, follow links between documents to find connected context.
mne links #abc123 # Outgoing wikilinks
mne backlinks #abc123 # Incoming (what links here)
mne orphans # Documents with no links at all
mne query "deploy" --boost-links # Prefer well-linked docs
See references/link-graph.md for full cross-reference commands.
Setup
Never mutate the index unprompted. Only do this when the user asks to add a collection, index a new directory, or run diagnostics.
Quick setup via pi
If the pi extension is loaded, type /mne init — it asks questions interactively:
/mne init
→ Choose global or project-local scope
→ Enter directories to index
→ Index + embed (if Ollama available)
→ Optionally configure MCP, copy skill
Manual setup
npm install -g @naveenadi/mnemonic
mne init
mne collection add ~/notes --name notes
mne index # Scan files, build FTS5
mne embed # Generate vector embeddings
See references/setup.md for project-local --db mode, diagnostics, and maintenance.
Pi integration
mnemonic integrates at three pi layers — MCP, skill, and extension. Each can be installed globally (all projects) or project-local (per repo).
| Layer | Global | Per project |
|---|---|---|
| MCP | ~/.pi/agent/mcp.json | .pi/mcp.json |
| Skill | ~/.pi/agent/skills/mnemonic/ | .pi/skills/mnemonic/ |
| Extension | ~/.pi/agent/extensions/mnemonic/ | .pi/extensions/mnemonic/ |
Full instructions at references/pi-integration.md.
Pitfalls
- Fetch before claiming. Snippets are leads, not sources.
- Do not shell-slice files. Use
:from:countsuffix (e.g.#abc123:120:40) — neversed,head,tail. - Do not lean on auto-expansion. Write
intent:/lex:/vec:/hyde:yourself. A baremne query "user sentence"discards context only you have. - Prefer BM25 for exact terms. Semantic search is slower and drifts. If you know the title,
mne search "title"is better. - Do not mutate indexes casually.
mne indexandmne embedare expensive.
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/mnemonic-dig-your-local-index-mrwakaeo/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/mnemonic-dig-your-local-index-mrwakaeo' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/mnemonic-dig-your-local-index-mrwakaeo/download' --output '.skill-downloads/mnemonic-dig-your-local-index-mrwakaeo/SKILL.md.part' && mv '.skill-downloads/mnemonic-dig-your-local-index-mrwakaeo/SKILL.md.part' '.skill-downloads/mnemonic-dig-your-local-index-mrwakaeo/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
Environment declared by the author: Requires `@naveenadi/mnemonic` CLI. Install via `npm install -g @naveenadi/mnemonic`.
Tools declared by the author (check availability in your agent): Bash(mne:*)
Original excerpt: Setup
Never mutate the index unprompted. Only do this when the user asks to add a collection, index a new directory, or run diagnostics.
Quick setup via pi
If the pi extension is loaded, type /mne init — it asks questions interactively:
/mne init
→ Choose global or project-local scope
→ Enter directories to index
→ Index + embed (if Ollama available)
→ Optionally configure MCP, copy skill
Manual setup
npm install -g @naveenadi/mnemonic
mne init
mne collection add ~/notes --name notes
mne index # Scan files, build FTS5
mne embed # Generate vector embeddings
See references/setup.md for project-local --db mode, diagnostics, and maintenance.
Pi integration
mnemonic integrates at three pi layers — MCP, skill, and extension. Each can be installed globally (all projects) or project-local (per repo).
| Layer | Global | Per project |
|---|---|---|
| MCP | ~/.pi/agent/mcp.json | .pi/mcp.json |
| Skill | ~/.pi/agent/skills/mnemonic/ | .pi/skills/mnemonic/ |
| Extension | ~/.pi/agent/extensions/mnemonic/ | .pi/extensions/mnemonic/ |
Full instructions at references/pi-integration.md.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/mnemonic-dig-your-local-index-mrwakaeo/SKILL.md' && test -s '.skill-downloads/mnemonic-dig-your-local-index-mrwakaeo/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/mnemonic' && cp -R '.skill-downloads/mnemonic-dig-your-local-index-mrwakaeo' '.claude/skills/mnemonic'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/mnemonic-dig-your-local-index-mrwakaeo'openskills read 'mnemonic-dig-your-local-index-mrwakaeo'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/mnemonic-dig-your-local-index-mrwakaeo/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
PDF Reader
Productivity
Read and extract text from PDF files, including documents, reports, contracts, and spreadsheets. Works with local files, URLs, and WhatsApp attachments. Use whenever PDF content is needed, even if not explicitly requested.
Discord Messaging Workflows
Productivity
Use the message tool to send, edit, and moderate Discord messages with interactive components.
Interactive Verdict Preview
Productivity
Generate an interactive HTML preview of keep/drop verdicts for maintainer review, then process the pasted feedback JSON.