| name | confidence-check |
| description | Pre-implementation confidence assessment (โฅ90% required). Verifies duplicate check, architecture compliance, official docs, OSS references, root cause understanding. Keywords: confidence, check, verify, before, implement. |
Dynamic Context
Project dependencies:
!cat package.json 2>/dev/null | head -20 || cat pyproject.toml 2>/dev/null | head -20 || echo "No package manifest found"
Confidence Check Skill
Purpose
Assess confidence before implementation to prevent wrong-direction execution.
Requirement: โฅ90% confidence needed to proceed with implementation
ROI: 100-200 token confidence check โ prevents 5,000-50,000 token wrong-direction work
When to Use
Use before starting implementation work to verify:
- No duplicate implementation exists
- Architecture compliance confirmed
- Official documentation reviewed
- Working OSS implementation found
- Root cause properly understood
Confidence Assessment Criteria
Calculate confidence score (0.0 - 1.0) based on 5 checks:
1. No Duplicate Implementation? (25%)
Check: Search codebase for existing functionality
grep -r "function featureName" src/
grep -r "def feature_name" src/
find src/ -name "*feature*"
โ
Pass if no duplicate exists
โ Fail if similar implementation found
2. Architecture Compliant? (25%)
Check: Verify tech stack alignment
- Read
CLAUDE.md, package.json, requirements.txt
- Verify using existing patterns
- Avoid reinventing existing solutions
cat package.json | grep -E "(supabase|prisma|firebase|next)"
โ
Pass if using existing tech stack (e.g., Supabase, UV, pytest)
โ Fail if introducing unnecessary new dependencies
3. Official Docs Checked? (20%)
Check: Review official documentation before implementation
- Query official docs with Context7 MCP
- Access documentation URLs with WebFetch
- Verify API compatibility
โ
Pass if official docs reviewed
โ Fail if relying on assumptions
4. Working OSS Implementation Referenced? (15%)
Check: Find proven implementation
- Use Tavily MCP or WebSearch
- Search GitHub for examples
- Verify working code samples
โ
Pass if OSS reference found
โ Fail if no working example exists
5. Root Cause Understood? (15%)
Check: Understand actual problem
- Analyze error messages
- Check logs and stack traces
- Identify root issue
โ
Pass if root cause clear
โ Fail if symptoms unclear
Confidence Score Calculation
Total = Check1 (25%) + Check2 (25%) + Check3 (20%) + Check4 (15%) + Check5 (15%)
If Total >= 0.90: โ
Proceed with implementation
If Total >= 0.70: โ ๏ธ Suggest alternatives, ask questions
If Total < 0.70: โ STOP - Request more context
Output Format
High Confidence (โฅ90%)
๐ Confidence Checks:
โ
No duplicate implementation
โ
Using existing tech stack
โ
Official docs verified
โ
Working OSS implementation found
โ
Root cause understood
๐ Confidence: 1.00 (100%)
โ
High confidence - proceed with implementation
Medium Confidence (70-89%)
๐ Confidence Checks:
โ
No duplicate implementation
โ
Using existing tech stack
โ ๏ธ Official docs partially verified
โ OSS implementation not found
โ
Root cause understood
๐ Confidence: 0.75 (75%)
โ ๏ธ Medium confidence - suggest alternatives
๐ก Options:
1. JWT-based auth (recommended) - matches existing pattern
2. OAuth integration - requires additional setup
3. Session-based - legacy approach
Which direction should we proceed?
Low Confidence (<70%)
๐ Confidence Checks:
โ Duplicate check failed - search needed
โ ๏ธ Architecture unclear
โ Official docs not verified
โ No OSS reference
โ Root cause unclear
๐ Confidence: 0.45 (45%)
โ Low confidence - STOP
โ Need following information to proceed:
1. Should we use JWT or OAuth for authentication?
2. What's the expected session timeout?
3. Is 2FA support required?
Please guide so we can proceed with confidence.
Workflow Integration
Before Any Implementation
User request received
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโ
โ /confidence-check โ
โโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโ โฅ90%: Proceed with implementation
โ
โโโ 70-89%: Suggest alternatives โ User choice โ Proceed
โ
โโโ <70%: STOP โ Ask questions โ Wait for answers โ Reassess
With /feature-planner
/confidence-check # Check confidence first
โ
โโโ โฅ90%
โ
โผ
/feature-planner # Create plan
โ
โผ
Proceed with implementation
With /verify
/confidence-check # Pre-implementation confidence
โ
โผ
Implementation work
โ
โผ
/verify # Post-implementation verification
Check Implementation Details
Check 1: Duplicate Search
grep -rn "function ${feature_name}" src/
grep -rn "def ${feature_name}" src/
grep -rn "const ${feature_name}" src/
find . -name "*${feature}*" -type f
grep -rn "class ${FeatureName}" src/
Check 2: Architecture Verification
cat package.json | jq '.dependencies'
cat CLAUDE.md | grep -A 10 "Architecture"
ls -la src/
Check 3: Documentation Review
Check 4: OSS Reference Search
Check 5: Root Cause Analysis
Commands
| Command | Description |
|---|
/confidence-check | Full confidence assessment |
/confidence-check --quick | Quick check (1, 2 only) |
/confidence-check --verbose | Detailed output for each check |
Best Practices
Always Use When
- Before implementing new feature
- Before fixing bug (understand root cause)
- Before refactoring (verify architecture)
- Before external API integration
Can Skip When
- Fixing typo
- Adding comment
- Formatting change
- Simple config change
Red Flags
If tempted to proceed with low confidence:
- ๐ฉ "Probably fine" - need verification
- ๐ฉ "No time" - wrong direction wastes more time
- ๐ฉ "Fix it later" - accumulates tech debt