技能设计师
- 作者仓库星标 1,568
- 作者仓库 claude-trading-skills
- 领域
- 设计与多媒体
- 作者声明的智能体
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 运行环境证据
- 未执行;当前没有隔离运行测试证据
- 作者 / 版本 / 许可证
- @tradermonty · 未声明许可证
- 上下文用量评级
- 低消耗
- 接入复杂程度
- 即装即用
- 是否需要外部接口密钥
- 不需要
- 兼容的系统
- 未声明(默认跨平台)
- 运行环境要求
- Python >=3.9
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- 网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
需要注意: 未声明工具权限范围;实际权限由运行环境决定。
第 1 步:准备创意规范
接受一个 JSON 文件 (`--idea-json`),其中包含: `title`:人类可读的想法名称 `description`:技能的用途 `category`:技能类别(例如,交易分析、开发人员工具) 接受将用作技能名称的规范化技能名称 (`--skill-name`)
第 2 步:构建设计提示
运行提示构建器: 脚本: 加载想法 JSON 读取所有三个参考文件(结构指南、质量检查表、模板) 列出现有技能(最多 20 个)以防止重复
第 3 步:向 Claude CLI 提供提示
调用管道将提示符传输到`claude -p`:
第 4 步:验证输出
Claude 创建技能后,验证: `skills/<skill-name>/SKILL.md` 存在并具有正确的 frontmatter 目录结构遵循约定 双轴技能评审员的分数满足阈值
# 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 . \
| 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)
章节与文件索引
按说明文件中的顺序排列。
概述
何时使用
先决条件
第 1 步:准备创意规范
第 2 步:构建设计提示
文件/命令 -> claude -p · references/ · --idea-json · title · description · category · --skill-name · name:
内容校验值 -> 7308f376b7a8
当前原文的自动摘译,尚未人工审校。
概述
根据结构化技能创意规范生成全面的 Claude CLI 提示。该提示指示 Claude 按照存储库约定创建完整的技能目录:带有 YAML frontmatter、参考文档、帮助程序脚本和测试脚手架的 SKILL.md。
何时使用
技能自动生成管道从待办事项中选择一个想法,并需要
claude -p的设计提示开发人员希望从 JSON 想法规范引导新技能对生成的技能进行质量审查需要了解评分标准先决条件
Python 3.9+ 不需要外部 API 密钥 参考文件必须存在于
references/下第 1 步:准备创意规范
接受一个 JSON 文件 (
--idea-json),其中包含:title:人类可读的创意名称description:技能的作用category:技能类别(例如,交易分析、开发人员工具) 接受将用作技能名称的规范化技能名称 (--skill-name)