saas-dev:backend-wirer

Generate Express routes, Drizzle schemas, and migrations from a BackendSpec.

1|Updated Mar 11, 2026
One-click install
npx skills add https://github.com/antonyfmunoz/OS --skill saas-dev-backend-wirer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: saas-dev:backend-wirer
Source: https://github.com/antonyfmunoz/OS/tree/main/skills/saas-dev-skill/.claude/skills/saas-dev/skills/backend-wirer
Command: npx skills add https://github.com/antonyfmunoz/OS --skill saas-dev-backend-wirer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires supertest.

What problem does it solve?

It eliminates the manual, error-prone process of translating BackendSpec definitions into real backend code by automatically generating Express routes, Drizzle schemas, storage functions, and TanStack Query hook injections in a brownfield-aware way.

Core Features & Use Cases

  • Brownfield-aware collision detection: Scans existing routes, schemas, and storage to avoid overwriting or duplicating conflicting endpoints and tables.
  • Schema + migration automation: Generates Drizzle table and Zod schema code, then produces and runs idempotent DDL migrations against Neon PostgreSQL.
  • Test-fix loop to stabilize changes: Generates integration tests per endpoint and runs a 3-cycle test-fix-rerun loop to validate and recover from issues.

Quick Start

Ask the orchestrator to run the saas-dev:backend-wirer skill for phase 5 after saas-dev:integrator completes, using the runId for the completed Phase 2 BackendSpec stored in pipeline_pages.

Frequently Asked Questions about saas-dev:backend-wirer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate Express routes and Drizzle schemas from a backend spec in an existing SaaS project?

To generate Express routes and Drizzle schemas from a backend spec, the skill translates BackendSpec definitions into code while using brownfield-aware collision detection to safely avoid overwriting existing endpoints and tables in your SaaS project.

How can I run idempotent Postgres migrations against Neon PostgreSQL without breaking existing database tables?

Running idempotent Postgres migrations against Neon PostgreSQL involves generating Drizzle table and Zod schema code, then producing and executing DDL migrations designed to safely apply schema changes without breaking existing brownfield database tables.

Does this backend wiring approach support integration testing for newly generated Express endpoints?

Yes, backend wiring supports integration testing by generating endpoint tests using supertest and executing a three-cycle test-fix-rerun loop with AI-assisted repair to validate and automatically recover from issues in the generated code.

Can I inject TanStack Query hooks automatically when adding new backend endpoints to a brownfield codebase?

Yes, you can inject TanStack Query hooks automatically when adding new backend endpoints, as the backend wiring process translates BackendSpec definitions into hook injections alongside Express routes and Drizzle storage functions.

What is the best way to refactor brownfield backend code to add new APIs without causing collisions?

The best way to refactor brownfield backend code without causing collisions is using a backend wiring process that scans existing routes, schemas, and storage functions to detect conflicts before safely generating new API implementations.

Why do my automated Postgres migrations fail when adding new tables to an existing SaaS database?

Automated Postgres migrations may fail if DDL is not idempotent or if collision detection is missing, which is why this backend wiring generates idempotent migration SQL and scans existing schemas before applying changes to a brownfield database.