Anti-reinventing-the-wheel advisor that helps users evaluate build vs buy decisions before vibe coding. Use when users describe something they want to build, create, or develop - especially features, tools, apps, scripts, or systems. Searches for existing solutions, estimates vibe coding costs (tokens, time, complexity), and presents comparison tables to enable informed decisions. Includes total cost of ownership analysis comparing Year 1 vs Year 3 costs for SaaS vs DIY. When user accepts a recommendation, provides complete integration planning with install commands, starter code, and project-specific guidance. Triggers on: "I want to build...", "Help me create...", "Can you code...", "I need a [tool/app/script]...", project planning, feature requests, or any coding task that might have existing solutions.
/plugin marketplace add gaupoit/programming-advisor/plugin install programming-advisor@devbanhmi-marketplaceThis skill inherits all available tools. When active, it can use any tool Claude has access to.
references/common-solutions.mdreferences/integration-patterns.mdreferences/token-estimates.mdBefore writing a single line of code, determine if the wheel already exists. Vibe coding burns tokens, time, and creates maintenance burden. Existing solutions often provide better quality, security patches, and community support.
Extract from user request:
Search strategy (use web_search):
"{functionality} library {language}""{functionality} open source""{functionality} SaaS tool""best {functionality} solution 2024""{functionality} npm/pip/cargo package" (based on ecosystem)Categorize findings:
Use the token estimation reference: references/token-estimates.md
Factors to estimate:
| Factor | Low | Medium | High |
|---|---|---|---|
| Lines of Code | <200 | 200-1000 | >1000 |
| Token Burn (est.) | 5-20K | 20-100K | 100K+ |
| Development Iterations | 1-3 | 4-10 | 10+ |
| Debugging Sessions | Minimal | Moderate | Extensive |
| Maintenance Burden | Low | Medium | High |
Always present a decision table:
| Option | Type | Cost | Setup Time | Maintenance | Token Burn | Verdict |
|--------|------|------|------------|-------------|------------|---------|
| [Solution A] | Library | Free | 5 min | Updates only | 0 | ā
Recommended |
| [Solution B] | SaaS | $X/mo | Instant | None | 0 | ā” Fastest |
| Vibe Code | Custom | Free | X hrs | You own it | ~XK tokens | š§ Full control |
Recommend existing solutions when:
Recommend vibe coding when:
If user chooses to build after seeing alternatives:
When the user accepts a recommended solution, provide a complete integration plan:
Before generating the plan, analyze the user's project:
package.json (npm/yarn/pnpm), requirements.txt/pyproject.toml (pip/poetry), Cargo.toml (cargo), go.mod (go)Provide ready-to-run commands for the detected package manager:
# npm
npm install <package>
# yarn
yarn add <package>
# pnpm
pnpm add <package>
# pip
pip install <package>
# poetry
poetry add <package>
Create a numbered action plan:
Provide code scaffolding that:
Flag any concerns:
For features with meaningful cost implications (auth, payments, email, infrastructure), provide a Total Cost of Ownership (TCO) comparison.
Include cost table when:
Use the pricing reference: references/pricing-data.md
Formula:
Year N Cost = Setup Cost + (Monthly Ć 12 Ć N) + (Maintenance Ć N)
Where:
- Setup Cost (DIY) = Token Estimate Ć $0.015/1K tokens
- Maintenance (DIY) = 20% of Setup Cost annually
- Maintenance (SaaS) = $0
## š° Cost Analysis
| Option | Setup | Monthly | Year 1 | Year 3 | Notes |
|--------|-------|---------|--------|--------|-------|
| [SaaS A] | 10min | $25 | $300 | $900 | Free tier: 10K MAU |
| [SaaS B] | 15min | $35 | $420 | $1,260 | More features |
| [Free/OSS] | 1hr | $0 | $0 | $0 | Self-host required |
| DIY | Xhrs | $0 | ~$Y | ~$Z | + maintenance burden |
š” **Break-even:** [When DIY becomes cheaper, if ever]
ā ļø **Hidden costs:** [Security audits, compliance, on-call burden]
Always mention relevant hidden costs:
Warn users when they say:
## š Existing Solutions Found
I found [N] existing solutions before we write custom code:
### Libraries/Packages
- **[Name]**: [one-line description] | [stars/downloads] | [link]
### Open Source Tools
- **[Name]**: [one-line description] | [stars] | [link]
### SaaS Options
- **[Name]**: [one-line description] | [pricing] | [link]
## š Build vs Buy Comparison
| Option | Type | Cost | Setup | Maintenance | Est. Tokens |
|--------|------|------|-------|-------------|-------------|
| ... | ... | ... | ... | ... | ... |
## š° Cost Analysis (for significant decisions)
| Option | Setup | Monthly | Year 1 | Year 3 | Notes |
|--------|-------|---------|--------|--------|-------|
| ... | ... | ... | ... | ... | ... |
š” **Break-even:** [analysis]
ā ļø **Hidden costs:** [security, compliance, maintenance]
## š” Recommendation
[Clear recommendation with reasoning]
## š§ If You Still Want to Build
[Only if user wants custom solution - suggest hybrid approach]
When the user says "let's use [recommended solution]" or "how do I add this?", respond with:
## š Integration Plan: [Solution Name]
### Your Project Context
- **Detected**: [framework], [package manager], [language]
- **Project structure**: [src/app/lib layout]
### Step 1: Install Dependencies
\`\`\`bash
[exact install command for their package manager]
\`\`\`
### Step 2: Configuration (if needed)
[Any config file changes needed]
### Step 3: Create New Files
š `[suggested/file/path.ts]`
\`\`\`typescript
[starter code matching their project style]
\`\`\`
### Step 4: Update Existing Files
š `[existing/file/to/modify.ts]`
\`\`\`typescript
// Add this import
import { X } from '[package]'
// Use it like this
[integration code]
\`\`\`
### ā ļø Notes
- [Any warnings about versions, conflicts, or requirements]
### š Resources
- [Official docs link]
- [Relevant examples]
Alert users when they're about to reinvent:
| Task Complexity | Typical Token Burn | Time Equivalent |
|---|---|---|
| Simple script (<100 LOC) | 5-15K | 30min-1hr |
| Utility module (100-500 LOC) | 15-50K | 2-4hrs |
| Feature component (500-2K LOC) | 50-150K | 1-2 days |
| Full application | 150K-500K+ | Days-weeks |
See references/token-estimates.md for detailed breakdowns.
See references/common-solutions.md for exhaustive list of commonly reinvented wheels.
See references/integration-patterns.md for project detection and starter code patterns.
See references/pricing-data.md for SaaS pricing and cost calculation data.
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.