/ 目录 / 演练场 / wshobson skills
● 社区 wshobson ⚡ 即开即用

wshobson skills

作者 wshobson · wshobson/skills

精选的 Anthropic 格式 skill,涵盖测试、调试、重构和架构——agents repo 的成熟搭档。

wshobson/skills 是 agents 和 commands repo 的 skill 对应物。每个 skill 都是一份 SKILL.md(Anthropic skill 格式),对单一关注点给出深度指导:testing-strategy、refactor-safely、debug-systematically 等。由 Claude Code 按需加载,而非主动调用。

为什么要用

核心特性

实时演示

实际使用效果

就绪

安装

选择你的客户端

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "wshobson-skills-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/wshobson/skills",
        "~/.claude/skills/wshobson"
      ],
      "_inferred": true
    }
  }
}

打开 Claude Desktop → Settings → Developer → Edit Config。保存后重启应用。

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "wshobson-skills-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/wshobson/skills",
        "~/.claude/skills/wshobson"
      ],
      "_inferred": true
    }
  }
}

Cursor 使用与 Claude Desktop 相同的 mcpServers 格式。项目级配置优先于全局。

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "wshobson-skills-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/wshobson/skills",
        "~/.claude/skills/wshobson"
      ],
      "_inferred": true
    }
  }
}

点击 Cline 侧栏中的 MCP Servers 图标,然后选 "Edit Configuration"。

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "wshobson-skills-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/wshobson/skills",
        "~/.claude/skills/wshobson"
      ],
      "_inferred": true
    }
  }
}

格式与 Claude Desktop 相同。重启 Windsurf 生效。

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "wshobson-skills-skill",
      "command": "git",
      "args": [
        "clone",
        "https://github.com/wshobson/skills",
        "~/.claude/skills/wshobson"
      ]
    }
  ]
}

Continue 使用服务器对象数组,而非映射。

~/.config/zed/settings.json
{
  "context_servers": {
    "wshobson-skills-skill": {
      "command": {
        "path": "git",
        "args": [
          "clone",
          "https://github.com/wshobson/skills",
          "~/.claude/skills/wshobson"
        ]
      }
    }
  }
}

加入 context_servers。Zed 保存后热重载。

claude mcp add wshobson-skills-skill -- git clone https://github.com/wshobson/skills ~/.claude/skills/wshobson

一行命令搞定。用 claude mcp list 验证,claude mcp remove 卸载。

使用场景

实战用法: wshobson skills

卡住时应用系统化的调试流程

👤 已在 bug 上排查了三小时的开发者 ⏱ ~60 min intermediate

何时使用: 你已经猜了一个小时,需要结构化的方法。

前置条件
  • 已安装 skill — 克隆到 ~/.claude/skills/wshobson
步骤
  1. 触发 skill
    I'm stuck debugging a flaky test that fails on CI but passes locally. Apply your debug-systematically skill.✓ 已复制
    → skill 启动,询问复现步骤 + 最近的变更
  2. 跟随步骤
    Step through the bisect/log/instrument plan it gives you.✓ 已复制
    → 逐步捕获的输出
  3. 落地修复
    Once root cause confirmed, apply the fix and add a regression test.✓ 已复制
    → bug 已修复;CI 绿色

结果: 带有完整证据链记录的 bug 解决。

注意事项
  • 对简单 bug 的 skill 开销 — 明显的 bug 跳过 skill——在卡住超过 30 分钟时才使用
搭配使用: wshobson-agents-skill

为新功能设计测试策略

👤 规划迭代的技术负责人 ⏱ ~45 min intermediate

何时使用: 功能非平凡;你想正确地覆盖单元 + 集成 + e2e。

步骤
  1. 简报 skill
    Use testing-strategy. Feature: per-tenant data isolation in the API. Help me decide what to test where.✓ 已复制
    → 映射到功能的测试金字塔
  2. 实现测试脚手架
    Generate the scaffolding. Mark which tests are highest leverage.✓ 已复制
    → 带测试桩的文件

结果: 在设计评审中能够拍板的测试计划。

在不回归行为的前提下重构高流量函数

👤 接触关键代码路径的开发者 ⏱ ~90 min advanced

何时使用: 函数在关键路径上,一个 bug 就会影响客户。

步骤
  1. 用特征测试锁定行为
    Use refactor-safely. First write characterization tests around src/checkout.ts:processOrder.✓ 已复制
    → 锁定当前行为的测试
  2. 微步骤重构
    Now apply refactors one tiny step at a time, running tests after each.✓ 已复制
    → 每步的 diff 带绿色测试

结果: SRE 不会反对的重构。

搭配使用: wshobson-commands-skill

组合

与其他 MCP 搭配,撬动十倍杠杆

wshobson-skills-skill + wshobson-agents-skill

skill 定义如何做,agent 实际执行

wshobson-skills-skill + wshobson-commands-skill

命令用于快速触发,skill 用于更深入的指导

工具

此 MCP 暴露的能力

工具输入参数何时调用成本
debug-systematically bug description 卡住超过 30 分钟 0
testing-strategy feature spec 实现前 0
refactor-safely target 关键路径重构 0
review-architecture design doc 设计评审 0

成本与限制

运行它的成本

API 配额
不适用——本地
每次调用 Token 数
完全调用时较高(skill 是详细的指令块)
费用
免费(MIT 协议)
提示
skill 仅在触发时加载;不用担心空闲成本

安全

权限、密钥、影响范围

最小权限: filesystem-read
凭据存储:
数据出站: 无——纯 prompt

故障排查

常见错误与修复

skill 未自动触发

检查 SKILL.md 描述是否与用户请求语义匹配;如有假阴性,收紧描述

skill 在不需要时触发

将描述改得更具体;移除通用的触发词

长 skill 导致 token 费用增加

将 skill 正文精简到核心要点;skill 应该是清单,而非小说

替代方案

wshobson skills 对比其他方案

替代方案何时用它替代权衡
wshobson/agents (sibling)你想要 subagent 而非 skillsubagent 是显式调用的;skill 是自动触发的
obra/superpowers想要更小的精选 skill 集,有不同的理念覆盖少,品味更精

更多

资源

📖 阅读 GitHub 上的官方 README

🐙 查看未解决的 issue

🔍 浏览全部 400+ MCP 服务器和 Skills