跳到主要内容
知仓学习社ZHICANG

skill-designer

Design new Claude skills from structured idea specifications. Use when the skill auto-generation pipeline needs to produce a Claude CLI prompt that …

不碰外部(只输出文字)无严重或高危命中tradermonty/claude-trading-skills

它会碰到什么

扫了多少8 个文本文件,16 KB
它会碰到什么不碰外部(只输出文字)
命中总数0 处
命中统计严重 0 · 高 0 · 中 0 · 低 0

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

Skill Designer

Overview

Generate a comprehensive Claude CLI prompt from a structured skill idea

specification. The prompt instructs Claude to create a complete skill directory

following repository conventions: SKILL.md with YAML frontmatter, reference

documents, helper scripts, and test scaffolding.

When to Use

  • The skill auto-generation pipeline selects an idea from the backlog and needs

a design prompt for claude -p

  • A developer wants to bootstrap a new skill from a JSON idea specification
  • Quality review of generated skills requires awareness of the scoring rubric

Prerequisites

  • Python 3.9+
  • No external API keys required
  • Reference files must exist under references/

Workflow

Step 1: Prepare Idea Specification

Accept a JSON file (--idea-json) containing:

  • title: Human-readable idea name
  • description: What the skill does
  • category: Skill category (e.g., trading-analysis, developer-tooling)

Accept a normalized skill name (--skill-name) that will be used as the

directory name and YAML frontmatter name: field.

Step 2: Build Design Prompt

Run the prompt builder:

python3 skills/skill-designer/scripts/build_design_prompt.py \
  --idea-json /tmp/idea.json \
  --skill-name "my-new-skill" \
  --project-root .

The script:

  1. Loads the idea JSON
  2. Reads all three reference files (structure guide, quality checklist, template)
  3. Lists existing skills (up to 20) to prevent duplication
  4. Outputs a complete prompt to stdout

Step 3: Feed Prompt to Claude CLI

The calling pipeline pipes the prompt into claude -p:

python3 skills/skill-designer/scripts/build_design_prompt.py \
  --idea-json /tmp/idea.json \
  --skill-name "my-new-skill" \
  --project-root . \
| claude -p --allowedTools Read,Edit,Write,Glob,Grep

Step 4: Validate Output

After Claude creates the skill, verify:

  • skills/<skill-name>/SKILL.md exists with correct frontmatter
  • Directory structure follows conventions
  • Score with dual-axis-skill-reviewer meets threshold

Output Format

The script outputs a plain-text prompt to stdout. Exit code 0 on success,

1 if required reference files are missing.

Resources

  • references/skill-structure-guide.md -- Directory structure, SKILL.md format, naming conventions
  • references/quality-checklist.md -- Dual-axis reviewer 5-category checklist (100 points)
  • references/skill-template.md -- SKILL.md template with YAML frontmatter and standard sections
  • scripts/build_design_prompt.py -- Prompt builder script (CLI interface)

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。