adv-story

adv-story is a skill for Codex from YunYouJun/advjs. It costs 58 tokens per session (2,000 once invoked), scanned A, original, MPL-2.0.

An interactive narrator and controller for ADV.JS visual novels. ADV.JS is a game engine for stories with dialogue, scenes, choices, and branching paths.

In plain words
What is it for?
Use it to start and advance stories, select choices, inspect the current scene, go backward, manage saves, replay routes, and present the narrative to a player.
Why use it?
It lets an agent play a story with the correct world and character context instead of treating the script as disconnected text.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to start and advance stories, select choices, inspect the current scene, go backward, manage saves, replay routes, and present the narrative to a player.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yunyoujun/advjs/adv-story
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.

Any agent
npx skills add YunYouJun/advjs --skill adv-story
Clone the repo
git clone --depth 1 https://github.com/YunYouJun/advjs

Made for: 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 adv-story

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/yunyoujun/advjs/adv-story"><img src="https://agentmods.dev/badge/skills/yunyoujun/advjs/adv-story.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,000 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00058 $0.02000
Opus 5.5 $0.00023 $0.00800
Sonnet 5.5 $0.00012 $0.00400
Haiku 4.5 $0.00006 $0.00200

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

Security

Grade A, and why

adv-story 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.

skills/adv-story/SKILL.md · 270 lines

How it starts

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

ADV Story Skill

You are an interactive narrator for ADV.JS visual novel stories. You drive the narrative by executing CLI commands and presenting story content to the user in an engaging way.

Overview

ADV.JS is a visual novel / interactive narrative engine. Scripts are written in .adv.md (Markdown) format. This skill enables you to load and play through stories interactively with full context awareness.

Before Starting: Load Context

Before playing any story, understand the project's world and characters:

adv context

This gives you the world setting, character descriptions, story outline, and chapter statuses. Use this information to:

  • Present dialog in a way that matches character personalities
  • Describe scenes with details from scenes/*.md
  • Maintain narrative consistency with the world rules

For a specific chapter's context:

adv context --chapter <n>

Commands

Start a new story

adv play <script.adv.md> --session-id <unique-id> --json

This loads a script and returns the first displayable node.

Advance the story

adv play next --session-id <id> --json

Moves to the next narrative beat. Returns dialog, narration, choices, or end.

Make a choice

adv play choose <number> --session-id <id> --json

When the story presents choices, select one by number (1-based).

Roll back (undo)

adv play back --session-id <id> --json
adv play back --session-id <id> --steps 3 --json

Pop the rollback history stack and jump back to the previous displayable node. Use this for "undo" UX when a player wants to revisit a moment without the heavier save / load --slot workflow. The JSON response includes requestedSteps (what you asked for) and poppedSteps (what actually happened — capped at history length).

History accumulates as the player advances (one entry per displayable node, consecutive duplicates collapsed). After rollback, status is forced to playing so a session that had reached waiting_choice or ended becomes re-playable.

Read the full file on GitHub · 270 lines

Files

What ships with it

2 files 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. 3mo ago First seen · 270 lines · 58 tokens per session scan A 9bd9c392c85b

Subscribe to this mod's changes

adv-story is a skill published in the GitHub repository YunYouJun/advjs (332 stars, last pushed 2d ago), licensed MPL-2.0. It adds 58 tokens to every session and 2,000 once invoked, about $0.0002 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-30.

Related

adv-story compared with skills from other repositories

adv-story next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
adv-storyYunYouJun/advjsSkill3322d agoMPL-2.0A58Codex
unity-cliAlex-Rachel/TEngineSkill2.4k12d agoMITA68Codex
game-craftalfredxw/denovaSkill1.1ktodayApache-2.0A92Claude Code, Codex
anti-cheat-systemsgmh5225/awesome-game-securitySkill3.8ktodayMITA46Claude Code
game-hacking-techniquesgmh5225/awesome-game-securitySkill3.8ktodayMITA45Claude Code
game-engine-resourcesgmh5225/awesome-game-securitySkill3.8ktodayMITA48Claude Code
graphics-api-hookinggmh5225/awesome-game-securitySkill3.8ktodayMITA43Claude Code