miochat-plugin-builder

miochat-plugin-builder is a skill for Claude Code, Codex from Pretend-to/mio-chat-backend. It costs 22 tokens per session (1,818 once invoked), scanned A, original, MIT.

A guide for creating and managing MioChat plugins, which are extensions that add tools or behavior to the MioChat system.

In plain words
What is it for?
Use it when adding or maintaining MioChat plugins, including their JavaScript entry class, tools, optional hooks, and preset settings.
Why use it?
It explains where plugins belong and how to organize their code, hooks, configuration presets, and entry points.

Skill for Claude CodeCodex

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

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import Plugin from '../../lib/plugin.js'.

Good fit Use it when adding or maintaining MioChat plugins, including their JavaScript entry class, tools, optional hooks, and preset settings.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/Pretend-to/mio-chat-backend
agentmods
npx agentmods add skills/pretend-to/mio-chat-backend/miochat-plugin-builder

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 miochat-plugin-builder

README.md
[![agentmods](https://agentmods.dev/badge/skills/pretend-to/mio-chat-backend/miochat-plugin-builder/github.svg)](https://agentmods.dev/skills/pretend-to/mio-chat-backend/miochat-plugin-builder)
Your own site
<a href="https://agentmods.dev/skills/pretend-to/mio-chat-backend/miochat-plugin-builder"><img src="https://agentmods.dev/badge/skills/pretend-to/mio-chat-backend/miochat-plugin-builder/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 miochat-plugin-builder

Your own site · 80×15
<a href="https://agentmods.dev/skills/pretend-to/mio-chat-backend/miochat-plugin-builder"><img src="https://agentmods.dev/badge/skills/pretend-to/mio-chat-backend/miochat-plugin-builder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,818 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.00022 $0.01818
Opus 5 $0.00011 $0.00909
Sonnet 5 $0.00004 $0.00364
Haiku 4.5 $0.00002 $0.00182

Measured 9d ago against content hash 4787cc4385e3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

miochat-plugin-builder 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 9d 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.

lib/chat/llm/skills/miochat-plugin-builder/SKILL.md · 227 lines

How it starts

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

MioChat Plugin Builder: Master Edition (V3 Hook Architecture)

You are a Master Architect of the MioChat ecosystem. You extend the system by managing plugins in the root /plugins/ (Standard Project-Level) or /plugins/custom/ (Agile Single-File) directories.

[!IMPORTANT] Directory Standards:

  • /plugins/<plugin-name>/: The ONLY place for new project-level plugins.
  • lib/plugins/: RESERVED for system core plugins. Do not add new plugins here.

🏗️ Project-Level Plugins (V3 Standard)

V3 plugins support logic-separation via hooks and automatic configuration via presets.

  • Location: /plugins/<plugin-name>/
  • Structure:
    plugins/my-plugin/
    ├── package.json      # Metadata & Dependencies
    ├── index.js          # Plugin Entry Class
    ├── tools/            # MioFunction tools (Business Logic)
    ├── hooks/            # [Optional] BaseHook implementations (AOP Logic)
    └── presets/          # [Optional] Preset JSON files (Auto-Seeding)
    

1. index.js Implementation

The index.js should handle initialization and optional hook propagation.

import Plugin from '../../lib/plugin.js' 

export default class MyPlugin extends Plugin {
  constructor() {
    super({ importMetaUrl: import.meta.url })
  }

  async initialize() {
    await super.initialize() // MUST call super to load tools/hooks
    
    // Optional: Propagate private hooks to the global execution chain
    // this._propagateHooks() 
  }

  getInitialConfig() {
    return { apiKey: '', maxRequests: 100 }
  }
}

2. Developing Tools (tools/)

Tools represent actions and functions available to the LLM agent. Place files inheriting MioFunction in the tools/ directory.

Basic Tool Example
import { MioFunction } from '../../../lib/function.js'

export default class MyTool extends MioFunction {
  constructor() {
    super({
      name: 'my_tool',
      description: 'Tool description for LLM system prompt',
      parameters: {
        type: 'object',
        properties: {
          query: { type: 'string', description: 'Search keyword' }
        },
        required: ['query']
      }
    })
    this.func = this.execute.bind(this)
  }

  async execute(e) {
    const { query } = e.params
    return { success: true, result: `Searched for ${query}` }
  }
}

Read the full file on GitHub · 227 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. 9d ago First seen · 227 lines · 22 tokens per session scan A 4787cc4385e3

Subscribe to this mod's changes

miochat-plugin-builder is a skill published in the GitHub repository Pretend-to/mio-chat-backend (38 stars, last pushed yesterday), licensed MIT. It adds 22 tokens to every session and 1,818 once invoked, about $0.0001 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-08-30.

Related

Other skills, from other repositories

skill-creator

Create, edit, improve, or audit AgentSkills. Use when creating a new skill from scratch or when asked to improve, review, audit, tidy up, or clean up an existing skill or SKILL.md file. Also use when editing or restructuring a skill directory (moving files to references/ or scripts/, removing stale content, validating…

ChatLunaLab/chatluna · 121 tokens

sub-agent-creator

Create, edit, convert, or audit ChatLuna sub-agent markdown files. Use when adding a new sub-agent, refining a sub-agent prompt, choosing a sub-agent's goal and output contract, restricting tools, skills, MCP, or computer permissions, pinning or omitting a model, setting maxTurns, placing agents under local…

ChatLunaLab/chatluna · 109 tokens

agentcli

Use this skill to inspect or change ChatLuna agent admin state — skills, sub-agents, tools, MCP servers, MCP tools, or permission rules. The skill edits a working copy of the agent config inside the sandbox; the user must run chatluna.agent.sync to write changes back to the host instance.

ChatLunaLab/chatluna · 69 tokens

coding-agent

Delegate coding tasks to Codex, Claude Code, or Pi agents via background process. Use when: (1) building/creating new features or apps, (2) reviewing PRs (spawn in temp dir), (3) refactoring large codebases, (4) iterative coding that needs file exploration. NOT for: simple one-liner fixes (just edit), reading code…

ChatLunaLab/chatluna · 157 tokens

skill-creator

Create, install, or update skills in the workspace. Use when (1) installing a skill from a URL or remote source, (2) creating a new skill from scratch, (3) updating or restructuring existing skills. Always use this skill for any skill installation or creation task.

zhayujie/CowAgent · 61 tokens

evolve

Start or monitor an evolutionary development loop.

Q00/ouroboros · 10 tokens