Token导航 LogoToken导航

Agent Skill · 开发规范

skill-best-practices(技能最佳实践)

skill-best-practices 用于记录任务执行中的错误、用户纠正、经验和能力缺口,适合在 Codex、Claude、Cursor、Gemini CLI 中希望让 Agent 持续沉淀问题、修正和最佳实践时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

skill-best-practices 是开发规范类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为调用外部服务;许可证信息还不明确,第三方扫描已通过,按安装量在开发规范类的 1,265 个 Skill 里排第 110。

总安装 19,365周安装 809GitHub Stars 1下载 10,667核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/within-7/minto-plugin-tools --skill 'Skill Best Practices'

这个 Skill 是做什么的

开发规范类 Skill 用来统一代码风格、目录结构和评审口径,产出多为检查清单或改写建议。

skill-best-practices 用于记录任务执行中的错误、用户纠正、经验和能力缺口,适合在 Codex、Claude、Cursor、Gemini CLI 中希望让 Agent 持续沉淀问题、修正和最佳实践时使用。适用于任务复盘、经验积累和能力优化等学习改进场景。

可帮助 Agent 记录错误案例、总结经验教训并识别能力短板。安装命令:npx skills add https://github.com/within-7/minto-plugin-tools --skill 'Skill Best Practices'。

建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

来源仓库内路径:skills/skill-best-practices

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/within-7/minto-plugin-tools --skill 'Skill Bes…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要调用外部服务,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

skill-best-practices 怎么安装?

在终端执行 npx skills add https://github.com/within-7/minto-plugin-tools --skill 'Skill Best Practice…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

skill-best-practices 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

skill-best-practices 需要什么权限?

权限级别是调用外部服务。该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

skill-best-practices 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

skill-best-practices 用的人多吗?

公开数据是累计安装 19,365 次,近一周安装 809 次,下载 10,667 次,GitHub 1 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

skill-best-practices 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理开发规范类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发规范类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
vercel-react-best-practices

Vercel React 最佳实践 · Codex、Claude

8,490,72025,918操作浏览器MIT通过
web-design-guidelines

网页设计指南 · Codex、Claude

6,686,01625,885需要联网MIT有提醒
remotion-best-practices

Remotion 最佳实践 · Codex、Claude

6,505,6323,027操作浏览器MIT有提醒
supabase-postgres-best-practices

Supabase Postgres 最佳实践 · Codex、Claude

3,175,5232,030需要联网MIT通过
next-best-practices

Next.js 最佳实践 · Codex、Claude

1,848,240841操作浏览器MIT通过
skill-best-practices

技能最佳实践 · 本页

19,3651调用外部服务未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Skill Best Practices

Overview

Create effective Claude Code skills that provide specialized knowledge and workflows. High-quality skills transform Claude from a general-purpose assistant into a domain expert equipped with procedural knowledge.

Core Principles

Progressive Disclosure

Use a three-level loading system to manage context efficiently:

  1. Metadata (name + description) - Always in context (~100 words)
  2. SKILL.md body - When skill triggers (<2,000 words)
  3. Bundled resources - As needed (unlimited, loaded selectively)

Keep SKILL.md lean. Move detailed content to references/ files.

Strong Triggering

The description field determines when Claude activates the skill. Use specific, concrete phrases:

✅ Good:

description: This skill should be used when the user asks to "create a hook",
"add a PreToolUse hook", "validate tool use", or mentions hook events
(PreToolUse, PostToolUse, Stop).

❌ Bad:

description: Use this skill when working with hooks.

Third-Person Descriptions

Always write descriptions in third person: "This skill should be used when..."

❌ Avoid second person: "Use this skill when you want to..."

Imperative Writing Style

Write skill body instructions using imperative/infinitive form (verb-first):

✅ Good:

Create the skill directory structure.
Validate the frontmatter syntax.
Check required fields.

❌ Bad:

