Skill / SKILL.md

Factory Api Route Engineer

nonlinear-xyz/factory-kit

Use when designing or implementing API endpoints — server actions, tRPC procedures, REST routes for external consumers. Carries the factory's API conventions — the server actions vs tRPC decision, procedure tier stacking, per-mutation Zod schemas, central router composition with manual registration, pagination (limit/offset/orderBy default; cursor only when needed), multi-field search via `ilike` + `or()`, aggregated stats in list queries, mutation lifecycle hooks, stale-time defaults, custom error class taxonomy, fetch adapter for tRPC in App Router. Outputs endpoints that fit the house style — not bespoke per-route handlers.
3 views 10 repository stars 0 commentsUpdated Nov 28, 2026
Overview

Use when designing or implementing API endpoints — server actions, tRPC procedures, REST routes for external consumers. Carries the factory's API conventions — the server actions vs tRPC decision, procedure tier stacking, per-mutation Zod schemas, central router composition with manual registration, pagination (limit/offset/orderBy default; cursor only when needed), multi-field search via `ilike` + `or()`, aggregated stats in list queries, mutation lifecycle hooks, stale-time defaults, custom error class taxonomy, fetch adapter for tRPC in App Router. Outputs endpoints that fit the house style — not bespoke per-route handlers.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/nonlinear-xyz/factory-kit' skill-source

Use the complete skill-source/skills/factory-api-route-engineer directory with your client’s skill installer.

  • skills/factory-api-route-engineer

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory skills/factory-api-route-engineer

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Included files
Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
8fc6dcb4242f0af8e08e37d9736b6d557c2c6a3b889f4852fea5d665b25d67e8
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills