/ Directory / Playground / wshobson commands
● Community wshobson ⚡ Instant

wshobson commands

by wshobson · wshobson/commands

60+ Claude Code slash commands — /commit, /review, /test, /docs, /refactor — kept consistent across projects.

wshobson/commands is a curated set of slash commands for Claude Code. Each command is a markdown file in ~/.claude/commands with a precise prompt + instructions. Run /commit to get a clean conventional-commits message based on the diff, /review for a structured PR review, etc. Pairs naturally with wshobson/agents.

Why use it

Key features

Live Demo

What it looks like in practice

ready

Install

Pick your client

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

Open Claude Desktop → Settings → Developer → Edit Config. Restart after saving.

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

Cursor uses the same mcpServers schema as Claude Desktop. Project config wins over global.

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

Click the MCP Servers icon in the Cline sidebar, then "Edit Configuration".

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

Same shape as Claude Desktop. Restart Windsurf to pick up changes.

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

Continue uses an array of server objects rather than a map.

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

Add to context_servers. Zed hot-reloads on save.

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

One-liner. Verify with claude mcp list. Remove with claude mcp remove.

Use Cases

Real-world ways to use wshobson commands

Get clean conventional commits without writing them

👤 Devs sloppy at commit hygiene ⏱ ~5 min beginner

When to use: You're shipping fast and your commit log looks like 'wip', 'fix', 'wip2'.

Prerequisites
  • Commands installed — git clone https://github.com/wshobson/commands ~/.claude/commands
Flow
  1. Stage your changes
    git add -p the relevant hunks (or full files).✓ Copied
    → Staged diff visible
  2. Generate the commit
    /commit✓ Copied
    → Conventional-style message proposed
  3. Review and ship
    Edit if needed, then git commit -m '...'✓ Copied
    → Clean log entry

Outcome: Commit log that doesn't shame you in PR descriptions.

Pitfalls
  • Auto-detected scope is wrong — Pass scope explicitly: /commit feat auth
Combine with: wshobson-agents-skill

Generate tests from your latest diff with /test

👤 Devs allergic to TDD but who do want coverage ⏱ ~15 min beginner

When to use: You shipped logic and now want post-hoc tests before PR.

Flow
  1. Run /test
    /test✓ Copied
    → Test file scaffolded covering the new logic
  2. Run them
    Run the test suite. Fix anything that fails.✓ Copied
    → Green tests

Outcome: Coverage you wouldn't have written manually.

Refactor a hot spot using /refactor with built-in safety prompts

👤 Devs who want refactors that don't break behavior ⏱ ~30 min intermediate

When to use: Function is gnarly; you want to clean up without regressing.

Flow
  1. Identify
    /refactor src/auth.ts:authenticate✓ Copied
    → Diff with rationale and test plan
  2. Verify
    Run tests after each step✓ Copied
    → Per-step verification

Outcome: Cleaner code, same behavior.

Combine with: wshobson-agents-skill

Combinations

Pair with other MCPs for X10 leverage

wshobson-commands-skill + wshobson-agents-skill

Commands trigger specific agents

/review pulls the code-reviewer agent automatically.✓ Copied
wshobson-commands-skill + wshobson-skills-skill

Commands as quick triggers, skills for deeper expertise

/test for fast generation; switch to skills/testing-strategy for design discussions.✓ Copied

Tools

What this MCP exposes

ToolInputsWhen to callCost
/commit type? scope? Before any git commit 0
/review (diff implied) Before opening PR 0
/test (diff implied) Coverage-on-demand 0
/refactor target Code cleanup 0
/docs target? After feature work 0

Cost & Limits

What this costs to run

API quota
N/A — local
Tokens per call
Per-command varies (small for /commit, larger for /refactor)
Monetary
Free (MIT)
Tip
Edit individual command markdowns to trim verbose templates

Security

Permissions, secrets, blast radius

Minimum scopes: filesystem-read filesystem-write
Credential storage: None
Data egress: None — pure prompts

Troubleshooting

Common errors and fixes

/command not recognized

Make sure file is in ~/.claude/commands/ with .md extension; restart Claude Code

Verify: List commands in chat with /
Argument parsing fails

Some commands expect positional args, some named — read the command file to confirm

Output format inconsistent

Each command has a fixed template; if drift, the model is overriding — ensure no global system prompt fights it

Alternatives

wshobson commands vs others

AlternativeWhen to use it insteadTradeoff
wshobson/agents (sibling)You want subagents not slash commandsDifferent invocation surface
Hesreallyhim/awesome-claude-codeYou want a curated awesome list of commands and skillsCatalog, not a runtime

More

Resources

📖 Read the official README on GitHub

🐙 Browse open issues

🔍 Browse all 400+ MCP servers and Skills