插件开发

插件开发 is a skill for Claude Code, Codex from jianchen08/Agent-os-open. It costs 207 tokens per session (9,624 once invoked), scanned A, original, Apache-2.0.

A development guide for creating, changing, debugging, testing, and moving software plugins. It treats a plugin as complete only when a fresh application instance can load and use it, not merely when static checks pass.

In plain words
What is it for?
Use it to scaffold plugin work, verify installation and loading, run diagnostics, check declared interfaces, and test front-end behavior without launching the installed desktop shell.
Why use it?
It prevents plugin changes from being accepted when they look valid in files but fail during loading, registration, or runtime setup. Isolated staging and scratch instances also reduce the risk of disturbing the live application.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python skills/skill-dev-toolkit/scripts/scaffold_plugin.py my_tool \.

Good fit Use it to scaffold plugin work, verify installation and loading, run diagnostics, check declared interfaces, and test front-end behavior without launching the installed desktop shell.

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/jianchen08/Agent-os-open
agentmods
npx agentmods add skills/jianchen08/agent-os-open/plugin-dev

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 插件开发

README.md
[![agentmods](https://agentmods.dev/badge/skills/jianchen08/agent-os-open/plugin-dev/github.svg)](https://agentmods.dev/skills/jianchen08/agent-os-open/plugin-dev)
Your own site
<a href="https://agentmods.dev/skills/jianchen08/agent-os-open/plugin-dev"><img src="https://agentmods.dev/badge/skills/jianchen08/agent-os-open/plugin-dev/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 插件开发

Your own site · 80×15
<a href="https://agentmods.dev/skills/jianchen08/agent-os-open/plugin-dev"><img src="https://agentmods.dev/badge/skills/jianchen08/agent-os-open/plugin-dev.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 207 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 9,624 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.
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.00207 $0.09624
Opus 5.5 $0.00083 $0.03850
Sonnet 5.5 $0.00041 $0.01925
Haiku 4.5 $0.00021 $0.00962

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

Security

Grade A, and why

插件开发 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 8d ago.

The scan reads SKILL.md. This mod also ships 10 executable files (scripts/debug_tool.py, scripts/frontend_probe.cjs, scripts/plugin_doctor.py, …), 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.

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/plugin-dev/SKILL.md · 399 lines

How it starts

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

插件开发

分层声明(ADR 2026-11-03-plugin-dev-skill-and-staging-verify-pipeline):本技能是 code-implement(通用代码开发基座:TDD/模块边界/门禁/落账)的子集叠加,不重复基座 内容。派发规则:任务书目标含插件 → 双指针(code-implement + 本技能);纯代码 → 单指针 code-implement。工具声明契约单源 = skills/resource-tool-create/SKILL.md(不复制)。

完成语义:普通代码的验收单位=变更本身(测试绿+门禁绿即完成);插件的验收单位=在真实内核里被装载、被声明、被调用。验证标配=新开内核实例装载测试(G2 静态校验过 ≠ 装载活;装载环节 = plugin-loader 发现 → G2 → 注册 → sidecar spawn + venv 解析)。

一、铁律(先读再动手)

  1. 新建插件必须在新建目录空间内进行(隔离任务工作空间;终端用户在用户空间 staging)—— 禁止在主仓 dev 目录直接长插件(沿用 skill-dev-toolkit 铁律)。
  2. staging 是唯一创作落点:终端用户/装机场景插件先落 staging 目录(用户空间内固定 槽位,自持 .venv——不放系统临时目录,防清理策略扫掉 venv)。
  3. 现役内核与装机应用永不触碰:验证一律走 scratch 验证实例(三隔离)。 验证实例毒化豁免边界(ADR D3):scratch 验证实例允许经脚本拉起——端口隔离 (硬拒 9100/9101)+ 不调 LLM(断言面 /health、/api/v1/tools、/api/v1/schema,无密钥 需求)+ 实例档案精确 stop;此豁免不适用于现役内核与装机应用,"装机侧动作先问用户" 铁律不变。
  4. electron 壳不进验证车道:前端本体验证走"asar 解包(只读安装目录)+ 静态伺服 + playwright 反代"无壳形态;装机前端本体不开第二实例(单实例锁 + 装机铁律)。
  5. 声明面契约单源:工具声明(input_schema/output_schema/render 必填、tool_core fail-closed)见 resource-tool-create;改了 plugin.json 的 http_endpoints / render.card 必跑对应生成闸(见 §五)。
  6. 复用优先:仓内已有脚本一律指针引用(§五标"已有"者),禁止复制进本技能 (防双真值漂移);本技能 scripts/ 只放插件域特有件。

二、staging 五步流转管线(主流程)

① 创作/修改
   脚手架起步(§四),产物落 staging 目录
   (dev 用户空间:<user_root>/plugins_staging/<plugin_id>/;
    装机用户空间:%APPDATA%\agentos\plugins_staging\<plugin_id>\)
② 装载验证(新开内核实例,三隔离 + 三根显式配置)
   插件根走临时 instance.yaml(AGENTOS_INSTANCE_CONFIG,分级单副本 ADR 2026-11-07):
   Tier2 = tier1_root/shared_root 指内置根、tier2_root 指只含被测插件的干净视图;
   Tier1 = tier1_root 指「清单内全部 Tier1 各一 junction、被测件指向 staging」视图,
   tier2_root 空目录(清单内 Tier1 缺席内核启动守卫拒启)。其余隔离:
   AGENTOS_KERNEL_PORT=<空闲端口,硬拒 9100/9101> + AGENTOS_DB_PATH=<临时快照> +
   AGENTOS_CONFIG_ROOT=<含 kernel/plugin_tiers.yaml 的配置根> + AGENTOS_USER_ROOT=
   <scratch 内临时用户根,不碰真实用户空间>;断言链带 Bearer(登录换 token,
   匿名必 401)——verify_plugin.py 已内置全套
   断言链:plugin_check 声明校验 → /health 就绪 → /api/v1/tools 工具面可见
   → /api/v1/system/plugin-load-manifest 运行时副本=staging 那份(防同 id 旧副本假绿)
   → /api/v1/schema ui_schema 声明 → 端点响应/output_schema 校验
③ 通过 → 迁移
   promote_plugin.py:staging → 用户插件根 + 版本严格大于校验(BuiltinFirst,
   持平=同步无效)+ 迁移后热发现确认
④ 装载进应用
   现役应用 watcher 热发现接管用户插件根,双源裁决用户版胜出,零重启
   装机版同步真身 = sync_installed_user_space.py(人工执行、先问用户,不进自动车道)
✗ ②不通过 → 删 staging,按 plugin_doctor.py 诊断报告修复后重来

Read the full file on GitHub · 399 lines

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. 8d ago Changed · +105 lines · +88 tokens per session f2c8adac8314
  2. 13d ago First seen · 294 lines · 119 tokens per session scan A b210cbfc2860

Subscribe to this mod's changes

插件开发 is a skill published in the GitHub repository jianchen08/Agent-os-open (8 stars, last pushed 8d ago), licensed Apache-2.0. It adds 207 tokens to every session and 9,624 once invoked, about $0.0008 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-11-17.

Related

插件开发 compared with skills from other repositories

插件开发 next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
插件开发jianchen08/Agent-os-openSkill88d agoApache-2.0A207Claude Code, Codex
background-taskvstorm-co/full-stack-ai-agent-templateSkill2.0k3d agoMITA62Claude Code
agent-toolvstorm-co/full-stack-ai-agent-templateSkill2.0k3d agoMITA66Claude Code
frontend-featurevstorm-co/full-stack-ai-agent-templateSkill2.0k3d agoMITA64Claude Code
rag-knowledgevstorm-co/full-stack-ai-agent-templateSkill2.0k3d agoMITA76Claude Code
alembic-migrationvstorm-co/full-stack-ai-agent-templateSkill2.0k3d agoMITA56Claude Code
channel-botvstorm-co/full-stack-ai-agent-templateSkill2.0k3d agoMITA53Claude Code