Source profileQuality 84/100

dfrostar/neuralmind/skills/neuralmind/SKILL.md

neuralmind

Answer questions about a code repository in ~800 tokens instead of loading 50,000+ tokens of raw source. Use whenever the user asks how something works, where something is defined, who calls what, or to explore an unfamiliar file. Provides progressive context disclosure (L0 identity → L1 architecture → L2 relevant clusters → L3 semantic search) and a learned synapse graph for usage-based recall.

Source repository stars
22
Declared platforms
0
Static risk flags
1
Last source update
2026-07-28
Source checked
2026-07-28

Decision brief

What it does—and where it fits

You have access to a neural index of the current project. Prefer it over reading source files directly whenever you need to locate, explain, or navigate code. The index returns compact, structured context that is typically 40–70× cheaper than raw source.

Best for

    Not for

    • Don't call neuralmindquery with a one-word search term — use
    • Don't call neuralmindbuild defensively on every turn. It's only

    Compatibility matrix

    Platform support, with evidence labels

    PlatformStatusEvidenceWhat to check
    CodexNot declaredNo explicit evidencePortability before use
    Claude CodeNot declaredNo explicit evidencePortability before use
    CursorNot declaredNo explicit evidencePortability before use
    Gemini CLINot declaredNo explicit evidencePortability before use
    Open the compatibility checker

    Installation

    Inspect first. Install second.

    The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

    Source-detected install commandSource
    npx skills add https://github.com/dfrostar/neuralmind --skill "skills/neuralmind"
    Safe inspection promptEditorial

    Inspect the Agent Skill "neuralmind" from https://github.com/dfrostar/neuralmind/blob/943df635efb24992b4c53470e856a4438eb1c6cb/skills/neuralmind/SKILL.md at commit 943df635efb24992b4c53470e856a4438eb1c6cb. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

    Workflow

    What the source asks the agent to do

    1. 01

      Prerequisite check

      Before the first call in a session, confirm the index exists:

      Before the first call in a session, confirm the index exists:If built: false, the project hasn't been indexed yet. The build pipeline needs both neuralmind and graphifyy (separate package, ships the graphify CLI). Tell the user to run:…and stop. Do not fabricate answers when the index is missing.
    2. 02

      Decision tree — which tool to call

      Review the “Decision tree — which tool to call” section in the pinned source before continuing.

      Review and apply the “Decision tree — which tool to call” source section.
    3. 03

      Output shape (so you know what to expect)

      neuralmindwakeup and neuralmindquery return a JSON object — the markdown context lives in the context field; reduction metrics are separate fields. Don't try to parse tokens / layers out of the markdown body — read them from the envelope directly.

      neuralmindwakeup and neuralmindquery return a JSON object — the markdown context lives in the context field; reduction metrics are separate fields. Don't try to parse tokens / layers out of the markdown body — read them…neuralmindwakeup returns the same shape minus communitiesloaded and searchhits (it doesn't load L2/L3).neuralmindsearch returns a list of hits — one object per match, not a wrapped envelope:
    4. 04

      Synapse layer (learned associations)

      NeuralMind keeps a persistent weighted graph of code nodes and strengthens edges between nodes that get co-activated within the same task. This means:

      The longer the project is used, the better neuralmindsynapticneighborsIf the project has a .neuralmind/SYNAPSEMEMORY.md, treat it asThe graph decays over time so stale associations fade. Do not panic if a
    5. 05

      Anti-patterns

      Don't call neuralmindquery with a one-word search term — use

      Don't call neuralmindquery with a one-word search term — useDon't call neuralmindbuild defensively on every turn. It's onlyDon't loop over neuralmindskeleton for every file in a directory.

    Permission review

    Static risk signals and limitations

    Reads files

    low · line 40

    The documentation asks the agent to read local files, directories, or repositories.

    About to open a file you don't know?

    Evidence record

    Why each signal appears

    EvidenceSourceComputedTestedEditorial
    SignalValueEvidence typeMeaning
    Quality score84/100ComputedDocumentation, specificity, maintenance, and trust rules
    Repository stars22SourceRepository attention, not individual Skill quality
    Compatibility0 platformsSourceDeclared in the catalog source record
    Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

    Pinned source

    Provenance and original SKILL.md

    Repository
    dfrostar/neuralmind
    Skill path
    skills/neuralmind/SKILL.md
    Commit
    943df635efb24992b4c53470e856a4438eb1c6cb
    License
    MIT
    Collected
    2026-07-28
    Default branch
    main
    View the original SKILL.md

    NeuralMind

    You have access to a neural index of the current project. Prefer it over reading source files directly whenever you need to locate, explain, or navigate code. The index returns compact, structured context that is typically 40–70× cheaper than raw source.

    The index is not a code rewriter or executor. It retrieves; you reason. Treat it like a librarian: ask narrow questions, escalate only on a miss.

    Prerequisite check

    Before the first call in a session, confirm the index exists:

    neuralmind_stats(project_path=".")
    

    If built: false, the project hasn't been indexed yet. The build pipeline needs both neuralmind and graphifyy (separate package, ships the graphify CLI). Tell the user to run:

    pip install neuralmind graphifyy   # if either is missing
    graphify update . && neuralmind build .
    

    …and stop. Do not fabricate answers when the index is missing.

    Decision tree — which tool to call

    New session / first question about this repo?
      └─► neuralmind_wakeup            ~400–600 tokens (L0 + L1)
    
    Specific code question?
      └─► neuralmind_query             ~800–1,100 tokens (L0+L1+L2+L3)
          The single most-used tool. Hand it the user's question verbatim.
    
    About to open a file you don't know?
      └─► neuralmind_skeleton          5–15× cheaper than reading the file
          Returns functions, call graph, cross-file edges. Only fall back to
          raw Read when you need an implementation body.
    
    Looking for a specific symbol (function, class, file)?
      └─► neuralmind_search            ranked semantic matches
    
    Want associations the agent has learned over time?
      └─► neuralmind_synaptic_neighbors   spreading activation over the
                                          synapse graph; complements semantic
                                          search with usage-based recall
    
    Made code changes in this session?
      └─► neuralmind_build              incremental re-embedding
    

    Output shape (so you know what to expect)

    neuralmind_wakeup and neuralmind_query return a JSON object — the markdown context lives in the context field; reduction metrics are separate fields. Don't try to parse tokens / layers out of the markdown body — read them from the envelope directly.

    // neuralmind_query
    {
      "context": "## Project: <name>\n<description>\nKnowledge Graph: N entities, M clusters\n\n## Architecture Overview\n### Code Clusters\n- Cluster 5 (45 entities): function — authenticate_user, …\n\n## Relevant Code Areas\n### Cluster 5 (relevance: 1.73)\n- authenticate_user (code) — auth.py\n\n## Search Results\n- AuthMiddleware (score: 0.91) — middleware.py\n",
      "tokens": 847,
      "reduction_ratio": 59.0,
      "layers": ["L0", "L1", "L2", "L3"],
      "communities_loaded": [5, 12],
      "search_hits": 7
    }
    

    neuralmind_wakeup returns the same shape minus communities_loaded and search_hits (it doesn't load L2/L3).

    neuralmind_search returns a list of hits — one object per match, not a wrapped envelope:

    [
      {"id": "...", "label": "authenticate_user", "file_type": "function",
       "source_file": "auth.py", "score": 0.92}
    ]
    

    neuralmind_skeleton returns {"file", "skeleton", "chars", "indexed"}; the skeleton string holds functions with line numbers, an intra-file call graph, and cross-file edges — without implementation bodies. When you need a body, follow up with a normal file read.

    Synapse layer (learned associations)

    NeuralMind keeps a persistent weighted graph of code nodes and strengthens edges between nodes that get co-activated within the same task. This means:

    • The longer the project is used, the better neuralmind_synaptic_neighbors becomes at surfacing related-but-not-semantically-similar code.
    • If the project has a .neuralmind/SYNAPSE_MEMORY.md, treat it as authoritative context about which code areas tend to move together.
    • The graph decays over time so stale associations fade. Do not panic if a past co-activation no longer shows up.

    You do not need to manage the synapse graph manually. The exposed tools (neuralmind_synapse_stats, neuralmind_synapse_decay, neuralmind_export_synapse_memory) are for diagnostic / housekeeping use, not for routine question-answering.

    Anti-patterns

    • Don't call neuralmind_query with a one-word search term — use neuralmind_search for that. query expects a natural-language question.
    • Don't call neuralmind_build defensively on every turn. It's only needed after code changes within the session, or when stats shows the index is stale.
    • Don't loop over neuralmind_skeleton for every file in a directory. Ask one good neuralmind_query instead — the L2 layer surfaces the right files for you.
    • Don't ask the user to set NEURALMIND_BYPASS=1 unless they've explicitly asked for raw tool output. The bypass disables Claude Code's PostToolUse compression of file reads / shell output — it doesn't affect retrieval through the MCP tools. The MCP query / skeleton paths stay compressed either way.

    Failure modes

    • Tool unavailable / connection closed: the MCP server isn't wired up for this client. Fall back to neuralmind CLI (neuralmind wakeup ., neuralmind query . "…") via the shell. Same outputs, same semantics.
    • Empty results from query: the question may be too broad or the repo wasn't indexed at sufficient depth. Try neuralmind_search with the most distinctive term from the question.
    • built: false: stop and tell the user. See Prerequisite check.

    Environment toggles (for reference)

    These are set by the user, not by you. They change retrieval behavior:

    • NEURALMIND_BYPASS=1 — skip Claude Code's PostToolUse compression of tool output (raw Read / Bash / Grep results). Does not change MCP-tool behavior.
    • NEURALMIND_SYNAPSE_INJECT=0 — disable prompt-time synapse recall.
    • NEURALMIND_SYNAPSE_EXPORT=0 — disable markdown export of learned associations.

    One-line summary

    Ask NeuralMind first. Read source only when you need the body.

    Alternatives

    Compare before choosing