跨平台技能适配转换
adapt-skill
将为其他 AI 助手(OpenAI Codex、ChatGPT、Claude Code、Cursor)编写的技能适配为规范的 Amplifier SKILL.md。当用户想要适配技能、移植技能、将技能转换为 Amplifier 格式、翻译技能,或拥有来自其他平台、希望引入 Amplifier 的 SKILL.md 时使用。
- License 许可
- MIT
- 最近更新
- 2026-11-12
- Stars
- ★ 12
- Forks
- 11
01 前言 Front Matter
- name
- adapt-skill
- model_role
- general
- description
- Adapt a skill written for another AI assistant (OpenAI Codex, ChatGPT, Claude Code, Cursor) into a proper Amplifier SKILL.md. Use when the user wants to adapt a skill, port a skill, convert a skill to amplifier, translate a skill, or has a SKILL.md from another platform they want to bring into Amplifier.
- user-invocable
- true
- disable-model-invocation
- true
02 资源文件 4
- 参考文档agents/openai.yaml290 B
- 参考文档references/openai-portability.md5.6 KB
- 脚本scripts/inspect_source.py5.6 KB
- 脚本scripts/preflight.mjs5.5 KB
03 SKILL.md 正文
Adapt Skill
Adapt a skill from another AI coding assistant into a properly structured
Amplifier SKILL.md. The output must conform to the Agent Skills specification
with Amplifier extensions and be immediately usable via /skill-name.
Inputs
$ARGUMENTS: (Optional) Path to the source skill file or description of what to adapt. Also accepts a skill directory, plugin directory, or plugin cache for a batch migration. The requested destination and host are part of the input.
Honor decisions already authorized in the conversation. For an explicit batch port, report the proposed mapping and proceed with routine reversible work; ask only about unresolved scope, rights, or consequential capability changes. Do not require repeated approval of every file. Keep source packages unchanged.
Steps
1. Consult Skills-Assist
Before writing any skill content, load the authoritative skills reference:
load_skill("skills-assist")
Ask skills-assist about:
- Current frontmatter field reference and best practices
- Fork vs inline decision criteria
- Step annotation conventions
- Testing patterns for the type of skill being created
skills-assist is the source of truth for Amplifier skill conventions. The examples in this skill are illustrative samples — consult skills-assist for the complete and up-to-date specification.
Success criteria: You have loaded and consulted skills-assist for the latest skill authoring conventions.
2. Explore the Target Bundle
If the user wants to add the skill to a bundle (e.g., amplifier-bundle-skills),
delegate to foundation:explorer to understand the bundle's conventions,
existing skills, and structure. If saving to a personal or project directory,
skip this step.
Success criteria: You understand the target bundle's skill conventions and can produce a skill that fits in.
3. Read and Analyze the Source Skill
Read the source SKILL.md and identify:
- The skill's purpose and core workflow
- Platform-specific tool names (e.g.,
Readvsread_file,AskUserQuestionvs natural conversation,Bash(mkdir:*)vsbash) - Platform-specific paths (e.g.,
.claude/skills/vs.amplifier/skills/) - Platform-specific frontmatter fields that need mapping to Amplifier equivalents or removal (consult skills-assist for the current Amplifier field reference)
- Conventions that don't exist in Amplifier and need alternative approaches
- The interview or interaction model (does it rely on tools Amplifier doesn't have?)
Inventory the whole package, including scripts, references, assets, templates,
licenses, agents/openai.yaml, plugin manifests, and declared MCP dependencies.
For OpenAI Codex/ChatGPT packages, read
the portability reference. Use the read-only
inventory helper before copying anything:
python "${SKILL_DIR}/scripts/inspect_source.py" /path/to/source > inventory.json
The inventory reports file hashes, versioned source paths, duplicate skill names, symlinks, license notices, and known host-bound dependencies. It does not execute source scripts or grant permission to copy them. Review reported collisions and select versions explicitly; do not combine multiple cached versions by accident. Account for every discovered skill, including ones not advertised in this session.
Present a summary of what needs to change — grouped into natural clusters, not a wall of text. Resolve any decisions not already covered by the user's request.
Success criteria: You have a clear mapping of source conventions to Amplifier equivalents, package provenance, and an authorized approach.
4. Research Source Platform Conventions (if needed)
If the source skill uses unfamiliar fields or conventions, research the source platform's official documentation using web search and web_fetch. Compare the source platform's spec with Amplifier's to identify:
- Fields that map directly (e.g.,
name,description,allowed-tools) - Fields that map with translation (e.g., CC's
model-> Amplifier'smodel_role) - Fields with no Amplifier equivalent (document the gap, decide whether to drop or approximate)
Skip this step if the source conventions are already well understood.
Success criteria: You understand the source platform's skill format well enough to make accurate adaptation decisions.
5. Design the Adapted Skill
Walk through these decisions with the user, grouped into natural clusters (not one question per turn, not everything at once):
Identity and routing:
- Suggested name and description (with trigger phrases for the visibility hook — the description is the ONLY signal the model sees before deciding to load)
model_rolebased on the skill's primary cognitive task (consult skills-assist for the full set of available roles)
Execution model:
- Inline vs forked (
context: fork). Critical: forked skills CANNOT do multi-turn conversation with the user — the sub-agent runs once and returns. If the skill needs to interview the user, it must be inline. - Model-invocable vs user-only (
disable-model-invocation) allowed-tools— minimum set needed, translated to Amplifier tool names only in body instructions. For fork restrictions use Amplifier module IDs (for exampletool-filesystem tool-bash), not callable names; omit the field for inline skills. Consult skills-assist and the current loader implementation.
Save location:
- This project (
.amplifier/skills/<name>/SKILL.md) - Personal (
~/.amplifier/skills/<name>/SKILL.md) - A skills bundle (
amplifier-bundle-skills/skills/<name>/SKILL.md)
Step structure:
- Confirm the adapted steps make sense for Amplifier's tool and agent ecosystem
- Identify any steps that need fundamental reworking (not just tool name swaps)
For each required capability, choose an actual mounted tool, a portable library, an optional host adapter, or an explicit unavailable path. Tool-name replacement does not implement a connector, renderer, dependency loader, or UI bridge. Keep missing optional capabilities out of the successful local-file path.
Success criteria: Design decisions are resolved within the authorized scope; required dependencies and unsupported paths are recorded.
6. Write the SKILL.md
Write the adapted SKILL.md following Amplifier conventions. Consult skills-assist for the full set of available frontmatter fields and current conventions.
Key principles (illustrative — consult skills-assist for complete reference):
- Frontmatter uses Amplifier fields (
model_role,user-invocable,context,disable-model-invocation,allowed-tools, etc.) descriptioncarries all routing weight (trigger phrases, "Use when...")- Tool references use Amplifier names (
read_file,write_file,edit_file,bash,glob,grep,delegate, etc.) - Paths reference Amplifier locations (
.amplifier/skills/,~/.amplifier/skills/) - Agent delegation uses
delegatetool, not platform-specific mechanisms - Success criteria on every step
Write the complete skill package at the destination, preserving relative resource
links and applicable notices. Use ${SKILL_DIR} or the returned skill_directory
for resources, never a source-machine cache path. Bundle skill sources should use
the bundle's supported namespace (for example @work:skills), not the caller's
working directory. Record source versions/hashes, adaptations, and omissions.
For an authorized batch, provide a reviewable diff and migration manifest rather
than pasting every skill in chat. Do not claim proprietary runtimes or retained
template assets are included when only workflow instructions were ported.
Validate the portable fields against the current Agent Skills specification;
validate Amplifier extensions separately with the real loader. The reference
validator rejects extension keys, so a standard-only metadata projection is a
partial check, never proof the original file passes an unmodified validator.
Use compatibility for actual runtime requirements and string-valued metadata
for provenance. Keep the destination's branch/source policy; a tested revision
is evidence, not automatically a source pin.
Success criteria: The adapted package is reviewable, resources resolve, and every source skill has a documented disposition.
7. Test the Skill
Before committing, verify the skill works:
-
Save in the authorized destination. Test its configured discovery source from an unrelated working directory as well as the project directory.
-
In the same session, call
load_skill("<name>")and verify:- The skill loads without errors
- The description is clear enough for routing
- The body instructions are actionable
-
Spawn a test session via
delegate(agent="self", context_depth="none")that exercises the skill:- The test agent should load the skill and follow its instructions against a synthesized test input (e.g., a small sample source SKILL.md from the original platform)
- Verify the output contains valid Amplifier frontmatter, correct tool names, and proper structure
-
If issues are found, fix the SKILL.md and re-test.
-
For a batch, load every skill with the real tool-skills implementation and verify companion links and retained-asset hashes. Exercise representative document, spreadsheet, presentation, and visualization workflows as applicable. Check optional connector absence and duplicate names. Use an isolated host for host acceptance; do not change a user's live configuration or replay history.
-
Exercise every migrated skill on a bounded synthetic task when execution is available. Record the loaded skill, task, mounted capabilities, output checks, duration, and failure or limitation. Independently inspect generated files; the agent's completion message is not a validator. Separate optional-adapter absence from successful execution. Follow skills-assist's testing guide for trigger tests and baseline comparisons when claiming routing or quality gains.
If delegation or a live host is unavailable, run deterministic package/loading checks and report behavioral/browser acceptance as unverified. A parsed Markdown file is not proof that its scripts, credentials, native app, or UI work.
Success criteria: The skill loads, the test agent follows its instructions, and the output conforms to Amplifier conventions.
8. Save, Commit, and Push
After testing passes:
-
Move the skill from
.amplifier/skills/<name>/to the final destination (bundle directory, personal skills, or leave in project skills). -
If contributing to a bundle, commit and push via
foundation:git-ops. -
Tell the user:
- Where the skill was saved
- How to invoke it:
/skill-name [arguments] - That they can edit the SKILL.md directly to refine it
Success criteria: The file is at its final destination (and pushed if targeting a bundle), and the user knows how to use it.
04 同仓库更多 Skills
工作成果验证规范
verification-discipline
当验证已完成的工作是否真正可用时使用。在 /verify 模式、实现后评审,或声称任务完成之前自动浮现。讲解测试结果与实现的区别、单元/集成/冒烟测试的梯度,以及“完成”的真正含义。
用户需求代言审查
user-advocate
用户需求审查者,为“不在场的人”——即真正要使用所构建成果的人——发声。它以缺席用户那种耐心而急切的声音,追查“我们能做这个”与“他们真正想要这个”之间的差距。可在任何节点使用——头脑风暴、设计、规划、实现、调试、评审——当某个功能因为“能做”而非“被需要”才被构建、缺乏恢复路径,或没人能说清它服务于谁时:“他们真的想要这个吗?他们能接受它吗?”
对抗性代码审查
tester-breaker
一种对抗性破坏者,通过设法让代码失败而非确认其可用来审查代码。它像一位兴高采烈的对手,搜寻那些非正常路径——格式错误的输入、空字符串、颠倒的区间、竞态条件——并假设一切都是坏的,直到具体的破坏尝试落空为止。可在任意检查点使用——头脑风暴、设计、规划、实现、调试、评审——当人们只庆祝正常路径而边缘情况无人检视,用“看起来没问题”代替“我试着破坏它但没成功”,或没人指出究竟是什么输入会让它崩溃时:“它会怎样失败,边界在哪里?”
技能开发咨询顾问
skills-assist
面向所有技能相关问题的权威顾问。在创建或修改技能、理解 Agent Skills 规范、排查技能加载或调用问题、利用增强格式特性(context fork、model_role、user-invocable)、编写跨 harness(运行环境)可移植技能、确保 Claude Code Skills 2.0 兼容性,或在技能与智能体(skills vs agents)之间做出选择时使用。
会话流程转技能文件
skillify
将当前会话中的可重复流程提取为可复用的 Amplifier SKILL.md 技能文件。当用户想要创建技能、将工作流保存为技能、把某个流程转化为可复用技能,或提到“skillify”“create skill”“make a skill”“save as skill”“capture workflow”“turn this into a skill”“new skill”,或是想要将刚执行过的可重复流程自动化时使用。
Amplifier会话故障诊断
session-debug
诊断当前 Amplifier 会话中的问题——工具配置错误、操作失败、意外行为。当某事运行不正常时使用。