Skip to content

LiorCohen/sdd / plugin/fullstack-typescript/skills/skills-router

skills-router

Verified

Routes core skill requests to fullstack-typescript component standards and lifecycle skills.

Skills Router

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.

Input

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.


Component Standards Table

Maps component_type to the standards skills that apply during implementation and verification phases.

component_typeStandards Skills
serverbackend-standards, typescript-standards
webappfrontend-standards, typescript-standards
databasedatabase-standards
contractcontract-standards, typescript-standards
helmhelm-standards
configconfig-standards
cicdcicd-standards
integration-testingintegration-testing-standards
e2e-testinge2e-testing-standards

Skill Paths

Skill NamePath (relative to tech pack root)
backend-standardsskills/components/backend/backend-standards/SKILL.md
frontend-standardsskills/components/frontend/frontend-standards/SKILL.md
database-standardsskills/components/database/database-standards/SKILL.md
contract-standardsskills/components/contract/contract-standards/SKILL.md
helm-standardsskills/components/helm/helm-standards/SKILL.md
config-standardsskills/components/config/config-standards/SKILL.md
cicd-standardsskills/components/cicd/cicd-standards/SKILL.md
integration-testing-standardsskills/components/integration-testing/integration-testing-standards/SKILL.md
e2e-testing-standardsskills/components/e2e-testing/e2e-testing-standards/SKILL.md
typescript-standardsskills/typescript-standards/SKILL.md
unit-testingskills/unit-testing/SKILL.md
component-discoveryskills/component-discovery/SKILL.md
scaffoldingskills/scaffolding/SKILL.md
planning-standardsskills/planning-standards/SKILL.md

Phase Skills Table

Maps the lifecycle phase to the skill(s) to load.

PhaseSkillsNotes
component-discoverycomponent-discoveryDiscovers component types and instances in the project
project-scaffoldingscaffoldingScaffolding conventions for this tech pack
plan-generationplanning-standardsPlanning conventions and output format
implementation(from Component Standards Table)Requires component_type in context
testingintegration-testing-standards, e2e-testing-standardsBoth loaded regardless of component type
verification(from Component Standards Table)All standards for each component type involved

Phase Resolution Rules

  1. component-discovery — Always loads the component-discovery skill. No component_type required.

  2. project-scaffolding — Always loads the scaffolding skill. No component_type required.

  3. plan-generation — Always loads the planning-standards skill. No component_type required.

  4. implementation — Requires component_type. Look up the Component Standards Table and return the listed skills. If component_type is missing, return an error.

  5. testing — Always loads integration-testing-standards and e2e-testing-standards. If a specific component_type is provided and it is integration-testing or e2e-testing, load only that one.

  6. verification — Requires component_type. Look up the Component Standards Table and return all listed skills. The verifier uses these to check the implementation against standards.


Agent Context Table

Maps component_type to the agent declared in techpack.yaml that should be loaded via techpacks.loadAgent.

component_typeAgent NameAgent Path
serverbackend-devagents/backend-dev.md
webappfrontend-devagents/frontend-dev.md
databasebackend-devagents/backend-dev.md
contractapi-designeragents/api-designer.md
helmdevopsagents/devops.md
configbackend-devagents/backend-dev.md
cicddevopsagents/devops.md
integration-testingtesteragents/tester.md
e2e-testingtesteragents/tester.md

Loading Instructions

When the techpacks gateway invokes this router:

  1. Read the context block — extract phase, component_type, component_name, and agent.

  2. Resolve skill list — use the Phase Skills Table to determine which skills to load. For phases that reference the Component Standards Table (implementation, verification), look up the component_type entry.

  3. Return skill paths — for each resolved skill name, map it to the relative path from the Skill Paths table above. The techpacks gateway will call techpacks.resolvePath to turn these into absolute paths and then techpacks.loadSkill to load each one.

  4. Agent resolution — if the context includes a component_type and the phase is implementation or verification, also return the agent reference from the Agent Context Table. The techpacks gateway loads the agent via techpacks.loadAgent, which spawns a Task subagent with the resolved skills composed into its prompt.

Example

Request:

phase: implementation
component_type: server
component_name: main-server

Response:

skills:
  - skills/components/backend/backend-standards/SKILL.md
  - skills/typescript-standards/SKILL.md
agent:
  name: backend-dev
  path: agents/backend-dev.md
brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).Stars: 322kUpdated Claude CodeCodexVerifiedInstall
brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).Stars: 198kUpdated Claude CodeCodexVerifiedInstall