Skip to content
lauren· @poteto · X·AI score53

Lauren Tan shares a /poteto-mode prompt for tidying up your codebase

AI brief

Lauren Tan shared a codebase-tidying prompt from @RayFernando1337 that suggests using /poteto-mode to have an agent read the git log, past bug fixes and review comments, find recurring mistakes, and make them impossible to repeat layer by layer, from architecture and types to lint and tests. Other points include deleting comments that restate the code, writing formal models for real bugs such as concurrency and retries and putting them in CI, and committing one verifiable PR per step while first proving the checks can catch real historical bugs.

Full text · Original

it’s a good day to do some gardening of your codebase!

QuotingRay Fernando@RayFernando1337

Sharing my pstack NSWF prompt. Your repo will never be the same...in a good way of course:

Use /poteto-mode on this repo. First, find the mistakes agents and humans keep repeating here: read the git log, past bug fixes and review comments. Then make each one impossible instead of documenting it. Try architecture first, then types, then a lint whose error names the fix, then a test. Delete comments that restate code, and encode the constraint behind any comment that matters (/no-comments). Where concurrency, retries or state machines cause real bugs, write a formal model that replays a past bug and fails on it (/create-formal-verification-skill), and run it in CI. Replace unit tests that pin implementation with those models plus real DB and e2e tests, but keep every test that guards security or legal behavior. Ship one verifiable PR per step, and prove each check catches a real past mistake before you trust it.

View the quoted post on X

Source: lauren · x.com

Part of the story

See the full story
Lauren Tan shares /poteto-mode codebase cleanup prompt