Notre avis
Recherche dans des bases de connaissances Markdown locales indexées à l'aide de la recherche plein texte et vectorielle.
Points forts
- Récupère des identifiants de documents et des numéros de ligne spécifiques pour des citations vérifiables.
- Prend en charge la recherche hybride combinant termes exacts, vecteurs sémantiques et embeddings de documents hypothétiques.
- S'intègre à Claude Code via les couches MCP, compétence et extension pour une récupération fluide de notes assistée par IA.
- Permet le cross-référencement entre documents grâce aux liens et rétroliens.
Limites
- Nécessite une configuration initiale et l'indexation des fichiers Markdown, ce qui peut prendre du temps.
- Dépend de l'outil CLI mnemonic et ne peut pas rechercher des fichiers non indexés ou non Markdown.
- La qualité de la recherche vectorielle repose sur la disponibilité d'un fournisseur d'embeddings local, comme Ollama.
Utilisez cette compétence lorsque vous devez rapidement extraire des informations spécifiques d'une grande collection de notes Markdown personnelles ou d'équipe, de wikis ou de documentation.
Ne l'utilisez pas pour des requêtes en temps réel sur des bases de données externes, des sources web ou des formats de fichiers autres que Markdown.
Analyse de sécurité
SûrThe 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.
Aucun point d'attention détecté
Exemples
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.
Priorisation de Tâches
Productivite
Priorise vos tâches avec les frameworks Eisenhower, ICE et RICE.
Generateur de Rapport Hebdomadaire
Productivite
Generez des rapports de statut hebdomadaires structures et concis.
Rapport de Daily Standup
Productivite
Génère des rapports de daily standup structurés et concis.