技能 设计
- 作者仓库星标 1,568
- 作者仓库 claude-trading-skills
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 namedescription: What the skill doescategory: 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:
- Loads the idea JSON
- Reads all three reference files (structure guide, quality checklist, template)
- Lists existing skills (up to 20) to prevent duplication
- 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.mdexists 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 conventionsreferences/quality-checklist.md-- Dual-axis reviewer 5-category checklist (100 points)references/skill-template.md-- SKILL.md template with YAML frontmatter and standard sectionsscripts/build_design_prompt.py-- Prompt builder script (CLI interface)
- 流狐分类
- 设计与多媒体
- 作者声明 Agent
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 作者 / 版本 / 许可
- @tradermonty · 未声明 license
- 流狐 Token 估算
- 低消耗
- 流狐接入估算
- 即装即用
- 是否需要外部 API Key
- 未发现要求
- 检测到的系统要求
- 未声明
- 底层运行要求
- Python >=3.9
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- 检测到的网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
# Step 4: Validate Output
- `skills/<skill-name>/SKILL.md` exists with correct frontmatter
- Directory structure follows conventions
- Score with dual-axis-skill-reviewer meets threshold Workflow
Accept a JSON file (--idea-json) containing: title: Human-readable idea name description: What the skill does
Run the prompt builder: The script: Loads the idea JSON
The calling pipeline pipes the prompt into claude -p:
After Claude creates the skill, verify: skills/<skill-name>/SKILL.md exists with correct frontmatter Directory structure follows conventions
# 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:
```bash
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`:
```bash
python3 skills/skill-designer/scripts/build_design_prompt.py \
--idea-json /tmp/idea.json \
--skill-name "my-new-skill" \
--project-root . \
… 作者原文负责流程事实;流狐只索引当前章节、要点、文件与命令。
章节 -> Overview → When to Use → Prerequisites → Workflow → Step 1: Prepare Idea Specification → Step 2: Build Design Prompt
要点 -> Generate a comprehensive Claude CLI prompt from a structured skill idea specification. · Accept a normalized skill name (--skill-name) that will be used as the directory name and YAML frontmatter name: field. · The script: 1. · The script outputs a plain-text prompt to stdout.
文件/命令 -> claude -p · references/ · --idea-json · title · description · category · --skill-name · name:
内容 SHA-256 -> 7308f376b7a8
方法与流程
适用与边界
原文中的明确线索
claude -p、references/、--idea-json、title、description、category、--skill-name、name: