Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问clear审计通过

agent-skillsAgent 技巧

Agent Skill

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

总安装

774

周安装

31

GitHub Stars

5

下载量

250
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/third774/dotfiles --skill agent-skills

简介

用于创建、修改和审查符合规范的 Agent 技能。

  • 适合从零开始构建或改进现有技能时使用。agent-skills 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 通过 GitHub 安装,遵循 RFC 2119 关键词定义要求级别。
  • 涵盖技能内容组织、渐进披露和最佳实践指导。
  • 支持技能质量评估和结构重组以提升可用性。

SKILL.md

Agent Skills

Agent Skills are folders of instructions, scripts, and resources that agents discover and load on demand. This skill covers creating, modifying, and reviewing skills to ensure they follow the specification and best practices.

When to Use This Skill

  • Creating a new skill from scratch
  • Modifying or improving an existing skill
  • Reviewing skill quality before sharing
  • Reorganizing skill content for better progressive disclosure

RFC 2119 Keywords

This skill and skills created with it use RFC 2119 keywords to indicate requirement levels.

KeywordMeaning
MUST, REQUIRED, SHALLAbsolute requirement. No exceptions.
MUST NOT, SHALL NOTAbsolute prohibition. No exceptions.
SHOULD, RECOMMENDEDStrong recommendation. Valid reasons to deviate may exist, but understand implications first.
SHOULD NOT, NOT RECOMMENDEDStrong discouragement. Valid reasons to do it may exist, but understand implications first.
MAY, OPTIONALTruly optional. Implement if useful for your context.

Reference: RFC 2119

Specification Quick Reference

Required Frontmatter

Every SKILL.md MUST start with YAML frontmatter containing name and description:

---
name: skill-name
description: What this skill does and when to use it.
---

Name Field Rules

The name field:

  • MUST be 1-64 characters
  • MUST use only lowercase alphanumeric characters and hyphens (a-z, 0-9, -)
  • MUST NOT start or end with a hyphen
  • MUST NOT contain consecutive hyphens (--)
  • MUST match the parent directory name exactly

Valid: pdf-processing, code-review, data-analysis Invalid: PDF-Processing, -pdf, pdf--processing, my_skill

Description Field Rules

The description field:

  • MUST be 1-1024 characters
  • SHOULD be written in third person (not "I can help you" or "You can use this")
  • MUST include a "Use when..." clause specifying trigger conditions
  • SHOULD contain specific keywords that help agents identify relevant tasks

Good:

description: Extract text and tables from PDF files, fill forms, merge documents. Use when working with PDF files or when the user mentions PDFs, forms, or document extraction.

Bad:

description: Helps with PDFs.

Optional Frontmatter Fields

These fields are all OPTIONAL (MAY include):

FieldPurpose
licenseLicense name or reference to bundled LICENSE file
compatibilityEnvironment requirements (max 500 chars)
metadataArbitrary key-value pairs for custom properties
allowed-toolsSpace-delimited list of pre-approved tools (experimental)

Directory Structure

A skill is a directory that MUST contain a SKILL.md file:

skill-name/
├── SKILL.md          # REQUIRED - main instructions
├── scripts/          # MAY include - executable code
├── references/       # MAY include - additional documentation
└── assets/           # MAY include - static resources (templates, images, data)

When to Add References

You SHOULD add separate reference files when:

  • SKILL.md exceeds ~300 lines
  • Content applies to specific contexts (language-specific patterns, domain-specific schemas)
  • Details are needed only for certain tasks (advanced features, edge cases)

References MUST be one level deep from SKILL.md. Nested reference chains (SKILL.md → ref1.md → ref2.md) are NOT RECOMMENDED.

Best Practices

The following are RECOMMENDED practices. They represent strong guidance with valid reasons to deviate in specific contexts.

Conciseness is Key

The context window is shared with conversation history, system prompts, and other skills. Challenge every piece of information:

  • Does the agent really need this explanation?
  • Can the agent be assumed to know this?
  • Does this paragraph justify its token cost?

Target: You SHOULD keep SKILL.md body under 500 lines. Move detailed reference material to separate files.

Progressive Disclosure

Skills SHOULD be structured for efficient context usage:

  1. Metadata (~100 tokens): name and description loaded at startup for all skills
  2. Instructions (<5000 tokens): Full SKILL.md loaded when skill activates
  3. Resources (as needed): Reference files loaded only when required

SKILL.md SHOULD serve as an overview that points to detailed materials. Like a table of contents.

Degrees of Freedom

Match specificity to task fragility:

Freedom LevelWhen to UseExample
High (text instructions)Multiple valid approaches, context-dependentCode review guidelines
Medium (templates/pseudocode)Preferred pattern exists, some variation OKReport generation template
Low (exact scripts)Fragile operations, consistency criticalDatabase migrations

Workflow Checklists

For multi-step processes, you SHOULD provide a checklist the agent can copy and track:

