BLOG

Notes from the workshop

Practical write-ups on AI coding tools, prompt engineering, automation and the production patterns behind everything in the BuyCoded catalog.

Articles

Next.js & React

OG Image Size and Safe Zones: What Gets Cropped Where

Your OG image looks fine in the browser and then loses its headline in a social card. Here is the size to export and the safe zone that survives every crop.

7 min read
Cursor

Cursor Rule Template: Write Rules the Model Follows

Most Cursor rules fail because they read like advice, not instructions. Here is a five-part template that makes a rule specific, scoped and testable.

7 min read
Claude Code

Claude Code Hooks: Block Secrets and Destructive Commands

A CLAUDE.md rule asks Claude not to run rm -rf or write an API key into a file. A hook makes it impossible. Here is the exit-code contract, a working bash guard, and where hooks still fall short.

7 min read
Cursor

Cursor Rule Globs: How to Scope Rules to the Right Files

A glob is the filter that decides when a Cursor rule enters the model's context. Here is how to write patterns that match the files you mean, and only those.

6 min read
Next.js & React

Custom Fonts in Next.js OG Images: Load Them Correctly

Your OG image renders, but the font is wrong or the glyphs are boxes. Here is how Satori actually loads fonts, and how to wire a custom one in once.

6 min read
Cursor Rules

How to Test Cursor Rules: Check Each One Actually Works

Most Cursor rule sets are never tested. Here is a repeatable way to prove a rule changes the output, and to find the ones that do nothing.

6 min read
AI Prompts

Consistent Design in v0: Keep Every Page on One Style

Page one looks great, page three looks like a different product. Here is why v0 drifts between generations and the token-first method that keeps every page on one style.

5 min read
Cursor

Cursor Rules: Should You Write Your Own or Buy a Pack?

Writing every Cursor rule yourself costs more time than it looks, and a bought pack can fill your context with rules you never needed. Here is how to split the work.

7 min read
AI Prompts

v0 Prompt Structure: Write One That Works First Try

Most v0 rewrites come from a prompt that leaves layout, content and stack to chance. Here is a five-part structure and a worked example that removes the guesswork.

6 min read