All skills
davila7 avatar

/api-patterns

@1deb97c

API design principles and decision-making. REST vs GraphQL vs tRPC selection, response formats, versioning, pagination.

Use this Skill: https://skilld.dev/gh/davila7/claude-code-templates/api-patterns

This session only. Nothing lands on disk.

trpc.md

≈201 tokens on demand. Your agent reads this file only when SKILL.md points to it.

tRPC Principles

End-to-end type safety for TypeScript monorepos.

When to Use

✅ Perfect fit:
├── TypeScript on both ends
├── Monorepo structure
├── Internal tools
├── Rapid development
└── Type safety critical

❌ Poor fit:
├── Non-TypeScript clients
├── Public API
├── Need REST conventions
└── Multiple language backends

Key Benefits

Why tRPC:
├── Zero schema maintenance
├── End-to-end type inference
├── IDE autocomplete across stack
├── Instant API changes reflected
└── No code generation step

Integration Patterns

Common setups:
├── Next.js + tRPC (most common)
├── Monorepo with shared types
├── Remix + tRPC
└── Any TS frontend + backend

Source: SKILL.md on GitHub

1 warning16d5 checks · Risk SAFE
  • Gen Agent Trust Hub16d

    The skill provides comprehensive API design and security documentation along with a Python-based endpoint validator. It is generally well-constructed but contains a potential surface for indirect prompt injection because the validation script analyzes untrusted project files.

  • Socket16d

    No alerts

  • Snyk16d

    Risk: LOW · No issues

  • Runlayer7mo

    10/12 files flagged

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 1deb97c. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 13 hours ago.

Activeupdated 8 months ago
What it can do
Reads files Edits files
All 5 allowed tools
ReadWriteEditGlobGrep

README badge

README badge for davila7/claude-code-templates/api-patterns