when-detecting-fake-code-use-theater-detection
Identifies non-functional 'theater' code that appears correct but fails during execution, ensuring only functional code reaches production.
Install this skill
Security score
The when-detecting-fake-code-use-theater-detection skill was audited on Feb 28, 2026 and we found 13 security issues across 1 threat category. Review the findings below before installing.
Categories Tested
Security Issues
Template literal with variable interpolation in command context
| 120 | const usageCount = (content.match(new RegExp(`\\b${symbol}\\b`, 'g')) || []).length; |
Template literal with variable interpolation in command context
| 124 | reason: `Unused import: ${symbol}`, |
Template literal with variable interpolation in command context
| 289 | analysis.theater_indicators.push(`${emptyCatches.length} empty catch blocks`); |
Template literal with variable interpolation in command context
| 316 | console.log(`Analyzed ${analyses.length} files, detected ${theaterCode.length} theater implementations`); |
Template literal with variable interpolation in command context
| 411 | describe(`File: ${fileData.file}`, () => { |
Template literal with variable interpolation in command context
| 414 | const module = require(`./${fileData.file}`); |
Template literal with variable interpolation in command context
| 424 | const module = require(`./${fileData.file}`); |
Template literal with variable interpolation in command context
| 439 | fail(`Cannot validate exports: ${error.message}`); |
Template literal with variable interpolation in command context
| 445 | const module = require(`./${fileData.file}`); |
Template literal with variable interpolation in command context
| 468 | fail(`Function ${key} returns trivial constant`); |
Template literal with variable interpolation in command context
| 475 | console.log(`Execution validation: ${error.message}`); |
Template literal with variable interpolation in command context
| 530 | console.log(`Confirmed theater code: ${results.confirmed_theater.length} files`); |
Template literal with variable interpolation in command context
| 879 | console.log(`Found ${scanResults.results.total_issues} potential theater code issues`); |