integrate-routes

Mount generated routes into Hono app.ts with a dependency injection chain.

1|Updated May 21, 2025
One-click install
npx skills add https://github.com/madooei/backend-template --skill integrate-routes
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: integrate-routes
Source: https://github.com/madooei/backend-template/tree/main/.claude/skills/integrate-routes
Command: npx skills add https://github.com/madooei/backend-template --skill integrate-routes

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Mounts newly created routes into the application using a proper dependency injection chain, ensuring routes are wired after their creation.

Core Features & Use Cases

  • DI wiring: Connects repository, service, controller, and routes to enable end-to-end routing for a new resource.
  • Environment-aware mounting: Supports conditional wiring depending on environment setups (mock vs production).
  • Use Case: After generating a new entity's routes, mount them in app.ts so the endpoints become available without manual wiring.

Quick Start

Mount the generated routes by wiring the controller and route factory into app.ts.

Frequently Asked Questions about integrate-routes

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

FAQPage Schema
How do I mount new routes in Hono using dependency injection?

Mount new routes in Hono by wiring a dependency injection chain in app.ts, connecting repository, service, controller, and route components so endpoints become available without manual wiring.

How does dependency injection wiring work for new API routes?

Dependency injection wiring connects repository, service, controller, and route components end-to-end, applying updates to imports and mounting routes in the correct order to ensure proper DI wiring.

Can I set up environment-aware route mounting for mock versus production setups?

Yes, environment-aware mounting supports conditional wiring depending on environment setups, allowing you to toggle between mock versus production dependency injection chains when integrating routes.

What is the best way to wire generated routes into an existing TypeScript application?

Wire generated routes by updating imports, creating the dependency chain, and mounting route factories into app.ts in the correct order to ensure proper DI wiring across the application.

Do I need to manually update imports when integrating new routes with dependency injection?

No, integrating routes requires updating imports automatically as part of the dependency injection chain, ensuring repository, service, controller, and route components are wired correctly without manual import management.

Why does route mounting fail when dependency injection components are out of order?

Route mounting fails because dependency injection wiring requires mounting routes in the correct order, ensuring repository, service, and controller components are properly chained before routes are mounted.