Logo di Mindmap Mcts

Mindmap Mcts

Community
cheshireyang
mindmap-mcts

Run a visible reasoning-tree workflow with lightweight MCTS for complex Codex or Claude Code tasks. Use when a task has multiple plausible hypotheses or designs, needs systematic debugging, requires option tradeoff exploration, involves repeated trial-and-error, or the user asks for a mindmap, reasoning tree, MCTS, visible exploration, branch evaluation, or evidence-backed problem solving.

Panoramica

Autorecheshireyang
Repositorymindmap-mcts-skill
Nome della skillmindmap-mcts
Stelle
110
Fork
0
File inclusi
10
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • 10 file inclusi

    Script, modelli di documento e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da cheshireyang su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Mindmap Mcts in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/cheshireyang/mindmap-mcts-skill/tree/main/mindmap-mcts
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Nuova skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella nella cartella delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/cheshireyang/mindmap-mcts-skill.git /tmp/mindmap-mcts-skill
mkdir -p .claude/skills
cp -r /tmp/mindmap-mcts-skill/mindmap-mcts .claude/skills/mindmap-mcts
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Mindmap Mcts in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Mindmap Mcts non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Mindmap Mcts non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

MindMap-MCTS

Use this skill to keep complex work on a visible, evidence-backed reasoning tree. The bundled CLI owns the JSON truth source, UCB selection, backpropagation, markdown rendering, static HTML rendering, and interactive Markmap HTML rendering; the agent owns expansion, real probes, and judgment.

Command Prefix

Choose the command form that matches the current shell. First set the skill directory for the host that loaded this skill.

Codex on Unix shells:

bash
export MINDMAP_MCTS_SKILL_DIR="${CODEX_HOME:-$HOME/.codex}/skills/mindmap-mcts"

Claude Code on Unix shells:

bash
export MINDMAP_MCTS_SKILL_DIR="${CLAUDE_HOME:-$HOME/.claude}/skills/mindmap-mcts"

Default install locations are $HOME/.codex/skills/mindmap-mcts for Codex and $HOME/.claude/skills/mindmap-mcts for Claude Code.

Linux, macOS, WSL, or Git Bash:

bash
"$MINDMAP_MCTS_SKILL_DIR/scripts/mindmap" --help

Cross-platform Python launcher:

bash
python "$MINDMAP_MCTS_SKILL_DIR/scripts/mindmap.py" --help

Windows PowerShell:

powershell
# Claude Code:
$env:MINDMAP_MCTS_SKILL_DIR = "$env:USERPROFILE\.claude\skills\mindmap-mcts"

# Codex:
# $env:MINDMAP_MCTS_SKILL_DIR = "$env:USERPROFILE\.codex\skills\mindmap-mcts"

& "$env:MINDMAP_MCTS_SKILL_DIR\scripts\mindmap.ps1" --help

If PowerShell execution policy blocks .ps1 scripts, run the Python module directly after setting PYTHONPATH:

powershell
$env:PYTHONPATH = "$env:MINDMAP_MCTS_SKILL_DIR\scripts;$env:PYTHONPATH"
$env:PYTHONIOENCODING = "utf-8"
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8
python -m mindmap_mcts.cli --help

For repeated commands in one shell session, define:

bash
alias mindmap='"$MINDMAP_MCTS_SKILL_DIR/scripts/mindmap"'

If aliases are not preserved by the current shell call, use the explicit launcher form for the current shell.

On Windows, set UTF-8 output before rendering or showing trees that contain Chinese text:

powershell
$env:PYTHONIOENCODING = "utf-8"
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8

Never hand-edit rendered markdown as the truth source. The .tree.json file is the truth source; .tree.md is only a view.

Startup

  1. Decide whether this skill applies. Skip it for one-step commands, obvious one-file edits, or direct factual lookups.
  2. If no tree exists, create one:
bash
"$MINDMAP_MCTS_SKILL_DIR/scripts/mindmap" init --title "<task title>" --out <task-name>.tree.json

The root node created by init is n1; use --parent n1 for the first child. Do not use root unless a specific tree file already contains a node with that id.

  1. If a tree exists, inspect it:
bash
"$MINDMAP_MCTS_SKILL_DIR/scripts/mindmap" show <task-name>.tree.json
  1. Render the readable view:
bash
"$MINDMAP_MCTS_SKILL_DIR/scripts/mindmap" render <task-name>.tree.json --out <task-name>.tree.md
"$MINDMAP_MCTS_SKILL_DIR/scripts/mindmap" render-markmap <task-name>.tree.json --out <task-name>.markmap.html

Use render-markmap when the user wants a browser-based visual tree. It produces interactive HTML through Markmap's browser autoloader. The map starts with an Exploration status branch that shows best path, selected frontier, state counts, open frontier nodes, verified nodes, and pruned nodes. In the reasoning tree, completed exploration uses a green ✓, partial exploration uses a yellow ◐, and unopened frontier nodes use a gray ○; no red cross is used. Node titles are bold black, and status stays immediately after the title, for example **n11 事实性与幻觉** (V=0.90 N=1 verified). Use render-html only when a static offline fallback is preferable.

