Community写作与编辑github.com

添加技能(BuilderIO/skills 仓库)

用于在 BuilderIO/skills 仓库中添加、更新、发布、文档化、验证或连接公共技能。涵盖仓库本地的技能文件、根目录目录文档、插件元数据、@agent-native/skills 动态安装路径、可选的 managed AGENTS/CLAUDE 指令块以及计划技能的同步特性。

skills 仓库) 是什么?

该技能为在 BuilderIO/skills 仓库中管理公共 AI 代理技能提供标准化流程。它指导开发者区分普通公共技能、指令型技能、应用支撑/MCP 技能以及特殊计划技能(visual-plan 和 visual-recap)。普通公共技能只需在 `skills/<skill-name>/` 下创建 `SKILL.md`,即可通过 `@agent-native/skills` 动态安装发现;指令型技能需要额外更新 framework 以支持 `--update-instructions` 选项写入 `AGENTS.md`/`CLAUDE.md`;应用支撑/MCP 技能则需深入 framework 核心代码进行注册。同时,该技能还强调了验证流程(使用 `quick_validate.py` 和本地安装测试)、通知 `npm run check` 可能因计划技能同步失败而失败的情况,以及最终向用户报告变更内容的要求。该技能适用于所有在 BuilderIO/skills 仓库中进行技能相关操作的开发者。

兼容平台✓Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/BuilderIO/skills/tree/main/.agents/skills/adding-a-skill

Installed? Explore more 写作与编辑 skills: steipete/notion, langchain-ai/langchain, bytedance/podcast-generation · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

添加技能

用于在此仓库中进行公共技能相关的工作。普通的技能更改请保持在 skills/<skill-name>/ 目录下;仅适用于仓库的指南请放在 .agents/skills/ 下。

首先确定技能类型

  • 普通公共技能: 一个普通的文件夹,位于 skills/<name>/ 下,包含 SKILL.md。这是常见情况。@agent-native/skills 从 BuilderIO/skills@main 动态发现这些技能,因此无需编辑框架注册表即可让 npx @agent-native/skills@latest add --skill <name> 工作。
  • 指令型技能: 一个普通技能,可以选择在用户传递 --update-instructions 时写入一个始终有效的 managed AGENTS.md / CLAUDE.md 行。这些需要一次额外的框架更改;请参阅下面的“Managed Instruction Blocks”。
  • 应用支撑 / MCP 技能: 一个注册了托管/本地 MCP 服务器或使用框架自有安装行为的技能。这些不是普通公共技能;请查看 ../agent-native/framework/packages/core/src/cli/skills.ts 和 ../agent-native/framework/packages/skills/src/built-in-apps.ts。
  • 计划技能: visual-plan 和 visual-recap 在仓库和 ../agent-native/framework 之间有生成/同步的副本。不要像处理独立的文本文件夹那样处理它们。

普通公共技能检查清单

  1. 创建或更新 skills/<skill-name>/SKILL.md。

  2. 当技能应出现在公共目录中时,添加 skills/<skill-name>/README.md。此仓库特意使用 README 作为公共技能页面。

  3. 如果集合定位发生变化,更新根目录的 README.md、.codex-plugin/plugin.json、.claude-plugin/plugin.json 和 package.json 中的描述。

  4. 使技能简洁。只将必要的代理指令放在 SKILL.md 中;除非它们直接支持技能,否则避免添加额外的文档。

  5. 使用以下命令进行验证:

    python3 /Users/steve/.codex/skills/.system/skill-creator/scripts/quick_validate.py skills/<skill-name>
    
  6. 在声称 CLI 路径可用之前,先在本地进行冒烟测试安装发现:

    node ../agent-native/framework/packages/skills/dist/cli.js add --copy . --skill <skill-name> --client codex --scope project --dry-run --json
    
  7. 运行 npm run check。如果它因为 visual-plan / visual-recap 的同步问题而失败,且更改与此无关,请专门报告该问题,而不是随意重写这些技能。

@agent-native/skills 安装路径

对于普通公共技能,安装路径是动态的:

  • ../agent-native/framework/packages/skills/src/index.ts 设置 DEFAULT_SKILLS_SOURCE = "BuilderIO/skills"。

  • 它具体化该仓库,通过 resolveSkillsRoot 读取插件清单,并通过 discoverSkills 发现每个 skills/*/SKILL.md。

  • 因此,只需在 skills/<name>/ 下创建一个新文件夹,即可通过以下命令安装:

    npx @agent-native/skills@latest add --skill <name>
    

除非技能是应用支撑或需要自定义安装行为,否则无需更改 @agent-native/core 的内置注册表。

Managed Instruction Blocks

如果技能应通过 --update-instructions 影响 AGENTS.md / CLAUDE.md,请更新框架包装器:

  • 在 ../agent-native/framework/packages/skills/src/index.ts 中的 instructionContentForSkill(skillName) 函数内添加一行简洁的内容。

  • 在 ../agent-native/framework/packages/skills/src/index.spec.ts 中添加或更新测试。

  • 运行:

    pnpm --filter @agent-native/skills test -- src/index.spec.ts --runInBand
    

适用于持久行为规则,例如 quick-recap、efficient-fable、stay-within-limits,以及可能以文档优先的行为,例如 read-the-damn-docs。

应用支撑或 MCP 技能

如果某个技能需要托管工具、身份验证、MCP 注册、本地文件模式或特殊的安装标志,请先查看以下框架文件再进行编辑:

  • ../agent-native/framework/packages/core/src/cli/skills.ts
  • ../agent-native/framework/packages/skills/src/built-in-apps.ts
  • ../agent-native/framework/packages/skills/src/sync-with-core.spec.ts

确保核心和独立的 @agent-native/skills 的 MCP 描述符保持同步。

计划技能同步注意事项

visual-plan 和 visual-recap 是特殊的:

  • 框架包含规范/生成的副本和计划市场包。
  • 此仓库的 npm run check 会比较那些副本,并且可能因为与新的普通技能无关的漂移而失败。
  • 当有意更改计划技能时,请使用框架同步路径,而不是手动编辑生成的副本。在框架中搜索 sync-plan-marketplace、sync-workspace-skills 和 skills.sync.spec.ts。

最终报告

完成技能更改时,告知用户:

  • 哪些技能文件发生了变化。
  • @agent-native/skills 动态安装发现是否足够。
  • 是否添加了框架的 managed-instruction 更改,或者有意将其作为后续任务。
  • 哪些验证命令通过或失败,包括无关的计划技能同步失败。

Individual skills in this repo

This repo contains 10 individual skills — each has its own dedicated page.

BuilderIO/agent-watchdog

Use when asked to watch, babysit, audit, review, compare, or fix another agent's work from a Codex session ID, Claude Code session/transcript, chat/thread link, PR, branch, log, or pasted run summary. Monitor until the other agent is done or blocked, reconstruct what the user asked, inspect what the agent actually changed and verified, report gaps, and optionally make scoped fixes when the user authorizes repair.

BuilderIO/efficient-fable

Use when running Claude Fable on codebase-heavy or token-heavy work and the user wants Fable to orchestrate research, coding, and testing while cheaper subagents do bounded heavy lifting.

BuilderIO/efficient-frontier

Apply the same orchestration as `/efficient-fable` to any high-cost frontier model: delegate research, coding, and testing to cheaper subagents while keeping planning, synthesis, and final review with the expensive model.

BuilderIO/plan-arbiter

Use when asked to compare, cross-review, merge, judge, choose, or arbitrate competing plans from multiple agents such as Codex and Claude Code; when given two or more proposed plans, session IDs, transcripts, plan documents, PR descriptions, or pasted strategies; or when the user wants one recommended execution plan after agents review each other's proposals.

BuilderIO/plow-ahead

Use when the user explicitly wants autonomous progress without routine clarification stops: "plow ahead", "do not stop", "use your best judgment", "keep going until done", "finish while I am away", "do not ask questions unless truly blocked", or similar. Convert ordinary ambiguity into stated assumptions, proceed through implementation and validation, stop only for true blockers, and end with a clear recap of decisions, changes, verification, and residual risk.

BuilderIO/quick-recap

Use when adding or following the red/yellow/green final status block convention for agent responses, especially by installing managed AGENTS.md or CLAUDE.md instructions.

BuilderIO/read-the-damn-docs

Use when implementing, integrating, upgrading, debugging, or answering anything involving third-party APIs, libraries, frameworks, CLIs, cloud services, model/provider SDKs, fast-moving product behavior, user requests for latest/current/official behavior, unfamiliar repo docs/specs, errors that may indicate API drift, or high-stakes auth, security, billing, data, migration, deployment, compliance, or privacy behavior. Forces Codex to web-search for current official docs and read primary docs before assuming from memory.

BuilderIO/stay-within-limits

Use when long-running or parallel agent work must respect 5-hour and weekly usage limits by checking usage between waves, pausing near the cap, and resuming only when the window is clear.

BuilderIO/visual-plan

Turn ordinary text plans into rich interactive visual plans with diagrams, file maps, annotated code, open questions, and UI/prototype review when useful.

BuilderIO/visual-recap

Turn a PR, branch, commit, or git diff into an interactive visual recap with diagrams, file maps, API/schema summaries, annotated diffs, and focused review notes.

相关技能