File size: 5,537 Bytes
21ff762 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 | # Skill-Stack Matrix
> Maps stack identifiers to the skills that serve them.
> Used by resolve_skills.py to determine what to load.
## Table of Contents
1. [Matrix Format](#matrix-format)
2. [The Matrix](#the-matrix)
3. [Companion Rules](#companion-rules)
4. [Conflict Rules](#conflict-rules)
---
## Matrix Format
Each entry:
- **Stack IDs**: which detected stacks trigger this skill
- **Skill**: skill name (matches directory name in /mnt/skills/)
- **Priority Base**: starting priority before signal boosts
- **Required**: must-load if stack detected, vs nice-to-have
- **Companions**: skills that should co-load
- **Conflicts**: skills that should not co-load
## The Matrix
### Document Creation Skills
| Skill | Stack IDs | Priority | Required | Path Pattern |
|-------|-----------|----------|----------|--------------|
| docx | (any -- triggered by user request) | 2 | no | /mnt/skills/public/docx/ |
| pdf | (any -- triggered by user request) | 2 | no | /mnt/skills/public/pdf/ |
| pptx | (any -- triggered by user request) | 2 | no | /mnt/skills/public/pptx/ |
| xlsx | (any -- triggered by user request) | 2 | no | /mnt/skills/public/xlsx/ |
> Note: document skills are demand-loaded, not stack-loaded. They activate on user
> request ("make a presentation") not on repo content. The router keeps them in a
> "standby" pool -- not loaded into context, but available for instant load.
### Frontend Skills
| Skill | Stack IDs | Priority | Required |
|-------|-----------|----------|----------|
| frontend-design | react, vue, angular, svelte, nextjs, nuxt, html, css | 8 | yes |
| react | react, nextjs | 7 | yes |
| vue | vue, nuxt | 7 | yes |
| angular | angular | 7 | yes |
| svelte | svelte | 7 | yes |
| tailwind | tailwindcss | 5 | no |
| css-modules | css-modules | 4 | no |
### Backend Skills
| Skill | Stack IDs | Priority | Required |
|-------|-----------|----------|----------|
| fastapi | fastapi | 8 | yes |
| django | django | 8 | yes |
| flask | flask | 7 | yes |
| express | express | 8 | yes |
| nestjs | nestjs | 8 | yes |
| rails | rails | 8 | yes |
| gin | gin | 7 | yes |
| actix | actix | 7 | yes |
### Data Skills
| Skill | Stack IDs | Priority | Required |
|-------|-----------|----------|----------|
| sqlalchemy | sqlalchemy, alembic | 6 | yes |
| prisma | prisma | 6 | yes |
| typeorm | typeorm | 6 | yes |
| drizzle | drizzle | 6 | yes |
| redis | redis | 4 | no |
| kafka | kafka | 5 | no |
| dbt | dbt | 6 | yes |
### Infrastructure Skills
| Skill | Stack IDs | Priority | Required |
|-------|-----------|----------|----------|
| docker | docker, docker-compose | 6 | yes |
| kubernetes | kubernetes, helm, kustomize | 6 | yes |
| terraform | terraform | 7 | yes |
| github-actions | github-actions | 5 | yes |
| gitlab-ci | gitlab-ci | 5 | yes |
| aws | aws-cdk, aws-sam | 7 | yes |
| vercel | vercel | 4 | no |
### AI/Agent Skills
| Skill | Stack IDs | Priority | Required |
|-------|-----------|----------|----------|
| langchain | langchain | 7 | yes |
| llamaindex | llamaindex | 7 | yes |
| mcp-dev | mcp | 7 | yes |
| pytorch | pytorch | 6 | yes |
| huggingface | huggingface | 6 | yes |
| openai-sdk | openai-sdk | 5 | no |
| anthropic-sdk | anthropic-sdk | 5 | no |
### Quality Skills
| Skill | Stack IDs | Priority | Required |
|-------|-----------|----------|----------|
| pytest | pytest | 5 | yes |
| jest | jest, vitest | 5 | yes |
| cypress | cypress | 4 | no |
| playwright | playwright | 4 | no |
| eslint | eslint | 3 | no |
| ruff | ruff | 3 | no |
### Documentation Skills
| Skill | Stack IDs | Priority | Required |
|-------|-----------|----------|----------|
| openapi | openapi | 5 | yes |
| graphql | graphql | 5 | yes |
| mkdocs | mkdocs | 4 | no |
| docusaurus | docusaurus | 4 | no |
### Meta Skills (always available, never unloaded)
| Skill | Stack IDs | Priority | Required | Notes |
|-------|-----------|----------|----------|-------|
| skill-router | * | 99 | yes | This skill -- always loaded |
| file-reading | * | 50 | yes | Core capability |
| skill-creator | * | 10 | no | Standby pool |
| product-self-knowledge | * | 10 | no | Standby pool |
---
## Companion Rules
When skill A is loaded, also load skill B if its stack is detected:
| Primary Skill | Companion | Condition |
|---------------|-----------|-----------|
| fastapi | sqlalchemy | DB migrations detected |
| fastapi | openapi | OpenAPI spec file exists |
| django | django-orm | (always with django) |
| react | tailwind | tailwind.config.* exists |
| docker | docker-compose | docker-compose.yml exists |
| kubernetes | helm | Chart.yaml exists |
| terraform | aws | provider "aws" in *.tf |
| langchain | openai-sdk | openai in deps |
| pytest | coverage | .coveragerc or coverage config exists |
## Conflict Rules
These skills should not be co-loaded (pick the one with higher confidence/priority):
| Skill A | Skill B | Resolution |
|---------|---------|------------|
| flask | fastapi | Higher confidence wins |
| flask | django | Higher confidence wins |
| jest | vitest | Higher confidence wins |
| webpack | vite | Higher confidence wins |
| npm | yarn | Check lock file |
| npm | pnpm | Check lock file |
| yarn | pnpm | Check lock file |
| react | vue | Both can coexist in monorepo |
| sqlalchemy | prisma | Both can coexist if different services |
> Conflict resolution: check if the repo is a monorepo. In monorepos, "conflicting"
> skills may serve different packages and should both load. In single-package repos,
> pick the one with higher confidence.
|