Per-Round Loop

  1. Ask the CLI for the next recommended action:
bash
"$MINDMAP_MCTS_SKILL_DIR/scripts/mindmap" next <task-name>.tree.json

Use this to orient before making new changes to the tree.

  1. Select the next frontier directly when you need only the node id:
bash
"$MINDMAP_MCTS_SKILL_DIR/scripts/mindmap" select <task-name>.tree.json
  1. Expand the selected node with 2 or 3 child nodes. Children must be mutually exclusive, concrete, and verifiable.
bash
"$MINDMAP_MCTS_SKILL_DIR/scripts/mindmap" add <task-name>.tree.json --parent <node-id> --type hypothesis --content "<specific hypothesis>"
  1. Evaluate each new child using the cheapest real probe available: read code, grep a symbol, run a focused test, inspect a log, or check a config.

  2. Record value and evidence:

bash
"$MINDMAP_MCTS_SKILL_DIR/scripts/mindmap" eval <task-name>.tree.json --id <node-id> --value <0-to-1> --evidence "<short evidence>" --probe-type <test|grep|log|paper|code-read|user-input> --source "<source pointer>" --confidence <low|medium|high>

Use --probe-type, --source, and --confidence when a score is backed by a concrete probe. Omit them only when there is no useful structured metadata.

  1. Prune disproven branches instead of deleting them:
bash
"$MINDMAP_MCTS_SKILL_DIR/scripts/mindmap" prune <task-name>.tree.json --id <node-id> --evidence "<why this branch is ruled out>" --probe-type <test|grep|log|paper|code-read|user-input> --source "<source pointer>" --confidence <low|medium|high>
  1. Backpropagate from evaluated nodes:
bash
"$MINDMAP_MCTS_SKILL_DIR/scripts/mindmap" backprop <task-name>.tree.json --from <node-id>
  1. Render and show the updated state:
bash
"$MINDMAP_MCTS_SKILL_DIR/scripts/mindmap" render <task-name>.tree.json --out <task-name>.tree.md
"$MINDMAP_MCTS_SKILL_DIR/scripts/mindmap" render-html <task-name>.tree.json --out <task-name>.tree.html
"$MINDMAP_MCTS_SKILL_DIR/scripts/mindmap" render-markmap <task-name>.tree.json --out <task-name>.markmap.html
"$MINDMAP_MCTS_SKILL_DIR/scripts/mindmap" show <task-name>.tree.json
"$MINDMAP_MCTS_SKILL_DIR/scripts/mindmap" path <task-name>.tree.json
"$MINDMAP_MCTS_SKILL_DIR/scripts/mindmap" doctor <task-name>.tree.json

Evaluation Scale

  • 0.90 to 1.00: real evidence verifies this path reaches the target.
  • 0.60 to 0.80: strong signal, still needs confirmation.
  • 0.30 to 0.50: uncertain or neutral signal.
  • 0.10 to 0.20: evidence mostly rules this out.
  • 0.00: confirmed dead branch; prune it.

Prefer real probes over model self-estimates. Evidence such as focused tests, logs, source reads, grep results, or config checks should be recorded directly on the node.

Stop Conditions

Stop exploring and write an execution plan when one of these is true:

  • A root-to-leaf path has value at least 0.85 and key nodes have real evidence.
  • The iteration budget is exhausted.
  • Several paths remain close in value and no cheap probe can separate them.

When multiple paths remain close, stop and ask the user to choose. Show the best path, close alternatives, and evidence for each.

Reporting

When reporting progress, include:

  • Current selected frontier.
  • New child nodes and why they are distinct.
  • Probe evidence for each evaluated node.
  • Pruned branches and why they should not be retried.
  • Updated best path.
  • doctor output if the tree was edited by hand or imported from another run.

Forward Testing

This repository includes evaluation prompts in evals/evals.json. Use them when checking whether the skill actually improves agent behavior on debugging, architecture tradeoff, and research synthesis tasks.

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA Mindmap Mcts?

Run a visible reasoning-tree workflow with lightweight MCTS for complex Codex or Claude Code tasks. Use when a task has multiple plausible hypotheses or designs, needs systematic debugging, requires option tradeoff exploration, involves repeated trial-and-error, or the user asks for a mindmap, reasoning tree, MCTS, visible exploration, branch evaluation, or evidence-backed problem solving.

Perché usare Mindmap Mcts su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Mindmap Mcts è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Mindmap Mcts in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/cheshireyang/mindmap-mcts-skill/tree/main/mindmap-mcts. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Mindmap Mcts?

Qualsiasi modello che colleghi in TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Mindmap Mcts?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Mindmap Mcts: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Mindmap Mcts è gratuita?

Sì. È pubblicata su GitHub da cheshireyang con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, modelli o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