rpg-preserve

rpg-preserve is a skill for Claude Code from vstrapasson/rpg-marketplace. It costs 28 tokens per session (2,311 once invoked), scanned A, original, MIT.

A controlled writing workflow for an Obsidian vault used to manage a role-playing game. It validates game entities such as characters, places, factions, quests, and items before saving them.

In plain words
What is it for?
Use it whenever creating or editing structured RPG notes, including non-player characters, locations, events, sessions, lore, and quests.
Why use it?
It prevents invalid notes, incorrect folders, and broken links from being written to the vault.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the rpg-vault-guardian plugin — 2 skills, 5 commands, 1 agent, 3 hooks shipped together

Good fit Use it whenever creating or editing structured RPG notes, including non-player characters, locations, events, sessions, lore, and quests.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add vstrapasson/rpg-marketplace
Claude Code
/plugin install rpg-vault-guardian

Made for: Claude Code.

Or install rpg-vault-guardian, the plugin that ships this one along with the rest of its 2 skills, 5 commands, 1 agent, 3 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for rpg-preserve

README.md
[![agentmods](https://agentmods.dev/badge/skills/vstrapasson/rpg-marketplace/rpg-preserve/github.svg)](https://agentmods.dev/skills/vstrapasson/rpg-marketplace/rpg-preserve)
Your own site
<a href="https://agentmods.dev/skills/vstrapasson/rpg-marketplace/rpg-preserve"><img src="https://agentmods.dev/badge/skills/vstrapasson/rpg-marketplace/rpg-preserve/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for rpg-preserve

Your own site · 80×15
<a href="https://agentmods.dev/skills/vstrapasson/rpg-marketplace/rpg-preserve"><img src="https://agentmods.dev/badge/skills/vstrapasson/rpg-marketplace/rpg-preserve.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,311 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00028 $0.02311
Opus 5.5 $0.00011 $0.00924
Sonnet 5.5 $0.00006 $0.00462
Haiku 4.5 $0.00003 $0.00231

Measured 2mo ago against content hash befc0164808d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

rpg-preserve scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/rpg-vault-guardian/skills/rpg-preserve/SKILL.md · 208 lines

How it starts

The opening of the file, as written. The whole thing — 208 lines — stays where its author put it; the contents beside it link to each section on GitHub.

rpg-preserve — Write Gate

You are the single write point of the RPG vault. No entity is written to disk without passing validation. Contract: validate → pass? write : ask.

Mandatory workflow

1. Determine target folder and path

Use targetPath from lib/preserve.mjs. The folder is defined by the schema:

Type Folder
regiao regioes/
local locais/
npc npcs/
jogador jogadores/
inimigo inimigos/
faccao faccoes/
quest quests/
sessao sessoes/
evento eventos/
ato atos/
item itens/
lore lore/
frente frentes/
relogio relogios/
encontro encontros/

2. Build frontmatter and content

Use buildFrontmatter(type, fields) and buildNoteContent(fm, name, body) from lib/preserve.mjs. body is required, non-empty — a paragraph or two of real prose about the entity. Validation rejects an empty body (empty-body error); don't call buildNoteContent with just a name.

Mandatory formatting rules:

  • Fields with wikilink: always "[[Entity Name]]" (quotes + brackets)
  • List of wikilinks: YAML block with one item per line ( - "[[Name]]")
  • Default status when not specified: stub
  • updated is automatically stamped with today's date
  • A ## Relações section in the body: canonical format only (see below)

Writing ## Relações in the body

Whenever a candidate's body carries a relationships section — new content from a caller, or an append onto an existing note — write it as ## Relações with one canonical line per relation:

## Relações
- **[[Alvo]]** — rótulo: frase de origem.
  • The label is the text between the em dash (—) and the first colon (rótulo above). Keep it short — a couple of words naming the kind of tie (inimigo jurado, credor, mentora).
  • The source sentence is everything after that first colon, verbatim — GM asides included (e.g. *(Face do GM: ...)*). This is what the vault's Relation parser (confidence alta) reads back; a table, a bare wikilink list, or any other heading name still produces a Relation (confidence estrutural, from the wikilink) but never a label, so always prefer this exact shape for anything worth labelling.
  • The target can be a Phantom — a name with no note of its own (e.g. a mentioned-but-unwritten NPC). Write it as a normal wikilink; the parser creates the Phantom entity, no stub note required.
  • Never use a different heading (Relacionamentos, Vínculos, …), a table, or plain prose for a relationship worth a label — those are the legacy formats a one-off migration normalizes, not a shape to write going forward.

Read the full file on GitHub · 208 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago Changed · +33 lines befc0164808d
  2. 3mo ago First seen · 175 lines · 28 tokens per session scan A 3d6db24f7cf7

Subscribe to this mod's changes

rpg-preserve is a skill published in the GitHub repository vstrapasson/rpg-marketplace (2 stars, last pushed 2mo ago), licensed MIT. It adds 28 tokens to every session and 2,311 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

rpg-preserve compared with skills from other repositories

rpg-preserve next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rpg-preservevstrapasson/rpg-marketplaceSkill22mo agoMITA28Claude Code
playtest-reportDonchitos/Claude-Code-Game-StudiosSkill42k24d agoMITA20Claude Code
godot-signals-groupsgamedev-skills/awesome-gamedev-agent-skillsSkill13k3d agoApache-2.0A93Claude Code
scenario-unreal-gameplayscenario-labs/skillsSkill4.7kyesterdayMITA121Claude Code
texture-workflowarjun988/blender-skillsSkill5.8k27d agoMITA41Claude Code
motionOpenDCAI/GameFactory-3ASkill1.6kyesterdayApache-2.0A0Claude Code, Codex
gamedev-shadersericrisco/rsc-harnessSkill707yesterdayMITA102Claude Code, Codex