Help us improve
Share bugs, ideas, or general feedback.
From claude-commands
Detects fake code, placeholders, demo files, and implementation issues via memory-optimized searches and multi-phase analysis workflow.
npx claudepluginhub jleechanorg/claude-commands --plugin claude-commandsHow this command is triggered — by the user, by Claude, or both
Slash command
/claude-commands:fakecommands/The summary Claude sees in its command listing — used to decide when to auto-load this command
## ⚡ EXECUTION INSTRUCTIONS FOR CLAUDE **When this command is invoked, YOU (Claude) must execute these steps immediately:** **This is NOT documentation - these are COMMANDS to execute right now.** **Use TodoWrite to track progress through multi-phase workflows.** ## 🚨 EXECUTION WORKFLOW ### Phase 0: Memory Enhancement (Memory MCP Integration with Query Optimization) **Action Steps:** **ACTUAL IMPLEMENTATION STEPS**: 1. **Enhanced Memory Search**: Use `/memory search` with automatic query optimization for fake pattern detection: 🔍 Searching memory for fake patterns with optim...
/taskLaunches an intelligent agent for complex investigations and research across codebases, files, and external sources, producing clear structured reports.
/taskLaunches autonomous agent to investigate complex problems, analyze codebases at scale, search files, gather external data, and produce structured reports.
/ai-hygiene-auditAudits codebase for AI-generated code issues: git patterns, duplication bloat, test deficits, doc slop. Outputs hygiene score and report; supports focus areas, thresholds, JSON.
/ask-gptDelegates to GPT via Codex MCP for an independent second opinion. Single-shot, advisory, read-only sandbox. No context shared with prior calls.
/sc-adversarial-reviewRuns multi-model adversarial review using Codex, Gemini, and Claude on files, directories, staged changes, branches, or PRs for diverse critiques.
/carrotVerifies codebase implementations against real-world code samples and official docs using 8 parallel agents, reporting only verified outdated, deprecated, or incorrect patterns.
Share bugs, ideas, or general feedback.
When this command is invoked, YOU (Claude) must execute these steps immediately: This is NOT documentation - these are COMMANDS to execute right now. Use TodoWrite to track progress through multi-phase workflows.
Action Steps: ACTUAL IMPLEMENTATION STEPS:
Enhanced Memory Search:
Use /memory search with automatic query optimization for fake pattern detection:
/memory search "fake patterns placeholder code demo files implementation"
🔍 Searching memory for fake patterns with optimization...
Pattern Discovery Enhancement: Automatic compound → single-word query transformation provides 70%+ better results for fake code detection patterns.
Branch-Specific Pattern Search:
Use /memory search for current branch fake patterns:
/memory search "fake patterns [current_branch] implementation issues"
Log optimized results:
Learn from optimization results:
Integration: The memory context from optimized searches MUST inform all subsequent analysis phases
Action Steps: Execute the composed commands WITH memory context awareness:
Action Steps: System Understanding (enhanced with memory):
Action Steps: Thorough Code Analysis (10+ thoughts, informed by memory):
Action Steps: Challenge Assumptions (using historical knowledge):
Action Steps: Methodical Examination (with specific attention to problem areas):
Action Steps: ACTUAL IMPLEMENTATION STEPS:
Trigger Hook-Based Self-Reflection:
Document Self-Correction Success:
Action Steps: ACTUAL IMPLEMENTATION STEPS:
After analysis completes, store new findings:
For each fake pattern found:
Use /memory learn for pattern storage with comprehensive fake code context:
/memory learn "{pattern_type}_{timestamp}" "fake_code_pattern" [
"Description of pattern",
"Location: {file}:{line}",
"Detection method: {method}",
"Found on branch: {current_branch}",
"Detected by: /fake command",
"Self-reflection triggered: {reflection_applied}",
"Correction guidance: {guidance_provided}"
]
Create relationships: Use /memory relationship commands for pattern connections automatically.
Log storage:
Benefits: Builds persistent knowledge base for improved future detection
Action Steps:
Action Steps:
Purpose: Detect fake, demo, or simulated code that isn't truly working using research-backed pattern recognition with Memory MCP integration and real-time hook validation
Usage: /fake - Comprehensive audit for non-functional code patterns with 900% improved detection capability
Research Foundation: Based on comprehensive multi-phase research (August 2025) incorporating:
Real-time Integration: Automatically uses the advanced detection hook system at /home/$USER/projects/your-project.com/.claude/hooks/detect_speculation_and_fake_code.sh which has proven 900% detection improvement over legacy approaches.
Light Alternative: For quick screening, use /fakel command which provides the same detection patterns with faster analysis (4 thoughts vs 10+ thoughts).
This command combines: /arch /thinku /devilsadvocate /diligent
⚠️ CRITICAL: This composition MUST be executed with Enhanced Memory MCP integration using query optimization as described in the Execution Protocol below. The Memory MCP operations with optimization are MANDATORY, not optional.
Memory MCP Query Optimization: Uses universal composition with /memory search for improved fake pattern discovery:
/memory search "fake code patterns" for automatic query optimization/memory command's built-in deduplication and scoringComposition Logic:
⚠️ MANDATORY: When executing /fake, you MUST perform the Memory MCP operations described below. These are NOT optional documentation - they are required execution steps.
🚨 FAKE CODE AUDIT RESULTS (Research-Enhanced + Memory Integration)
📊 Files Analyzed: X
⚠️ Fake Patterns Found: Y (900% improvement over legacy detection)
✅ Verified Working Code: Z
🔄 Self-Reflection Triggered: R
🧠 Memory Patterns Used: A
📚 New Patterns Learned: B
🔍 RESEARCH-BACKED DETECTION CAPABILITIES:
- Speculation patterns: 9 temporal/state/outcome categories
- Fake code patterns: 12 placeholder/template/parallel categories
- Self-reflection pipeline: Google's 17% improvement methodology
- Hook integration: Real-time pattern validation with CRITICAL messaging
🔄 SELF-REFLECTION ANALYSIS:
- [Fake code violations detected and corrected]
- [Before/after transformation examples]
- [Self-questioning effectiveness measurement]
- [Corrective guidance success rate]
🔴 CRITICAL ISSUES (CLAUDE.md Rule Violations):
- [List fake implementations requiring immediate attention]
- [Parallel system creation violations]
- [Template/placeholder code violations]
🟡 SUSPICIOUS PATTERNS:
- [Code showing speculation indicators]
- [Potential fake implementations requiring verification]
✅ VERIFIED FUNCTIONAL:
- [Code confirmed to work correctly]
- [Real implementations validated through testing]
🔄 SELF-CORRECTION SUCCESS:
- [Successful transformations from fake to functional code]
- [Quality improvements measured through reflection]
🧠 KNOWLEDGE CAPTURED:
- [New fake patterns stored with self-reflection metadata]
- [Detection effectiveness improvements documented]
- [Research validation integrated into future detection]
For each fake pattern found:
Pattern Recognition: Memory MCP stores examples of fake patterns found in this codebase, enabling faster recognition of similar issues.
Context Awareness: The system learns which files, directories, or code areas tend to contain fake implementations.
Strategy Evolution: Detection approaches are refined based on what works well for this specific project.
False Positive Reduction: Memory helps distinguish between legitimate code and fake patterns by learning from corrections.
Codebase-Specific Intelligence: Understanding of project conventions helps identify what constitutes "fake" vs acceptable code.
Cross-Session Knowledge: Insights persist across different analysis sessions, building comprehensive detection capabilities.
Command Succeeds When:
Red Flags Requiring Attention:
Proven Detection Improvement:
Research Implementation: Successfully integrated Google's 17% improvement methodology
Peer-Reviewed Evidence Base:
Real-Time Quality Assurance:
This enhanced /fake command represents the most advanced AI code quality detection system available, combining cutting-edge research with proven real-world effectiveness.