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。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 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:
namemust match the directory name (kebab-case, lowercase)descriptionshould 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:
- File paths — exact paths where files should be created (
src/components/MyPanel.ts) - Code templates — complete, runnable code blocks (not pseudocode)
- Import statements — every import the code needs
- Interface definitions — typed data shapes
- 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:
- API endpoints — full URLs with parameter documentation
- Auth mechanism — how to authenticate (query param, header, etc.)
- Response shapes — JSON examples with field descriptions
- Rate limits — free tier limitations
- Error handling — common errors and how to handle them
For Reference Skills
Include:
- Structured index — tables, lists, or maps of the reference material
- 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
评论
- …
同一仓库的更多技能
agentpilot
7.8k帮你的智能体准备任务并运行 AgentPilot 循环,逐步改进项目:循环会提出修改、测试修改并为其打分。
openspace
7.8k帮你的智能体设置 OpenSpace,这是一个用于存储和获取智能体技能的工具,并通过 MCP 将其连接到你的 AI 应用。
rsi-arena
7.8k帮你的智能体设置并运行标准 AI 基准测试,例如 AIME 和 Terminal-Bench,用来比较不同的改进方法。
experiment-guide
7.8k帮你的智能体规划小型实验、阅读实验结果并记录发现,同时研究如何改进一个程序。