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:
2026-10-23
Applicability
- Tool:
claude-code - Version Range:
unspecified - Spec Revision:
unspecified
Evidence Sources
- https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices
- https://code.claude.com/docs/en/memory#agents-md
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.