Skip to content

Instantly share code, notes, and snippets.

@pfftdammitchris
Created January 15, 2026 16:46
Show Gist options
  • Select an option

  • Save pfftdammitchris/4a6f7e6fce297977944a1d7fffc84a0a to your computer and use it in GitHub Desktop.

Select an option

Save pfftdammitchris/4a6f7e6fce297977944a1d7fffc84a0a to your computer and use it in GitHub Desktop.
15 Miraculous AI Agent Strategies for Code Generation in 2026 - snippet-13.md

.claude/skills/create-api-endpoint.md

Create API Endpoint

When user says "create endpoint for {resource}":

  1. Create src/app/api/{resource}/route.ts
  2. Add Zod schema: src/schemas/{resource}.ts
  3. Add types: src/types/{resource}.ts
  4. Create test: __tests__/api/{resource}.test.ts
  5. Update docs: docs/api.md

[Include code templates for each file]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment