WebGAL Skill Assistant: Writing Visual Novel Scripts Using WebGAL Syntax in Agents

Introduction

When creating WebGAL visual novels, scripts must accommodate command syntax, production flow transitions, and branching variables simultaneously. Relying solely on generalist large models often leads to issues such as incorrect half-width punctuation, missing semicolons, or confusion between changeScene and callScene. By integrating engine rules into an Agent Skill, scripts can be generated, debugged, and optimized within the conversation according to WebGAL conventions, eliminating the need to dictate specifications from scratch every time.

What is this

webgal Skill Assistant (Coordinate @user_0064faa7/webgalskill, Version 1.0.0) is a SkillHub community skill categorized under content-creation. It is published by user_0064faa7 (author listed as zhenruyan on the SkillHub page). It acts as a “WebGAL Scriptwriting Expert” within the Agent: familiar with WebGAL’s command formats, production controls, variables, and scene transitions, it assists in writing, debugging, and optimizing scripts, while referencing built-in documentation by module.

The Skill is marked requires_api_key=false, requiring no additional API Key. SkillHub page statistics (subject to the page display): Rating 100000, Downloads 955.

Official Entry:

  • API / Installation Identifier: https://api.skillhub.cn/user_0064faa7/webgalskill
  • SkillHub Details Page: https://www.skillhub.cn/skills/user_0064faa7/webgalskill

Core Features

Below is an introduction to the capabilities specified in SKILL.md and references/ within the Skill package, without exceeding this scope.

Syntax and Output Conventions

The Agent processes WebGAL statements according to the following rules:

  1. Statements generally end with a half-width semicolon ;, followed by comments.
  2. The basic form is Command:Value -param1 -param2=value;. Colons and semicolons must be half-width English characters.
  3. When outputting scripts, use a code block with the ws language tag and provide a brief explanation outside the code.

Modular Knowledge Base (Load on Demand)

The Skill splits command descriptions into 9 reference files. Each file has a command quick-reference table at the top to facilitate Agent loading based on the task:

Module File Coverage (Summary)
Basics references/base.md none, -next, -concat, -notend
Dialogue references/dialogue.md Character dialogue, narration, variable interpolation, furigana, text box, ending, and movie mode
Background & Figures references/bg-and-figure.md changeBg, changeFigure, small avatars, CG unlocking
Scenes & Branching references/scenes.md changeScene, callScene, choose, label jumps
Variables references/variable.md setVar, random numbers, -when, getUserInput, global and save domains
Audio references/audio.md BGM, voice -V, playEffect, unlockBgm
Video references/video.md playVideo and skip controls
Animation references/animation.md setAnimation, setTransition, custom animation tables
Special Effects references/special-effect.md pixiInit, pixiPerform, etc.

SKILL.md also provides a command index (scene transitions, variables, audio, figures, effects, etc.) and a fixed workflow: Intent Recognition → On-demand Retrieval → Script Writing → Comment Explanation → Connect production flows using -next / -concat / -notend.

Installation and Activation

First, perform a CLI check, then install the Skill into the skills directory actually used by your current Agent. If installed in the wrong directory, the Agent will not load it (as noted in SkillHub installation documentation).

1. Install SkillHub CLI (if not installed)

command -v skillhub && skillhub --version

If not installed, run the full installation (including default Skills):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

CLI only:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only

2. Install webgal Skill Assistant

After searching to confirm the package name, use the namespace installation method (recommended in SkillHub search results):

skillhub search webgal
skillhub install webgalskill --namespace user_0064faa7 --dir <your Agent skills directory>

The SkillHub details page also suggests installing @user_0064faa7/webgalskill via https://skillhub.cn/install/skillhub.md.

Skills paths for common Agents (excerpt from SkillHub installation documentation):

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

After installation, restart or refresh the Skill list according to your client’s requirements. This article does not independently verify activation differences for Claude Code / Codex CLI; please refer to the official documentation of the corresponding product for details beyond the directory.

Typical Usage

After enabling the Skill, simply describe the production or logic in natural language. The Agent should reference the corresponding references/*.md according to the SKILL.md workflow and output ws code blocks.

Example 1: Switch figures during dialogue (from references/base.md)

WebGAL:Test statement insert production! Switch figure immediately...... -notend;
changeFigure:k1.png -next;
Switch figure! Switch expression immediately...... -notend -concat;
changeFigure:k2.png -next;
Switch expression! -concat;

Example 2: Branching selection (Syntax from SKILL.md index)

choose:Option 1:file1.txt|Option 2:file2.txt;

Example 3: BGM with fade-in (SKILL.md audio section)

bgm:filename.mp3 -volume=80 -enter=3000;

Explaining the target scene to the Agent (e.g., “Write an opening with option jumps” or “Add BGM fade-out to this dialogue”) fits the Skill design better than reciting commands one by one.

Use Cases and Notes

Who is it for

  • Authors or programmers using the WebGAL engine to create Galgames / visual novels.
  • Those who want to unify script style and reduce syntax typos within Agents with Skills support, such as Cursor or Claude Code.

Limitations and Notes

  1. The Skill provides syntax and best practice guidelines; it does not replace the WebGAL editor or runtime resource paths and asset naming. Image and audio file names must match your project directory.
  2. Some reference files are marked as “To be loaded on demand” in SKILL.md. Complex productions (animation JSON, animationTable.json, etc.) still require referencing official engine documentation and local project structure.
  3. Community source (source: community), version 1.0.0. For upgrades, use the skillhub upgrade capability. It is recommended to confirm the version and description on the SkillHub page before installation.
  4. No API Key is required, but the Agent itself is still subject to the context of the model you use and whether references are loaded. Long scripts should be iterated scene by scene.

Conclusion

webgal Skill Assistant integrates WebGAL’s modular command quick-reference and workflow into a Skill, enabling the Agent to write scripts, debug, and optimize according to engine syntax during content creation tasks. If you are working on a WebGAL project and using SkillHub, you can install it into the corresponding skills directory using the commands above.

Official Address: https://api.skillhub.cn/user_0064faa7/webgalskill
SkillHub Page: https://www.skillhub.cn/skills/user_0064faa7/webgalskill

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye