Agent Skillsstacklok/toolhive-studio › skill-creator

skill-creator

GitHub

用于在 Claude Code、Codex 和 Cursor 中创建或修改 AI Agent 技能。指导用户定义技能名称、描述及元数据,并同步至各平台目录结构。

.claude/skills/skill-creator/SKILL.md stacklok/toolhive-studio

触发场景

创建新技能 添加代理能力 设置斜杠命令

安装

npx skills add stacklok/toolhive-studio --skill skill-creator -g -y
更多选项

非标准路径

npx skills add https://github.com/stacklok/toolhive-studio/tree/main/.claude/skills/skill-creator -g -y

不安装直接使用

npx skills use stacklok/toolhive-studio@skill-creator

指定 Agent (Claude Code)

npx skills add stacklok/toolhive-studio --skill skill-creator -a claude-code -g -y

安装 repo 全部 skill

npx skills add stacklok/toolhive-studio --all -g -y

预览 repo 内 skill

npx skills add stacklok/toolhive-studio --list

SKILL.md

Frontmatter
{
    "name": "skill-creator",
    "description": "Create new AI agent skills for Claude Code, Codex, and Cursor. Use when asked to create a skill, add a new agent capability, or set up a slash command."
}

Skill Creator

Create AI agent skills that work across Claude Code, Codex, and Cursor.

Workflow

  1. Claude is canonical - Always create/edit in .claude/skills/<name>/ first
  2. Replicate with CLI - Copy to .codex/skills/ and .cursor/skills/ using cp -r
  3. Format differences - Use sed only if agent-specific tweaks are needed (rare)

Directory Structure

.claude/skills/<skill-name>/
├── SKILL.md          # Required - instructions + metadata
├── references/       # Optional - supporting documentation
├── scripts/          # Optional - executable helpers
└── assets/           # Optional - templates, resources

.codex/skills/<skill-name>/   # Copy of Claude's
.cursor/skills/<skill-name>/  # Copy of Claude's

SKILL.md Format

---
name: skill-name # Required: lowercase, hyphens, max 64 chars
description: What it does... # Required: triggers auto-selection by agent
allowed-tools: Read, Grep, Bash # Optional: Claude-specific (ignored by others)
model: claude-opus-4-5-20251101 # Optional: Claude-specific (ignored by others)
---
# Skill Title

Instructions in markdown...

Required Fields

  • name: Lowercase with hyphens, must match directory name
  • description: Explains what the skill does and when to use it. Include keywords users would say to help the agent auto-select this skill.

Optional Fields (Claude-specific, ignored by other agents)

  • allowed-tools: Tools the agent can use without asking permission
  • model: Override the model for this skill
  • context: fork: Run in isolated subagent context

Creating a New Skill

  1. Ask the user what the skill should do
  2. Choose a descriptive name (lowercase, hyphens)
  3. Create the Claude skill:
    mkdir -p .claude/skills/<name>
    
  4. Write .claude/skills/<name>/SKILL.md with proper frontmatter
  5. Replicate to other agents:
    cp -r .claude/skills/<name> .codex/skills/
    cp -r .claude/skills/<name> .cursor/skills/
    

Modifying an Existing Skill

  1. Edit .claude/skills/<name>/SKILL.md (canonical source)
  2. Replicate changes:
    cp .claude/skills/<name>/SKILL.md .codex/skills/<name>/
    cp .claude/skills/<name>/SKILL.md .cursor/skills/<name>/
    

Best Practices

  • Keep skills focused on a single capability
  • Write clear descriptions with keywords for auto-discovery
  • Use references/ for lengthy documentation to keep SKILL.md concise
  • Test the skill by asking the agent to perform the task

版本历史

  • 12a6ab3 当前 2026-08-20 10:47

同 Skill 集合

.claude/skills/bug-fix-tdd/SKILL.md
.claude/skills/deep-links/SKILL.md
.claude/skills/security-vuln-remediation/SKILL.md
.claude/skills/skill-editor/SKILL.md
.claude/skills/testing-api-assertions/SKILL.md
.claude/skills/testing-api-overrides/SKILL.md
.claude/skills/testing-with-api-mocks/SKILL.md
.codex/skills/bug-fix-tdd/SKILL.md
.codex/skills/deep-links/SKILL.md
.codex/skills/security-vuln-remediation/SKILL.md
.codex/skills/skill-creator/SKILL.md
.codex/skills/skill-editor/SKILL.md
.codex/skills/testing-api-assertions/SKILL.md
.codex/skills/testing-api-overrides/SKILL.md
.codex/skills/testing-with-api-mocks/SKILL.md
.cursor/skills/bug-fix-tdd/SKILL.md
.cursor/skills/deep-links/SKILL.md
.cursor/skills/security-vuln-remediation/SKILL.md
.cursor/skills/skill-creator/SKILL.md
.cursor/skills/skill-editor/SKILL.md
.cursor/skills/testing-api-assertions/SKILL.md
.cursor/skills/testing-api-overrides/SKILL.md
.cursor/skills/testing-with-api-mocks/SKILL.md

元信息

文件数
0
版本
9d42989
Hash
38ee7f6d
收录时间
2026-08-20 10:47

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-16 23:37
浙ICP备14020137号-1