Quick Reference
Rules in Detail
1. Objective Clarity
1. Objective Clarity
Use clear headers. Place constraints prominently.Start with a clear objective statement. Organize content under distinct headers (OBJECTIVE, IN SCOPE, OUT OF SCOPE, CONSTRAINTS). Front-load critical constraints.
2. Scope Boundaries
2. Scope Boundaries
Use inclusion/exclusion lists. Distinguish exhaustive from example lists.Label lists as “exhaustive” when complete or “examples” when illustrative. This prevents ambiguity about whether Blitzy should infer additional scope.
3. Success Criteria
3. Success Criteria
Specify performance thresholds. Include validation steps.Define objective criteria that can be verified through testing or measurement.
4. Technology Stack
4. Technology Stack
Include version numbers when compatibility matters. Point to specific files when needed.Specify exact versions when multiple options exist or breaking changes are present. Use file paths for precision, natural language when sufficient.
5. Constraints & Preservation
5. Constraints & Preservation
Use absolute language (DO NOT, MUST, NEVER). Explain why when crucial.Use absolute terms for constraints. Include rationale only when it’s essential for understanding business logic or technical decisions.
6. Architectural Patterns
6. Architectural Patterns
Point to code examples. Link to relevant documentation.Reference patterns already established in your codebase so Blitzy maintains consistency.
7. Error Handling & Edge Cases
7. Error Handling & Edge Cases
Write commands, not suggestions.Write commands, not suggestions. Define exact error handling behavior and edge case requirements. Avoid words like “maybe,” “try,” “consider,” “should,” or “ideally.”Weak: “Add validation if it seems necessary”Strong: “Validate email using RFC 5322 format. Reject invalid emails with 400 status.”Weak: “Add error handling as appropriate”Strong: “Catch Stripe errors. Log to Sentry. Return payment_failed error code.”Weak: “The API should be fast”Strong: “API must respond within 500ms at p95. Retry failures 3 times with exponential backoff.”
8. File Organization
8. File Organization
Make explicit decisions. No fallback options. State absolute requirements.Never give Blitzy choices or conditional logic about where to create files or how to organize code. Make all decisions yourself and state them as absolute requirements.Weak: “Create new files as needed”Strong: “Create new components in /src/components/profile/. Create tests in /src/components/profile/tests/”Weak: “Follow existing patterns where possible”Strong: “Follow PaymentService error handling pattern (wrap calls, log errors, return Result type)”Weak: “Organize files logically”Strong: “Place all payment-related services in /src/services/payments/. Each service gets its own file named .service.ts”
9. Testing Requirements
9. Testing Requirements
Define coverage expectations. Specify test scenarios.Provide explicit testing requirements including coverage thresholds, test types, and critical scenarios to cover.
10. Dependencies & Build
10. Dependencies & Build
Highlight important build considerations. Note any critical setup steps.Document build phase requirements that affect code generation. Specify dependency versions, environment variables, and build prerequisites.
Related Guides
Validation Checklist
Verify your prompt covers all 10 rules before submitting.
Rules
Attach reusable quality directives to enforce standards during generation.
Generation Prompts
Write and submit generation prompts for Blitzy.