Agent 插件迁移与适配
migrate-agent-plugin
将现有的 Claude、Copilot、Codex、Cursor、Kiro、VS Code 或其他特定客户端的智能体插件迁移到可移植的 Agent Plugins v1 结构,同时保留特定平台的 hooks、agents、commands、LSP、UI 和 marketplace 行为。在审计、转换或现代化改造智能体插件时使用。
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 1.4k
- Forks
- 781
01 前言 Front Matter
- name
- migrate-agent-plugin
- license
- MIT
- metadata
- { "version": "1.0.0" }
- description
- Migrate an existing Claude, Copilot, Codex, Cursor, Kiro, VS Code, or other client-specific agent plugin to the portable Agent Plugins v1 structure while preserving platform-specific hooks, agents, commands, LSP, UI, and marketplace behavior. Use when auditing, converting, or modernizing an agent plugin.
02 资源文件 4
- 参考文档agents/openai.yaml43 B
- 参考文档references/client-extensions.md3.0 KB
- 参考文档references/migration-guide.md5.2 KB
- 参考文档references/validation-checklist.md2.5 KB
03 SKILL.md 正文
Migrate an Agent Plugin
Convert an existing plugin to the Agent Plugins v1 portable core without prematurely removing behavior required by its current clients.
Source of truth
Use the current Agent Plugins specification as the normative source.
Read these references before editing:
Workflow
-
Inventory the current plugin before moving files.
- Record every manifest, skill, prompt or command, agent, MCP server, hook, LSP server, UI resource, script, secret requirement, and marketplace entry.
- Identify the clients that currently load each artifact and the install paths or discovery rules they require.
- Run existing tests or capture a manual smoke-test baseline.
-
Classify each artifact.
- Portable core: root
plugin.json, Agent Skills inskills/, and MCP servers in rootmcp.json. - Client extension: additional behavior loaded through a reverse-domain namespace owned and documented by a client.
- Compatibility layer: legacy files or a generated client package retained until that client supports the portable or namespaced form.
- Distribution metadata: marketplace catalogs, install policy, signing, and release configuration; these are outside the portable package format.
- Portable core: root
-
Add the portable manifest.
- Create
plugin.jsonat the plugin root. - Set
$schematohttps://agent-plugins.org/schemas/1.0.0/plugin.schema.json. - Include
nameand only supported metadata fields. - Do not put component paths or client fields such as
hooks,agents,skills, ormcpServersat the top level.
- Create
-
Normalize portable components.
- Put each skill at
skills/<skill-name>/SKILL.md; only immediate children ofskills/are discovered. - Make each skill name match its parent directory and the Agent Skills naming rules.
- If MCP is present, convert it to root
mcp.json, declare the matching v1.0.0 schema, and give every server an explicitstdio,streamable-http, orssetype. - Use
${PLUGIN_ROOT}for packaged read-only resources and${PLUGIN_DATA}for persistent writable state where the MCP schema permits expansion.
- Put each skill at
-
Preserve non-core behavior.
- Use a client extension only when the target client publishes a reverse-domain namespace and its semantics.
- If the client still requires a legacy layout, keep or generate a separate compatibility package. Treat the portable files as the source of truth and avoid manually maintaining divergent copies.
- Do not invent a vendor namespace and assume an unrelated client will load it.
-
Validate and test incrementally.
- Validate the portable manifest, every skill, optional MCP configuration, and package path containment.
- Test each supported client independently, including hooks and other compatibility behavior.
- Remove legacy artifacts only after the replacement passes the same behavior checks.
Required migration report
Before finishing, report:
- The discovered source format and target clients.
- A mapping from every original artifact to portable core, extension, compatibility layer, distribution metadata, or removal.
- Files added, moved, generated, retained, and intentionally omitted.
- Validation and client smoke-test results.
- Remaining client-specific risks or manual steps.
Prefer an additive, reversible migration. Never claim that hooks, agents, commands, LSP servers, UI, or marketplace metadata became portable Agent Plugins v1 components.
04 同仓库更多 Skills
verify-sdk
This skill should be used to "verify SDK behavior", "check an SDK change against the feature map", "run the SDK feature map", "maintain the SDK feature map", or "run the daily SDK map pass". It holds the maintained map of what the OpenHands SDK does in-process (agent loop, LLMs, conversations, events, condensers, skills, plugins, MCP, hooks, sub-agents, critic, security, tools, workspaces, settings, observability, ACP), the control-sdk driver its recipes use, and sdk-map (check, owners, baseline, run, report).
固定位置组件发现示例
only
该格式在固定位置发现的唯一组件。
禁止发现技能示例
never
绝不可被发现;清单(manifest)会首先被拒绝。
正常技能加载示例
good
当损坏的同级技能被跳过时正常加载。
损坏技能加载示例
broken
暂无简介
清单容错加载
ok
尽管存在两处非致命的清单违规,仍会加载。