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

write-skills写作技巧

Agent Skill

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

总安装

259

周安装

11

GitHub Stars

6

下载量

91
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/halcyon666/write-skills --skill write-skills

简介

write-skills 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。

  • 适用于研究检索类任务,可结合来源仓库、安装命令和原始 README 继续核验具体用法。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,需确认权限范围和维护状态。
  • 安装前建议确认是否会触发联网、命令执行或文件读写,避免误操作生产数据。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Write Skills

Create Agent Skills that are spec-compliant, concise, and effective. A skill is a directory containing a SKILL.md file with YAML frontmatter and Markdown instructions that extend agent capabilities.

When to Use

  • User asks to "create a skill", "write a SKILL.md", or "make this reusable"
  • Packaging a workflow, domain expertise, or tool integration as a shareable skill
  • Turning a successful task pattern into a repeatable capability
  • Reviewing or improving an existing skill

Skill Creation Workflow

Step 1: Understand the Domain

Before writing, identify:

  1. What capability does this skill provide?
  2. When should an agent activate this skill? (trigger phrases, task types)
  3. What does the agent NOT already know? (only add novel context)
  4. What's the failure mode without this skill? (guides what to include)

Step 2: Create the Directory

# Using the skills CLI
npx skills init my-skill-name

# Or manually
mkdir my-skill-name && touch my-skill-name/SKILL.md

Step 3: Write the SKILL.md

Every SKILL.md has two parts: YAML frontmatter and Markdown body.

Frontmatter Rules

---
name: my-skill-name
description: Does X and Y. Use when the user asks about Z or needs to accomplish W.
---

Required fields:

FieldConstraints
name1-64 chars. Lowercase letters, numbers, hyphens only. No leading/trailing/consecutive hyphens. Must match directory name.
description1-1024 chars. Third person. Describes what it does AND when to use it. Include trigger keywords.

Optional fields:

FieldPurpose
licenseLicense name or reference (e.g., MIT, Apache-2.0)
compatibilityEnvironment requirements (e.g., Requires git and docker)
metadataKey-value pairs (e.g., author, version)
allowed-toolsSpace-delimited pre-approved tools (experimental)

Name conventions (prefer gerund form):

  • processing-pdfs, analyzing-data, writing-tests
  • Also acceptable: pdf-processing, data-analysis
  • Avoid: helper, utils, tools, vague nouns

Description rules:

  • ALWAYS third person ("Processes files..." not "I process files..." or "You can use this to...")
  • Include BOTH what it does AND when to activate
  • Include specific trigger keywords agents use for discovery
  • Be specific: "Generates commit messages by analyzing git diffs" not "Helps with git"

Body Content Rules

The Markdown body is loaded when the skill activates. Every token competes with conversation context.

Core principle: The agent is already smart. Only add what it doesn't know.

Challenge every line:

  • "Does the agent need this explanation?" (probably not for common knowledge)
  • "Does this paragraph justify its token cost?" (cut if no)
  • "Am I explaining what a PDF is?" (don't)

Target: under 500 lines. If longer, split into reference files.

Step 4: Structure the Body

Use this skeleton, adapting sections to the skill's domain:

# Skill Title

Brief one-line purpose statement.

## When to Use

Bullet list of activation triggers and scenarios.

## Instructions

Step-by-step workflow. Use numbered steps for sequential tasks,
bullets for parallel/unordered items.

## Examples (if needed)

Input/output pairs showing expected behavior.

## Common Pitfalls (if needed)

Known failure modes and how to avoid them.

Degrees of freedom - match specificity to fragility:

SituationFreedom LevelStyle
Multiple valid approachesHighText instructions, general guidance
Preferred pattern existsMediumPseudocode or parameterized scripts
Fragile/critical operationsLowExact scripts, explicit "do not modify"

Step 5: Add Reference Files (If Needed)

When SKILL.md exceeds ~300 lines, split into progressive disclosure:

my-skill/
├── SKILL.md              # Overview + navigation (<500 lines)
├── references/
│   ├── api-reference.md  # Loaded on demand
│   └── examples.md       # Loaded on demand
└── scripts/
    └── validate.py       # Executed, not loaded into context

Rules for references:

  • Keep references ONE level deep from SKILL.md (no nested chains)
  • Link explicitly: See [API Reference](references/api-reference.md) for details
  • Files >100 lines should have a table of contents at top
  • Use forward slashes in paths (even on Windows)

Step 6: Validate

Check the skill against these criteria before shipping:

Validation Checklist:
- [ ] name: lowercase, hyphens, 1-64 chars, matches directory
- [ ] description: third person, includes triggers, <1024 chars
- [ ] Body: under 500 lines
- [ ] No time-sensitive information (dates, "current version")
- [ ] Consistent terminology throughout
- [ ] No unnecessary explanations of common knowledge
- [ ] References are one level deep (no nested chains)
- [ ] All file paths use forward slashes
- [ ] Scripts handle errors explicitly (no punting to agent)

If the skills-ref CLI is available:

skills-ref validate ./my-skill

Quality Patterns

Effective Descriptions (Examples)

# Good - specific, includes triggers
description: Generates release notes from git history using conventional commits. Use when asked to create a changelog, write release notes, or summarize changes between versions.

# Good - clear capability + activation
description: Reviews React components for performance anti-patterns and suggests optimizations. Use when writing, reviewing, or refactoring React/Next.js code.

# Bad - vague
description: Helps with code.

# Bad - first person
description: I can help you write better code.

Workflow Pattern

For multi-step tasks, provide a copyable checklist:

## Workflow

Copy this checklist and track progress:

- [ ] Step 1: Analyze input
- [ ] Step 2: Generate plan
- [ ] Step 3: Validate plan
- [ ] Step 4: Execute
- [ ] Step 5: Verify output

Feedback Loop Pattern

For tasks requiring validation:

1. Generate output
2. Run validation: `python scripts/validate.py output.json`
3. If validation fails:
   - Review error messages
   - Fix issues
   - Re-validate
4. Only proceed when validation passes

Template Pattern

Provide output templates when format consistency matters:

## Output Format

Use this structure:

[Title]

Summary

[One paragraph]

Details

[Structured content]

Conditional Workflow Pattern

Guide through decision points:

## Choose Your Path

1. Determine the task type:
   - **Creating from scratch?** -> Follow "Creation" section
   - **Modifying existing?** -> Follow "Editing" section

Anti-Patterns to Avoid

Anti-PatternWhy It's BadFix
Explaining common knowledgeWastes tokens, agents already knowCut it
Multiple tool options without defaultConfuses agentPick one default, mention alternatives briefly
Vague descriptionAgent can't discover the skillBe specific with triggers
First/second person in descriptionBreaks discovery when injected into system promptUse third person
Windows-style paths (\)Breaks on Unix systemsUse forward slashes
Deeply nested referencesAgent may partially read filesKeep one level deep
Time-sensitive contentBecomes wrong over timeUse "current" vs "legacy" sections
Magic numbers in scriptsAgent can't reason about valuesDocument why each value was chosen
Empty error handlingFailures become opaqueHandle errors explicitly with messages

Publishing

Once the skill is ready, publish it so others can install it:

  1. Push the skill directory to a GitHub repository
  2. Users install with: npx skills add owner/repo
  3. The skill appears on the skills.sh leaderboard via anonymous telemetry when installed
  4. To list without installing: npx skills add owner/repo --list

For multi-skill repos, place skills under a skills/ directory:

my-repo/
└── skills/
    ├── skill-one/
    │   └── SKILL.md
    └── skill-two/
        └── SKILL.md

Quick Reference: Spec Constraints

FieldMax LengthFormat
name64 chars[a-z0-9-], no leading/trailing/double hyphens
description1024 charsThird person, non-empty
compatibility500 charsOptional
SKILL.md body~500 linesMarkdown, no format restrictions
Reference depth1 levelFrom SKILL.md only

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35.49%
按下载量换算32

Claude

28.33%
按下载量换算26

Cursor

19.85%
按下载量换算18

Gemini CLI

8.33%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills