connect-query
Skill4 starsChanged 11 days agoMITView on GitHub
Build typed ConnectRPC data flows with Connect Query and Protobuf v2. Use for API calls, mutations, query hooks, transports, invalidation, or generated clients.
In this repository117 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- accessibilitySkill
- agent-watchdogSkill
- aipSkill
- animateSkill
- animation-performanceSkill
- animation-vocabularySkill
- ask-benSkill
- ask-sonnerSkill
- bazelSkill
- bend-lawsSkill
- blast-radiusSkill
- brain-dumpSkill
- break-uiSkill
- ci-fixesSkill
- codebase-designSkill
- codex-compatSkill
- codexSkill
- commit-push-prSkill
- create-verification-skillSkill
- demoSkill
- development-lifecycleSkill
- diagnosing-bugsSkill
- docsSkill
- dogfoodSkill
- domain-modelingSkill
- e2e-testingSkill
- effect-tsSkill
- effect-v3-to-v4Skill
- efficient-frontierSkill
- eli5Skill
- excalidraw-diagramSkill
- extend-harnessSkill
- frontend-invariantsSkill
- frontend-starter-kitSkill
- full-sendSkill
- gesturesSkill
- golang-reviewSkill
- golangSkill
- goSkill
- grillingSkill
- handoffSkill
- hook-auditSkill
- implement-specSkill
- improve-animationsSkill
- improve-codebase-architectureSkill
- improveSkill
- launchdarklySkill
- lie-detectorSkill
- maintain-verification-skillSkill
- make-pr-easy-to-reviewSkill
- mobile-nativeSkill
- plan-arbiterSkill
- plow-aheadSkill
- postgresqlSkill
- primeSkill
- productSkill
- protobufSkill
- prototypeSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Run /read-the-damn-docs before current ConnectRPC/Connect Query/Protobuf API guidance.
- Very specific: line 16
Prefer ConnectRPC transport over axios/fetch.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Run /read-the-damn-docs before current ConnectRPC/Connect Query/Protobuf API guidance.
Enforce
- In ConnectRPC files, ban raw TanStack
useQuery/useMutation; use Connect Query, exceptuseTransport/callUnaryMethod. invalidateQueries()needs a query key.- Prefer ConnectRPC transport over
axios/fetch. - Protobuf v2:
create(Schema), notnew Message();MessageShape/MessageInitShape, notPlainMessage/PartialMessage; no manual$typeName.
Escape: // allow: direct-query [reason].
Query discipline
- Define 2-3 semantic cache constants centrally;
Infinityonly when own invalidation is exclusive. QueryClient owns retry: retry network/5xx, never 4xx. - Hook
transform/selectreturns display-ready data and enforces page size; components do not parse. - Invalidate rather than refetch and always await it. Keys are service/method broad but cardinality-aware.
- Loader and hook use identical query keys; test parity to prevent double fetches.
- One hook per RPC; split multi-RPC pages. Mutation names end
Mutation, orWithToastwhen owning toasts. - Client protovalidate checks sent data, not server-validated responses.
- Proto optionals use
undefined, nevernull; unbounded lists use infinite query/load-more; polling usesrefetchInterval.
Editable query data: read writable derived state for local overrides and save/refetch handoff; keep server truth in the query cache.
Timestamp, Duration, Any, caches: REFERENCE.md. Install: SETUP.md.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

