Community寫作與編輯github.com

BuilderIO/技能新增

用於 BuilderIO/skills 儲存庫中新增、更新、發布、文件化、驗證或配置公開技能的作業。涵蓋儲存庫本地技能檔案、根目錄目錄文件、外掛中繼資料、@agent-native/skills 動態安裝路徑、選用的 managed AGENTS/CLAUDE 指令區塊,以及已生成/同步的 Plan 技能陷阱。

技能新增 是什麼?

此技能旨在協助開發者在 BuilderIO/skills 儲存庫中管理公開技能。它涵蓋了從建立 SKILL.md 到驗證安裝路徑的完整生命週期,並區分不同的技能類型:純文字公開技能、指令型技能、應用支援/MCP 技能以及 Plan 技能。每種技能類型都有特定的處理方式和框架整合要求。純文字公開技能只需在 skills/<技能名稱>/ 資料夾下建立 SKILL.md,即可透過 @agent-native/skills 動態發現並安裝,無需修改框架註冊表。指令型技能則需額外更新框架中的 instructionContentForSkill 函式,以支援使用 --update-instructions 參數時自動寫入 AGENTS.md/CLAUDE.md。應用支援/MCP 技能需要深入了解框架內部的 CLI 和內建應用模組。Plan 技能(visual-plan 和 visual-recap)在儲存庫和框架之間有生成/同步的副本,必須透過框架的同步路徑修改,而非手動編輯。此技能提供完整的驗證指令,包括 quick_validate.py 區域測試和 npm run check 整合測試,並要求回報最終狀態。

相容平台✓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/<技能名稱>/ 中;僅儲存庫專用指引置於 .agents/skills/ 下。

首先決定技能類型

  • 純文字公開技能: 在 skills/<名稱>/ 下的一般資料夾,包含 SKILL.md。這是常見情況。@agent-native/skills 會透過 BuilderIO/skills@main 動態發現這些技能,因此無需編輯框架註冊表即可 使 npx @agent-native/skills@latest add --skill <名稱> 正常運作。
  • 指令型技能: 一種純文字技能,可選擇在使用者傳遞 --update-instructions 時寫入持續生效的受管理 AGENTS.md / CLAUDE.md 行。 這需要一項額外的框架變更;請參閱下方的「受管理指令區塊」。
  • 應用支援 / MCP 技能: 一種註冊託管/本地 MCP 伺服器 或使用框架自有安裝行為的技能。這些不是純文字公開技能; 請檢查 ../agent-native/framework/packages/core/src/cli/skills.ts 和 ../agent-native/framework/packages/skills/src/built-in-apps.ts。
  • Plan 技能: visual-plan 和 visual-recap 在此儲存庫與 ../agent-native/framework 之間有生成/同步的副本。請勿將其視為 獨立的散文資料夾。

純文字公開技能檢查清單

  1. 建立或更新 skills/<技能名稱>/SKILL.md。

  2. 當技能應出現在公開目錄中時,新增 skills/<技能名稱>/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/<技能名稱>
    
  6. 在聲明 CLI 路徑有效之前,先在本機測試安裝發現:

    node ../agent-native/framework/packages/skills/dist/cli.js add --copy . --skill <技能名稱> --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/<名稱>/ 下新增資料夾就足以讓以下指令運作:

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

除非技能是應用支援或需要自訂安裝行為,否則無需變更 @agent-native/core 內建註冊表。

受管理指令區塊

如果技能應透過 --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 描述符同步。

Plan 技能同步陷阱

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

  • 框架包含規範/生成副本和 Plan 市場套件。
  • 此儲存庫的 npm run check 會比較那些副本,並且可能因與新純文字技能 無關的漂移而失敗。
  • 當有意變更 Plan 技能時,請使用框架同步路徑,而不是手動編輯生成的副本。 在框架中搜尋 sync-plan-marketplace、sync-workspace-skills 和 skills.sync.spec.ts。

最終回報

完成技能變更時,請告知使用者:

  • 哪些技能檔案已變更。
  • @agent-native/skills 動態安裝發現是否足夠。
  • 是否已新增框架受管理指令變更,或有意保留為後續追蹤事項。
  • 哪些驗證指令通過或失敗,包括不相關的 Plan 同步失敗。

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.

相關技能