Dice Roller logo

Dice Roller

Community
nicmarti
dice-roller

Lance des dés pour jeux de rôle (D&D 5e). Supporte d4, d6, d8, d10, d12, d20, d100. Notation standard comme 2d6+3, 4d6kh3 (keep highest). Avantage et désavantage. Utilisez pour tout jet de dé en session de JdR.

Overview

Publishernicmarti
Repositoryskills-weaver
Skill namedice-roller
Stars
30
Forks
3
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 nicmarti on GitHub. Read the source before you install it.

Installation

Install the Dice Roller 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/nicmarti/skills-weaver/tree/master/core_agents/skills/dice-roller
  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/nicmarti/skills-weaver.git /tmp/skills-weaver
mkdir -p .claude/skills
cp -r /tmp/skills-weaver/core_agents/skills/dice-roller .claude/skills/dice-roller
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Dice Roller 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 Dice Roller 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 Dice Roller 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.

Dice Roller - Lanceur de Dés

Skill pour lancer des dés dans le cadre de sessions de jeu de rôle D&D 5e.

Utilisation Rapide

Exécutez la CLI dice depuis le répertoire du projet :

bash
# Compiler si nécessaire
go build -o sw-dice ./cmd/dice

# Lancer des dés
./sw-dice roll d20
./sw-dice roll 2d6+3
./sw-dice roll 4d6kh3

Commandes Disponibles

Lancer un dé simple

bash
./sw-dice roll d20           # Lance 1d20
./sw-dice roll 2d6           # Lance 2d6
./sw-dice roll d100          # Lance 1d100 (percentile)

Avec modificateur

bash
./sw-dice roll 2d6+3         # Lance 2d6 et ajoute 3
./sw-dice roll d20-2         # Lance d20 et soustrait 2
./sw-dice roll d20+5         # Attaque avec bonus +5

Keep Highest / Keep Lowest

bash
./sw-dice roll 4d6kh3        # Lance 4d6, garde les 3 plus hauts (génération de stats)
./sw-dice roll 2d20kl1       # Lance 2d20, garde le plus bas (désavantage)

Avantage et Désavantage (D&D 5e)

bash
./sw-dice roll d20 --advantage      # ou -a : Lance 2d20, garde le plus haut
./sw-dice roll d20 --disadvantage   # ou -d : Lance 2d20, garde le plus bas

# Exemples d'utilisation:
./sw-dice roll d20 -a               # Jet d'attaque avec avantage
./sw-dice roll d20 -d               # Jet de sauvegarde avec désavantage

Génération de Caractéristiques

bash
./sw-dice stats              # Méthode standard : 4d6kh3 × 6
./sw-dice stats --classic    # Méthode classique : 3d6 × 6

Exemples de Résultats

Jet simple

2d6+3: [4, 5] + 3 = 12

Jet avec dés éliminés

4d6kh3: [~2~, 5, 4, 6] = 15

Les dés barrés (~2~) sont ceux qui n'ont pas été gardés.

Avantage (D&D 5e)

d20 (avantage): [15, ~8~] = 15

Désavantage (D&D 5e)

d20 (désavantage): [~15~, 8] = 8

Génération de stats

## Génération de caractéristiques (4d6kh3 (standard))

| Caractéristique | Jets | Total |
|-----------------|------|-------|
| Force           | 6, ~~1~~, 5, 2 | **13** |
| Intelligence    | ~~3~~, 4, 4, 5 | **13** |
| Sagesse         | 5, 4, ~~2~~, 6 | **15** |
| Dextérité       | ~~3~~, 5, 6, 4 | **15** |
| Constitution    | 4, 5, 6, ~~2~~ | **15** |
| Charisme        | 4, 4, ~~1~~, 3 | **11** |

Types de Dés Supportés

DéUsage D&D 5e
d4Dégâts dague, dard ; PV Magicien (d6 en D&D 5e)
d6Dégâts épée courte, arc court ; PV Ensorceleur/Magicien
d8Dégâts épée longue, rapière ; PV Barde/Clerc/Druide/Moine/Roublard/Occultiste
d10Dégâts pique, arbalète lourde ; PV Guerrier/Paladin/Rôdeur
d12Dégâts hache à deux mains, hache d'armes ; PV Barbare
d20Jets d'attaque, sauvegardes, tests de caractéristique, initiative
d100Tables aléatoires, objets magiques, effets de magie sauvage

