kylesnowschwartz

Prompt Intercept Pattern — Development skill for Claude Code

Development community

Example: echo arguments back without an API call.

How to install Prompt Intercept Pattern

Installs to ~/.claude/skills/kylesnowschwartz-prompt-intercept-pattern-prompt-intercept-pattern/SKILL.md

Terminal
mkdir -p ~/.claude/skills/kylesnowschwartz-prompt-intercept-pattern-prompt-intercept-pattern && curl -fsSL https://raw.githubusercontent.com/kylesnowschwartz/prompt-intercept-pattern/HEAD/commands/prompt-intercept-pattern.md -o ~/.claude/skills/kylesnowschwartz-prompt-intercept-pattern-prompt-intercept-pattern/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

What Prompt Intercept Pattern does


name: prompt-intercept-pattern description: "Example: echo arguments back without an API call" argument-hint: "[message]" disable-model-invocation: true

This command is handled by a UserPromptSubmit hook. If you see this text, the hook did not intercept the prompt.

Alternatives in Development

  • Check 1: Cache Exists? — CLAUDE_DIR="${CLAUDE_CONFIG_DIR:-$HOME/.claude}" CACHE_EXISTS=$(ls -d "$CLAUDE_DIR/plugins/cache/claude-hud" 2 10.9k ★
  • Mcporter — Call MCPs via TypeScript, masquerading as simple TypeScript API 4.1k ★
  • Claude Desktop Buddy — Reference and an example for the Bluetooth API for makers in Claude Cowork & Claude Code Desktop 2.5k ★

Full documentation available on GitHub

View Source Repository