Treasure Generator logo

Treasure Generator

Community
nicmarti
treasure-generator

Génère des trésors BFRPG par type (A-U). Pièces, gemmes, bijoux et objets magiques. Utilise les tables officielles avec probabilités. Indispensable après un combat victorieux.

Overview

Publishernicmarti
Repositoryskills-weaver
Skill nametreasure-generator
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 Treasure Generator 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/treasure-generator
  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/treasure-generator .claude/skills/treasure-generator
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Treasure Generator 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 Treasure Generator 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 Treasure Generator 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.

Treasure Generator - Générateur de Trésors BFRPG

Skill pour générer des trésors aléatoires selon les tables officielles de Basic Fantasy RPG. Chaque monstre a un type de trésor assigné (visible dans le bestiaire).

Utilisation Rapide

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

# Générer un trésor
./sw-treasure generate R           # Type R (Gobelin)
./sw-treasure generate A           # Type A (Dragon)
./sw-treasure generate B --count=3 # 3 trésors type B

Commandes Disponibles

Générer un Trésor

bash
./sw-treasure generate <type>
./sw-treasure gen <type>           # Alias

# Exemples:
./sw-treasure generate R           # Trésor de gobelin
./sw-treasure generate A           # Trésor de dragon
./sw-treasure generate H           # Trésor de dragon ancien
./sw-treasure generate B --count=5 # 5 trésors d'ogre
./sw-treasure generate A --format=json

Lister les Types

bash
./sw-treasure types

Détails d'un Type

bash
./sw-treasure info <type>

# Exemples:
./sw-treasure info A               # Probabilités du type A
./sw-treasure info R               # Probabilités du type R

Lister les Objets Magiques

bash
./sw-treasure items                # Liste les catégories
./sw-treasure items potions        # Toutes les potions
./sw-treasure items weapons        # Armes magiques
./sw-treasure items armor          # Armures magiques
./sw-treasure items rings          # Anneaux
./sw-treasure items wands          # Baguettes
./sw-treasure items scrolls        # Parchemins
./sw-treasure items misc           # Objets divers

Types de Trésors

Trésors de Repaire (A-H)

Pour les repaires de groupes de monstres.

TypeDescriptionExemple
ATrésor majeurDragon
BTrésor moyenOgre
CTrésor petitOrc
DTrésor standardHobgobelin
ETrésor standardGnoll
FTrésor richeVampire
GTrésor précieuxNain
HTrésor énormeDragon ancien

Trésors Individuels (I-U)

Portés par des créatures individuelles.

TypeDescriptionExemple
IIndividuel richeGarde élite
J-KIndividuel mineurBandit
L-MGemmes/bijouxNoble
NPotionsAlchimiste
OParcheminsMage
P-QPauvrePaysan
RStandardGobelin
S-TMoyenMercenaire
UUniqueCas spécial

Correspondance Monstres → Types

MonstreType Trésor
Gobelin, KoboldR
Orc, HobgobelinC, D
Gnoll, BugbearE
OgreB
TrollD
VampireF
Dragon jeuneA
Dragon ancienH
Squelette, Zombie- (aucun)
Goule, WightB

Format de Sortie

Trésor Généré (Markdown)

markdown
## Trésor (Type R)

*Trésor individuel (ex: Gobelin)*

### Pièces

- **Pièces de cuivre** : 7 (0 po)
- **Pièces d'argent** : 4 (0 po)

**Valeur totale estimée** : 0 po

Trésor Riche

markdown
## Trésor (Type A)

*Trésor de repaire majeur (ex: Dragon)*

### Pièces

- **Pièces d'or** : 7000 (7000 po)
- **Pièces de platine** : 1000 (5000 po)

### Gemmes

- Rubis (1000 po)
- Émeraude (1000 po)

### Bijoux

- Couronne (3000 po)
- Sceptre orné (7200 po)

### Objets Magiques

- **Épée +2**
- **Potion de soins** - Restaure 1d6+1 PV
- **Anneau de protection +1** - +1 CA et sauvegardes

**Valeur totale estimée** : 59697 po

Intégration avec Adventure Manager

bash
# Après un combat victorieux
./sw-treasure generate R

# Logger le butin
./sw-adventure log "Mon Aventure" loot "Trésor du gobelin: 7 pc, 4 pa"

# Ajouter l'or au groupe
./sw-adventure add-gold "Mon Aventure" 5 "Trésor gobelin"

Workflow Type en Session

bash
# 1. Consulter le type de trésor du monstre
./sw-monster show goblin
# → Trésor: R

# 2. Générer le trésor après victoire
./sw-treasure generate R

# 3. Pour plusieurs monstres
./sw-treasure generate R --count=4

# 4. Pour un boss
./sw-treasure generate A

Objets Magiques Disponibles

Potions (10)

Soins, Vitesse, Invisibilité, Force de géant, Vol, Forme gazeuse, Croissance, Diminution, Poison

Armes (11)

Épées +1/+2/+3, Épée ardente, Épée de givre, Dagues +1/+2, Hache +1, Masse +1, Arc +1, Flèches +1

Armures (7)

Cuir +1, Cotte de mailles +1/+2, Plates +1/+2, Bouclier +1/+2

Anneaux (5)

Protection +1/+2, Invisibilité, Résistance au feu, Stockage de sorts

Baguettes (5)

Projectiles magiques, Paralysie, Froid, Éclairs, Peur

Objets Divers (10)

Sac sans fond, Bottes de vitesse/lévitation, Cape de déplacement/protection, Gantelets de force, Casque de télépathie, etc.

Utilisé par

Ce skill est utilisé par les agents suivants :

AgentUsage
dungeon-masterGénération de trésors après combats

Type : Skill autonome, peut être invoqué directement via /treasure-generator

Dépendances : Complète monster-manual (type de trésor par monstre)

Frequently asked questions

What does the Treasure Generator AI skill do?

Génère des trésors BFRPG par type (A-U). Pièces, gemmes, bijoux et objets magiques. Utilise les tables officielles avec probabilités. Indispensable après un combat victorieux.

Why use Treasure Generator on TypingMind?

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

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

Which AI models can use Treasure Generator?

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 Treasure Generator?

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

Is the Treasure Generator 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 👇