一键导入
skill-creator
Create new skills following a structured 4-phase workflow. Use when you need to build reusable agent skills with proper validation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create new skills following a structured 4-phase workflow. Use when you need to build reusable agent skills with proper validation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Search academic paper repositories (arXiv, Semantic Scholar) for scholarly articles in physics, mathematics, computer science, quantitative biology, AI/ML, and related fields
Search arXiv preprint repository for papers in physics, mathematics, computer science, quantitative biology, and related fields
Guide for creating effective skills that extend agent capabilities with specialized knowledge, workflows, or tool integrations. Use this skill when the user asks to: (1) create a new skill, (2) make a skill, (3) build a skill, (4) set up a skill, (5) initialize a skill, (6) scaffold a skill, (7) update or modify an existing skill, (8) validate a skill, (9) learn about skill structure, (10) understand how skills work, or (11) get guidance on skill design patterns. Trigger on phrases like "create a skill", "new skill", "make a skill", "skill for X", "how do I create a skill", or "help me build a skill".
Synthesize findings from multiple research sources into coherent insights. Use when combining data from different sub-agents or research threads.
Structure and write comprehensive research reports with proper citations. Use when finalizing research findings into a formal report.
| name | skill-creator |
| description | Create new skills following a structured 4-phase workflow. Use when you need to build reusable agent skills with proper validation. |
A meta-skill for creating new skills using a structured 4-phase workflow. Based on SkillForge 4.0 principles but simplified for learning projects. This skill ensures quality, prevents duplicates, and promotes timeless, reusable skill designs.
Activate this skill in the following scenarios:
The skill creation process follows four distinct phases. Each phase must complete before proceeding to the next.
Phase 0 Phase 1 Phase 2 Phase 3
Discovery --> Requirements --> Specification --> Generation
& Triage Analysis Design & Validation
Purpose: Determine if a new skill is needed or if existing skills can be used/improved.
Before creating any skill, search the existing skill repository:
python3 [SKILLS_DIR]/skill-creator/scripts/discover_skills.py "keyword or description"
Or manually explore:
ls -la [SKILLS_DIR]/
grep -r "description:" [SKILLS_DIR]/*/SKILL.md
Based on the search results, determine the appropriate action:
| Decision | Condition | Action |
|---|---|---|
CREATE_NEW | No existing skill covers the need | Proceed to Phase 1 |
IMPROVE_EXISTING | Existing skill partially covers the need | Enhance the existing skill |
USE_EXISTING | Existing skill fully covers the need | Use the existing skill as-is |
Before proceeding, document your decision:
## Triage Decision: [CREATE_NEW | IMPROVE_EXISTING | USE_EXISTING]
### Skills Searched
- [skill-1]: [relevance assessment]
- [skill-2]: [relevance assessment]
### Rationale
[Why the decision was made]
### Gap Analysis (if CREATE_NEW)
[What capability is missing from existing skills]
Purpose: Deeply understand the skill requirements through structured analysis.
Identify both explicit and implicit requirements from the request:
Explicit Requirements (directly stated):
Implicit Requirements (inferred):
Analyze the skill through five complementary lenses:
"What is the fundamental problem this skill solves?"
Template:
Core Problem: [What fundamental need does this address?]
Essential Components: [What absolutely must be included?]
Assumptions Challenged: [What "obvious" things might be wrong?]
"How does this skill fit into the larger ecosystem?"
Template:
Upstream Dependencies: [What this skill needs]
Downstream Consumers: [What might use this skill]
System Integration Points: [How it connects to the broader system]
Potential Conflicts: [What might it interfere with?]
"If this skill fails, what went wrong?"
Imagine the skill failed completely. Work backward to identify potential failure modes:
Template:
Failure Mode 1: [Description]
- Cause: [Why this might happen]
- Prevention: [How to avoid it]
- Detection: [How to notice early]
Failure Mode 2: [Description]
- Cause: [Why this might happen]
- Prevention: [How to avoid it]
- Detection: [How to notice early]
"What limitations must this skill work within?"
Identify hard constraints (non-negotiable) and soft constraints (preferences):
Template:
Hard Constraints:
- [Constraint 1]: [Why it's mandatory]
- [Constraint 2]: [Why it's mandatory]
Soft Constraints:
- [Constraint 1]: [Why it's preferred]
- [Constraint 2]: [Why it's preferred]
Resource Limits:
- Time: [Execution time bounds]
- Tokens: [LLM token budget]
- External calls: [API limits]
"What 20% of features delivers 80% of the value?"
Prioritize ruthlessly:
Template:
High-Value Features (MUST HAVE):
1. [Feature]: [Value delivered]
2. [Feature]: [Value delivered]
Nice-to-Have Features (COULD HAVE):
1. [Feature]: [Marginal value]
2. [Feature]: [Marginal value]
Cut Features (WON'T HAVE):
1. [Feature]: [Why cut]
Rate the skill's expected longevity on a 1-10 scale:
| Score | Assessment | Action |
|---|---|---|
| 1-3 | Too specific/temporary | REJECT - Do not create skill |
| 4-5 | Needs abstraction | REVISE - Make more general |
| 6-7 | Good balance | APPROVE - Proceed with creation |
| 8-10 | Timeless pattern | EXEMPLARY - Document as template |
Scoring Criteria:
| Criterion | Low Score (1-3) | High Score (8-10) |
|---|---|---|
| Specificity | Tied to specific tool versions | Pattern-based, tool-agnostic |
| Reusability | Single project only | Cross-project applicable |
| Stability | Frequent changes expected | Core concepts unlikely to change |
| Scope | Narrow edge case | Common, recurring need |
| Dependencies | Many external dependencies | Minimal dependencies |
Assessment Template:
## Timelessness Assessment
| Criterion | Score (1-10) | Rationale |
|-----------|--------------|-----------|
| Specificity | [N] | [Why] |
| Reusability | [N] | [Why] |
| Stability | [N] | [Why] |
| Scope | [N] | [Why] |
| Dependencies | [N] | [Why] |
**Average Score**: [N]
**Decision**: [REJECT | REVISE | APPROVE | EXEMPLARY]
Purpose: Define the complete skill specification before implementation.
Create the skill metadata:
---
name: [lowercase-hyphen-case]
description: [Action-oriented description under 1024 chars, no angle brackets]
---
Naming Rules:
Description Rules:
<>)Plan the skill documentation structure:
# [Skill Name]
[Brief overview paragraph]
## When to Use This Skill
[Scenarios and trigger conditions]
## How to Use
[Step-by-step usage instructions]
### Basic Usage
[Minimal example]
### Advanced Usage
[Complex scenarios]
## Examples
[Practical examples with expected outputs]
## Best Practices
[Guidelines for effective use]
## Troubleshooting
[Common issues and solutions]
Identify 3-5 natural language phrases that should activate this skill:
### Trigger Phrases
1. "[Primary trigger phrase]"
2. "[Alternative phrasing]"
3. "[Another common request format]"
4. "[Domain-specific terminology]"
5. "[Abbreviated/shorthand version]"
Assess whether the skill needs supporting scripts:
| Skill Type | Scripts Needed | Examples |
|---|---|---|
| Process/Workflow | No | Synthesis, analysis methodologies |
| Tool Integration | Yes | API wrappers, search utilities |
| Validation/Testing | Yes | Linters, validators |
| Data Processing | Yes | Parsers, formatters |
If scripts are needed, specify:
Purpose: Create the skill artifacts and validate them.
Create the skill file using the template:
# Create skill directory
mkdir -p [SKILLS_DIR]/[skill-name]
# Create SKILL.md
# (Use the structured template from Phase 2)
SKILL.md Template:
---
name: [skill-name]
description: [Skill description]
---
# [Skill Title]
[Overview paragraph explaining what the skill does and its value]
## When to Use This Skill
[Detailed scenarios when this skill should be activated]
### Primary Use Cases
- **[Use case 1]**: [Description]
- **[Use case 2]**: [Description]
- **[Use case 3]**: [Description]
### Trigger Phrases
- "[Phrase 1]"
- "[Phrase 2]"
- "[Phrase 3]"
## How to Use
[Step-by-step instructions]
### Prerequisites
[Required setup or dependencies]
### Basic Usage
[Minimal working example]
### Step-by-Step Workflow
#### Step 1: [First Step]
[Instructions]
#### Step 2: [Second Step]
[Instructions]
#### Step 3: [Third Step]
[Instructions]
## Examples
### Example 1: [Simple Case]
[Detailed example with input and expected output]
### Example 2: [Complex Case]
[Detailed example showing advanced usage]
## Best Practices
1. **[Practice 1]**: [Explanation]
2. **[Practice 2]**: [Explanation]
3. **[Practice 3]**: [Explanation]
## Troubleshooting
### [Common Issue 1]
**Symptom**: [What the user observes]
**Solution**: [How to fix it]
### [Common Issue 2]
**Symptom**: [What the user observes]
**Solution**: [How to fix it]
## Related Skills
- [related-skill-1]: [How they relate]
- [related-skill-2]: [How they relate]
mkdir -p [SKILLS_DIR]/[skill-name]/scripts
# Create script with proper structure
Script Template:
#!/usr/bin/env python3
"""
[Script Name] - [Brief description]
Part of the [skill-name] skill.
"""
import argparse
import sys
def main():
parser = argparse.ArgumentParser(
description="[Script description]"
)
parser.add_argument(
"input",
help="[Input description]"
)
parser.add_argument(
"--option",
default="default",
help="[Option description]"
)
args = parser.parse_args()
# Implementation here
result = process(args.input, args.option)
print(result)
def process(input_value, option):
"""[Function description]"""
# Implementation
pass
if __name__ == "__main__":
main()
Validate the skill before deployment:
python3 [SKILLS_DIR]/skill-creator/scripts/validate_skill.py [SKILLS_DIR]/[skill-name]/SKILL.md
Validation Rules:
| Rule | Requirement | Error if Violated |
|---|---|---|
name | Lowercase, hyphen-case, ≤64 chars | "Invalid skill name format" |
description | ≤1024 chars, no angle brackets | "Description exceeds limit or contains invalid characters" |
| "When to Use" | Section must exist | "Missing required section: When to Use" |
| "How to Use" | Section must exist | "Missing required section: How to Use" |
| Frontmatter | Valid YAML syntax | "Invalid YAML frontmatter" |
Validation Output Example:
Validating: [skill-name]/SKILL.md
[PASS] YAML frontmatter is valid
[PASS] Name format: skill-name (23 chars)
[PASS] Description length: 156 chars
[PASS] No angle brackets in description
[PASS] "When to Use" section found
[PASS] "How to Use" section found
[PASS] At least one example provided
Validation Result: PASSED
Skill is ready for use.
Before finalizing, manually test the skill:
Here is a complete example of creating a simple skill using all four phases:
"Create a skill for generating meeting summaries from transcripts"
# Search existing skills
python3 scripts/discover_skills.py "meeting summary transcript"
Results: No existing skills found for meeting summaries.
Triage Decision: CREATE_NEW
Rationale: The data-synthesis skill handles general synthesis but lacks meeting-specific structure (action items, attendees, decisions).
Explicit Requirements:
Implicit Requirements:
Five Thinking Models Applied:
First Principles: Core problem is information extraction and organization from unstructured text.
Systems Thinking: Integrates with data-synthesis for multi-meeting analysis; outputs feed into task management systems.
Pre-Mortem:
Constraints:
Pareto (80/20):
Timelessness Score: 7/10 (APPROVE)
---
name: meeting-summarizer
description: Generate structured meeting summaries from transcripts. Use when you need to extract action items, decisions, and key discussion points from meeting records.
---
Sections: When to Use, How to Use, Summary Template, Examples, Best Practices
Trigger Phrases:
Scripts Needed: None (LLM-native processing)
Create skill:
mkdir -p [SKILLS_DIR]/meeting-summarizer
# Write SKILL.md content
Validate:
python3 scripts/validate_skill.py [SKILLS_DIR]/meeting-summarizer/SKILL.md
Output:
Validation Result: PASSED
Skill is ready for use.
Search existing skills to prevent duplicates.
python3 [SKILLS_DIR]/skill-creator/scripts/discover_skills.py "search query"
Options:
| Option | Description |
|---|---|
query | Search term (required) |
--path | Skills directory path (default: auto-detect) |
--verbose | Show detailed match information |
Validate skill structure and content.
python3 [SKILLS_DIR]/skill-creator/scripts/validate_skill.py path/to/SKILL.md
Options:
| Option | Description |
|---|---|
skill_path | Path to SKILL.md file (required) |
--strict | Enable strict validation mode |
--fix | Attempt to auto-fix minor issues |
Never skip Phase 0. Duplicate skills create confusion and maintenance burden.
Each model reveals different aspects. Skipping any leaves blind spots.
Follow the Single Responsibility Principle. One skill should do one thing well.
Abstract documentation without examples is hard to apply. Show, don't just tell.
Future maintainers need context. Explain reasoning behind design decisions.
If a skill scores below 6, abstract it further or reconsider if it should be a skill at all.
Always validate and manually test before declaring a skill complete.
Document what the skill does NOT handle to set clear expectations.
Skills with fewer dependencies are more portable and maintainable.
In six months, will you remember why you made certain choices? Document it.
Before finalizing any skill, verify:
Cause: Name contains uppercase letters, spaces, or special characters.
Solution: Use only lowercase letters, numbers, and hyphens. Example: my-skill-name
Cause: Description exceeds 1024 characters. Solution: Condense the description. Move detailed explanations to the skill body.
Cause: Skill is too specific to current tools or temporary needs. Solution: Abstract the skill to focus on patterns rather than implementations. If the score remains low, this may not be suitable as a reusable skill.
Cause: discover_skills.py cannot locate the skills directory.
Solution: Specify the path explicitly with --path [SKILLS_DIR]
Cause: Similar skill already exists.
Solution: Consider using IMPROVE_EXISTING decision instead of creating a new skill.