setup-connect-query
CommunityEnforce ConnectRPC patterns and protobuf safety.
Authormalinskibeniamin
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Enforce ConnectRPC usage rules and protobuf v2 discipline across codebases to prevent unsafe patterns, promote type safety, and ensure consistent transport.
Core Features & Use Cases
- Enforces banning raw useQuery/useMutation from @tanstack/react-query when ConnectRPC patterns are in use, with allowances for useTransport/callUnaryMethod.
- Bans invalidateQueries() with empty args to require a specific queryKey scope.
- Warns on axios or fetch usage to steer teams toward ConnectRPC transport.
- Enforces protobuf v2 norms: ban new Message(), ban PlainMessage/PartialMessage, ban manual $typeName literals.
- Provides an Escape hatch via // allow: direct-query [reason], and points to SETUP.md/REFERENCE.md for deeper guidance.
- Intended for setup-time enforcement and code-review guardrails to lock in patterns before deployment.
Quick Start
Configure Claude to run the connect-query-check.sh PostToolUse hook during edits and writes.
Dependency Matrix
Required Modules
None requiredComponents
scriptsreferences
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: setup-connect-query Download link: https://github.com/malinskibeniamin/skills/archive/main.zip#setup-connect-query Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.