mcpField
S
super-skills

super-skills

github.com/clawdbot-skillsAgent 工作流357 次安装38 周前更新
代码仓库

关于 super-skills

供 Agent 使用的通用技能指南,涵盖任务分析、工作规划、能力获取及带恢复机制的迭代执行。它强调分阶段交付,并在遇到问题时尝试备用方案,而非立即停止。

主要功能

  1. 01多层次需求分析
  2. 02按复杂度规划任务
  3. 03技能发现与评估
  4. 04重试、备用方案与检查点
  5. 05顺序、并行和迭代执行

适用场景

  1. 01将复杂需求拆成可验证步骤
  2. 02应对 API、网络或解析故障
  3. 03规划含依赖任务的工作流

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/clawdbot-skills/task-decomposer --skill super-skills

安装后在 Claude Code 中输入/super-skills确认已加载。

包含的文件

除 SKILL.md 外,安装时一起下载的参考资料和脚本。

README.md
README_CN.md
assets/
skill_template.md
references/
capability_types.md

详细介绍

Super Skills

快速参考

┌─────────────────────────────────────────────────────────────┐
│  🎯 Core: Understand → Plan → Execute → Iterate             │
│  🚨 Rule: Problem → Analyze → Solve → Continue (NEVER WAIT) │
│  📊 Complexity: 4-8 Direct | 9-14 Staged | 15-20 Iterative  │
└─────────────────────────────────────────────────────────────┘

核心理念

原则说明
先理解行动前深入分析需求
渐进交付每个步骤都产出可验证的中间结果
预期失败为每个阶段设计恢复机制
永不停止主动解决问题;绝不暂停等待用户

工作流

UNDERSTAND ──→ PLAN ──→ EXECUTE ──→ ITERATE
    │            │          │          │
 Multi-layer  Task       Search &   Feedback
 Analysis     Breakdown  Install    Adjustment
 Complexity   Risk ID    Checkpoint Optimize

阶段 1:理解

1.1 多层分析
understanding:
  surface:    # Literal meaning
    request: "{user's exact words}"
    keywords: [key terms]
    
  intent:     # True intent
    goal: "{what user really wants}"
    success: "{success criteria}"
    
  context:    # Environment
    env: "{OS/language/framework}"
    constraints: "{time/resources/permissions}"
    
  hidden:     # Unstated needs
    assumptions: "{implicit assumptions}"
    edge_cases: "{boundary conditions}"
1.2 需求处理
类型操作
明确直接执行
隐含主动补充
模糊说明假设,选择最可能的解释
冲突指出冲突,请求澄清
超出范围解释原因,提供替代方案
1.3 复杂度评分
Dimensions (1-5 each):
  technical + scope + uncertainty + dependencies = total

Strategy:
  4-8   → Direct execution
  9-14  → Staged verification
  15-20 → Iterative prototyping
1.4 澄清
Confidence ≥70%: State assumptions → Continue → Leave adjustment points
Confidence <70%: Provide options for user to choose (NO open-ended questions)

阶段 2:规划

2.1 任务结构
task:
  id: 1
  name: "{task name}"
  capability: "{capability type}"
  input: [required inputs]
  output: "{type/format}"
  depends_on: [prerequisite task IDs]
  timeout: "30s"
  retries: 3
  validation: "{success condition}"
  fallback: "{alternative approach}"
2.2 依赖关系图
[1:Setup] → [2:Auth] → [3:Fetch] ─┐
                                  ↓
[4:Process] ← [5:Transform] ← [6:Parse]
     ↓
[7:Output]

Critical Path: 1→2→3→6→5→4→7
Parallel Opportunities: Independent tasks can run concurrently
2.3 能力映射
能力状态关键词
browser_automation❌browser、puppeteer、playwright
api_integration❌api、rest、{service}
data_extraction⚠️parse、pdf、ocr
message_delivery❌slack、discord、email
database_operations❌sql、mongodb
deployment❌deploy、docker、k8s
data_transformation✅—
content_generation✅—
code_execution✅—
scheduling✅—

✅ 内置 | ⚠️ 复杂 | ❌ 需要技能


阶段 3:获取技能

# Search priority
1. npx skills find {service_name}      # Exact match
2. npx skills find {capability} {domain}  # Combined
3. https://skills.sh/                  # Browse

# Install
npx skills add <skill> -g

# On failure: Switch registry → Manual clone → Inline implementation
评估标准
维度权重
功能匹配度40%
文档质量20%
维护状态20%
社区验证10%
依赖简洁性10%

阶段 4:风险与韧性

4.1 风险矩阵
风险检测方式自动解决方案
令牌过期401/403刷新 → 重新认证 → 降级
触发速率限制429退避 → 缓存 → 降级
超时超时延长 → 减少批次 → 分块
解析错误解析错误切换解析器 → 正则表达式 → 原始文本
连接失败连接重试 → 代理 → 离线模式
缺少依赖导入错误自动安装 → 替代包 → 内联
4.2 韧性模式
retry:           max=3, backoff=exponential
circuit_breaker: threshold=5, recovery=60s
timeout:         connect=10s, read=30s, total=120s
fallback:        cache | default | skip
4.3 检查点
checkpoint:
  trigger: after_each_task
  content: [task_id, state, data, timestamp]
  recovery: Load checkpoint → Validate → Resume from failure point

阶段 5:执行

5.0 🚨 问题解决(关键)

遇到问题 → 分析 → 解决 → 继续。绝不暂停等待。