You should create the directory structure.
You need to validate the syntax.

Skill Structure

Required Components

Every skill must have:

skill-name/
├── SKILL.md (required)
│   ├── YAML frontmatter (name, description required)
│   └── Markdown body
└── [Optional resources]
    ├── scripts/      - Executable utilities
    ├── references/   - Detailed documentation
    └── assets/       - Templates and output files

YAML Frontmatter

Required fields:

  • name - Skill name (Title Case)
  • description - Third-person description with specific triggers

Optional fields:

  • version - Skill version (semantic versioning)

Example:

---
name: My Skill
description: This skill should be used when the user asks to "task 1",
"task 2", or "task 3".
version: 0.1.0
---

Content Guidelines

SKILL.md Body (Core Content)

Target 1,500-2,000 words maximum. Include:

Essential Content:

  • Purpose and overview (what the skill does)
  • Core concepts and terminology
  • Essential procedures and workflows
  • Quick reference tables
  • Most common use cases
  • Links to supporting resources

Keep focused: Move detailed patterns, advanced techniques, and comprehensive examples to references/ files.

References/ (Detailed Documentation)

Move to references/ when content is:

  • Detailed and comprehensive (2,000-5,000+ words)
  • Advanced or specialized patterns
  • API documentation and specifications
  • Migration guides
  • Edge cases and troubleshooting

Benefits:

  • SKILL.md stays lean
  • Details load only when needed
  • Better context management
  • Easier to maintain

Never duplicate: Information should live in either SKILL.md OR references/, not both.

Examples/ (Working Code)

Store complete, runnable examples:

  • Full scripts that work
  • Configuration files
  • Template code
  • Real-world usage samples

Users can copy and adapt these directly.

Scripts/ (Utilities)

Include executable tools when:

  • The same code is repeatedly rewritten
  • Deterministic reliability is needed
  • Complex automation helps

Examples:

  • Validation scripts
  • Testing helpers
  • Parsing utilities

Trigger Phrase Optimization

Be Specific and Concrete

List exact phrases users would say:

✅ Good:

description: This skill should be used when the user asks to "create a hook",
"add a PreToolUse hook", "validate tool use", "implement prompt-based hooks",
or mentions hook events (PreToolUse, PostToolUse, Stop).

❌ Bad:

description: Load when user needs hook help.

Cover Variations

Include different ways users might ask:

description: This skill should be used when the user asks to "create a skill",
"write a new skill", "add a skill to my plugin", "how do I create SKILL.md",
or mentions skill development, SKILL.md files, or skill best practices.

Include Domain Context

Mention relevant concepts and terminology:

description: This skill should be used when working with MCP servers,
mentions "add MCP integration", "configure stdio server", or discusses
Model Context Protocol, MCP tools, or server authentication.

Content Quality Standards

Writing Style

Use imperative form throughout:

  • "Create the file structure"
  • "Validate the syntax"
  • "Configure the server"

Never use second person:

  • ❌ "You should create..."
  • ❌ "You need to validate..."

Be objective and instructional:

  • Focus on what to do
  • Avoid opinionated language
  • Provide clear procedures

Organization

Structure SKILL.md with:

  1. Overview (what and why)
  2. Core concepts
  3. Essential procedures
  4. Quick references
  5. Links to detailed resources

Use markdown features:

  • Headers (##, ###) for hierarchy
  • Bullet points for lists
  • Code blocks for examples
  • Tables for quick reference

Clarity

Make content actionable:

  • Provide step-by-step procedures
  • Include concrete examples
  • Show expected outputs
  • Reference supporting files

Avoid ambiguity:

  • Be specific about requirements
  • Define terms clearly
  • Provide complete examples
  • Note edge cases

Common Mistakes

Mistake 1: Weak Trigger Description

❌ Problem:

description: Provides guidance for skills.

Why: Vague, no specific triggers, not third person.

✅ Fix:

description: This skill should be used when the user asks to "create a skill",
"write SKILL.md", or mentions skill development, trigger phrases, or skill
structure.

Mistake 2: Bloated SKILL.md

❌ Problem:

  • SKILL.md has 8,000 words
  • All documentation in one file
  • Details always loaded into context

✅ Fix:

  • Keep SKILL.md at 1,500-2,000 words
  • Move detailed content to references/
  • Use progressive disclosure

Mistake 3: Second Person Writing

❌ Problem:

You should start by creating the directory.
You need to configure the settings.

✅ Fix:

Start by creating the directory.
Configure the settings before use.

Mistake 4: Missing Resource References

❌ Problem: SKILL.md doesn't mention references/ files.

✅ Fix:

## Additional Resources

### Reference Files
- **`references/structure-guide.md`** - Detailed structure standards
- **`references/trigger-patterns.md`** - Trigger phrase patterns

### Examples
- **`examples/good-skill.md`** - Example SKILL.md

Skill Anatomy

Minimal Skill

For simple knowledge without complex resources:

skill-name/
└── SKILL.md

Use when: Skill provides straightforward guidance, no utilities needed.

Standard Skill (Recommended)

skill-name/
├── SKILL.md
├── references/
│   └── detailed-guide.md
└── examples/
    └── working-example.md

Use when: Skill has detailed documentation or examples.

Complete Skill

skill-name/
├── SKILL.md
├── references/
│   ├── patterns.md
│   └── advanced.md
├── examples/
│   ├── example1.md
│   └── example2.md
└── scripts/
    └── validate.sh

Use when: Complex domain with utilities and comprehensive docs.

Quick Validation Checklist

Before finalizing a skill, verify:

Structure:

  • SKILL.md exists with valid YAML frontmatter
  • Frontmatter has name and description
  • Markdown body is substantial

Description:

  • Uses third person ("This skill should be used when...")
  • Includes specific trigger phrases
  • Lists concrete scenarios

Content:

  • Body uses imperative form (no "you should")
  • SKILL.md is lean (1,500-2,000 words)
  • Detailed content in references/

Resources:

  • Referenced files exist
  • Examples are complete
  • Scripts are executable

Progressive Disclosure:

  • Core content in SKILL.md
  • Details in references/
  • Code in examples/
  • Utilities in scripts/

Additional Resources

Reference Files

For comprehensive guidance on specific aspects:

  • references/structure-guide.md - Detailed structure and formatting standards
  • references/trigger-patterns.md - Trigger phrase optimization patterns
  • references/content-quality.md - Content quality checklist and standards
  • references/common-mistakes.md - Common mistakes and how to fix them

These references provide in-depth coverage of each topic with examples and patterns.

Examples

Study these skills as best practice examples:

  • plugin-dev/skills/hook-development/ - Progressive disclosure, utilities
  • plugin-dev/skills/agent-development/ - Strong triggers, references
  • plugin-dev/skills/skill-development/ - Meta-example (this skill)

Implementation Workflow

Follow these steps when creating a skill:

  1. Understand Use Cases - Identify concrete examples
  2. Plan Resources - Determine scripts/references/examples needed
  3. Create Structure - Make directories and SKILL.md
  4. Write SKILL.md - Frontmatter + lean body in imperative form
  5. Add Resources - Create references/, examples/, scripts/
  6. Validate - Check description, style, organization
  7. Test - Verify skill triggers on expected queries
  8. Iterate - Improve based on usage

Focus on strong trigger descriptions, progressive disclosure, and imperative writing to create effective skills that load when needed and provide targeted guidance.

平台分布

Codex

35.75%
按下载量换算3,813

Claude

30.56%
按下载量换算3,260

Cursor

16.15%
按下载量换算1,723

Gemini CLI

9.25%
按下载量换算987

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

调用外部服务

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

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

继续浏览同类 Skills