specweave-router
ACTIVE router that detects development tasks and spawns specialized agents. Activates for: React, Vue, Next.js, frontend, dashboard, component, UI, UX, GitHub, API, backend, database, SQL, PostgreSQL, MongoDB, Redis, Kubernetes, K8s, Docker, Terraform, AWS, Azure, GCP, infrastructure, ML, machine learning, model, training, AI, data science, testing, TDD, test-driven, Vitest, Jest, Playwright, E2E, mobile, React Native, iOS, Android, Expo, Kafka, streaming, event-driven, messaging, payments, Stripe, checkout, billing, subscriptions, release, deploy, CI/CD, pipeline, version, diagram, architecture, C4, Mermaid, flowchart, increment, specweave, /sw:, spec.md, tasks.md, living docs.
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
SpecWeave Router (DEPRECATED)
OBSOLETE AS OF v1.0.140+
Plugin detection and routing is now handled by the
detect-intentcommand, which is called automatically from theuser-prompt-submit.shhook BEFORE every prompt.DO NOT USE THIS SKILL - it no longer controls plugin installation or routing.
Current Architecture (v1.0.140+)
User Prompt
↓
user-prompt-submit.sh hook (AUTOMATIC)
↓
specweave detect-intent --file "$PROMPT_TMP_FILE" --install --silent
↓
LLM (Claude Haiku) analyzes prompt
↓
Returns: { plugins: [...], increment: {...}, routing: {...} }
↓
Auto-installs missing plugins
↓
Injects TDD context if testing.defaultTestMode: "TDD"
↓
Original prompt continues
What detect-intent Does
The detect-intent command (in src/cli/commands/detect-intent.ts) uses LLM to:
- Detect plugins needed - Based on prompt keywords/context
- Suggest increment actions - new, reopen, small_fix, hotfix, none
- Route to skills - Which specialized skills should handle the task
TDD Context Injection
The hook (user-prompt-submit.sh lines 599-714) also:
- Checks
testing.defaultTestModein config - If "TDD", injects TDD context banner into every prompt
- Checks per-increment overrides via
testing:frontmatter
TDD Configuration Priority:
Per-increment (tasks.md frontmatter) > Project config (.specweave/config.json) > Off
LSP Plugins Reference
For reference, these official LSP plugins are still valid and may be auto-detected:
| Language/Framework | Plugin |
|---|---|
| C#, .NET, ASP.NET | csharp-lsp@claude-plugins-official |
| Go, Golang | gopls-lsp@claude-plugins-official |
| Java, Spring | jdtls-lsp@claude-plugins-official |
| Kotlin | kotlin-lsp@claude-plugins-official |
| PHP, Laravel | php-lsp@claude-plugins-official |
| Lua, Neovim | lua-lsp@claude-plugins-official |
| C, C++ | clangd-lsp@claude-plugins-official |
SpecWeave Plugin Priority
SpecWeave plugins take priority over official plugins for:
| Service | Use This | NOT This |
|---|---|---|
| GitHub | sw-github@specweave |
github@claude-plugins-official |
| JIRA | sw-jira@specweave |
Any official JIRA plugin |
| Azure DevOps | sw-ado@specweave |
Any official ADO plugin |
Migration Notes
If you were invoking this skill directly:
// OLD (deprecated):
Skill({ skill: "sw-router:router" })
// NEW (automatic):
// The user-prompt-submit hook handles this automatically.
// No explicit invocation needed.
// For explicit plugin installation:
// Use CLI: specweave detect-intent "prompt" --install
See Also
-
src/cli/commands/detect-intent.ts- Plugin detection implementation -
plugins/specweave/hooks/user-prompt-submit.sh- Hook that calls detect-intent -
src/core/lazy-loading/llm-plugin-detector.ts- LLM-based plugin detection -
.specweave/docs/internal/guides/tdd-config-behavior-mapping.md- TDD configuration guide
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-01-20
- 索引更新时间
- 2026-01-28
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!