Montecarlo Single Item logo

Montecarlo Single Item

Community
dan-the-dev
montecarlo-single-item

Previsione per UN singolo work item (card, ticket, storia, bug) — "quando sarà pronto questo item?". Usa la distribuzione storica dei cycle time (o lead time) e restituisce una Service Level Expectation con percentili 50/70/85/95, anche per un item già in corso. Non simula il throughput. Usala quando la domanda riguarda un solo item; per un gruppo/epic usa montecarlo-epic, per più gruppi in sequenza usa montecarlo-epics.

Overview

Publisherdan-the-dev
Repositoryxp-developer-skills
Skill namemontecarlo-single-item
Stars
33
Forks
1
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by dan-the-dev on GitHub. Read the source before you install it.

Installation

Install the Montecarlo Single Item AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/dan-the-dev/xp-developer-skills/tree/master/skills/montecarlo-single-item
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/dan-the-dev/xp-developer-skills.git /tmp/xp-developer-skills
mkdir -p .claude/skills
cp -r /tmp/xp-developer-skills/skills/montecarlo-single-item .claude/skills/montecarlo-single-item
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Montecarlo Single Item in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Montecarlo Single Item on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Montecarlo Single Item is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Monte Carlo — singolo work item

Missione

Rispondere a "quando sarà pronto questo item?" con una probabilità, non con una data secca: "l'85% degli item di questo tipo si chiude entro X giorni". Per un singolo item non serve la simulazione sul throughput: si leggono i percentili della distribuzione storica dei cycle time.

Script condiviso: <AMPD-root>/tools/montecarlo/montecarlo.py (modalità single). Regole comuni di raccolta dati: <AMPD-root>/docs/montecarlo-forecasting.md (leggilo prima del passo 1).

Risolvere <AMPD-root>: se questa skill vive in <dir>/ampd/skills/ → <dir>/ampd; altrimenti $AMPD_ROOT; altrimenti ~/.claude/ampd o ~/.cursor/ampd; altrimenti la radice del repository che contiene skills/ e tools/montecarlo/.


Passo 1 — Raccogliere i dati

Serve lo storico dei work item completati (almeno id, data di inizio, data di completamento). Fonti possibili, in quest'ordine di preferenza:

  1. File caricato (CSV, foglio di calcolo, export del sistema di tracking): mappa le colonne sullo schema; se il mapping non è ovvio, proponilo e chiedi conferma una volta.
  2. Testo o tabella incollati: estrai id, tipo, tag e date riga per riga.
  3. Link a card, ticket o board: usa i connettori/tool disponibili in sessione per leggere gli item completati e la history dei cambi di stato. Se la history non c'è, usa le date disponibili e dichiara il ripiego.
  4. Nessun dato storico: fermati e chiedilo — da incollare in chat o come percorso di un file locale — spiegando cosa serve (item completati con date di inizio e fine, idealmente 8–12 settimane e almeno ~20 item). Non lanciare lo script, non usare i dati di tools/montecarlo/examples/ né altri sostituti, neanche come demo. Solo se l'utente chiede esplicitamente una demo: aggiungi --demo (senza, lo script rifiuta lo storico di esempio) e presenta il risultato come demo, non come previsione. Dettagli in docs/montecarlo-forecasting.md § Storico mancante.

Dell'item da prevedere servono: il tipo (per filtrare il campione, se ha senso) e, se è già in corso, da quanti giorni (work item age).

Regole (dettagli nel doc condiviso):

  • Se non è chiaro quale stato significa "iniziato" e quale "completato", chiedilo una sola volta e riporta la mappatura usata. Non assumere cosa significhi "fatto".
  • Conta solo item foglia (niente doppi conteggi tra padre e sotto-task); dichiaralo.
  • Escludi item annullati/archiviati/chiusi senza essere stati realizzati, salvo diversa indicazione; dichiara cosa hai escluso.

Passo 2 — Normalizzare

Scrivi un CSV (nella directory di lavoro o nello scratchpad, non nel repository dell'utente se non richiesto):

csv
id,type,tags,ready_at,started_at,completed_at

Date ISO 8601; tag multipli separati da ;; campi opzionali vuoti. Obbligatori solo id e completed_at, ma per questa modalità started_at è necessario: gli item senza inizio non entrano nel campione dei cycle time.

Passo 3 — Lanciare lo script e presentare

bash
python3 <AMPD-root>/tools/montecarlo/montecarlo.py single \
  --history <history.csv> --type <tipo> \
  [--elapsed-days <età dell'item>] [--metric cycle|lead] \
  [--window-weeks 12] [--calendar workdays|all] [--holidays <file>] \
  --out-dir <dir> --format both
  • --metric lead se l'utente chiede il tempo dall'impegno (to do) e non dall'inizio lavori.
  • --elapsed-days: l'item è già aperto; lo script condiziona sugli item storici durati di più e segnala se l'item ha già superato quasi tutto lo storico.
  • Filtri opzionali: --type, --tag, --window-weeks. --as-of per fissare la data di riferimento.

Leggi <out-dir>/result.json e rispondi in italiano con:

  1. La SLE come probabilità: "c'è l'85% di probabilità che si chiuda entro X giorni (entro il )"; mostra 50/70/85/95 e la distanza tra 50% e 95%.
  2. Avviso sul campione se reliability.level è low — mostra comunque il risultato.
  3. Da dove vengono i dati e quanti item sono nel campione (data.sample_size, data.rejected, data.filtered_out).
  4. Assunzioni: finestra, calendario (giorni lavorativi o di calendario), metrica, mappatura degli stati, esclusioni, ripieghi (lead_time_fallback).
  5. L'istogramma testuale da summary.md se aiuta.

Mai presentare una media, mai una data unica, mai stime in punti o ore.

Frequently asked questions

What does the Montecarlo Single Item AI skill do?

Previsione per UN singolo work item (card, ticket, storia, bug) — "quando sarà pronto questo item?". Usa la distribuzione storica dei cycle time (o lead time) e restituisce una Service Level Expectation con percentili 50/70/85/95, anche per un item già in corso. Non simula il throughput. Usala quando la domanda riguarda un solo item; per un gruppo/epic usa montecarlo-epic, per più gruppi in sequenza usa montecarlo-epics.

Why use Montecarlo Single Item on TypingMind?

Because you install it once and use it with any model. Montecarlo Single Item is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Montecarlo Single Item in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/dan-the-dev/xp-developer-skills/tree/master/skills/montecarlo-single-item. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Montecarlo Single Item?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Montecarlo Single Item?

As many as you like. As long as a model supports skills, you can use Montecarlo Single Item with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Montecarlo Single Item AI skill free?

It is published on GitHub by dan-the-dev. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