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.
git clone --depth 1 https://github.com/jianchen08/Agent-os-opennpx agentmods add skills/jianchen08/agent-os-open/plugin-devWrote 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.
[](https://agentmods.dev/skills/jianchen08/agent-os-open/plugin-dev)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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.
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 解析)。
一、铁律(先读再动手)
- 新建插件必须在新建目录空间内进行(隔离任务工作空间;终端用户在用户空间 staging)—— 禁止在主仓 dev 目录直接长插件(沿用 skill-dev-toolkit 铁律)。
- staging 是唯一创作落点:终端用户/装机场景插件先落 staging 目录(用户空间内固定 槽位,自持 .venv——不放系统临时目录,防清理策略扫掉 venv)。
- 现役内核与装机应用永不触碰:验证一律走 scratch 验证实例(三隔离)。 验证实例毒化豁免边界(ADR D3):scratch 验证实例允许经脚本拉起——端口隔离 (硬拒 9100/9101)+ 不调 LLM(断言面 /health、/api/v1/tools、/api/v1/schema,无密钥 需求)+ 实例档案精确 stop;此豁免不适用于现役内核与装机应用,"装机侧动作先问用户" 铁律不变。
- electron 壳不进验证车道:前端本体验证走"asar 解包(只读安装目录)+ 静态伺服 + playwright 反代"无壳形态;装机前端本体不开第二实例(单实例锁 + 装机铁律)。
- 声明面契约单源:工具声明(input_schema/output_schema/render 必填、tool_core fail-closed)见 resource-tool-create;改了 plugin.json 的 http_endpoints / render.card 必跑对应生成闸(见 §五)。
- 复用优先:仓内已有脚本一律指针引用(§五标"已有"者),禁止复制进本技能 (防双真值漂移);本技能 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 诊断报告修复后重来
What ships with it
10 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.
- scripts/debug_tool.py 7.2 KB runs code
- scripts/frontend_probe.cjs 14 KB runs code
- scripts/plugin_doctor.py 8.7 KB runs code
- scripts/promote_plugin.py 5.0 KB runs code
- scripts/scaffold_functional.py 18 KB runs code
- scripts/verify_host.bat 876 B runs code
- scripts/verify_host.py 11 KB runs code
- scripts/verify_host.sh 2.5 KB runs code
- scripts/verify_plugin.py 29 KB runs code
- scripts/wsl_scratch_kernel.sh 3.8 KB runs code
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.
- 8d ago Changed · +105 lines · +88 tokens per session f2c8adac8314
- 13d ago First seen · 294 lines · 119 tokens per session scan A b210cbfc2860
插件开发 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.
插件开发 compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| 插件开发jianchen08/Agent-os-open | Skill | 8 | 8d ago | Apache-2.0 | A | 207 | Claude Code, Codex |
| background-taskvstorm-co/full-stack-ai-agent-template | Skill | 2.0k | 3d ago | MIT | A | 62 | Claude Code |
| agent-toolvstorm-co/full-stack-ai-agent-template | Skill | 2.0k | 3d ago | MIT | A | 66 | Claude Code |
| frontend-featurevstorm-co/full-stack-ai-agent-template | Skill | 2.0k | 3d ago | MIT | A | 64 | Claude Code |
| rag-knowledgevstorm-co/full-stack-ai-agent-template | Skill | 2.0k | 3d ago | MIT | A | 76 | Claude Code |
| alembic-migrationvstorm-co/full-stack-ai-agent-template | Skill | 2.0k | 3d ago | MIT | A | 56 | Claude Code |
| channel-botvstorm-co/full-stack-ai-agent-template | Skill | 2.0k | 3d ago | MIT | A | 53 | Claude Code |