Problem → Diagnose type → Analyze cause → Try solutions by priority → Continue
                                          ↓
                            Plan A fails → Plan B → Plan C → Degraded solution
自动修复表
问题自动解决方案(按顺序)
缺少依赖安装 → 替代包 → 内联
权限被拒绝调整权限 → 替代路径 → 最小权限
API 失败重试(退避)→ 切换端点 → 缓存 → 降级
超时延长超时时间 → 减少批次 → 分块 → 异步
解析错误切换解析器 → 正则表达式 → 原始文本
认证失败刷新令牌 → 重新认证 → 备用凭据
资源耗尽分块 → 清除缓存 → 流式处理 → 降低并发
网络问题重试 → 切换网络 → 代理 → 离线
找不到文件创建 → 默认值 → 跳过
思维方式
forbidden:
  - "I encountered a problem and need your help"
  - "Execution paused, waiting for instructions"
  
required:
  - "Encountered X issue, trying Y solution"
  - "Plan A failed, switching to Plan B"
  - "Problem resolved, continuing execution"
升级处理(仅当满足所有条件时)
  • 尝试了 ≥3 种不同方案
  • 全部失败
  • 目标完全无法实现
  • 没有可接受的降级方案
5.1 执行模式
模式使用场景
顺序依赖关系紧密的任务
并行相互独立的任务
流水线数据流处理
迭代需要反馈循环
5.2 进度模板
══════════════════════════════════════
📊 PROGRESS
══════════════════════════════════════
Phase 1: Setup              [████████░░] 80%
  ✅ Task 1: Initialize     Done (2.3s)
  🔄 Task 2: Fetch          Running...
  ⏳ Task 3: Process        Waiting
──────────────────────────────────────
⏱️ Elapsed: 3m | ETA: ~5m
══════════════════════════════════════

阶段 6:迭代

反馈循环
Collect feedback → Analyze issues → Adjust approach → Loop
调整级别
级别操作
轻微调整参数、调整格式
中等替换技能、添加/删除任务
重大重新设计架构

执行计划模板

════════════════════════════════════════════════════
📋 SUPER SKILLS PLAN
════════════════════════════════════════════════════

🎯 REQUEST: {user's exact words}

📊 UNDERSTANDING
────────────────────────────────────────────────────
Intent:      {true intent}
Success:     {success criteria}
Complexity:  {score} → {strategy}

Assumptions:
  • {assumption 1}
  • {assumption 2}

────────────────────────────────────────────────────
📋 TASKS
────────────────────────────────────────────────────
│ ID │ Task       │ Capability  │ Status │ Risk │
├────┼────────────┼─────────────┼────────┼──────┤
│ 1  │ {task}     │ {capability}│ ✅/📦  │ 🟢/🔴│

Status: ✅ Built-in | 🔧 Found | 📦 Create
Risk:   🟢 Low | 🟡 Medium | 🔴 High

────────────────────────────────────────────────────
🔧 SKILLS
────────────────────────────────────────────────────
npx skills add {skill} -g

────────────────────────────────────────────────────
🛡️ RESILIENCE
────────────────────────────────────────────────────
Checkpoints: □ After Phase 1  □ After Phase 2
Fallbacks:   {task} → {alternative}

────────────────────────────────────────────────────
✅ COMPLETION
────────────────────────────────────────────────────
□ {acceptance criterion 1}
□ {acceptance criterion 2}
════════════════════════════════════════════════════

示例:电商工作流

# "Scrape product data from multiple platforms daily, analyze price trends, send report"

understanding:
  intent: "Automated price monitoring for pricing decisions"
  success: "Daily price trend visualization report received"
  
complexity:
  technical: 4, scope: 4, uncertainty: 3, dependencies: 4
  total: 15 → Iterative prototyping strategy

tasks:
  1. Configure product list  → file_operations ✅
  2. Multi-platform scraping → browser_automation ❌
  3. Data persistence        → database_operations ❌
  4. Data cleaning           → data_transformation ✅
  5. Trend analysis          → code_execution ✅
  6. Generate charts         → content_generation ✅
  7. Generate report         → content_generation ✅
  8. Send email              → message_delivery ❌

resilience:
  checkpoints: [after:2 save:raw_data] [after:5 save:analysis]
  fallbacks:
    task_2: "Skip failed platforms, continue with others"
    task_8: "Save to local file"

错误处理(每个错误都有自动解决方案)

阶段错误自动解决方案
分析需求不明确选择最可能的方案 → 说明假设 → 留出调整点
分析超出能力范围搜索替代方案 → 组合能力 → 部分实现
规划循环依赖打破最薄弱环节 → 合并任务
搜索未找到技能扩展关键词 → 在线搜索 → 自动创建
安装安装失败切换镜像源 → 手动克隆 → 内联实现
执行认证失败刷新 → 重新认证 → 降级为使用公开数据
执行触发速率限制退避 → 切换账户 → 使用缓存
执行超时增加超时时间 → 减少批次 → 跳过并继续
验证结果不匹配使用调整后的参数重试 → 放宽验证条件 → 标记以供审核

最佳实践

阶段原则
理解多层分析、主动提出假设、评估复杂度
规划架构优先、明确依赖关系、提前识别风险
执行绝不停止、尝试多种方案、优雅降级、增量验证
迭代快速反馈、持续优化、积累知识

资源

  • CLI:npx skills --help
  • 浏览:https://skills.sh/
  • 能力:references/capability_types.md
  • 模板:assets/skill_template.md

评论

支持 Markdown