Task Progress:
- [ ] Step 1: Analyze requirements
- [ ] Step 2: Create plan
- [ ] Step 3: Implement
- [ ] Step 4: Validate

Feedback Loops

Quality-critical tasks SHOULD include validation steps:

  1. Perform action
  2. Run validation
  3. If validation fails → fix and retry
  4. Only proceed when validation passes

Authoring Workflow

Copy this checklist when creating or modifying a skill:

Skill Authoring Progress:
- [ ] Step 1: Define purpose (what problem does this solve?)
- [ ] Step 2: Identify triggers (when should agent use this?)
- [ ] Step 3: Write frontmatter (name matches directory, description is specific)
- [ ] Step 4: Draft body (core instructions, workflows, examples)
- [ ] Step 5: Extract references (move detailed/contextual content)
- [ ] Step 6: Review against checklist (see references/best-practices-checklist.md)
- [ ] Step 7: Test with real tasks

Writing Effective Descriptions

The description enables skill discovery. It SHOULD include:

  1. What it does: Core capabilities in active voice
  2. When to use it: Specific triggers and keywords
  3. Third person: "Extracts text from PDFs" not "I extract text from PDFs"

Required "Use when..." Clause

Every description MUST include a "Use when..." sentence. This phrase signals trigger conditions to agents scanning skill metadata.

Pattern: [What it does]. Use when [trigger conditions].

Example:

description: Extract text and tables from PDF files, fill forms, merge documents. Use when working with PDF files or when the user mentions PDFs, forms, or document extraction.

Using RFC 2119 in Skills

Skills created with this skill SHOULD use RFC 2119 keywords to indicate requirement levels.

Choosing the right keyword:

Use ThisWhen
MUST / MUST NOTHard constraint. A validator could check this. Breaking it causes failure.
SHOULD / SHOULD NOTStrong recommendation. Valid exceptions exist, but they're rare.
MAYTruly optional. No preference either way.

Example transformations:

# Before (ambiguous)
Keep SKILL.md under 500 lines.
The name field must match the directory.
Consider adding a checklist for multi-step tasks.

# After (precise)
SKILL.md SHOULD be under 500 lines.
The name field MUST match the directory.
Multi-step tasks MAY include a checklist for tracking.

Guideline: If you're unsure between MUST and SHOULD, ask: "Would breaking this rule cause the skill to malfunction, or just be suboptimal?" Malfunction → MUST. Suboptimal → SHOULD.

Common Anti-Patterns

Vague Descriptions

Descriptions SHOULD NOT be vague or generic:

# Bad - agent can't determine when to use this
description: Helps with documents.

# Good - specific capabilities and triggers
description: Extract text and tables from PDF files, fill PDF forms, merge multiple PDFs. Use when working with PDF files or document extraction.

Over-Explaining Common Knowledge

Skills SHOULD NOT explain concepts agents already know:

# Bad - agent knows what PDFs are
PDF (Portable Document Format) files are a common file format that contains
text, images, and other content. To extract text from a PDF...

# Good - get to the actionable content
Use pdfplumber for text extraction:

import pdfplumber with pdfplumber.open("file.pdf") as pdf: text = pdf.pages[0].extract_text()


### Deeply Nested References

Reference chains MUST NOT exceed one level:

Bad - agent may partially read nested files

SKILL.md → references/advanced.md → references/details.md

Good - one level deep

SKILL.md → references/advanced.md SKILL.md → references/details.md


### Time-Sensitive Information

Skills SHOULD NOT include time-sensitive information:

Bad - becomes outdated

If you're doing this before August 2025, use the old API.

Good - use "old patterns" section

Current method

Use the v2 API endpoint.

Old patterns (deprecated)

<details> <summary>Legacy v1 API</summary> The v1 API used: api.example.com/v1/messages </details>


### Too Many Options Without Defaults

Skills SHOULD NOT present options without clear defaults:

Bad - decision paralysis

You can use pypdf, or pdfplumber, or PyMuPDF, or pdf2image...

Good - clear default with escape hatch

Use pdfplumber for text extraction. For scanned PDFs requiring OCR, use pdf2image with pytesseract instead.


### Inconsistent Terminology

Skills SHOULD NOT mix synonyms. Pick one term and use it throughout:

- Always "API endpoint" (not mixing with "URL", "route", "path")
- Always "field" (not mixing with "box", "element", "control")

## Quality Review

Before finalizing a skill, review against the full checklist in `references/best-practices-checklist.md`.

For example patterns and structures, see `references/examples.md`.

If your description doesn't answer both, revise it.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

OpenCode

28.95%
按下载量换算72

Claude Code

23.41%
按下载量换算59

windsurf

17.03%
按下载量换算43

Codex

12.09%
按下载量换算30

Antigravity

8.17%
按下载量换算20

Gemini CLI

3.22%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills