A

authoring-skills

by @vercelv
4.3(43)

用于在`.agents/skills/`目录下创建或修改代理技能。

content-authoringtechnical-writingweb-content-creationnext.js-documentationcms-integrationGitHub
安装方式
npx skills add vercel/next.js --skill authoring-skills
compare_arrows

Before / After 效果对比

1
使用前

在 `.agents/skills/` 目录下创建或修改 Agent 技能时,可能缺乏统一的规范和最佳实践,导致技能内容组织混乱、难以理解和维护,影响团队协作和技能复用。

使用后

通过 `authoring-skills` 技能,遵循明确的指导原则,创建结构清晰、内容详尽且易于维护的 Agent 技能,显著提高技能开发效率和长期可维护性。

SKILL.md

authoring-skills

Authoring Skills

Use this skill when creating or modifying agent skills in .agents/skills/.

When to Create a Skill

Create a skill when content is:

  • Too detailed for AGENTS.md (code templates, multi-step workflows, diagnostic procedures)

  • Only relevant for specific tasks (not needed every session)

  • Self-contained enough to load independently

Keep in AGENTS.md instead when:

  • It's a one-liner rule or guardrail every session needs

  • It's a general-purpose gotcha any agent could hit

File Structure

.agents/skills/
└── my-skill/
    ├── SKILL.md          # Required: frontmatter + content
    ├── workflow.md        # Optional: supplementary detail
    └── examples.md        # Optional: referenced from SKILL.md

Supported Frontmatter Fields

---
name: my-skill # Required. Used for $name references and /name commands.
description: > # Required. How Claude decides to auto-load the skill.
  What this covers and when to use it. Include file names and keywords.
argument-hint: '<pr-number>' # Optional. Hint for expected arguments.
user-invocable: false # Optional. Set false to hide from / menu.
disable-model-invocation: true # Optional. Set true to prevent auto-triggering.
allowed-tools: [Bash, Read] # Optional. Tools allowed without permission.
model: opus # Optional. Model override.
context: fork # Optional. Isolated subagent execution.
agent: Explore # Optional. Subagent type (with context: fork).
---

Only use fields from this list. Unknown fields are silently ignored.

Writing Descriptions

The description is the primary matching surface for auto-activation. Include:

  • What the skill covers (topic)

  • When to use it (trigger scenario)

  • Key file names the skill references (e.g. config-shared.ts)

  • Keywords a user or agent might mention (e.g. "feature flag", "DCE")

# Too vague - won't auto-trigger reliably
description: Helps with flags.

# Good - specific files and concepts for matching
description: >
  How to add or modify Next.js experimental feature flags end-to-end.
  Use when editing config-shared.ts, config-schema.ts, define-env-plugin.ts.

Content Conventions

Structure for Action

Skills should tell the agent what to do, not just what to know:

  • Lead with "Use this skill when..."

  • Include step-by-step procedures

  • Add code templates ready to adapt

  • End with verification commands

  • Cross-reference related skills in a "Related Skills" section

Relationship to AGENTS.md

AGENTS.md (always loaded) Skills (on demand)

One-liner guardrails Step-by-step workflows

"Keep require() behind if/else for DCE" Full DCE pattern with code examples, verification commands, edge cases

Points to skills via $name Expands on AGENTS.md rules

When adding a skill, also add a one-liner summary to the relevant AGENTS.md section with a $skill-name reference.

Naming

  • Short, descriptive, topic-scoped: flags, dce-edge, react-vendoring

  • No repo prefix (already scoped by .agents/skills/)

  • Hyphens for multi-word names

Supplementary Files

For complex skills, use a hub + detail pattern:

pr-status-triage/
├── SKILL.md         # Overview, quick commands, links to details
├── workflow.md      # Prioritization and patterns
└── local-repro.md   # CI env matching

Weekly Installs250Repositoryvercel/next.jsGitHub Stars138.3KFirst SeenFeb 17, 2026Security AuditsGen Agent Trust HubPassSocketPassSnykPassInstalled ongemini-cli239codex239github-copilot238opencode238kimi-cli235amp234

用户评价 (0)

发表评价

效果
易用性
文档
兼容性

暂无评价

统计数据

安装量1.1K
评分4.3 / 5.0
版本
更新日期2026年5月21日
对比案例1 组

用户评分

4.3(43)
5
33%
4
49%
3
16%
2
2%
1
0%

为此 Skill 评分

0.0

兼容平台

🔧Claude Code
🔧OpenClaw
🔧OpenCode
🔧Codex
🔧Gemini CLI
🔧GitHub Copilot
🔧Amp
🔧Kimi CLI

时间线

创建2026年3月17日
最后更新2026年5月21日