PE-006: Negative-Only Instructions - Prompt Engineering
Summary
- Rule ID:
PE-006 - Severity:
MEDIUM - Category:
Prompt Engineering - Normative Level:
SHOULD - Auto-Fix:
No - Verified On:
2025-05-01
Applicability
- Tool:
all - Version Range:
unspecified - Spec Revision:
unspecified
Evidence Sources
Test Coverage Metadata
- Unit tests:
true - Fixture tests:
true - E2E tests:
false
Examples
The following examples demonstrate what triggers this rule and how to fix it.
Invalid
# Rules
Don't use global variables.
Never use console.log.
Avoid inline styles.
Valid
# Rules
Don't use global variables. Instead, pass values as function parameters.
Avoid console.log in production. Use the structured logger instead.