/ 目錄 / 演練場 / mattpocock/skills
● 社群 mattpocock ⚡ 即開即用

mattpocock/skills

作者 mattpocock · mattpocock/skills

Matt Pocock's personal .claude directory — opinionated TypeScript, testing, and workflow skills straight from a TS OG.

Matt Pocock (TypeScript educator, creator of Total TypeScript) published his personal Claude Code skills directory. Includes TS-specific patterns, testing philosophy, refactoring patterns, and workflow opinions. Not a generic bundle — it's one engineer's actual setup.

為什麼要用

核心特性

即時演示

實際使用效果

就緒

安裝

選擇你的客戶端

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

開啟 Claude Desktop → Settings → Developer → Edit Config。儲存後重啟應用。

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

Cursor 使用與 Claude Desktop 相同的 mcpServers 格式。專案級設定優先於全域。

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

點擊 Cline 側欄中的 MCP Servers 圖示,然後選 "Edit Configuration"。

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

格式與 Claude Desktop 相同。重啟 Windsurf 生效。

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

Continue 使用伺服器物件陣列,而非映射。

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

加入 context_servers。Zed 儲存後熱重載。

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

一行命令搞定。用 claude mcp list 驗證,claude mcp remove 移除。

使用場景

實戰用法: mattpocock/skills

Apply Matt's TS patterns to an existing project

👤 TypeScript devs upgrading code quality ⏱ ~90 min intermediate

何時使用: Your project has anys and shrug-worthy types and you want a principled cleanup.

前置條件
  • Skills installed — git clone https://github.com/mattpocock/skills ~/.claude/skills/mattpocock
步驟
  1. Scan
    Use mattpocock/ts-review. Scan /src and list every any, every unsafe cast, every type hole. Group by file.✓ 已複製
    → Itemized findings, not a summary
  2. Fix with principles
    Fix the top 20, narrowest fix per case. Respect Matt's "prefer inference" rule — don't explicit-annotate what TS can infer.✓ 已複製
    → Minimal diffs, type-safety gained
  3. Check
    Run tsc --noEmit. Any regressions?✓ 已複製
    → Clean compile or precisely-scoped remaining items

結果: A measurably more type-safe codebase following a principled methodology.

注意事項
  • Skill applies Matt's opinions where your team disagrees (e.g. interface vs type) — Override with "skip the interface-vs-type conversion, keep existing style"
搭配使用: filesystem

Build a feature test-first, Matt's way

👤 Devs adopting a more test-forward workflow ⏱ ~60 min intermediate

何時使用: You have a new feature to build and want to try test-first with modern TS tooling.

步驟
  1. Write the test
    Use mattpocock/test-first. I want to add a parseInvoice function. Write the test (vitest, integration-over-unit bias) before any impl.✓ 已複製
    → Failing test with realistic fixtures
  2. Implement
    Now the minimal implementation. Type-safe, no any.✓ 已複製
    → Green test with clean types
  3. Refactor
    Apply refactor patterns from the skill — extract helpers if they earn it, no premature abstraction.✓ 已複製
    → Refactor only where the skill's criteria are met

結果: A test suite that tests behavior, an impl that satisfies it, and restraint on the refactor.

注意事項
  • Opinions collide with team's existing Jest setup — Ask the skill to adapt — it's opinionated but can be reoriented
搭配使用: filesystem

組合

與其他 MCP 搭配,撬動十倍槓桿

mattpocock-skills-skill + filesystem

Apply to a full repo

Run ts_review over the whole /src tree and report.✓ 已複製
mattpocock-skills-skill + github

Open a PR per review

For the top 3 cleanups, create one PR each with a clear description.✓ 已複製

工具

此 MCP 暴露的能力

工具輸入參數何時呼叫成本
ts_review path TS-specific audit 0
test_first feature_spec Starting a new feature 0
refactor_with_types path, goal Type-preserving refactor 0

成本與限制

運行它的成本

API 配額
N/A
每次呼叫 Token 數
Review-heavy — budget for big reads on large codebases
費用
Free
提示
Scope by directory first; don't scan everything

安全

權限、密鑰、影響範圍

最小權限: filesystem-read
憑證儲存: None
資料出站: None

故障排查

常見錯誤與修復

Skill feels too opinionated

That's the point — override specific opinions in your prompt, or fork and edit

Recommendations conflict with team style

Share the output with the team; use it as a discussion starter, not a mandate

Doesn't know my niche library

Skills are TS-general — prepend your library's docs to the context

替代方案

mattpocock/skills 對比其他方案

替代方案何時用它替代權衡
Your team's linter configYou need CI-level enforcement, not interactive reviewNo LLM reasoning, no refactor help
Biome / ESLint with typescript-eslintWant rules-based, deterministicDoesn't explain its reasoning the way Matt's skills do

更多

資源

📖 閱讀 GitHub 上的官方 README

🐙 查看未解決的 issue

🔍 瀏覽全部 400+ MCP 伺服器和 Skills