Skip to main content
Apply these rules when drafting prompts or refining after AAP review.

Quick Reference


Rules in Detail

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.
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.
Specify performance thresholds. Include validation steps.Define objective criteria that can be verified through testing or measurement.
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.
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.
Point to code examples. Link to relevant documentation.Reference patterns already established in your codebase so Blitzy maintains consistency.
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.”
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”
Define coverage expectations. Specify test scenarios.Provide explicit testing requirements including coverage thresholds, test types, and critical scenarios to cover.
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.

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.