Skills Router
Routes techpacks.routeSkills(phase, componenttype) requests to the appropriate fullstack-typescript skills. Core never loads tech pack skills directly — it invokes this router, which returns the skill paths to load.
Routes techpacks.routeSkills(phase, componenttype) requests to the appropriate fullstack-typescript skills. Core never loads tech pack skills directly — it invokes this router, which returns the skill paths to load.
--- name: skills-router description: Routes core skill requests to fullstack-typescript component standards and lifecycle skills. user-invocable: false ---
Routes `techpacks.routeSkills(phase, component_type)` requests to the appropriate fullstack-typescript skills. Core never loads tech pack skills directly — it invokes this router, which returns the skill paths to load.
Invoked by the techpacks gateway with a structured context block:
phase: <phase>
component_type: <optional>
component_name: <optional>
agent: <optional>Validated against `skills-router-context.schema.json`.
---
Maps `component_type` to the standards skills that apply during `implementation` and `verification` phases.
| component_type | Standards Skills | |----------------|-----------------| | `server` | `backend-standards`, `typescript-standards` | | `webapp` | `frontend-standards`, `typescript-standards` | | `database` | `database-standards` | | `contract` | `contract-standards`, `typescript-standards` | | `helm` | `helm-standards` | | `config` | `config-standards` | | `cicd` | `cicd-standards` | | `integration-testing` | `integration-testing-standards` | | `e2e-testing` | `e2e-testing-standards` |
| Skill Name | Path (relative to tech pack root) | |------------|-----------------------------------| | `backend-standards` | `skills/components/backend/backend-standards/SKILL.md` | | `frontend-standards` | `skills/components/frontend/frontend-standards/SKILL.md` | | `database-standards` | `skills/components/database/database-standards/SKILL.md` | | `contract-standards` | `skills/components/contract/contract-standards/SKILL.md` | | `helm-standards` | `skills/components/helm/helm-standards/SKILL.md` | | `config-standards` | `skills/components/config/config-standards/SKILL.md` | | `cicd-standards` | `skills/components/cicd/cicd-standards/SKILL.md` | | `integration-testing-standards` | `skills/components/integration-testing/integration-testing-standards/SKILL.md` | | `e2e-testing-standards` | `skills/components/e2e-testing/e2e-testing-standards/SKILL.md` | | `typescript-standards` | `skills/typescript-standards/SKILL.md` | | `unit-testing` | `skills/unit-testing/SKILL.md` | | `component-discovery` | `skills/component-discovery/SKILL.md` | | `scaffolding` | `skills/scaffolding/SKILL.md` | | `planning-standards` | `skills/planning-standards/SKILL.md` |
---
Maps the lifecycle `phase` to the skill(s) to load.
| Phase | Skills | Notes | |-------|--------|-------| | `component-discovery` | `component-discovery` | Discovers component types and instances in the project | | `project-scaffolding` | `scaffolding` | Scaffolding conventions for this tech pack | | `plan-generation` | `planning-standards` | Planning conventions and output format | | `implementation` | _(from Component Standards Table)_ | Requires `component_type` in context | | `testing` | `integration-testing-standards`, `e2e-testing-standards` | Both loaded regardless of component type | | `verification` | _(from Component Standards Table)_ | All standards for each component type involved |
---
Maps `component_type` to the agent declared in `techpack.yaml` that should be loaded via `techpacks.loadAgent`.
| component_type | Agent Name | Agent Path | |----------------|-----------|------------| | `server` | `backend-dev` | `agents/backend-dev.md` | | `webapp` | `frontend-dev` | `agents/frontend-dev.md` | | `database` | `backend-dev` | `agents/backend-dev.md` | | `contract` | `api-designer` | `agents/api-designer.md` | | `helm` | `devops` | `agents/devops.md` | | `config` | `backend-dev` | `agents/backend-dev.md` | | `cicd` | `devops` | `agents/devops.md` | | `integration-testing` | `tester` | `agents/tester.md` | | `e2e-testing` | `tester` | `agents/tester.md` |
---
When the techpacks gateway invokes this router:
Request:
phase: implementation
component_type: server
component_name: main-serverResponse:
skills:
- skills/components/backend/backend-standards/SKILL.md
- skills/typescript-standards/SKILL.md
agent:
name: backend-dev
path: agents/backend-dev.md