← HUBCOMMUNITY/SKILLS
04 · SKILL LIBRARY · COPY + DROP IN

Skill patterns you can drop into Claude Code today.
Battle-tested. Documented.

Each skill is a copy-ready pattern — install command, config example, when to use, common gotchas. Drop one into ~/.claude/skills/ and it's instantly available across every project.

2 OF 12 SKILLS FULLY DOCUMENTED · 10 OUTLINED17% COMPLETE
live skills · ready to install

The two flagships — fully documented.

Both have install commands, full config, real use cases, and the gotchas I hit shipping them. New skill drops every 2-3 weeks until the library is complete.

SKILL 01 · CLAUDE CODE · v1.2

Hooks — event-triggered shell automation

Run shell commands automatically when Claude Code events fire. Auto-lint after Write, audit log every Bash, block git push without a checklist pass — the rules enforce themselves, no AI judgment needed.

SIZE · 2.4 KB
LOADS · 47×
STATUS · READY
EVENTS
5 supported
DEPENDENCIES
None · shell only
SCOPE
User OR project

What it does

Hooks are shell commands that fire on Claude Code events: PreToolUse, PostToolUse, Notification, Stop, SubagentStop. The hook runs OUTSIDE the AI's context — meaning rules are enforced without burning tokens or relying on the model "remembering."

When to use

  • Auto-format / lint on every write — never forget to run Prettier again
  • Audit log every Bash call — append to a file Claude can't tamper with
  • Brand enforcement on Write — scan for forbidden patterns (emojis, wrong casing) before commit
  • Block dangerous commands — refuse git push --force via PreToolUse
  • Notification routing — pipe to terminal-notifier, Slack, or your DND

Install

Hooks live in .claude/settings.json at user level (~/.claude/) or project level. Project-level wins on conflicts.

// .claude/settings.json — auto-lint HTML after every Write/Edit
{
  "hooks": {
    "PostToolUse": [{
      "matcher": "Write|Edit",
      "hooks": [{
        "type": "command",
        "command": "~/scripts/lint-html.sh \"$CLAUDE_FILE_PATH\""
      }]
    }]
  }
}

Available variables in hook commands

  • $CLAUDE_FILE_PATH — the file being touched (Write/Edit)
  • $CLAUDE_TOOL_NAME — name of the tool that triggered
  • $CLAUDE_PROJECT_DIR — the project root

Real example: brand enforcement

// reject the Write if file contains emojis or "AIOPSFORGE" lowercase
{
  "hooks": {
    "PreToolUse": [{
      "matcher": "Write|Edit",
      "hooks": [{
        "type": "command",
        "command": "~/scripts/brand-check.sh",
        "exitOnError": true
      }]
    }]
  }
}
GOTCHA Hook commands run with your shell's PATH — make sure scripts are chmod +x and use absolute paths inside. If a hook fails, Claude shows the error inline but doesn't block on it unless you set exitOnError: true.
SKILL 02 · CLAUDE CODE · v1.1

MCP Servers — plugins for Claude

The Model Context Protocol gives Claude Code structured access to external tools, data, and services. Already have GitHub, Playwright, Gmail, Drive, Obsidian configured — and you can build custom MCP servers in 50 lines of code.

SIZE · 3.1 KB
LOADS · 31×
STATUS · READY
TRANSPORTS
stdio · HTTP · SSE
RUNTIME
Any · npm · python · go
SCOPE
Per-project or global

What it does

MCP servers are standalone programs that expose tools, resources, and prompts to Claude over a structured protocol. Anthropic ships official servers (filesystem, brave-search, fetch); the community builds anything else. Claude Code connects via claude mcp add and the tools appear in its tool list.

When to use

  • Bring private data into Claude — your Notion, Obsidian vault, internal docs
  • Connect to APIs — Gmail, Linear, Stripe, Vercel, Whop, custom internal
  • Add specialized capabilities — browser automation (Playwright), local file ops, DB queries
  • Avoid prompt-bloating Claude — MCP serves data on demand, not pre-loaded

Install an existing server

# Add via Claude CLI
$ claude mcp add brave-search -- npx @modelcontextprotocol/server-brave-search

# List configured
$ claude mcp list

# Remove
$ claude mcp remove brave-search

Build a custom MCP server (Node.js · stdio)

// my-mcp/server.js
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp';
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio';

const server = new McpServer({ name: 'my-tools', version: '1.0.0' });

server.tool('get_today_stats', 'Return today\'s ops stats', {}, async () => {
  const data = await fetch('https://api.internal/stats/today').then(r => r.json());
  return { content: [{ type: 'text', text: JSON.stringify(data) }] };
});

const transport = new StdioServerTransport();
await server.connect(transport);

Then register: claude mcp add my-tools -- node /abs/path/to/my-mcp/server.js

GOTCHA Some MCP transports wedge silently after the first tool call in a session — subsequent calls hang >60s with no error. Fix: /mcp to reconnect. If it happens repeatedly with the same server, file the issue upstream + temporarily switch to HTTP transport.

10 more skills · queued

What's coming.

Each will follow the same documentation pattern — what it does, when to use, install command, real example, gotchas. New skill drops every 2-3 weeks.

03
Sub-agents · parallel work
Spawn specialized agents (Explore, Plan, general-purpose) for parallel codebase audits + content generation
NEXT
04
Headless mode · CLI automation
claude -p for cron-driven tasks, JSON output piping, batch processing
NEXT
05
Slash commands & custom skills
Build your own /my-skill · frontmatter, scope, user-invocable flag
DRAFT
06
CLAUDE.md hierarchy
User · project · subdir cascading. When to put what where. Conflicts + overrides.
DRAFT
07
Permissions & tool allowlists
Cut prompt fatigue · pattern-based allow/deny · CI-safe configurations
SOON
08
Vercel cron + serverless workflows
The code-first automation pattern · replacing n8n/Make with Claude API on Vercel cron
SOON
09
Cursor rules — operator-grade
For Cursor users · how to structure rules, what to put in .cursorrules
SOON
10
v0 + Lovable workflows
When to use which · handoff patterns from v0/Lovable to production code
SOON
11
Git worktrees in Claude Code
Background-session isolation · parallel features without checkout-juggling
SOON
12
Cost & token observability
Track per-session spend · alerts · prompt-caching wins · model picking by cost
SOON