Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

creating-skills创造技能

Agent Skill

creating-skills 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

360

周安装

15

GitHub Stars

4

下载量

120
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:creating-skills(创造技能)
来源仓库:https://github.com/riccardogrin/skills
仓库路径:skills/creating-skills
安装命令:
npx skills add https://github.com/riccardogrin/skills --skill creating-skills
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/riccardogrin/skills --skill creating-skills

简介

creating-skills 用于查找、检索和筛选与技能创建、Agent 能力扩展相关的资料。

  • 适合在研究或开发新 Agent 功能时快速获取实现思路或模板参考。
  • 通过 npx skills add 命令从 GitHub 仓库安装,建议结合原始 README 验证功能。
  • 安装前应确认权限与项目维护状态,避免误用导致非预期行为。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Creating Skills

This skill walks you through creating a well-structured agent skill from scratch. Follow the workflow below step by step. Use the reference files for detailed guidance on specific topics.

Reference Files

FileRead When
references/format-specification.mdChecking format rules, frontmatter constraints, or naming conventions
references/skill-patterns.mdChoosing a skill pattern or viewing skeleton templates
references/workflow-and-output-patterns.mdDesigning workflows, output formats, or feedback loops
references/quality-checklist.mdRunning the pre-ship quality checklist
references/anti-patterns.mdReviewing common mistakes to avoid
references/evaluation-guide.mdCreating evaluations to measure skill quality objectively
references/hooks-recipes.mdSetting up hooks in skills or understanding hook patterns

Core Principles

Before diving into mechanics, internalize these design principles:

Context window is a public good. Every token in a skill competes with the user's code, conversation, and other tools. Challenge each line with three questions: (1) Does Claude already know this? (2) Will the agent use this on every invocation? (3) Can this live in a reference file instead?

Degrees of freedom. Match your specificity to the task's tolerance for variation:

LevelWhenExample
High specificityOutput must be exact (configs, schemas)"Generate exactly this YAML structure"
Medium specificityProcess matters, details vary (workflows)"Follow these steps, adapt to the project"
Low specificityAgent judgment is the point (reviews, analysis)"Check for these categories of issues"

Claude is already smart. Don't teach programming, well-known APIs, or common patterns. Only add context Claude doesn't already have: project conventions, domain rules, non-obvious constraints.

Enforce mechanically, not with checklists. If the skill's purpose is catching problems (review, audit, compliance), it should generate hooks, lint rules, or check scripts that run automatically — not be a list of things the agent must remember to check. A PostToolUse hook runs on every file edit; a skill instruction relies on agent discipline.

Don't duplicate existing tools. Before building a skill, check what linters, formatters, and CI tools already handle in the target ecosystem. If ESLint catches unused imports, don't create a skill that also checks for them. Skills should add value beyond what standard tooling provides.

Design for discoverability. A skill that never gets invoked is worthless. The description's "Use when" triggers are necessary but not sufficient — the agent scans them at session start and may not connect them to the right moment. Add cross-references in related skills ("Related Skills" section) and in CLAUDE.md for broadly useful skills. Ask: "When would someone need this, and what will they be looking at right before they need it?"

Choose a Skill Pattern

Before writing anything, identify which pattern fits the task:

PatternBest ForExample
Guided WorkflowMulti-step processes with decisionscreating-skills, deploying-apps
Rules-Based AuditCode review, linting, compliancereviewing-typescript, auditing-security
Scaffolding / GenerationCreating files from templatesgenerating-apis, initializing-projects
Knowledge ReferenceLookup tables, conventions, mappingsmapping-status-codes, converting-units

Not sure? Ask these questions:

  1. Does the task have sequential steps? → Guided Workflow
  2. Is it about checking/validating? → Rules-Based Audit
  3. Does it produce files from templates? → Scaffolding / Generation
  4. Is it primarily informational? → Knowledge Reference

Read references/skill-patterns.md for full skeleton templates and directory structures.

Creation Workflow

Copy this checklist and work through it step by step:

- [ ] Step 1: Understand the skill
- [ ] Step 2: Choose a pattern
- [ ] Step 3: Initialize the skill
- [ ] Step 4: Write the SKILL.md body
- [ ] Step 5: Add reference files
- [ ] Step 6: Validate
- [ ] Step 7: Create evaluations
- [ ] Step 8: Test with real usage
- [ ] Step 9: Iterate

Step 1: Understand the Skill

Before writing any files, have a conversation to clarify:

  • What does this skill do? Get a one-sentence answer.
  • Who triggers it? What prompts or situations should activate it?
  • What's the output? Files created, code reviewed, information provided?
  • What does the agent need to know? Domain knowledge, project conventions, constraints?
  • What does the agent already know? Don't include common programming knowledge.

Synthesize into a draft description using the formula: [Does what] for/using [domain]. [Checks/covers what]. Use when [triggers]

Step 2: Choose a Pattern

Use the decision table above to select a primary pattern. Most skills combine patterns — pick the dominant one and incorporate elements from others.

For example, creating-skills is primarily a Guided Workflow but includes:

  • Rules-Based Audit elements (validation checklist)
  • Scaffolding elements (init script)

Step 3: Initialize the Skill

Quick start with the official CLI:

npx skills init <skill-name>

Or use the enhanced scaffolding script (includes best-practice guidance in the template):

python scripts/init_skill.py <skill-name> --path skills

This creates:

skills/<skill-name>/
├── SKILL.md          (template with TODOs)
└── references/       (empty, ready for use)

