Skip to content

Instantly share code, notes, and snippets.

@mcsee
Created August 6, 2026 03:06
Show Gist options
  • Select an option

  • Save mcsee/8a739ccc11307679599b5da8ce304029 to your computer and use it in GitHub Desktop.

Select an option

Save mcsee/8a739ccc11307679599b5da8ce304029 to your computer and use it in GitHub Desktop.
AI Coding Tip 031 - Good prompt: 2026 template with effort, scope, and stopping rules

Role: Senior backend engineer refactoring a payment module. Objective: Extract the retry logic in PaymentGateway into its own class. Success criteria: Existing tests pass. Retry behavior stays the same. No new public methods on PaymentGateway. Constraints: Don't touch the database schema. Don't add new dependencies. Output format: A diff, followed by a two-sentence summary of what moved. Stopping rules: If a test needs new mocking infrastructure to pass, stop and ask before adding it. Otherwise proceed without confirming each file. Effort: medium.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment