AI 智能体技能创建
skill-creator
按照 Agent Skills 规范创建新的 AI 智能体技能。触发条件:当用户要求创建新技能、添加智能体指令,或为 AI 记录模式时。
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-11
- Stars
- ★ 3
- Forks
- 0
01 前言 Front Matter
- name
- skill-creator
- license
- Apache-2.0
- metadata
- { "scope": [ "root" ], "author": "prowler-cloud", "version": "1.0", "auto_invoke": "Creating new skills" }
- description
- Creates new AI agent skills following the Agent Skills spec. Trigger: When user asks to create a new skill, add agent instructions, or document patterns for AI.
- allowed-tools
- Read, Edit, Write, Glob, Grep, Bash, WebFetch, WebSearch, Task
02 资源文件 2
- 资产文件assets/SKILL-TEMPLATE.md1.1 KB
- 资产文件assets/SYSTEM-OVERVIEW-TEMPLATE.md1.8 KB
03 SKILL.md 正文
When to Create a Skill
Create a skill when:
- A pattern is used repeatedly and AI needs guidance
- Project-specific conventions differ from generic best practices
- Complex workflows need step-by-step instructions
- Decision trees help AI choose the right approach
Don't create a skill when:
- Documentation already exists (create a reference instead)
- Pattern is trivial or self-explanatory
- It's a one-off task
Skill Structure
skills/{skill-name}/
├── SKILL.md # Required - main skill file
├── assets/ # Optional - templates, schemas, examples
│ ├── template.py
│ └── schema.json
└── references/ # Optional - links to local docs
└── docs.md # Points to docs/developer-guide/*.mdx
SKILL.md Template
---
name: {skill-name}
description: >
{One-line description of what this skill does}.
Trigger: {When the AI should load this skill}.
license: Apache-2.0
metadata:
author: prowler-cloud
version: "1.0"
---
## When to Use
{Bullet points of when to use this skill}
## Critical Patterns
{The most important rules - what AI MUST know}
## Code Examples
{Minimal, focused examples}
## Commands
```bash
{Common commands}
Resources
- Templates: See assets/ for {description}
- Documentation: See references/ for local docs
---
## Naming Conventions
| Type | Pattern | Examples |
|------|---------|----------|
| Generic skill | `{technology}` | `pytest`, `playwright`, `typescript` |
| Prowler-specific | `prowler-{component}` | `prowler-api`, `prowler-ui`, `prowler-sdk-check` |
| Testing skill | `prowler-test-{component}` | `prowler-test-sdk`, `prowler-test-api` |
| Workflow skill | `{action}-{target}` | `skill-creator`, `jira-task` |
---
## Decision: assets/ vs references/
Need code templates? → assets/ Need JSON schemas? → assets/ Need example configs? → assets/ Link to existing docs? → references/ Link to external guides? → references/ (with local path)
**Key Rule**: `references/` should point to LOCAL files (`docs/developer-guide/*.mdx`), not web URLs.
---
## Decision: Prowler-Specific vs Generic
Patterns apply to ANY project? → Generic skill (e.g., pytest, typescript) Patterns are Prowler-specific? → prowler-{name} skill Generic skill needs Prowler info? → Add references/ pointing to Prowler docs
---
## Frontmatter Fields
| Field | Required | Description |
|-------|----------|-------------|
| `name` | Yes | Skill identifier (lowercase, hyphens) |
| `description` | Yes | What + Trigger in one block |
| `license` | Yes | Always `Apache-2.0` for Prowler |
| `metadata.author` | Yes | `prowler-cloud` |
| `metadata.version` | Yes | Semantic version as string |
---
## Content Guidelines
### DO
- Start with the most critical patterns
- Use tables for decision trees
- Keep code examples minimal and focused
- Include Commands section with copy-paste commands
### DON'T
- Add Keywords section (agent searches frontmatter, not body)
- Duplicate content from existing docs (reference instead)
- Include lengthy explanations (link to docs)
- Add troubleshooting sections (keep focused)
- Use web URLs in references (use local paths)
---
## Registering the Skill
After creating the skill, add it to `AGENTS.md`:
```markdown
| `{skill-name}` | {Description} | [SKILL.md](skills/{skill-name}/SKILL.md) |
Checklist Before Creating
- [ ] Skill doesn't already exist (check
skills/) - [ ] Pattern is reusable (not one-off)
- [ ] Name follows conventions
- [ ] Frontmatter is complete (description includes trigger keywords)
- [ ] Critical patterns are clear
- [ ] Code examples are minimal
- [ ] Commands section exists
- [ ] Added to AGENTS.md
Resources
04 同仓库更多 Skills
AGENTS.md 技能元数据同步
skill-sync
将技能元数据同步到 AGENTS.md 的自动调用(Auto-invoke)部分。触发条件:将技能元数据同步到 AGENTS.md 时。
Git 规范提交信息生成
skill-commit
按照 conventional-commits 格式创建专业的 git 提交。触发条件:创建提交时、完成代码更改后、用户要求提交时。
Monorepo 项目结构与组件概览
project-info
通用 monorepo 结构与组件概览。触发条件:当 AI 需要项目上下文或组件位置时。
Next.js 前端架构与规范
frontend-context
Next.js 15 应用的前端架构、模式与约定。触发条件:处理前端代码、组件、页面或 API 集成时。
Express 控制器 Mock 单元测试
express-mocks-testing
使用 node-mocks-http 和 @prisma/client 模拟对 Express 5 控制器进行单元测试的模式。触发条件:编写后端控制器的单元测试、测试 Express 路由,或避免实例化 Supertest/Server 时。
后端服务开发
backend-service
暂无简介