/project-toolkit:programming-advisorfrom project-toolkit
Evaluates existing solutions (libraries, SaaS, open source) and internal prior-art before custom development to avoid reinventing the wheel. Use when considering building new features or asking 'should I build or use existing'.
Ships in project-toolkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
| Trigger Phrase | Action |
|---|---|
| "should I build X or use a library" | Search internal prior-art first (Step 2a), then external solutions, provide comparison |
| "find existing solutions for X" | Search internal prior-art first (Step 2a), then web search, categorize findings |
| "is there a package for X" | Check existing dependencies first (Step 2a), then search npm/pip/cargo/etc |
| "build vs buy for X" | Tactical: generate cost comparison table; Strategic (>$50K, multi-year, partner/defer options): delegate to buy-vs-build-framework |
| "check if X exists before building" | Run full wheel detection workflow |
| "do we already have X" / "is there existing code for X in this repo" | Search internal prior-art first (leverage/extend), then external |
Use this skill: "is there a library for parsing YAML in Python", "do we already have a retry helper in this repo", "find an existing solution before writing a new rate limiter". Every one of these names one narrow, tactical, immediately buildable thing.
Do NOT use this skill for: "should we build or buy a customer data platform,
partner with a vendor, or defer the investment for two years" (strategic,
multi-year, multi-option; use buy-vs-build-framework instead). The dividing
line is time horizon and option count: one tactical answer stays here, a
multi-option strategic trade-off with TCO goes to buy-vs-build-framework.
Before 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 internal prior-art FIRST (leverage/extend), then external. The cheapest option is code you already have.
Before any web search, check whether the capability already exists in the current repo or org:
package.json / requirements.txt / Cargo.toml / go.mod) for a library already pulled inIf an internal implementation exists, recommend Leverage (use as-is) or Extend (adapt it) before proposing a build or an external buy. Internal reuse beats both a new dependency and a rewrite.
Security-sensitive carve-out (overrides reuse-first): For auth, crypto, payments, or any security-sensitive capability, do NOT apply reuse-first. Recommend a vetted, widely-used external provider over extending or reusing a homegrown implementation, even when internal prior-art exists and covers most of the requirement. Homegrown security code keeps audit, patching, and compliance liability (e.g. PCI) in-house and is the red flag in 9.5 ('you can't build it securely'). Reuse-first does not apply to security-sensitive code.
Search strategy (use web_search):
"{functionality} library {language}""{functionality} open source""{functionality} SaaS tool""best {functionality} solution""{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. Include internal rows only if Step 2a found prior-art:
| Option | Type | Cost | Setup Time | Maintenance | Token Burn | Verdict |
|--------|------|------|------------|-------------|------------|---------|
| Existing internal | Leverage | Free | minutes | Shared | 0 | ♻️ Reuse first | <!-- only if Step 2a found match -->
| Existing internal | Extend | Free | hrs | You own the delta | low | 🔧 Adapt existing | <!-- only if Step 2a found match -->
| [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 |
This skill is tactical: "use an existing library/SaaS vs write glue code." When the decision is strategic (a capability investment needing Core-vs-Context classification, a weighted decision matrix, multi-year TCO, partner/defer options, or multi-stakeholder sign-off), STOP here and use the buy-vs-build-framework skill. It owns that decision and backs it with scripts (calculate_tco.py, score_decision.py, score_vendor.py). Do not re-derive that analysis here.
Hand off when any of these is true:
Otherwise continue below for the tactical recommendation.
Recommend internal reuse (Leverage/Extend) when:
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 quick tactical cost comparison (9.3). For a multi-year TCO/NPV, delegate to the buy-vs-build-framework skill (9.2); do not produce that analysis here.
Include cost table when:
For a multi-year TCO/NPV comparison (Year 1/3/5, discount rate, break-even, maintenance), use the buy-vs-build-framework skill's calculate_tco.py. Do not re-derive the NPV math here.
For the tactical "library vs glue code" choice, a one-line comparison is enough: SaaS monthly fee vs the DIY token-burn from Step 4 (pricing in references/pricing-data.md).
## 💰 Cost Note
| Option | Setup | Monthly | Notes |
|--------|-------|---------|-------|
| [SaaS A] | 10min | $25 | Free tier: 10K MAU |
| [Free/OSS] | 1hr | $0 | Self-host required |
| DIY | Xhrs | $0 | ~XK tokens + maintenance |
💡 Beyond a quick estimate, hand the multi-year TCO to buy-vs-build-framework.
Always mention relevant hidden costs:
Warn users when they say:
buy-vs-build-framework.## 🔍 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 Note (tactical)
| Option | Setup | Monthly | Notes |
|--------|-------|---------|-------|
| ... | ... | ... | ... |
⚠️ **Hidden costs:** [security, compliance, maintenance]
💡 For a multi-year TCO/NPV, hand off to `buy-vs-build-framework` (`calculate_tco.py`).
## 💡 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.
See references/bitter-lesson-llms.md for why simpler integrations with better models beat complex scaffolding.
See references/search-before-building.md for when to trigger a search, the three layers of knowledge, and the pre-code self-review checklist.
references/bitter-lesson-llms.md (opens in a new tab)references/common-solutions.md (opens in a new tab)references/integration-patterns.md (opens in a new tab)references/pricing-data.md (opens in a new tab)references/search-before-building.md (opens in a new tab)references/token-estimates.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub rjmurillo/ai-agents --plugin project-toolkit105 skills in this plugin
/adr-generatorCreate comprehensive Architectural Decision Records (ADRs). Researches the destination directory to detect existing template conventions, gathers context, determines next ADR number, generates the ADR, validates completeness, and saves. Supports multiple ADR formats (MADR, Nygard, Alexandrian, project canonical). Use when documenting technical decisions, creating new ADR files, or capturing rationale so future readers can revisit a choice. Use when you say "write an ADR", "document this decision", "document these design choices", "record why we chose this", "capture the rationale", or "for future maintainers", or when creating an ADR-like markdown file under docs/decisions/, docs/adr/, docs/architecture/, architecture/decisions/, or .project-toolkit/architecture/. Do NOT use to debate or review an existing ADR (use adr-review)./adr-reviewMulti-agent debate orchestration for Architecture Decision Records. Automatically triggers on ADR create/edit/delete. Coordinates architect, critic, independent-thinker, security, analyst, and high-level-advisor agents in structured debate rounds until consensus. Use when you say "review this ADR", when an ADR is created/edited/deleted, or when reviewing, accepting, or updating a decision file under .project-toolkit/architecture/, docs/architecture/, docs/decisions/, docs/adr/, or architecture/decisions/, including intent like "review this decision record" or "check this rationale for future maintainers". Do NOT use to author a new ADR (use adr-generator).2 plugins in one repository ship this exact skill · first indexed Oct 9, 2026
Other plugins' skills for the same job