$workflow.input.user_intent/skills/domain-skill-design/SKILL.md
# domain-skill-design **用途**: 设计领域专用的 Skills(区别于 Core Skills) **输入**: - Workflows 列表(需要什么能力) - 系统结构(数据在哪) - 领域特点(health / finance / learning...) **输出**: Skills 列表及其规格说明 --- ## 核心原则 1. **基于 Workflow 需求** - Skill 是为了支撑 Workflow 2. **单一职责** - 每个 Skill 只做一件事 3. **可复用** - 在不同 Workflow 中复用 4. **明确输入输出** - 参数清晰 5. **可评价** - 每个 Skill 都要有评价标准 --- ## 输入格式 ```yaml input: workflows: # Workflow 列表 - name: string steps: array # 步骤描述 required_skills:
npx skillsauth add maxoreric/sop-engine $workflow.input.user_intent/skills/domain-skill-designInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
用途: 设计领域专用的 Skills(区别于 Core Skills)
输入:
输出: Skills 列表及其规格说明
input:
workflows: # Workflow 列表
- name: string
steps: array # 步骤描述
required_skills: array # 需要的能力
structure: # 系统结构
data_locations: object # 数据在哪
output_locations: object # 产出在哪
domain: string # 领域
requirements: object # 需求细节
output:
skills: # Skills 列表
- name: string # Skill 名称(kebab-case)
purpose: string # 用途
input: object # 输入参数
output: object # 输出
dependencies: array # 依赖的 Core Skills
complexity: string # 复杂度(simple/medium/complex)
priority: string # 优先级(high/medium/low)
# 实现提示
implementation_hints:
approach: string # 实现思路
key_logic: string # 核心逻辑
edge_cases: array # 边缘情况
# 评价维度
evaluation_dimensions:
- name: string
weight: number
criteria: string
def extract_required_skills(workflows):
"""
从 Workflow 步骤中提取需要的 Skills
"""
skills = set()
for workflow in workflows:
for step in workflow.steps:
# 识别动词 → 能力
if "collect" in step:
skills.add("data-collect-skill")
if "analyze" in step:
skills.add("analysis-skill")
if "generate" in step:
skills.add("generate-skill")
if "notify" in step:
skills.add("notify-skill")
return list(skills)
根据领域特点,细化通用能力为具体 Skills:
示例:健康管理系统
# 通用能力 → 领域 Skills
analyze →
- checkup-analysis-skill(体检报告分析)
- health-indicators-skill(健康指标分析)
- risk-assessment-skill(风险评估)
- trend-analysis-skill(趋势分析)
generate →
- daily-review-skill(生成每日总结)
- weekly-report-skill(生成每周报告)
- recommendation-skill(生成健康建议)
notify →
- notify-user-skill(通知用户)
- alert-skill(风险预警)
# 示例:checkup-analysis-skill
name: checkup-analysis-skill
purpose: 分析体检报告,提取关键指标和异常项
input:
report_path: string # 体检报告路径(PDF)
profile_path: string # 用户健康档案
history_path: string # 历史体检记录(可选)
output:
parsed_data: object # 解析后的结构化数据
abnormal_items: array # 异常指标
risk_factors: array # 风险因素
trends: object # 与历史对比的趋势
recommendations: array # 建议
dependencies:
- research-skill # 调研医学知识
- plan-skill # 规划分析步骤
complexity: complex # 复杂(需要 OCR + NLP + 医学知识)
priority: high # 高优先级(核心功能)
implementation_hints:
approach: |
1. 使用 OCR 提取 PDF 文本
2. 使用 NLP 识别指标名称和数值
3. 与标准范围对比,找出异常项
4. 结合历史数据,分析趋势
5. 基于医学知识,评估风险
key_logic: |
- OCR: pypdf + pytesseract
- NLP: 正则表达式 + 模式匹配
- 医学知识: 预定义的指标范围表
- 趋势分析: 简单统计(增长/下降)
edge_cases:
- 扫描件质量差,OCR 失败
- 不同医院的报告格式不同
- 某些指标缺失
- 用户没有历史记录
evaluation_dimensions:
- name: 提取准确度
weight: 40%
criteria: 指标和数值提取的正确率
- name: 异常识别准确度
weight: 30%
criteria: 异常指标识别的准确率
- name: 建议合理性
weight: 20%
criteria: 建议是否科学、可行
- name: 鲁棒性
weight: 10%
criteria: 处理各种格式和边缘情况的能力
有些 Skills 可以在多个 Workflow 中复用:
# 复用示例
notify-user-skill:
used_in:
- daily-check workflow
- weekly-report workflow
- checkup-analysis workflow
# 通用设计
input:
message: string
priority: string (normal/high/urgent)
channel: string (file/email/...)
output:
notified: boolean
timestamp: string
workflows:
- name: daily-check
steps:
- collect_today_data
- analyze_indicators
- generate_report
- notify_user
required_skills:
- data-collect-skill
- health-indicators-skill
- daily-review-skill
- notify-user-skill
- name: weekly-report
steps:
- aggregate_week_data
- analyze_trends
- generate_insights
- notify_user
required_skills:
- data-collect-skill
- trend-analysis-skill
- weekly-report-skill
- notify-user-skill
- name: checkup-analysis
steps:
- parse_report
- compare_history
- assess_risks
- generate_recommendations
required_skills:
- checkup-analysis-skill
- risk-assessment-skill
- recommendation-skill
- notify-user-skill
structure:
data_locations:
profile: data/profile/profile.json
indicators: data/indicators/{date}.json
checkups: data/checkups/
output_locations:
reports: outputs/reports/
domain: health
focus: disease_prevention
skills:
# ────────────────────────────────────
# 数据相关
# ────────────────────────────────────
- name: data-collect-skill
purpose: 收集和聚合数据
complexity: simple
priority: high
input:
date: string
sources: array
output:
collected_data: object
dependencies: []
# ────────────────────────────────────
# 分析相关
# ────────────────────────────────────
- name: checkup-analysis-skill
purpose: 分析体检报告
complexity: complex
priority: high
input:
report_path: string
profile_path: string
output:
parsed_data: object
abnormal_items: array
risk_factors: array
dependencies:
- research-skill
implementation_hints:
approach: "OCR + NLP + 医学知识库"
key_logic: "pypdf + pytesseract + 规则引擎"
edge_cases:
- "不同医院格式"
- "扫描质量差"
evaluation_dimensions:
- name: 提取准确度
weight: 40%
- name: 异常识别准确度
weight: 30%
- name: health-indicators-skill
purpose: 分析每日健康指标
complexity: medium
priority: high
input:
indicators: object
profile: object
output:
analysis: object
alerts: array
dependencies: []
- name: risk-assessment-skill
purpose: 评估健康风险
complexity: medium
priority: high
input:
indicators: object
checkup_data: object
profile: object
output:
risk_level: string
risk_factors: array
suggestions: array
dependencies:
- research-skill
- name: trend-analysis-skill
purpose: 分析健康指标趋势
complexity: medium
priority: medium
input:
historical_data: array
timeframe: string
output:
trends: object
insights: array
dependencies: []
# ────────────────────────────────────
# 报告生成相关
# ────────────────────────────────────
- name: daily-review-skill
purpose: 生成每日健康总结
complexity: simple
priority: high
input:
analysis: object
date: string
output:
report: string (Markdown)
dependencies: []
- name: weekly-report-skill
purpose: 生成每周健康报告
complexity: medium
priority: medium
input:
week_data: object
trends: object
output:
report: string (Markdown)
dependencies: []
- name: recommendation-skill
purpose: 生成健康建议
complexity: medium
priority: high
input:
analysis: object
risks: array
output:
recommendations: array
dependencies:
- research-skill
# ────────────────────────────────────
# 通知相关
# ────────────────────────────────────
- name: notify-user-skill
purpose: 通知用户
complexity: simple
priority: high
input:
message: string
priority: string
path: string (可选)
output:
notified: boolean
method: string
dependencies: []
implementation_hints:
approach: "第一版:写文件到 outputs/;后续扩展:邮件、Slack"
key_logic: "简单文件写入"
# 模式:collect → parse → validate → transform
- collect-skill: 收集原始数据
- parse-skill: 解析格式
- validate-skill: 验证数据
- transform-skill: 转换格式
# 模式:analyze → interpret → assess → recommend
- analyze-skill: 分析数据
- interpret-skill: 解释结果
- assess-skill: 评估风险
- recommend-skill: 生成建议
# 模式:aggregate → visualize → format → output
- aggregate-skill: 聚合信息
- visualize-skill: 可视化(可选)
- format-skill: 格式化
- output-skill: 输出
常见 Skills:
常见 Skills:
常见 Skills:
见 criteria.md
data-ai
# workflow-define-skill **用途**: 定义 Workflow(基于需求生成 Workflow YAML) **输入**: 需求、系统结构、Skills 列表 **输出**: Workflow YAML 定义 --- ## 核心原则 1. **基于需求驱动** - Workflow 服务于具体需求 2. **复用 Skills** - 优先使用已有的 Skills 3. **遵循规范** - 严格遵循 workflow-spec.md 4. **清晰命名** - Workflow 和节点名称自解释 5. **适度复杂** - 避免过度设计,保持简单 --- ## 输入格式 ```yaml input: requirement: # 需求描述 name: string # Workflow 名称 purpose: string # 用途 trigger: object # 触发
testing
Skill 版本管理的 Skill。当需要 A/B test、切换版本、回滚时触发。触发词:版本、version、A/B test、切换、回滚、promote。
development
# user-confirm-skill **用途**: 判别式确认 - 展示内容并获取用户反馈 **核心理念**: - 做选择题,不做填空题 - 人类擅长判别(喜不喜欢),不擅长生成(描述细节) - 展示具体方案,让用户说"对/不对" --- ## 输入参数 ```yaml input: content: object | string # 要确认的内容(方案、结果等) format: string # 展示格式(见下方) question: string # 确认问题 options: array # 可选:预定义的选项 ``` ### format 选项 | 格式 | 说明 | 适用场景 | |------|------|----------| | `visual_summary` | 可视化摘要(emoji + 结构化) | 展示设计方案 | | `file_list_with_summary` | 文件列表 + 功能说明 | 展示执行结果 | | `comp
data-ai
# system-create-skill **用途**: 创建一个完整的 System/Project **触发**: 当用户表达想要创建一个系统时(如:"创建一个健康管理系统") **核心理念**: - 人只说意图,AI 自己设计 - 做选择题,不做填空题 - 问最关键的一题(最大信息增益) --- ## Workflow 定义 这是一个完整的 Workflow,演示了: - 条件分支 - 循环迭代 - Workflow 嵌套 - 判别式交互 ```yaml workflow: name: system-create-skill description: 创建一个完整的 System/Project version: 1.0.0 input: user_intent: string # 用户的模糊意图 output: system_path: string # 创建的系统路径 summary: object # 系统摘要 # ===============================