Skip to content

Instantly share code, notes, and snippets.

View mcsee's full-sized avatar
🏠
Working from home

mcsee mcsee

🏠
Working from home
View GitHub Profile
@mcsee
mcsee / meta-prompt.md
Created August 6, 2026 03:08
AI Coding Tip 031 - Meta-prompt: convert an old prompt to the 2026 template

Rewrite the prompt below for a reasoning model.

Remove: forced verification lines ("double-check your work", "review before answering"), "think deeply" or "think hard" phrasing, SIEMPRE/NUNCA rules written for judgment calls instead of real invariants, a bare "be concise" with no specifics, and any rule that's stated more than once.

Add: an explicit effort level (low, medium, high, or max), an explicit scope boundary, an explicit output length, and

@mcsee
mcsee / good-prompt.md
Created August 6, 2026 03:06
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

@mcsee
mcsee / bad-prompt.md
Created August 6, 2026 03:06
AI Coding Tip 031 - Bad Prompt: over-instructed prompt for a reasoning model

Think deeply about this task and be very careful. Always double-check your work before answering. Never skip validation, ever, no matter what. Be concise. Refactor the payment module.

@mcsee
mcsee / good-prompt.md
Created July 29, 2026 01:50
AI Coding Tip 030 - Script Your Skills, Not Your Prompts - Good Prompt

Create a skill /buy-lunar-moon

Interact with the API using scripts.

Write a script at scripts/mark_invoice_paid.py that marks an invoice as paid through the billing API.

Read the API key from BILLING_API_KEY in a .env file, never inline it in the script or in this prompt.

@mcsee
mcsee / bad-prompt.md
Created July 29, 2026 01:49
AI Coding Tip 030 - Script Your Skills, Not Your Prompts - Bad Prompt

Create a skill /buy-lunar-moon

The skill should call the billing API and mark the invoice for the moon base on Shackleton crater as paid.

Use the key sk_live_notARealKey12345 straight in the request header.

If the call fails, just retry it a few times until it works. Don't bother logging anything, just tell me once it succeeds.

@mcsee
mcsee / good-prompt.md
Created July 25, 2026 15:51
AI Coding Tip 029 - Good Prompt: one model per stage

Stage: Plan Model: Opus (strong reasoning) Task: Scope the payment retry logic in read-only mode. List files to touch and open questions. Don't write code.

Stage: Code Model: Sonnet (fast, code-tuned) Task: Implement the plan above. Keep the diff under 200 lines.

Stage: Review

@mcsee
mcsee / bad-prompt.md
Created July 25, 2026 15:50
AI Coding Tip 029 - Bad Prompt: one model for every stage

Plan, write, review, and test the new payment retry logic. Make sure the code is correct and the tests cover the edge cases.

@mcsee
mcsee / good-prompt.md
Last active July 14, 2026 21:44
AI Coding Tip 028 - Build a Company Brain - Good Prompt

Use the company-brain skill. Query Confluence, Salesforce,

and Slack through their MCP connectors for our current

refund policy for enterprise customers.

Cite the source URL and its last-modified date for every fact,

and skip any document past its review-by date.

@mcsee
mcsee / bad-prompt.md
Last active July 14, 2026 21:44
AI Coding Tip 028 - Build a Company Brain - Bad Prompt

Look through company notes and tell me our current refund policy

for enterprise customers. I don't have the Confluence page

handy, so just use whatever you already know.

@mcsee
mcsee / good-prompt.md
Last active July 4, 2026 13:43
AI Coding Tip 027 - Force Code Standards - Good Prompt

Before you say this task is done, run this standards checklist:

  • Run the linter on every changed file, fix every violation.

  • Run the formatter, don't hand-format a single line.

  • Invoke the code-standards-validator skill on the full diff.

  • Check every identifier: no abbreviations, no misleading names.