跳到正文
Skillpedia
智能体7.8k · #13081

skill-template-generator

它能做什么

这个技能展示如何编写带有必需头部信息和清晰正文的 SKILL.md 文件。适合想把可重复的方法打包成可复用技能的人。

适用场景

  • ✓当你有一套工作方法,希望其他智能体也能复用时。
  • ✓当你有非正式的笔记或示例,希望把它们整理成正式的技能文件时。
  • ✓当你需要技能遵循所需的头部格式,以便智能体能找到它时。

技能链接

https://github.com/HKUDS/AgentPilot/blob/main/openspace/legacy/v1/showcase/skills/skill-template-generator/SKILL.md

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“请帮我把这些关于部署步骤的笔记整理成其他智能体能使用的 SKILL.md 文件。”

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

工作原理

这个技能在头部设置一个简短的名称和描述,然后在正文中按照智能体容易执行的清晰顺序编写说明。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Skill Template Generator

Given a structured pattern description (from codebase-pattern-analyzer or manual analysis), generate a valid SKILL.md file that OpenSpace can register, select for tasks, and evolve over time.

When to Use

  • After extracting a pattern from a reference codebase, you need to package it as a reusable skill
  • You want to create a new skill that teaches an agent how to perform a specific kind of task
  • You are converting informal documentation or code examples into the SKILL.md format

SKILL.md Format

Every skill is a directory containing at minimum a SKILL.md file:

my-skill-name/
├── SKILL.md            # Required — the skill definition
├── scripts/            # Optional — helper scripts
├── references/         # Optional — reference data files
└── assets/             # Optional — images, templates

Frontmatter (Required)

The file MUST start with YAML frontmatter containing exactly two fields:

---
name: my-skill-name
description: One-sentence description of what this skill teaches. Must be specific enough for LLM skill selection to match it to relevant tasks.
---

Rules:

  • name must match the directory name (kebab-case, lowercase)
  • description should be 15-40 words, include key terms an LLM would search for
  • No other frontmatter fields — everything else goes in the markdown body

Body Structure

The markdown body follows this template:

# [Skill Title]

[1-2 sentence summary of what this skill enables]

## When to Use

- [Trigger condition 1]
- [Trigger condition 2]
- [Trigger condition 3]

## [Core Content Sections]

[Step-by-step instructions, code templates, API references, etc.]

## Key Patterns

1. [Convention or best practice 1]
2. [Convention or best practice 2]
...

Step 1: Determine Skill Category

Match the pattern to one of three OpenSpace categories:

Category Use When Example
tool_guide The skill teaches how to use a specific tool or technique "How to analyze a codebase", "How to use Finnhub API"
workflow The skill prescribes an end-to-end procedure with ordered steps "Create a panel component", "Set up API proxy endpoint"
reference The skill provides knowledge that informs decisions "WorldMonitor architecture index", "News API comparison"

The category affects how OpenSpace judges the skill during execution analysis:

  • workflow: Was the agent able to follow the prescribed steps?
  • tool_guide: Did the agent use the described tool/approach?
  • reference: Did the knowledge influence agent decisions?

Step 2: Write the Description

The description field is the most critical line — it determines whether OpenSpace selects this skill for a given task.

Good descriptions (specific, searchable):

  • "Create a dashboard panel component using vanilla TypeScript DOM API, following the worldmonitor Panel architecture."
  • "Integrate with Finnhub Stock API for real-time and historical stock market data."
  • "CSS grid layout system for a responsive panel dashboard with dark theme."

Bad descriptions (vague, generic):

  • "A useful skill for building things."
  • "TypeScript patterns."
  • "How to make a panel."

Formula: [Action verb] + [specific subject] + [key technology/approach] + [context/project reference]

Step 3: Write Actionable Instructions

The body must be concrete enough that an AI agent can follow it without guessing.

For Workflow Skills

Include:

  1. File paths — exact paths where files should be created (src/components/MyPanel.ts)
  2. Code templates — complete, runnable code blocks (not pseudocode)
  3. Import statements — every import the code needs
  4. Interface definitions — typed data shapes
  5. Integration points — how this connects to other parts of the project

Use {baseDir} for paths relative to the skill directory:

Read the reference file at {baseDir}/references/example.json

For Tool Guide Skills

Include:

  1. API endpoints — full URLs with parameter documentation
  2. Auth mechanism — how to authenticate (query param, header, etc.)
  3. Response shapes — JSON examples with field descriptions
  4. Rate limits — free tier limitations
  5. Error handling — common errors and how to handle them

For Reference Skills

Include:

  1. Structured index — tables, lists, or maps of the reference material
  2. Key file paths — where to find specific things in t
常见问题

头部必须包含什么?

需要一个与文件夹名相符的名称,以及大约 15 到 40 个词的简短描述。

我可以在头部添加其他字段吗?

这种格式只要求名称和描述。其他细节写在文件的正文中。

这个技能需要额外的文件吗?

不需要。单独一个 SKILL.md 文件就够了,不过你也可以添加可选的辅助文件夹。

详情

作者的原始描述

Generate properly-formatted SKILL.md files from extracted architectural patterns. Turns raw pattern descriptions into reusable skills that OpenSpace can discover, select, and evolve.

repo: HKUDS/AgentPilot

热度

GitHub 星标
7.8k
排名
#13081
许可证
MIT
更新时间
2026/11/1

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能