If not using the script, create this structure manually. The name must be kebab-case, preferably with a gerund first word (e.g., analyzing-data, not data-analyzer).

Step 4: Write the SKILL.md Body

Open the generated SKILL.md and fill it in:

  1. Frontmatter: Fill in name and description

- Name: kebab-case, must match directory name - Description: third-person voice, recommend under 300 characters (spec max 1024), include "Use when" triggers - See references/format-specification.md for the full spec

  1. Reference Files table: List every reference file with a "Read When" condition
  2. Main content: Follow the skeleton for your chosen pattern

- Target 150–300 lines for the body - Hard limit: 500 lines (agents lose focus beyond this) - Use progressive disclosure — put detailed content in reference files - Use ATX headings, fenced code blocks with language tags - One sentence per line for clean diffs

  1. Workflows: Use copyable checklists for sequential steps

- See references/workflow-and-output-patterns.md for patterns

Step 5: Add Reference Files

Create reference files in references/ for detailed content that would bloat the main SKILL.md.

Common reference file types:

  • Rules and specifications — naming conventions, format constraints, allowed values
  • Examples — input/output pairs, good/bad comparisons
  • Detailed step guides — expanded instructions for complex steps
  • Decision matrices — comparison tables for choosing between options

Rules for reference files:

  • One level deep only (no nested directories under references/)
  • Every file must be listed in the SKILL.md "Reference Files" table
  • Files over 100 lines should include a table of contents
  • Use kebab-case file names

Step 6: Validate

Run the validator against your skill:

python scripts/validate_skill.py skills/<skill-name>

The validator checks:

  • Frontmatter format and required fields
  • Name matches directory, kebab-case format
  • Description length and voice
  • Body line count
  • File references exist on disk
  • No Windows-style paths
  • No deeply nested references
  • Reference files are listed in the body

For official spec compliance, also run: skills-ref validate skills/<skill-name> (install: pip install skills-ref)

Fix all errors (blocking). Review all warnings (advisory — fix or acknowledge).

If errors persist after 3 attempts, review references/anti-patterns.md for common mistakes.

Also run through the manual references/quality-checklist.md for items the automated validator cannot check (content quality, token efficiency, terminology consistency).

Step 7: Create Evaluations

Before testing, define what success looks like. Write 3–5 evaluation cases that cover the happy path, an edge case, and a failure mode you anticipate. See references/evaluation-guide.md for the full methodology and JSON format.

Key steps:

  1. Establish a baseline: Complete the target task without the skill installed. Record where the agent struggles.
  2. Write evaluation cases: Each is a prompt + expected behaviors checklist.
  3. Score the baseline: This is the bar your skill must beat.

Step 8: Test with Real Usage

Automated validation catches format issues but not usability problems. Test with real tasks:

  1. Install the skill: Copy to ~/.claude/skills/ or use npx skills add
  2. Start a fresh session: The agent should not have prior context about this skill
  3. Trigger naturally: Use a prompt that would naturally activate the skill
  4. Evaluate the output: Did the agent follow the workflow? Was the output correct?

What to observe during testing:

  • Does the agent explore unexpected paths not covered by the skill?
  • Does the agent miss connections between sections that seem obvious to you?
  • Does the agent over-rely on one section while ignoring others?
  • Is there content the agent consistently skips or ignores?

Multi-model testing: Test with at least two capability levels:

  • Haiku: Can the skill work with a smaller model? Simplify if not.
  • Sonnet/Opus: Does the skill produce high-quality output with a capable model?

If the skill fails or produces poor output, go back to Step 4 and revise.

Step 9: Iterate

Skills improve through real usage and feedback.

Establish a baseline first: If you haven't already (Step 7), complete the target task without the skill to see what the agent does on its own. This reveals which parts of your skill actually add value vs. what the agent already handles.

Use the Claude A/B pattern:

  1. Claude A: Use the skill as-is with a real task. Note where it struggles.
  2. Claude B: Open a new session. Describe the problems. Ask Claude B to suggest improvements to the SKILL.md.
  3. Apply and re-test: Incorporate the suggestions, then repeat from Step 6.

Gather team feedback: If others use the skill, ask them what worked and what didn't. Different users trigger skills differently — their experience reveals gaps your testing missed.

This external feedback loop catches blind spots that self-review misses.

Anti-Patterns Quick Reference

Avoid these common mistakes (see references/anti-patterns.md for full details):

Anti-PatternFix
Over-explaining (things Claude already knows)Only include domain-specific or non-obvious info
Windows-style backslash pathsAlways use forward slashes
Deeply nested referencesKeep references/ one level deep
Too many options without a defaultAlways recommend a default
"When to use" in body instead of descriptionPut triggers in the frontmatter description
Unlisted reference filesList every file in the Reference Files table
Time-sensitive claimsUse evergreen phrasing or link to sources
Wrong voice in descriptionUse third-person: "Guides..." not "Guide..."
Building enforcement as a checklistGenerate hooks, lint rules, or check scripts instead
Duplicating linter/formatter functionalityCheck what tools exist first; skills should add value beyond standard tooling
Platform-specific scripts without fallbacksScripts must work on both Windows and macOS/Linux — branch on platform.system() where needed

Related Skills

When using this skill alongside others:

  • After creating a skill, use a reviewing skill to audit it against project standards
  • For skills that generate code, pair with a testing skill to validate output
  • For API-related skills, consider a documenting skill for endpoint coverage

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.26%
按下载量换算42

Claude

29%
按下载量换算35

Cursor

19.31%
按下载量换算23

Gemini CLI

10.24%
按下载量换算12

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills