tavern-management

tavern-management is a skill for Claude Code, Codex from lfyxhappy/lfcode. It costs 43 tokens per session (842 once invoked), scanned A, original, MIT.

A management guide for Lfcode Tavern character cards, worldbooks, and plugins. Character cards can be JSON or PNG files that also contain structured character data, while worldbooks store related setting information.

In plain words
What is it for?
Importing or translating character cards and worldbooks, previewing plugin packages, and managing the Tavern plugin lifecycle with explicit approval for changes.
Why use it?
It protects original SillyTavern files and user conversations during migration and requires review before installing, enabling, disabling, or removing plugins.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/lfyxhappy/lfcode/tavern-management
Any agent
npx skills add lfyxhappy/lfcode --skill tavern-management
Clone the repo
git clone --depth 1 https://github.com/lfyxhappy/lfcode

Made for: Claude Code, Codex.

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 tavern-management

README.md
[![agentmods](https://agentmods.dev/badge/skills/lfyxhappy/lfcode/tavern-management.svg)](https://agentmods.dev/skills/lfyxhappy/lfcode/tavern-management)
Your own site
<a href="https://agentmods.dev/skills/lfyxhappy/lfcode/tavern-management"><img src="https://agentmods.dev/badge/skills/lfyxhappy/lfcode/tavern-management.svg" alt="Measured on agentmods" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 842 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00043 $0.00842
Opus 5 $0.00022 $0.00421
Sonnet 5 $0.00009 $0.00168
Haiku 4.5 $0.00004 $0.00084

Measured today against content hash ac317d290f1e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

tavern-management 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 today.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/tavern-card.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

packages/tavern/skills/tavern-management/SKILL.md · 59 lines

How it starts

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

Lfcode Tavern Management

Scope

Use this skill for Lfcode Tavern character cards, worldbooks, and the Tavern plugin itself. Tavern accepts Character Card V2 JSON and PNG cards carrying chara metadata in tEXt, zTXt, or iTXt PNG chunks. Treat a PNG card as both an image and structured character data; do not flatten it to a plain image.

The original SillyTavern migration vault is read-only. Importing or translating creates a new Lfcode Tavern copy and must never overwrite the user's source card, source worldbook, or migration archive.

Plugin Lifecycle

Use plugin_manage for plugin library work.

  1. Inspect first with plugin_manage list or inspect.
  2. For a new plugin package, call import_preview; report the reviewed package details before any install.
  3. Only call import_commit, enable, disable, or uninstall after the user has explicitly approved that change. Give the tool a concise reason.
  4. Do not use shell deletion or edit the plugin registry directly. Disable or uninstalling Tavern must not be used as a shortcut to delete Tavern conversations or private data.

Import Workflow

  1. Open Tavern, then use 角色 or 世界书 management and choose the import action.
  2. Character cards may be .json or .png; worldbooks are JSON files. The app copies the selected file into Tavern private storage before creating its index entry.
  3. Preserve card data such as data.character_book, alternate greetings, tags, and template variables. A card's embedded worldbook should stay associated with that imported character.
  4. Verify the imported character name, opening message, and linked worldbook before creating a conversation.

Character Card Translation

  1. Work from a user-selected source file or a new exported copy. Do not modify the original in place.
  2. Extract JSON from either format with the script in this skill directory:
node scripts/tavern-card.mjs read "input-card.png" > card.json
  1. Translate data.name, description, personality, scenario, first message, example dialogue, creator notes, system prompt, post-history instructions, alternate greetings, tags, and embedded character_book text. Keep {{char}}, {{user}}, <START>, Markdown, regular expressions, JSON keys, and formatting intact. If V1 mirror fields exist at the top level, keep them synchronized with data.
  2. For embedded worldbook keys, preserve the original trigger and append a Chinese trigger rather than replacing it. Translate entry content, comments, names, and descriptions.
  3. For a PNG source, write a separate PNG that preserves all image chunks and replaces only the chara metadata:

Read the full file on GitHub · 59 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. today First seen · 59 lines · 43 tokens per session scan A ac317d290f1e

Subscribe to this mod's changes

tavern-management is a skill published in the GitHub repository lfyxhappy/lfcode (2 stars, last pushed 3d ago), licensed MIT. It adds 43 tokens to every session and 842 once invoked, about $0.0002 per session on Opus 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-09-05.