Cas d'Usage D&D 5e

Initiative (d20 + modificateur DEX)

bash
# Pour un personnage avec DEX +2
./sw-dice roll d20+2

Jets d'Attaque

bash
# Attaque au corps à corps : d20 + bonus de maîtrise + mod FOR/DEX
./sw-dice roll d20+5         # Niveau 1-4, FOR +3, prof +2

# Avec avantage
./sw-dice roll d20+5 -a

# Avec désavantage
./sw-dice roll d20+5 -d

Dégâts

bash
# Épée longue : 1d8 + mod FOR
./sw-dice roll d8+3

# Attaque critique (double les dés)
./sw-dice roll 2d8+3

# Attaque sournoise du Roublard (1d6 supplémentaire niveau 1)
./sw-dice roll d8+3          # Dégâts de l'arme
./sw-dice roll d6            # Dégâts sournois

Tests de Caractéristique

bash
# Test de Force (soulever une porte) : d20 + mod FOR + prof (si compétence)
./sw-dice roll d20+1         # FOR 12 (+1)
./sw-dice roll d20+5         # FOR 16 (+3) + Athlétisme (+2)

Jets de Sauvegarde

bash
# Sauvegarde de Dextérité : d20 + mod DEX + prof (si maîtrisé)
./sw-dice roll d20+2         # DEX +2, pas de maîtrise
./sw-dice roll d20+4         # DEX +2, maîtrise +2

DD de Sorts (Difficulté fixe, pas de jet)

DD = 8 + bonus de maîtrise + modificateur de caractéristique d'incantation

Conseils

Combat

  • Jets d'attaque : ./sw-dice roll d20+<bonus attaque>
  • Dégâts : Utilisez le dé approprié à l'arme + modificateur de caractéristique
  • Initiative : ./sw-dice roll d20+<mod DEX> (pas d6 comme en BFRPG)
  • Critiques : Sur un 20 naturel, doublez les dés de dégâts (pas les modificateurs)

Exploration

  • Tests de caractéristique : ./sw-dice roll d20+<mod>+<prof si applicable>
  • Perception passive : 10 + mod WIS + prof Perception (pas de jet)

Création de Personnage

  • Caractéristiques : ./sw-dice stats (méthode standard 4d6kh3)
  • Points de vie : Dé de classe max au niveau 1, puis moyenne ou jet

Avantage/Désavantage

  • Avantage : Circonstances favorables (action Aide, surprise, etc.)
  • Désavantage : Circonstances défavorables (attaquer une cible invisible, terrain difficile, etc.)
  • Important : Avantage et désavantage s'annulent, même si multiples

Différences D&D 5e vs BFRPG

AspectBFRPGD&D 5e
Initiative1d6 + DEX1d20 + DEX
Avantage/DésavantageModificateurs2d20 (garde meilleur/pire)
Tests caractéristiqued20d20 + mod + prof (si compétence)
DD par défaut1510 (facile) à 30 (quasi impossible)
Critiques×2 au total×2 aux dés seulement

Utilisé par

Ce skill est utilisé par les agents suivants :

AgentUsage
dungeon-masterJets de combat, initiative, sauvegardes, tests
character-creatorGénération des caractéristiques
rules-keeperVérification et exécution des jets

Type : Skill autonome, peut être invoqué directement via /dice-roller

Frequently asked questions

What does the Dice Roller AI skill do?

Lance des dés pour jeux de rôle (D&D 5e). Supporte d4, d6, d8, d10, d12, d20, d100. Notation standard comme 2d6+3, 4d6kh3 (keep highest). Avantage et désavantage. Utilisez pour tout jet de dé en session de JdR.

Why use Dice Roller on TypingMind?

Because you install it once and use it with any model. Dice Roller 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 Dice Roller in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/nicmarti/skills-weaver/tree/master/core_agents/skills/dice-roller. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Dice Roller?

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 Dice Roller?

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

Is the Dice Roller AI skill free?

It is published on GitHub by nicmarti. 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 👇