nesaminua

Claude Code Lsp Enforcement Kit — Development skill for Claude Code

Development community

Hooks that force Claude Code to use LSP instead of Grep for code navigation.

How to install Claude Code Lsp Enforcement Kit

This entry records only its repository, not the path inside it, so there is no exact command to give. Open nesaminua/claude-code-lsp-enforcement-kit and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Claude Code Lsp Enforcement Kit does

Hooks that force Claude Code to use LSP instead of Grep for code navigation. Saves ~80% tokens

Alternatives in Development

  • Serena — Code Intelligence Advanced code navigation and semantic search 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 ★
  • Semble — Fast and Accurate Code Search for Agents 6.1k ★

README

LSP Enforcement Kit

Physical enforcement of LSP-first navigation in Claude Code.
Stop burning tokens on Grep. Make Claude navigate code like an IDE — 100% of the time.

Release License Stars Claude Code compatible

Quick Start • Why • Savings • Architecture • Hooks • Changelog

LSP vs Grep token savings — 73% per week


In Action

When Claude tries to `Grep` for a code symbol, the hook blocks with a copy-pasteable LSP command:

⛔ LSP-FIRST BLOCK: Pattern contains code symbol(s) — use LSP instead
Symbols: handleSubmit, UserService

LSP tools:
  handleSubmit:
    mcp__cclsp__find_references("handleSubmit")  (cclsp)

  UserService:
    mcp__cclsp__find_workspace_symbols("UserService")  (cclsp)

When Claude tries to `Read` a code file without warming up LSP, the progressive gate blocks:

🛡️  LSP-FIRST READ GATE — G