跳到正文
cccskills
免费在 GitHub 公开

skills-router

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

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md6.0 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

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

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Standards for authoring SDD plugin agents — frontmatter, self-containment, skill references, and no-user-interaction rules.

中文简介正在准备中。当前显示原文说明。

LiorCohen/sdd432026年2月24日 更新

Scaffolds Node.js/TypeScript backend components with CMDO architecture, driven by component settings.

中文简介正在准备中。当前显示原文说明。

LiorCohen/sdd432026年2月24日 更新

CMDO architecture standards for Node.js/TypeScript backends with strict layer separation.

中文简介正在准备中。当前显示原文说明。

LiorCohen/sdd432026年2月24日 更新

Intent-to-command mappings for fullstack-typescript tech pack features.

中文简介正在准备中。当前显示原文说明。

LiorCohen/sdd432026年2月24日 更新

Create change specification and implementation plan with dynamic phase generation. Supports feature, bugfix, refactor, and epic types.

中文简介正在准备中。当前显示原文说明。

LiorCohen/sdd432026年2月24日 更新

Orchestrates the full change lifecycle — routes actions to phase-specific sub-files.

中文简介正在准备中。当前显示原文说明。

LiorCohen/sdd432026年2月24日 更新

查看 LiorCohen 的全部技能

报告此技能的问题