跳到正文
Skillpedia
智能体7.6k · #13150

create-skill

它能做什么

这项技能说明何时以及如何为 Agent-Native 应用创建新技能。它涵盖应先回答的问题,以及何时把笔记放在别处更好。适合希望智能体一次又一次遵循同一模式的构建者。

适用场景

  • ✓当有一种模式,智能体每次执行某项任务时都应遵循的时候。
  • ✓当一个多步骤工作流需要清晰的分步指导的时候。
  • ✓当你希望根据标准布局创建模板或搭建文件的时候。

技能链接

https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/create-skill/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/create-skill/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“你能创建一项技能,告诉智能体每次都以相同的方式添加新的报告页面吗?”

每周 5 个新技能,1 分钟读完。

工作原理

智能体首先通过简短的访谈,了解技能的用途、触发条件和类型。然后它编写一个简短的技能文件,只有在需要时才添加辅助文件。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Create a Skill

When to Use

Create a new skill when:

  • There's a pattern the agent should follow repeatedly.
  • A multi-step workflow needs reliable, step-by-step guidance.
  • You want to scaffold files from a template.

Don't create a skill when:

  • The guidance already exists in another skill — extend it instead.
  • You're documenting something the agent already knows (e.g., how to write TypeScript).
  • It's a one-off — put it in AGENTS.md (for everyone) or memory/MEMORY.md (personal, per-user). See capture-learnings.

Interview

Before writing the skill, answer these:

  1. What should this skill enable? — The core purpose in one sentence.
  2. Which of the four areas does it serve? — UI, actions, skills/instructions, or application state (see the adding-a-feature skill). Most skills are about how to touch one or more of these correctly.
  3. When should it trigger? — Describe the situations in natural language.
  4. Does it involve context awareness? — Does the agent need to know what the user is looking at? If so, reference the navigation application-state key and the view-screen action pattern. See the context-awareness skill.
  5. What type of skill? — Pattern, Workflow, or Generator (see below).
  6. Does it need supporting files? — References (read-only context) or none. Keep it minimal; push depth into references/.

Skill Types and Templates

Pattern (architectural rule)

For documenting how things should be done:

---
name: my-pattern
description: >-
  [Under 40 words. What it covers AND when it should trigger.]
---

# [Pattern Name]

## Rule

[One sentence: what must be true]

## Why

[Why this rule exists]

## How

[How to follow it, with code examples]

## Don't

[Common violations]

## Related Skills

[Which skills compose with this one]

Workflow (step-by-step)

For multi-step implementation tasks:

---
name: my-workflow
description: >-
  [Under 40 words. What it covers AND when it should trigger.]
---

# [Workflow Name]

## Prerequisites

[What must be in place first]

## Steps

[Numbered steps with code examples]

## Verification

[How to confirm it worked]

## Troubleshooting

[Common issues and fixes]

## Related Skills

Generator (scaffolding)

For creating files from templates:

---
name: my-generator
description: >-
  [Under 40 words. What it covers AND when it should trigger.]
---

# [Generator Name]

## Usage

[How to invoke — what args/inputs are needed]

## What Gets Created

[List of files and their purpose]

## Template

[The template content with placeholders]

## After Generation

[What to do next — wire up sync, add routes, register the action, etc.]

## Related Skills

Naming Conventions

  • Hyphen-case only: [a-z0-9-], max 64 characters.
  • Pattern skills: descriptive names (storing-data, delegate-to-agent).
  • Workflow/generator skills: verb-noun (create-skill, capture-learnings).
  • The directory name must match the name in frontmatter.

Frontmatter Fields

Field Required Value
name yes Hyphen-case, matches the directory name
description yes What the skill covers AND when it triggers
scope no both (default) | runtime | dev

For how to word a description and which scope a skill should get, follow writing-agent-instructions — it owns those rules.

Tips

  • Keep SKILL.md lean (under ~500 lines) — move detailed content to references/ files.
  • Use standard markdown headings — no XML tags or custom formats.

Anti-Patterns

  • Inline LLM calls — skills must not call LLMs directly. All AI work goes through the agent chat (see delegate-to-agent).
  • Introducing databases — data lives in SQL via Drizzle (see storing-data).
  • Ignoring sync — if a skill creates data, mention wiring useDbSync / useActionQuery so the UI updates (see real-time-sync).
  • Pure documentation — skills should guide action, not just explain concepts.

File Structure

.agents/skills/my-skill/
├── SKILL.md              # Main skill (required)
└── references/           # Optional supporting context
    └── detailed-guide.md

Related Skills

  • adding-a-feature — The four-area model every skill ultima
常见问题

什么时候不应该创建技能?

技能说明,如果该指导已存在于另一项技能中,或只是一次性的笔记,就不应创建技能。

一次性笔记应放在哪里?

应放在应用的智能体指南文件中,或个人记忆中,而不是放在技能里。

技能应该写得很长吗?

技能建议保持精简,将更深入的内容放在参考文件中。

详情

作者的原始描述

How to create new skills for an agent-native app. Use when adding a new skill, documenting a pattern the agent should follow, or creating reusable guidance for the agent.

repo: BuilderIO/agent-native

热度

GitHub 星标
7.6k
排名
#13150
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能