adv-debug

adv-debug is a skill for Codex from YunYouJun/advjs. It costs 51 tokens per session (1,955 once invoked), scanned A, original, MPL-2.0.

A deterministic debugger for ADV.JS visual-novel projects. It checks scripts and references, analyzes branching paths, and measures how much of a story's routes has been covered.

In plain words
What is it for?
Use it to validate projects, create missing reference stubs, inspect the compiled story context, analyze branch graphs, find orphan content, and replay failing paths.
Why use it?
It catches structural problems such as syntax errors, missing characters or scenes, dead branches, and unreachable content before players encounter them.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to validate projects, create missing reference stubs, inspect the compiled story context, analyze branch graphs, find orphan content, and replay failing paths.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/yunyoujun/advjs/adv-debug"><img src="https://agentmods.dev/badge/skills/yunyoujun/advjs/adv-debug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,955 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.00051 $0.01955
Opus 5.5 $0.00020 $0.00782
Sonnet 5.5 $0.00010 $0.00391
Haiku 4.5 $0.00005 $0.00196

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

Security

Grade A, and why

adv-debug 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 1mo 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-debug/SKILL.md · 234 lines

How it starts

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

ADV Debug Skill

You are a visual novel project debugger and analyzer for ADV.JS. You systematically examine projects for structural issues, dead paths, inconsistencies, and coverage gaps.

Overview

ADV.JS projects can grow complex with multiple chapters, branching narratives, and interconnected characters. This skill helps identify issues before they reach players.

Workflow

Step 1: Run Validation

adv check

Collect the validation results: syntax errors, unresolved character references, missing scene definitions.

If the only issues are unresolved character / scene refs and you want stubs auto-generated:

adv check --fix

--fix creates .character.md / scenes/*.md stub files for every unresolved reference. Existing files are never overwritten. Syntax errors and location issues are not auto-fixed — those need human attention.

Step 2: Load Full Context

adv context --full

Read the full project context to understand:

  • World setting and rules
  • Story structure and chapter outline
  • Character roster and relationships
  • Scene inventory

Step 3: Analyze Branch Structure

For each chapter, generate a branch graph from the AST — don't eyeball the .adv.md. The CLI exposes three formats:

# Default — mermaid flowchart (embed in reports)
adv debug branches adv/chapters/chapter_01.adv.md

# Structured graph (drive automated path traversal)
adv debug branches adv/chapters/chapter_01.adv.md --format=json

# Indented outline (terminal-friendly)
adv debug branches adv/chapters/chapter_01.adv.md --format=text

The JSON shape is:

{
  "nodes": [
    { "id": "start", "kind": "start", "label": "START" },
    { "id": "scene_3", "kind": "scene", "label": "学校", "astIndex": 3 },
    { "id": "choices_42", "kind": "choices", "label": "Choice (2 options)", "astIndex": 42 },
    { "id": "choices_42_opt1", "kind": "option", "label": "好的,麻烦你了" },
    { "id": "end", "kind": "end", "label": "END" }
  ],
  "edges": [{ "from": "start", "to": "scene_3" }],
  "deadOptions": 0,
  "sceneCount": 5
}

Read the full file on GitHub · 234 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. 1mo ago First seen · 234 lines · 51 tokens per session scan A bd53aa834750

Subscribe to this mod's changes

adv-debug is a skill published in the GitHub repository YunYouJun/advjs (328 stars, last pushed today), licensed MPL-2.0. It adds 51 tokens to every session and 1,955 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

Other skills, from other repositories

graphics-api-hooking

Analyze Direct3D, DXGI, OpenGL, or Vulkan rendering, overlays, presentation, capture, and measurement evidence. Use when the graphics pipeline or frame-observation boundary is central.

gmh5225/awesome-game-security · 43 tokens

minecraft-debug-mcp

Operate and debug the live Minecraft bot through its built-in MCP REPL server. Use when work requires starting the bot with pnpm dev, connecting to the local MCP endpoint, inspecting cognitive state/logs/history, injecting synthetic chat/events, or running targeted REPL code against the running brain during…

moeru-ai/airi · 68 tokens

cli-anything-nsight-graphics

Windows-first CLI harness for Nsight Graphics capture, GPU Trace summary, and ngfx-replay analysis.

HKUDS/CLI-Anything · 29 tokens

investigate

Investigate a specific issue report with strict, evidence-driven diagnosis.

vercel/eve · 16 tokens

performance-optimization

Find and fix game performance problems methodically — measure with the engine profiler first, reason about the frame-time budget, locate the CPU-vs-GPU bottleneck, then apply the right fix: object pooling, draw-call batching, fewer allocations/GC spikes, and asset budgets. Engine- neutral method that pairs with each…

gamedev-skills/awesome-gamedev-agent-skills · 121 tokens

diagnosing-bgs-problems

A symptom-first guide for investigating crashes, frame-rate drops, stuttering, freezes, and startup failures in Bethesda Game Studios games with mods.

hashgraph-online/awesome-codex-plugins · 72 tokens