Rechercher

PythonReactSEOPDF
GitHub Skill

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.

anton-abyzov☆ 28 Étoiles du dépôt3 Forks du dépôt

Installation

Suivez les instructions du dépôt pour votre agent. Consultez les fichiers et dépendances avant l’installation.

Voir la source ↗Guides

Instructions

SpecWeave Router (DEPRECATED)

OBSOLETE AS OF v1.0.140+

Plugin detection and routing is now handled by the detect-intent command, which is called automatically from the user-prompt-submit.sh hook 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:

  1. Detect plugins needed - Based on prompt keywords/context
  2. Suggest increment actions - new, reopen, small_fix, hotfix, none
  3. Route to skills - Which specialized skills should handle the task

TDD Context Injection

The hook (user-prompt-submit.sh lines 599-714) also:

  1. Checks testing.defaultTestMode in config
  2. If "TDD", injects TDD context banner into every prompt
  3. 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

Exemples

Consultez les exemples du dépôt source.

Voir la source ↗

Historique source

Date d’indexation
2026-01-20
Mise à jour de l’index
2026-01-28
Branch
main

Les dates concernent ce répertoire. Consultez le dépôt pour l’historique du code.

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!