When detecting fake code use theater detection

From DNYoussef/context-cascade · View interactive version

When detecting fake code use theater detection is an AI agent skill from the GitHub repository DNYoussef/context-cascade. [assert|neutral] 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 [ground:given] [conf:0.95] [state:confirmed]

How to use this skill

Skill file

/============================================================================/

/* WHEN-DETECTING-FAKE-CODE-USE-THEATER-DETECTION SKILL :: VERILINGUA x VERIX EDITION */

/============================================================================/


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

version: 1.0.0

description: |

[assert|neutral] 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 [ground:given] [conf:0.95] [state:confirmed]

category: research

tags:

author: system

cognitive_frame:

primary: evidential

goal_analysis:

first_order: "Execute when-detecting-fake-code-use-theater-detection workflow"

second_order: "Ensure quality and consistency"

third_order: "Enable systematic research processes"


/----------------------------------------------------------------------------/

/* S0 META-IDENTITY */

/----------------------------------------------------------------------------/

[define|neutral] SKILL := {

name: "when-detecting-fake-code-use-theater-detection",

category: "research",

version: "1.0.0",

layer: L1

} [ground:given] [conf:1.0] [state:confirmed]

/----------------------------------------------------------------------------/

/* S1 COGNITIVE FRAME */

/----------------------------------------------------------------------------/

[define|neutral] COGNITIVE_FRAME := {

frame: "Evidential",

source: "Turkish",

force: "How do you know?"

} [ground:cognitive-science] [conf:0.92] [state:confirmed]

Kanitsal Cerceve (Evidential Frame Activation)

Kaynak dogrulama modu etkin.

/----------------------------------------------------------------------------/

/* S2 TRIGGER CONDITIONS */

/----------------------------------------------------------------------------/

[define|neutral] TRIGGER_POSITIVE := {

keywords: ["when-detecting-fake-code-use-theater-detection", "research", "workflow"],

context: "user needs when-detecting-fake-code-use-theater-detection capability"

} [ground:given] [conf:1.0] [state:confirmed]

/----------------------------------------------------------------------------/

/* S3 CORE CONTENT */

/----------------------------------------------------------------------------/

Theater Code Detection

Kanitsal Cerceve (Evidential Frame Activation)

Kaynak dogrulama modu etkin.

When to Use This Skill

Trigger Conditions:

Situations Requiring Theater Detection:

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-analyzer (lead), reviewer (validation)

Duration: 10-15 minutes

Scripts:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.