rpg-audit

rpg-audit is a skill for Claude Code from vstrapasson/rpg-marketplace. It costs 26 tokens per session (1,281 once invoked), scanned A, original, MIT.

A complete audit for an Obsidian campaign vault, which is a folder of linked Markdown notes. It validates note fields and links, applies safe repairs, proposes risky fixes, and rebuilds navigation indexes.

In plain words
What is it for?
Check and repair the structure and internal links of a campaign vault, then regenerate its indexes. It can also identify changes that need the user's decision because they may be destructive.
Why use it?
It finds missing or invalid fields, broken links, orphaned notes, and notes placed in the wrong category. Safe corrections can be applied consistently instead of repaired manually one by one.

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 Check and repair the structure and internal links of a campaign vault, then regenerate its indexes. It can also identify changes that need the user's decision because they may be destructive.

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-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/vstrapasson/rpg-marketplace/rpg-audit/github.svg)](https://agentmods.dev/skills/vstrapasson/rpg-marketplace/rpg-audit)
Your own site
<a href="https://agentmods.dev/skills/vstrapasson/rpg-marketplace/rpg-audit"><img src="https://agentmods.dev/badge/skills/vstrapasson/rpg-marketplace/rpg-audit/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-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/vstrapasson/rpg-marketplace/rpg-audit"><img src="https://agentmods.dev/badge/skills/vstrapasson/rpg-marketplace/rpg-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,281 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.00026 $0.01281
Opus 5.5 $0.00010 $0.00512
Sonnet 5.5 $0.00005 $0.00256
Haiku 4.5 $0.00003 $0.00128

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

Security

Grade A, and why

rpg-audit 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 3mo 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-audit/SKILL.md · 152 lines

How it starts

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

rpg-audit — Vault Audit

Run a complete vault audit. Follow the 7 steps below in order.

Run all commands from the vault root (directory containing the regioes/, npcs/, etc. folders).


Step 1 — Snapshot (before any modifications)

Ask the user:

"Would you like to make a snapshot commit before continuing?"

If yes:

git add . && git commit -m "snapshot: before audit $(date +%Y-%m-%d)"

Step 2 — Deterministic validation

node "${CLAUDE_PLUGIN_ROOT}/scripts/validate.mjs" --vault . --json

Parse the returned JSON. Categorize issues by family:

  • schema: missing type, missing required field, invalid enum
  • links: broken link (broken-link), orphan entity (orphan)
  • coherence: wrong target type (wrong-target-type)

Show a summary: "X error(s), Y warning(s) found."


Step 3 — Safe auto-fix (apply without confirmation)

Apply automatically and list each modified file.

3a — Missing or wrong type → infer from folder

For each note with missing-type or type-folder-mismatch in the Step 2 report:

PLUGIN="${CLAUDE_PLUGIN_ROOT}"
node --input-type=module << EOF
import { readFile, writeFile } from 'node:fs/promises';
import { relative } from 'node:path';
import { extractFrontmatter } from "${PLUGIN}/scripts/lib/frontmatter.mjs";
import { inferType, normalizeFrontmatter, stampUpdated } from "${PLUGIN}/scripts/lib/autofix.mjs";
import { serializeFrontmatter } from "${PLUGIN}/scripts/lib/preserve.mjs";
import { typeForFolder } from "${PLUGIN}/scripts/lib/schema.mjs";

const filePath = 'ABSOLUTE_NOTE_PATH';
const raw = await readFile(filePath, 'utf8');
const { frontmatter: fm, body } = extractFrontmatter(raw);
const folder = relative(process.cwd(), filePath).split('/')[0];
const type = typeForFolder(folder);
const note = { type, frontmatter: fm };
const correctedType = inferType(note);
if (correctedType) {
  const newFm = normalizeFrontmatter(stampUpdated({ ...fm, type: correctedType }), correctedType);
  await writeFile(filePath, serializeFrontmatter(newFm) + body, 'utf8');
  console.log('✅ auto-fix type:', filePath);
}
EOF

Read the full file on GitHub · 152 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. 3mo ago First seen · 152 lines · 26 tokens per session scan A 7f32c5255af9

Subscribe to this mod's changes

rpg-audit is a skill published in the GitHub repository vstrapasson/rpg-marketplace (2 stars, last pushed 2mo ago), licensed MIT. It adds 26 tokens to every session and 1,281 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-audit compared with skills from other repositories

rpg-audit next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rpg-auditvstrapasson/rpg-marketplaceSkill22mo agoMITA26Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill82ktodayMITA200Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15ktodayCC0-1.0A113Claude Code, Codex
systematic-debuggingobra/superpowersSkill332k6d agoMITA21Claude Code