when-detecting-fake-code-use-theater-detection

Solid

Detects non-functional "theater" code that appears complete but doesn't actually work. Use this skill to identify code that looks correct in static analysis but fails during execution, preventing fake implementations from reaching production. Scans for suspicious patterns, validates actual functionality, and reports findings with recommendations.

Data & Documents 335 stars 29 forks Updated today

Install

View on GitHub

Quality Score: 85/100

Stars 20%
84
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
0
Description 5%
100

Skill Content

# Theater Code Detection ## When to Use This Skill **Trigger Conditions:** - Before merging AI-generated code into main branch - When code review reveals suspiciously complete implementations - After detecting inconsistencies between documentation and behavior - As pre-deployment quality gate for critical systems - When integrating third-party or unfamiliar code - During security audits to identify fake security measures **Situations Requiring Theater Detection:** - Code that compiles but doesn't execute meaningful logic - Functions with proper signatures but no-op implementations - Tests that always pass regardless of code changes - Security checks that can be bypassed trivially - Error handling that catches but doesn't handle errors - Mock implementations accidentally left in production code ## Overview Theater code is code that "performs" correctness without delivering actual functionality. It passes static analysis, looks structurally sound, and may even have tests—but fails to implement the intended behavior. This skill systematically identifies theater code through pattern recognition, execution analysis, and behavioral validation. The detection process scans codebases for suspicious patterns (empty catch blocks, no-op functions, always-passing tests), analyzes implementations for meaningful logic, executes code to validate actual behavior, and reports findings with actionable recommendations for remediation. ## Phase 1: Scan Codebase (Parallel) **Agents**: code...

Details

Author
aiskillstore
Repository
aiskillstore/marketplace
Created
5 months ago
Last Updated
today
Language
Python
License
None

Similar Skills

Semantically similar based on skill content — not just same category

Data & Documents Listed

theater-detection-audit

Performs comprehensive audits to detect placeholder code, mock data, TODO markers, and incomplete implementations in codebases. Use this skill when you need to find all instances of "theater" in code such as hardcoded mock responses, stub functions, commented-out production logic, or fake data that needs to be replaced with real implementations. The skill systematically identifies these instances, reads their full context, and completes them with production-quality code.

335 Updated today
aiskillstore
Code & Development Solid

when-validating-code-works-use-functionality-audit

Validates that code actually works through sandbox testing, execution verification, and systematic debugging. Use this skill after code generation or modification to ensure functionality is genuine rather than assumed. The skill creates isolated test environments, executes code with realistic inputs, identifies bugs through systematic analysis, and applies best practices to fix issues without breaking existing functionality.

335 Updated today
aiskillstore
AI & Automation Listed

code-verifier

Use BEFORE claiming any code/test/script runs successfully. Detects FAKE-RUN patterns (hardcoded results, assert True, mocks-only tests, swallowed exceptions, fabricated numbers, dead-code short-circuits). Apply automatically whenever about to claim "test passes", "code works", "results show X", "training converges", or commit/push. Complements superpowers:verification-before-completion (which enforces real-run discipline) by auditing whether the run itself is genuine.

0 Updated today
jajupmochi
AI & Automation Solid

project-stage-detect

Automatically analyze project state, detect stage, identify gaps, and recommend next steps based on existing artifacts. Use when user asks 'where are we in development', 'what stage are we in', 'full project audit'.

20,555 Updated 1 weeks ago
Donchitos
AI & Automation Solid

code-smell-detector

Automated detection of code smells and anti-patterns to identify refactoring opportunities

1,160 Updated today
a5c-ai