AgentSkillsCN

skill-spec-generator

为独立技能创作者生成结构化的技能规范。当被要求构思、头脑风暴或指定某个领域、工作流或问题空间的多个技能时使用。输出自包含的规范,带有列表级上下文,以便每个技能可以独立构建。触发词包括“哪些技能有助于 X”、“生成 Y 的技能创意”、“指定覆盖 Z 工作流的技能”。

SKILL.md
--- frontmatter
name: skill-spec-generator
description: Generate structured skill specifications for independent skill creators. Use when asked to ideate, brainstorm, or specify multiple skills for a domain, workflow, or problem space. Outputs self-contained specs with list-level context so each skill can be built independently. Triggers on requests like "what skills would help with X", "generate skill ideas for Y", "specify skills to cover Z workflow".

Skill Spec Generator

Generate a set of skill specifications that independent skill creators can implement without coordination. Each spec must be self-contained; list-level context explains how specs relate.

Process

1. Analyze Input

Inputs vary. Identify what's provided and what needs discovery:

Input TypeWhat to Extract
Domain descriptionCore workflows, tools, file types, pain points
Gap analysisExisting coverage, missing capabilities, overlap risks
Pain pointsRepetitive tasks, error-prone steps, knowledge gaps
Workflow descriptionSequential steps, decision points, variations
Existing skills listPatterns, naming conventions, granularity level

Ask clarifying questions only for critical ambiguities. Prefer generating specs with stated assumptions over excessive back-and-forth.

2. Identify Skill Boundaries

Good skill boundaries:

  • Single responsibility: One clear purpose, describable in one sentence
  • Natural triggers: Obvious when to use it (file type, task verb, domain term)
  • Standalone value: Useful even if other skills don't exist
  • Composable: Can combine with other skills without overlap

Watch for:

  • Skills too broad (should be split)
  • Skills too narrow (should be merged or dropped)
  • Overlapping triggers (will confuse skill selection)

3. Generate Specifications

For each skill, produce a spec block:

code
## Skill: [name]

**Description**: [Triggering description - what it does AND when to use it]

**Rationale**: [Why this skill is needed, what problem it solves]

**Example triggers**:
- "[example user request 1]"
- "[example user request 2]"

**Expected components**:
- scripts/: [what executable code, if any]
- references/: [what documentation, if any]
- assets/: [what templates/files, if any]

**Complexity**: [Low/Medium/High] - [brief justification]

**Dependencies**: [other skills from this list, or "None"]

**Notes for implementer**: [any non-obvious considerations, edge cases, or implementation hints]

Adjust detail level based on context:

  • Spec-only request → focus on description, rationale, triggers
  • Implementation-ready request → include full component breakdown
  • Prioritization request → add effort estimates and dependencies

4. Provide List-Level Context

Wrap the specs with framing that helps skill creators understand the set:

code
# Skill Specification Set: [theme/domain]

## Overview
[1-2 paragraphs: what domain this covers, why these skills were chosen, what workflows they enable]

## Coverage Map
[How these skills relate: sequential workflow? parallel options? layered capabilities?]
[Visual or textual representation of relationships]

## Priority Order
[Recommended implementation sequence with rationale]

## Gaps and Future Work
[What's intentionally excluded, what might be added later]

---

[Individual skill specs follow]

Output Principles

  1. Self-contained specs: Each spec should give an implementer everything they need. Don't assume they'll read other specs.

  2. Consistent granularity: Skills in a set should be roughly similar in scope. Don't mix "process all documents" with "add page numbers".

  3. Clear triggers: The description field is the primary trigger mechanism. Make it specific enough to fire correctly, broad enough to catch variants.

  4. Honest complexity: Skill creators need accurate effort estimates. A "Low" skill that actually takes a week erodes trust.

  5. Explicit relationships: If skills depend on or complement each other, state it. Don't make implementers discover this.

Anti-Patterns

  • Kitchen sink skills: Trying to do too much. Split them.
  • Orphan skills: Skills that only make sense with others. Either merge or make standalone.
  • Vague triggers: "Use for document tasks" - too broad, will misfire.
  • Assumed context: "Works with the output of skill X" without explaining what that output is.
  • Scope creep notes: "Could also do X, Y, Z" - either include it or don't.