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

  • Claude Code Examples — Official example projects and patterns from Anthropic 35.6k ★
  • Example Plugin — Reference implementation for plugin developers 14k ★
  • Check 1: Cache Exists? — CLAUDE_DIR="${CLAUDE_CONFIG_DIR:-$HOME/.claude}" CACHE_EXISTS=$(ls -d "$CLAUDE_DIR/plugins/cache/claude-hud" 2 10.9k ★

Full documentation available on GitHub

View Source Repository