create-plugin

A toolkit for creating OIAP agent plugins in TypeScript. OIAP lets one plugin definition produce bundles for several coding-agent platforms.

In plain words
What is it for?
Use it to scaffold or improve an OIAP plugin, create its configuration file, define supported components, and build bundles for platforms such as Codex, Claude Code, Cursor, or VS Code Copilot Chat.
Why use it?
It gives plugin authors a defined structure for packaging commands, instructions, skills, hooks, agents, tools, recipes, and policies instead of configuring each target separately.

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

Made for: Claude Code, Codex.

Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,149 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00060 $0.01149
Opus 5 $0.00030 $0.00575
Sonnet 5 $0.00012 $0.00230
Haiku 4.5 $0.00006 $0.00115

Measured yesterday against content hash 1b4ca7d03812, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

create-plugin 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 yesterday.

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/create-plugin/SKILL.md · 146 lines

How it starts

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

Create OIAP Plugin

Use this skill when the user needs to write an agent plugin in TypeScript using OIAP.

OIAP lets plugin authors define a plugin once and export host-native bundles for multiple agent platforms. Treat OIAP as an external SDK and CLI unless the user is explicitly working inside the OIAP source repository.

First Response

Start by identifying the plugin shape the user wants:

  • What should the plugin help an agent do?
  • Which targets matter first, such as claude-code, codex, cursor, openclaw, vscode-copilot-chat, or antigravity?
  • Does the plugin need commands, always-on instructions, skills, hooks, agents, MCP tools, executable recipes, or policies?
  • Should generated bundles be committed, published, or only built locally for review?

If the request is already clear, do not over-interview. Scaffold the smallest useful plugin and explain where to extend it.

Install OIAP

For normal plugin projects, use the published OIAP CLI and SDK.

Use the existing project package manager in commands and examples. If the project already uses bun, pnpm, yarn, or npm, follow that choice instead of switching tools. Only fall back to npm when the project has no clear package manager yet.

Install the OIAP packages with that package manager. For example:

# npm
npm install --save-dev @oiap/cli @oiap/core

# pnpm
pnpm add -D @oiap/cli @oiap/core

# yarn
yarn add --dev @oiap/cli @oiap/core

# bun
bun add --dev @oiap/cli @oiap/core

Use npx oiap in examples and instructions:

npx oiap targets
npx oiap build oiap.plugin.ts --target claude-code --out dist/claude-code
npx oiap build oiap.plugin.ts --out dist/oiap

Do not tell users to clone the OIAP repository unless they are contributing to OIAP itself.

Authoring Rules

  • Create an oiap.plugin.ts file that exports definePlugin(...) as the default export.
  • Import from @oiap/core; avoid repository-relative imports.
  • Put larger prompts and agent instructions in Markdown files and load them with markdownFile("path.md", { baseUrl: import.meta.url }).
  • Keep target-specific overrides small. Prefer portable primitives first.
  • Declare supportedTargets honestly. Use only targets the user wants to build or verify.
  • Include policies when hooks, tools, scripts, network access, file writes, secrets, or destructive actions are involved.
  • Build target bundles into dist/ and tell the user that OIAP generates artifacts; installing those artifacts into a host is handled by the host or the user's own workflow.

Read the full file on GitHub · 146 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. yesterday First seen · 146 lines · 60 tokens per session scan A 1b4ca7d03812

Subscribe to this mod's changes

create-plugin is a skill published in the GitHub repository fboldo/oiap (5 stars, last pushed 3mo ago), licensed MIT. It adds 60 tokens to every session and 1,149 once invoked, about $0.0003 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-31.