npx claudepluginhub vanman2024/ai-dev-marketplace --plugin openrouter# Build OpenRouter Integration **Project Name:** `$0` **Mode:** `$1` (--existing for existing project, omit for new) --- ## Phase 1: Project Analysis **Goal:** Understand project context **Actions:** --- ## Phase 2: Core Setup **Goal:** Set up OpenRouter client **Actions:** --- ## Phase 3: Model Routing **Goal:** Configure model routing **Actions:** --- ## Phase 4: Framework Integration **Goal:** Integrate with AI framework **Actions:** --- ## Summary **Output:**
/buildImplements next planned task incrementally via TDD: write failing test, minimal implementation, full tests/build verification, commit changes.
/buildBuilds, compiles, and packages projects with error handling, optimization for dev/prod/test, and detailed reporting. Supports optional target and flags like --type, --clean, --optimize.
/buildScaffolds a VitePress site from existing wiki markdown files, adding dark theme, dark-mode Mermaid diagrams, and click-to-zoom for images and diagrams.
/buildImplements SPEC.md tasks via native plan-execute loop: cites invariants/interfaces, lists files/tests/verification, edits code, verifies, backprops failures. Selects via §T.n | --next | --all.
/buildBuilds a task from a Notion page URL: fetches details and properties, implements per spec with progress updates in Notion, communicates via comments if needed, then marks complete with optional diff explanation.
/buildImplements approved plan using TDD (RED-GREEN-REFACTOR per step), runs inline reviews, and produces test verification evidence.
Project Name: $0
Mode: $1 (--existing for existing project, omit for new)
Goal: Understand project context
Actions:
Task(openrouter-setup-agent) Analyze project for OpenRouter setup.
Detect: Existing AI framework, language
Check: Current LLM integrations
Output: Integration strategy
Goal: Set up OpenRouter client
Actions:
Task(openrouter-setup-agent) Set up OpenRouter core.
Requirements:
- Configure API key
- Set up client instance
- Configure base parameters
- Test connection
- Add error handling
Goal: Configure model routing
Actions:
Task(openrouter-routing-agent) Set up model routing.
Requirements:
- Configure model preferences
- Set up fallback chains
- Add cost optimization
- Configure latency requirements
- Set up provider priorities
Goal: Integrate with AI framework
Actions:
Based on detected framework:
If Vercel AI SDK:
Task(openrouter-vercel-integration-agent) Integrate with Vercel AI SDK.
If LangChain:
Task(openrouter-langchain-agent) Integrate with LangChain.
Requirements:
- Create provider wrapper
- Configure streaming
- Add tool support
- Set up response handling
Output:
✅ OpenRouter Integration Complete
To add features:
/openrouter:add vercel-ai # Vercel AI SDK
/openrouter:add langchain # LangChain
/openrouter:add routing <strategy> # Model routing
/openrouter:add fallback # Fallback config
To use:
Import provider from configured location