plugin-template

plugin-template is a skill for Claude Code, Codex from ggg123124/vrchat-assistant. It costs 0 tokens per session (497 once invoked), scanned A, original, MIT.

A template for building a coding-agent plugin that exposes tools through the plugin system. It includes a test tool and rules for accessing core services, other tools, and plugin-owned data.

In plain words
What is it for?
Use it to start a plugin, check that it is registered, define tools, call shared services, and store plugin-specific data.
Why use it?
It shows the required structure and interfaces, so plugin code does not depend directly on internal core files or databases.

Skill for Claude CodeCodex

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/ggg123124/vrchat-assistant/plugin-template
Any agent
npx skills add ggg123124/vrchat-assistant --skill plugin-template
Clone the repo
git clone --depth 1 https://github.com/ggg123124/vrchat-assistant

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 plugin-template

README.md
[![agentmods](https://agentmods.dev/badge/skills/ggg123124/vrchat-assistant/plugin-template.svg)](https://agentmods.dev/skills/ggg123124/vrchat-assistant/plugin-template)
Your own site
<a href="https://agentmods.dev/skills/ggg123124/vrchat-assistant/plugin-template"><img src="https://agentmods.dev/badge/skills/ggg123124/vrchat-assistant/plugin-template.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 497 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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 $0.00000 $0.00497
Opus 5 $0.00000 $0.00249
Sonnet 5 $0.00000 $0.00099
Haiku 4.5 $0.00000 $0.00050

Measured 4d ago against content hash fca12ca50d4e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

plugin-template scanned grade A with 1 finding 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 4d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (index.js, test-smoke.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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

Agent 直接通过 MCP `tools/call` 调用上述工具,无需 curl 手写 JSON-RPC。例如:
docs/plugin-template/SKILL.md · 37 lines

What it actually says

my-plugin —— 插件能力说明(模板)

本文档是插件的 SKILL.md,给调用你的 AI Agent 看:告诉它这个插件能做什么、怎么用。 只需把本文件放进 plugins/local/<name>/SKILL.md(或 docs/plugin-template/ 下随插件分发), 改写「能力」「用法」两节即可。

能力

  • my_plugin_ping:自检工具,返回插件名 / 版本 / 当前时间。用于验证插件已成功加载并注册,无凭据可调用。

用法

Agent 直接通过 MCP tools/call 调用上述工具,无需 curl 手写 JSON-RPC。例如:

my_plugin_ping  (无参数)

返回:

{ "plugin": "my-plugin", "version": "0.1.0", "now": "2026-08-23T00:00:00.000Z" }

开发提示

  • 插件只准通过 api 对象与核心交互,不得 import core/、触碰 ctx、直连数据库文件
  • 对外暴露能力一律 api.registerTool({ name, description, inputSchema, handler })
  • 需要核心能力/数据 → api.consume("<域>.<名>", args);需要调别的工具 → api.tools.call(name, args); 需要自有表 → api.db.table("<alias>")(核心自动加 plg_<name>_ 前缀)。
  • 权威契约见 docs/PLUGIN-API.md(v1.1),开发指南见 docs/PLUGIN-DEV.md

⚠️ 重要:api.registerTool 注册的工具只有其名字在 core/tool-order.json, 才会出现在 tools/list(registry.listTools() 只遍历该清单)。若想让 Agent 在 tools/list 里看到你的工具,需把工具名补进 core/tool-order.json;若只是给 其他插件用(api.tools.callhasTool),则无需改它。详见 ARCHITECTURE / registry.js。

Files

What ships with it

3 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. 4d ago First seen · 37 lines · 0 tokens per session scan A fca12ca50d4e

Subscribe to this mod's changes

plugin-template is a skill published in the GitHub repository ggg123124/vrchat-assistant (20 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 497 tokens. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.