skill-creator by apollographql/skills
npx skills add https://github.com/apollographql/skills --skill skill-creator本指南帮助您根据 Agent Skills 规范 为 Apollo GraphQL 和 GraphQL 开发创建有效的技能。
技能是一个包含指令的目录,它通过专业知识、工作流程或工具集成来扩展 AI 智能体的能力。当智能体检测到相关任务时,技能会自动激活。
一个技能至少需要一个 SKILL.md 文件:
skill-name/
├── SKILL.md # 必需 - 主要指令
└── references/ # 可选 - 详细文档
├── topic-a.md
└── topic-b.md
---
name: skill-name
description: >
关于此技能功能及使用场景的清晰描述。
包含触发条件:(1) 第一个条件, (2) 第二个条件。
license: MIT
compatibility: 适用于 Claude Code 及类似的 AI 编码助手。
metadata:
author: your-org
version: "1.0.0"
allowed-tools: Read Write Edit Glob Grep
---
| 字段 | 必需 | 描述 |
|---|
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
name | 是 | 仅使用小写字母和连字符。必须与目录名匹配。最多 64 个字符。 |
description | 是 | 技能的功能及使用场景。最多 1024 个字符。 |
license | 否 | 许可证名称(例如,MIT、Apache-2.0)。 |
compatibility | 否 | 环境要求。最多 500 个字符。 |
metadata | 否 | 用于作者、版本等的键值对。 |
allowed-tools | 否 | 预先批准的工具列表,以空格分隔。不要包含 Bash(curl:*)。 |
--)良好示例:apollo-client, graphql-schema, rover 不良示例:Apollo-Client, -apollo, apollo--client
编写有助于智能体识别何时激活技能的描述:
# 良好 - 具体的触发条件和用例
description: >
遵循行业最佳实践设计 GraphQL 模式的指南。在以下情况使用此技能:
(1) 设计新的 GraphQL 模式或 API 时,
(2) 审查现有模式以进行改进时,
(3) 决定类型结构或可空性时,
(4) 实现分页或错误模式时。
# 不良 - 模糊且无帮助
description: 帮助处理 GraphQL 相关事务。
Markdown 正文包含智能体遵循的指令。为清晰起见,请按以下结构组织:
# 技能标题
关于此技能帮助解决什么问题的简要概述。
## 流程
在处理 [任务] 时遵循此流程:
- [ ] 步骤 1:研究和理解需求
- [ ] 步骤 2:实施解决方案
- [ ] 步骤 3:验证结果
## 快速参考
### 常见模式
\`\`\`graphql
type Example {
id: ID!
name: String
}
\`\`\`
## 参考文件
- [主题 A](references/topic-a.md) - 主题 A 的详细指南
- [主题 B](references/topic-b.md) - 主题 B 的详细指南
## 关键规则
### 类别一
- 关于此类别的规则
- 另一条规则
### 类别二
- 关于此类别的规则
## 基本原则
- 务必做这件重要的事情
- 切勿做这个有问题的事情
- 优先选择这种方法而不是那种方法
构建技能以最小化上下文使用:
name 和 description 在启动时加载SKILL.md 在技能激活时加载references/ 中的文件仅在需要时加载保持 SKILL.md 在 500 行以内。将详细文档移至参考文件。
使用 references/ 存放详细文档:
references/
├── setup.md # 安装和配置
├── patterns.md # 常见模式和示例
├── troubleshooting.md # 错误解决方案
└── api.md # API 参考
参考文件应:
从 SKILL.md 链接到参考文件:
## 参考文件
- [安装配置](references/setup.md) - 安装和配置
- [模式](references/patterns.md) - 常见模式和示例
所有技能内容遵循 Apollo 风格指南:
关于 Apollo GraphQL 特定指南:
在元数据的 version 字段中使用语义化版本控制("X.Y.Z"):
metadata:
author: apollographql
version: "1.0.0"
新技能从 "1.0.0" 开始。
发布技能前,请验证:
name 与目录名匹配并遵循命名规则description 清晰说明技能功能及使用场景SKILL.md 少于 500 行allowed-tools 预先批准技能所需的工具allowed-tools 中包含 Bash(curl:*),因为它授予了不受限制的网络访问权限并启用了 curl | sh 远程代码执行模式每周安装次数
312
代码仓库
GitHub 星标数
31
首次出现
2026年1月30日
安全审计
安装于
opencode287
codex282
github-copilot281
gemini-cli278
claude-code268
cursor267
This guide helps you create effective skills for Apollo GraphQL and GraphQL development following the Agent Skills specification.
A skill is a directory containing instructions that extend an AI agent's capabilities with specialized knowledge, workflows, or tool integrations. Skills activate automatically when agents detect relevant tasks.
A skill requires at minimum a SKILL.md file:
skill-name/
├── SKILL.md # Required - main instructions
└── references/ # Optional - detailed documentation
├── topic-a.md
└── topic-b.md
---
name: skill-name
description: >
A clear description of what this skill does and when to use it.
Include trigger conditions: (1) first condition, (2) second condition.
license: MIT
compatibility: Works with Claude Code and similar AI coding assistants.
metadata:
author: your-org
version: "1.0.0"
allowed-tools: Read Write Edit Glob Grep
---
| Field | Required | Description |
|---|---|---|
name | Yes | Lowercase, hyphens only. Must match directory name. Max 64 chars. |
description | Yes | What the skill does and when to use it. Max 1024 chars. |
license | No | License name (e.g., MIT, Apache-2.0). |
compatibility | No | Environment requirements. Max 500 chars. |
metadata | No |
--)Good: apollo-client, graphql-schema, rover Bad: Apollo-Client, -apollo, apollo--client
Write descriptions that help agents identify when to activate the skill:
# Good - specific triggers and use cases
description: >
Guide for designing GraphQL schemas following industry best practices. Use this skill when:
(1) designing a new GraphQL schema or API,
(2) reviewing existing schema for improvements,
(3) deciding on type structures or nullability,
(4) implementing pagination or error patterns.
# Bad - vague and unhelpful
description: Helps with GraphQL stuff.
The markdown body contains instructions the agent follows. Structure it for clarity:
# Skill Title
Brief overview of what this skill helps with.
## Process
Follow this process when working on [task]:
- [ ] Step 1: Research and understand requirements
- [ ] Step 2: Implement the solution
- [ ] Step 3: Validate the result
## Quick Reference
### Common Pattern
\`\`\`graphql
type Example {
id: ID!
name: String
}
\`\`\`
## Reference Files
- [Topic A](references/topic-a.md) - Detailed guide for topic A
- [Topic B](references/topic-b.md) - Detailed guide for topic B
## Key Rules
### Category One
- Rule about this category
- Another rule
### Category Two
- Rule about this category
## Ground Rules
- ALWAYS do this important thing
- NEVER do this problematic thing
- PREFER this approach over that approach
Structure skills to minimize context usage:
name and description load at startup for all skillsSKILL.md loads when skill activatesreferences/ load only when requiredKeep SKILL.md under 500 lines. Move detailed documentation to reference files.
Use references/ for detailed documentation:
references/
├── setup.md # Installation and configuration
├── patterns.md # Common patterns and examples
├── troubleshooting.md # Error solutions
└── api.md # API reference
Reference files should be:
Link to references from SKILL.md:
## Reference Files
- [Setup](references/setup.md) - Installation and configuration
- [Patterns](references/patterns.md) - Common patterns and examples
Follow the Apollo Voice for all skill content:
For Apollo GraphQL-specific guidance:
Use semantic versioning ("X.Y.Z") for the version field in metadata:
metadata:
author: apollographql
version: "1.0.0"
Start new skills at "1.0.0".
Before publishing a skill, verify:
name matches directory name and follows naming rulesdescription clearly states what the skill does and when to use itSKILL.md is under 500 linesallowed-tools to pre-approve tools the skill needsBash(curl:*) in allowed-tools as it grants unrestricted network access and enables curl | sh remote code execution patternsWeekly Installs
312
Repository
GitHub Stars
31
First Seen
Jan 30, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode287
codex282
github-copilot281
gemini-cli278
claude-code268
cursor267
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
106,200 周安装
| Key-value pairs for author, version, etc. |
allowed-tools | No | Space-delimited list of pre-approved tools. Do not include Bash(curl:*). |