Find implicit state machines#
State machines and semantics ยท runs in a repo
- 8.6Klikes
- 167replies
- 699shares
- 2.3Mviews
find all of the implicit state machines in my app
Use when: An app has behavior that depends on changing state and events.
powered by Grok Bot
52.8Klikes5.8Mviewsfrom viral X.com posts
The best one-shot prompts from X.com that audit, de-slop and improve your codebase. Got tokens to burn? Let your agents rip.
Set up Good Prompts for me: one-shot coding prompts from X.com, picked to fit my project. 1. Install the daily-prompt skill by running `npx skills add tomquirk/good-prompts --skill daily-prompt -g`. If you can't run that, save https://raw.githubusercontent.com/tomquirk/good-prompts/main/skills/daily-prompt/SKILL.md into your skills folder as `daily-prompt/SKILL.md`. 2. Run it once now: "Use the daily-prompt skill to find me a one-shot prompt to try on this project." 3. Ask me whether I'd like one suggested on a schedule, for example every weekday at 9am my local time. If I say yes, set it up with your own scheduling (a routine, automation, scheduled task or cron job). If you can't schedule anything, tell me how to run it by hand instead.
or just install the skill ยท read SKILL.md โ
$ npx skills add tomquirk/good-prompts --skill daily-prompt -gahhh, i'm collectinggg!
find me a good one-shot prompt to try on this project
Try this one from @steveruizok: Find implicit state machines
โfind all of the implicit state machines in my appโ
Want me to run it?
yes, lets gooo
Burning tokensโฆ
good prompt "find all of the implicit state machines in my app"
Go ahead and point Neon / Claude / Codex look at your Wi-Fi to optimize it, I just tried and it ๐คฏ Posting a full prompt in the ๐งต h
Vibecoders, ๐'๐บ ๐ฏ๐ฒ๐ด๐ด๐ถ๐ป๐ด ๐๐ผ๐, before your next website or app, paste this into Claude Code or Codex: "I want this to be as perfect as Linear's website or Apple Notes: simple purpose, simple architecture, simple design, simple implementation. Cut taglines, helper text
Good prompt to polish your app, enjoy. Test this in the browser at different widths, with touch emulation, and on a throttled 3G connection. Fix anything that looks broken or feels off. Save a before and after screenshot for every fix and send me a summary afterwards.
Instructions to get your CI under 2 minutes โก
This is an amazing prompt that helps find a ton of bugs for me. โFind the appโs explicit and implicit state machines and document their states, invariants, and transition tables in one file. Identify invalid states or transitions the code can actually reach, with evidence,
My biggest UI pet peeve: animations that are not origin-aware. Dropdowns, popovers, menus, etc. should scale from their trigger, not from the center. Just send this to your agent: Make all trigger-based UI elements in this app animate from their trigger, not their center.
use this prompt on your favorite codebase where you don't hate your users: do a deep scan of all hot paths and fix any unnecessary sequential async functions calls the diffs are very easy to review and almost always find some bangers
you can make almost any program self-improve btw step 1: prompt your agent "help me plan comprehensive logging such that we can replay what the user experienced, meaningful internal operations, and visible outcomes" step 2: setup a daily loop with this prompt "analyze my logs
Claude Fable 5.2 is out and it's the perfect time to run this god-level prompt on your codebase: "I want you to audit our codebase, is anything here unnecessary, overly complicated in our current setup, or based on weak assumptions? Challenge them. - What can be deleted
One of my favorite prompts for Gemini Neon especially for apps โ/goal Hillclimb the latency, bytes transferred, and overall lag of my app. Make it lightning fast. Track all metrics and get each of them as low as possible. Feel free to redesign core infrastructure if it makes the
80-90% of major "AI incidents" that cause real harm have no attacker, just an agent tripping up on a poor codebase. i turned the latest research into into a prompt that checks your setup for the most common causes. Hand it to your agent ->
๐๐ผ๐ฑ๐ฒ๐ ๐๐ถ๐ฝ: if you still have half your quota left when it resets, youโre throwing away days of Sol. Use `/goal` to squeeze every last bit out of it: audit your entire site, map your codebase, speed up your app, or even clear out the half-finished work in your workspace.
Prompts to use with Fable 5.2 to improve your codebase. 1/ Full health check. from Alex Albert๏ผAnthropic Read this entire project and find everything that's broken, inconsistent, inefficient, or no longer needed. Fix what you're sure about and list the rest for me to review.
this prompt is already god tier. here's the elaborate version : "Recover my program's minimal semantic model. 1. State: every value that changes what the user sees 2. Transitions: what commutes, what's idempotent, what's order-dependent 3. Dependencies: what must be true
BREAKING: Claude Code and Codex can now QA your app before you launch. Every bug and dead end gets a screenshot. The agents fix them all, then rerun to prove it. Copy this QA prompt:
this is a really good prompt you can use to feel the power of fable 5.2 btw! i'd send it as - "audit and find implicit state machines in this <codebase/directory/module> that would drive concrete improvements if made explicit. explain before/after of each one and discuss with
more bangers for those who like healthy systems, fast software, and happy users > find every place we load a whole row from the database just to read a couple of fields. instead, select only what we need > remove all unnecessary `new URL()` parsing > compute all regexes at the
Paste this into Codex with GPT-6.1 Sol Ultra if you want to delete all the dead code and bloated tests in your repo: It nearly costed me just 5% of the weekly limit while obtaining a huge clean up in my codebase "Run a deep test audit to find unused legacy code, using subagents
Very useful prompt for Codex with computer use.
If you care about your privacy: 1. Go to in Chrome 2. Run this prompt in Codex or Claude Code and tell it there's an open tab in your browser 3. Then pick the ones you want to remove and tell AI to do it Just disconnected half the apps that should no
If youโre vibe coding with Claude Code, Codex, or Grok, steal this prompt: "List every assumption you're making about this codebase. Mark each one verified (you read the actual code) or guessed (you inferred it, and say why). Propose your highest confidence surgical fix for
I'll say this: I've gotten more out of using orbs and asking agents "test this e2e & give me irrefutable proof it works" than out of 80% of tests I've written and ran over the last 15 years. It's truly remarkable that we can now ask machines: "Did you manually test it?"
Codex tip: before you ship, use /goal to stress-test your appโs most important component in every state that matters. Donโt let users be the first to find the broken ones. A component working with sample data only proves that the sample didnโt break it. What happens with no
๐ฅฉ a prompt: "single source of truth audit" ๐ซด
If you still think Claude Code and Codex ๐๐๐ฐ๐ธ ๐ฎ๐ ๐ฝ๐ผ๐น๐ถ๐๐ต, try this: "Find all the happy-path debt in my app: every screen that only works when data loads fast, nothing fails, lists aren't empty, text is short, and the screen is wide. Fix missing states and layout
This Claude Code prompt is literally a $300/hr token auditor for Opus 5.5 ๐คฏ ๐ฐ๐ผ๐ฝ๐ ๐ฎ๐ป๐ฑ ๐ฝ๐ฎ๐๐๐ฒ the full prompt ๐ https://t.co/
It's a good day to ask your agent to lock down your machine: "remove all the apps, tcc/permission grants, login items, daemons, kexts, browser exts, homebrew packages, etc., that I don't need and use." I kept only Chrome, Amp (orbs only, no more local dev for me), Ghostty,
We removed third-party JS on Amp awhile ago after the first such attack. But today's Optimizely/KissMetrics/etc compromise is a good reminder. Here's the prompt in Amp that I used to double-check: > Help me understand what the root cause of this issue is. > Do we load any
Opus 5.5 is crushing the game right now. Here's a prompt that you can copy and paste into Claude to audit your tool calls and improve efficiency even more. ---- Look through my Claude Code chat history for this repo in ~/.claude/projects/. 1. Find the files and folders
codex tip: use codex to free up storage if your storage is full and you have no idea what's eating it up. just ask codex. prompt: "scan my system to find what's eating up storage. look for large files, old installers, unused apps, cache folders, stale project folders, and
Paste this into Claude Code when your project gets messy: "Map this codebase for me. Show the folder structure, what each main file does, how data flows from UI to database, and the 5 riskiest files to touch. Write it all to ARCHITECTURE.md." You'll understand your own
Try this prompt Install Cloudflareโs security-audit skillโ globally and invoke its full audit workflow on this project. Please implement this skill for my project repos or globally in my projects Independently verify findings, implement targeted
btw this was discovered by a simple "look at last weeks sessions and suggest improvements" prompt. use @mattpocockuk's /retro for something more intense.
wildly underrated prompt: "what have customers told me? what should I be fixing next?"
Last 7 Days of my Claude Code usage would cost $6,211 if it ran on API instead of subscription ๐ Check the prompt in the comments if you wanna check yours
good prompt: "audit my app's buttons. first match wins: 1. opens options or navigates โ trailing chevron 2. familiar symbol โ leading icon 3. in a group of actions โ leading icon 4. needs more input โ ellipsisโฆ 5. anything else โ plain text"
State machines and semantics ยท runs in a repo
find all of the implicit state machines in my app
Use when: An app has behavior that depends on changing state and events.
Security and system cleanup ยท runs on your machine
Diagnose my Wi-Fi and home network, identify the real bottlenecks behind slow speeds or instability, and guide me through fixing them. Run these checks sequentially (do NOT run ping in parallel with throughput tests, so idle latency isn't polluted by load): 1. Wi-Fi link & RF congestion: - Inspect my active Wi-Fi PHY mode (802.11ac/ax/be), band (2.4 / 5 / 6 GHz), channel, channel width (20 / 40 / 80 / 160 MHz), signal/noise (SNR), transmit rate / MCS, and interface packet errors. - Scan nearby Wi-Fi networks and count competing APs per channel/band to find the cleanest channels in my environment. 2. Hop-by-hop latency & stability (while idle): - Ping my default gateway (30 packets) and `1.1.1.1` (30 packets, plus IPv6 if active), and run a 5-hop traceroute to separate Wi-Fi/LAN jitter from ISP latency. - Check for active local bandwidth hogs, VPNs, proxies, or recent Wi-Fi disconnect/roam events. 3. DNS latency: - Check my current DNS servers and compare uncached lookup latency against `1.1.1.1`, `8.8.8.8`, and my router. 4. Throughput & bufferbloat under load: - Run macOS `networkQuality -v` (or equivalent on Linux/Windows) to measure downlink, uplink, idle latency, loaded latency / responsiveness (RPM), and ECN/L4S status. Then give me: - A concise baseline summary with the exact measurements. - The top real bottlenecks ranked by impact (skip placebo OS tweaks). - Safe local quick wins (e.g., faster DNS order) vs. router/modem fixes: - Unlocking 80/160 MHz width on 5/6 GHz, enabling Wi-Fi 6/OFDMA/WMM, and disabling band steering / Smart Connect if it degrades stability. - Exact cleanest 5 GHz and 2.4 GHz (1/6/11 only) channels based on my local RF scan. - Disabling unused guest SSIDs and checking cable/ISP modem signal health (power, SNR, uncorrectable errors) or SQM for bufferbloat. - Ask for my router model (or a paste/screenshot of its Wireless Settings page) so you can give exact click-by-click settings. After I apply the changes, re-run the exact same sequential benchmark and output a Before vs. After comparison table.
Use when: Your Wi-Fi feels slow or flaky and you want the agent to measure it, find the real bottlenecks, and walk you through router fixes with a before/after comparison.
Design and experience ยท runs in a repo
I want this to be as perfect as Linear's website or Apple Notes: simple purpose, simple architecture, simple design, simple implementation. Cut taglines, helper text and secondary labels. If a screen needs them to make sense, fix the layout. Every decision should elevate the user experience (UX), developer experience (DX) and agent experience (AX) at once, without breaking anything.
Use when: An interface or implementation feels cluttered or unnecessarily complex.
Testing and verification ยท runs in a repo
Test this in the browser at different widths, with touch emulation, and on a throttled 3G connection. Fix anything that looks broken or feels off. Save a before and after screenshot for every fix and send me a summary afterwards.
Use when: A web interface needs verification across screen sizes, touch input, and slow connections.
Performance ยท runs in a repo
Make this repo's CI as fast as possible without letting it lie. Target: a PR gets its result in under 2 minutes at the median and under 3 at p95.
Two rules outrank speed:
- The full suite runs before anything reaches main, in a merge queue. Selection only narrows PR feedback.
- Never get faster by hiding failures. No retries, wider timeouts or skipped tests. A check that needs a retry has a bug; find it.
First, audit. Pull the last 150 runs and split every job into waiting, setup and running, at p50 and p95. Fix the biggest bucket first. It is rarely the tests, so don't spend time deleting them.
Then hit these budgets:
- Waiting, under 10 seconds: move every job off GitHub's hosted runners to Blacksmith, even the 5-second ones. A 5-second job that queues 10 minutes is a 10-minute job. Cancel a branch's in-progress run when a new commit lands.
- Setup, under 30 seconds: get PR cache hits above 95% by seeding caches from main. Cache node_modules itself, not just the package cache. Use a blobless clone ('filter: blob:none'), not a shallow one.
- Lint, under 5 seconds: oxlint. Delete ESLint, and turn on every rule you can.
- Typecheck, under 5 seconds: `bun check`. Fall back to TypeScript 7 if it can't check this repo. Use tsrs locally.
- Format: oxfmt. Delete Prettier.
- Install and scripts: bun. Delete npm, yarn or pnpm.
- Tests, under 60 seconds per shard: stop reloading the app per test file (Vitest `isolate: false`), reset state after every file, and write the cleanup rules into AGENTS.md. Run in random order to flush out leaks. Shard by measured duration onto 8-core machines, each with its own database. Buy cores before shards, and match concurrency to cores.
- Shape: run lint, typecheck, build and tests in parallel. Then move migration checks and other apps' tests out of the slowest job into their own.
- Selection: on PRs, run only what the diff can reach (`nx affected` or `turbo --affected`). Then hide a real change from it on purpose and confirm CI goes red, not green.
- Local, under 9 seconds: a pre-push hook that runs format, lint and typecheck on changed files. A hook, not a line in AGENTS.md, because agents skip steps.
- Keep it fast: fail any job that exceeds its budget.
The tools above are defaults; you need a measured reason to keep an old one. Take anything newer that is faster on this repo. Before each switch, run old and new side by side and list anything the new one misses.
One small PR per change, with before and after numbers from real runs. Do everything you can without me first; bring anything that needs an account, a secret or a bigger bill as one list with expected monthly cost. End with total CI time and cost, before and after.Use when: Your PR checks take too long and you want an agent to audit and cut CI time with measured, reversible changes.
State machines and semantics ยท runs in a repo
Find the appโs explicit and implicit state machines and document their states, invariants, and transition tables in one file. Identify invalid states or transitions the code can actually reach, with evidence, including through retries and concurrency. Prioritize confirmed bugs by impact, group related fixes into issues, then fix them with regression tests and keep the document updated.
Use when: Reachable invalid states need evidence, documentation, and regression-tested fixes.
Design and experience ยท runs in a repo
Make all trigger-based UI elements in this app animate from their trigger, not their center.
Use when: Dropdowns, popovers or menus in your app scale from their center instead of from the element that opened them.
Performance ยท runs in a repo
do a deep scan of all hot paths and fix any unnecessary sequential async function calls
Use when: Independent async operations appear to run sequentially on hot paths.
Agent workflows and retrospectives ยท runs in a repo
help me plan comprehensive logging such that we can replay what the user experienced, meaningful internal operations, and visible outcomes
Use when: You want a program to produce logs good enough to later analyze for broken behavior and user friction.
Codebase audits and simplification ยท runs in a repo
I want you to audit our codebase, is anything here unnecessary, overly complicated in our current setup, or based on weak assumptions? Challenge them. - What can be deleted entirely? - What can be simplified now that unnecessary pieces are gone? Then make the changes. Prefer deleting over simplifying, simplifying over optimizing, and optimizing over automating. This product is being used by thousands of customers, do not cut any corners.
Use when: Complexity or weak assumptions make a codebase harder to maintain.
Performance ยท runs in a repo
/goal Hillclimb the latency, bytes transferred, and overall lag of my app. Make it lightning fast. Track all metrics and get each of them as low as possible. Feel free to redesign core infrastructure if it makes the app faster overall.
Use when: You want an agent to autonomously drive the app's latency, payload size and lag as low as possible, even redesigning infrastructure.
Security and system cleanup ยท runs in a repo
Audit this repo and my dev setup for the issues I list below.
Rules: audit first and change nothing. Never print secret values or use any credential; show names and paths only. Report each finding with file:line, why it's dangerous, and the fix below. Then wait for my approval. Apply only in-repo fixes. List anything outside the repo (accounts, tokens, settings) as manual steps for me.
1. Check: test/dev/preview configs (.env*, test setup, docker-compose, DB config) pointing at a non-local or production DB, especially if tests drop, truncate, reset or migrate it.
Fix: point tests at a local or container DB, and add a guard in test setup that aborts if the DB host isn't local.
2. Check: production or broad-scope credentials my shell can read (env var names, ~/.aws, ~/.kube, ~/.config/gcloud, ~/.netrc, ~/.pgpass, gh/npm/cloud CLI tokens, keys in the repo, live payment keys). Is the default context production?
Fix: remove committed keys and add them to .gitignore. Manual: rotate any exposed key, move prod creds to an account this user can't read, make non-prod the default context.
3. Check: recursive deletes whose target comes from a variable, glob or link (rm -rf "$VAR", rmtree, rimraf), scripts without set -u, symlinks/junctions in folders that get cleaned, tests that change HOME.
Fix: use ${VAR:?} guards and set -euo pipefail, resolve with realpath and refuse targets outside the repo root, and add a dry-run that prints the target and file count.
4. Check: infrastructure one command can destroy: DBs without deletion_protection/prevent_destroy, stray *.tfstate files, auto-approve/--force flags, backups the same token can delete.
Fix: add deletion_protection/prevent_destroy to data resources and drop auto-approve from scripts. Manual: delete or archive stray state files, and store backups where the agent's token can't delete them.
5. Check: rules that exist only as prose (AGENTS.md, CLAUDE.md, .cursorrules: "code freeze", "never", "ask before"). What enforces each one outside the model?
Fix: back each rule with a real control (deny rule in agent settings, read-only DB role, branch protection, required review), and name the safe command next to the rule (e.g. "run tests with make test-local").
6. Check: is main protected? What scopes does my gh token have? Can it force-push, delete repos, or create public repos?
Fix (manual): protect main with required reviews and no force-push, use a fine-grained token scoped to this repo, and block public repo creation in the org.
7. Check: is this folder inside iCloud, Dropbox or OneDrive, and are there zero-byte or cloud-only placeholder files?
Fix: move the repo out of synced folders (manual). In scripts, verify copy size and content before deleting a source, and prefer mv to copy-then-delete.
8. Check: list every MCP config and flag unpinned servers (@latest, npx -y), hooks (SessionStart etc.), install scripts, skills, permission-bypass flags (--dangerously-skip-permissions, --yolo) and hidden Unicode in rule files.
Fix: pin server versions, remove unknown hooks, servers and skills, strip hidden Unicode, and give MCP servers read-only tokens where they only read.
9. Check: CI workflows that run an AI agent on untrusted input (issues, PR comments, pull_request_target) while it can see secrets or write access.
Fix: set least-privilege permissions, keep secrets out of agent jobs, avoid pull_request_target for agents, and don't share caches with release jobs.
10. Check: auto-approve or full-access agent modes, and safety nets agents don't load (e.g. an rm alias in .zshrc; test with bash -c 'type rm').
Fix (manual): turn off bypass/auto-approve for destructive commands, sandbox the agent to the project dir, and put guards in scripts or agent deny rules instead of shell aliases.
11. Check: tools that send money or messages without a cap, allowlist or confirmation.
Fix: add a per-call cap, a recipient allowlist, explicit units on amounts, and human confirmation.
Finally: for any risky command that must stay, add a warning in its output that names the hazard and its consequence (e.g. "WARNING: DATABASE_URL is production; this DROPS tables"). The study found that kind of warning cut agent harm far more than restating a rule. Rank all fixes by blast radius, top 3 first.Use when: Before giving an agent broad access to a repo or dev environment; audits first, changes nothing until you approve.
Performance ยท runs in a repo
/goal Make this app measurably faster. Launch the real app and run through [CORE FLOW]. Record the current load time, interaction responsiveness, CPU usage, memory usage, and any visible stutters. Use those measurements to find the worst bottlenecks. Donโt guess. Change one thing at a time. After every change, rerun the exact same flow. Keep the change if the app gets faster. Revert it if nothing improves. Continue until the core flow no longer has any obvious bottlenecks. Finish with a simple before/after report: โ The original measurements โ What you changed โ The new measurements โ Any bottlenecks you didnโt address
Use when: You want performance work driven by before/after measurements of one core flow, not guesses.
Agent workflows and retrospectives ยท runs on your machine
Review my entire agent setup: AGENTS.md, CLAUDE.md, skills, commands, subagents, hooks, settings/permissions, and MCP servers. Check for gaps in guardrails and whether it follows current best practices for Fable 5.2.
Use when: You want a one-off review of your AGENTS.md, skills, hooks, permissions and MCP setup.
Codebase audits and simplification ยท runs in a repo
Read this entire project and find everything that's broken, inconsistent, inefficient, or no longer needed. Fix what you're sure about and list the rest for me to review.
Use when: A project needs a broad review of correctness, consistency, and unnecessary work.
State machines and semantics ยท runs in a repo
Recover my program's minimal semantic model. 1. State: every value that changes what the user sees 2. Transitions: what commutes, what's idempotent, what's order-dependent 3. Dependencies: what must be true before each effect fires Then find: โ nondeterminism in awaits, retries and event order โ invariants enforced by hope โ one fact stored in two places, drifting โ work that never reaches the screen Last, split my refactors into "provably equivalent" and "trust me". For each "trust me", give the smallest input that breaks it.
Use when: Async behavior, duplicated state, or refactors need semantic analysis.
Testing and verification ยท runs in a repo
<role> You're my launch QA lead. Send 5 first-time users through this app, one subagent each, find every spot where they get confused, stuck or annoyed, then fix it and prove it's fixed. </role> <inputs> App: [local dev or staging URL] First success: [e.g. "created their first project"] Accounts: [5 pre-verified logins, or "sign up fresh" if there's no email verification] Subagents can't ask me anything, so settle these first. If first success is blank, propose one from the code and wait for my OK. If signup needs email verification and there aren't 5 accounts, tell me. </inputs> <setup> - Chrome DevTools MCP: one new_page per user with its own isolatedContext. Each user only uses its own pageId and sets viewport, network and CPU in one emulate call. - Playwright MCP: run the users one at a time in clean sessions. - Mark anything you can't emulate "not tested". Never fake it. - Ask me to allow the browser tools once before you spawn. - Local dev or staging only, test-mode payments, no real people's data. </setup> <users> Spawn 5 in parallel. Each gets only the URL, its persona, its own login, first success, its folder qa/first-users/run-N/<id>/ and the <walkthrough> rules. No code, docs or hints. <user id="impatient">Skims, clicks the first button that looks like progress, gives each screen 10 seconds and quits at the first error, endless spinner or confusing field.</user> <user id="skeptic">Reads pricing, terms and privacy first. Is the full price clear after the trial? Why is each signup field needed? Can I cancel or delete my account (find it, don't use it)? Would I trust this with my card?</user> <user id="mobile">375px touch screen, Slow 3G, CPU slowed 4x. Flags blank loads, layout jumps, sideways scroll, tap targets under 44px, sticky bars over the main button and modals that won't close.</user> <user id="non-native">English is their second language. Follows only what the UI literally says. Flags idioms, jargon, unlabeled icons, placeholder-only labels and errors that don't say how to fix them.</user> <user id="breaker">Pastes junk into every field (empty, 5,000 characters, emoji, Arabic, O'Brien, a script tag, a SQL injection string), hits back and refresh mid-submit, double-clicks everything, uses two tabs. Flags crashes, duplicates, lost input and unescaped output.</user> </users> <walkthrough> - Landing page to first success, alone, thinking aloud: what you expect before each action, what happened after. - Screenshot every screen as NN-slug.png. At each friction point, log a one-line quote, the URL, console errors, failed requests and a severity: 4 blocker (can't finish), 3 major, 2 minor, 1 cosmetic. - Stuck: try twice like a real person, then give up and record where. - Never delete, invite, message anyone or pay for real. Stop at first success or 60 actions. - Write only in your folder. Don't read code or other qa/ files. - End with: reached first success (yes/no), actions taken. </walkthrough> <fix> Merge the reports into one list, one item per root cause: blockers first, then by how many users hit it, ties by severity. Add each item's likely cause (file:line). On branch qa/first-users-fixes, fix it all in one pass. Fix causes, not symptoms, and change nothing unlisted. Pricing, terms and privacy wording go on a "needs a human" list with a suggested rewrite. Run the existing tests. </fix> <verify> Test the fixed build: run the branch locally, or ask me to deploy it to staging. Rerun all 5 as fresh subagents into run-2/. Then a judge subagent that did no fixing checks the run-1 list against both runs' screenshots and marks each item fixed, not fixed, not reached or new. Fixed means a run-2 screenshot shows the user getting past it. Screenshots beat your notes. </verify> <stop> Anything still open: one more fix pass, run-3 with all 5 users and a fresh judge. Stop after run 3 and list what's left for a human. </stop> <output> qa/first-users/report.md: what you couldn't test, a run-1 vs final scoreboard per user, and the ranked list with status, screenshots and files changed. If the project uses Playwright Test, save each user's final path to tests/first-users/. </output>
Use when: You are about to launch a web app and want realistic first-run friction found, fixed and proven fixed.
State machines and semantics ยท runs in a repo
audit and find implicit state machines in this <codebase/directory/module> that would drive concrete improvements if made explicit. explain before/after of each one and discuss with me in lavish-axi. fewer words, big visuals
Use when: Implicit state transitions may benefit from explicit modeling; the prompt references lavish-axi.
Performance ยท runs in a repo
find every place we load a whole row from the database just to read a couple of fields. instead, select only what we need
Use when: Database queries fetch whole rows while using only a few fields.
Performance ยท runs in a repo
remove all unnecessary `new URL()` parsing
Use when: Repeated or redundant URL parsing may add unnecessary work.
Performance ยท runs in a repo
compute all regexes at the module level instead of inside functions and loops
Use when: Regexes are repeatedly constructed in functions or loops.
Performance ยท runs in a repo
find hot-path reads of a single key from a large jsonb column and promote that key to a real column
Use when: A hot path repeatedly reads a single key from a large JSONB value.
Codebase audits and simplification ยท runs in a repo
Run a deep test audit to find unused legacy code, using subagents where helpful. Prove code and tests are obsolete before removing them; fix genuine bugs instead of hiding failures. Preserve meaningful coverage, run relevant checks, and report changes and remaining blockers.
Use when: A repo has accumulated unused legacy code and low-value tests, and you want proof-backed removal.
Security and system cleanup ยท runs on your machine
Given recent IT security news, can you please audit my various accounts and what I've got installed on the computer and let me know the actions I need to take?
Use when: There has been security news and you want an agent with computer use to check your accounts and installed software and list the actions to take.
Security and system cleanup ยท runs on your machine
I have a lot of linked apps and tbh i think a huge amount of them should not be linked. please review the list and suggest apps to remove in a numbered list https://myaccount.google.com/linkedapps?continue=https%3A%2F%2Fmyaccount.google.com%2Fsecurity
Use when: You have connected many apps to your Google account over the years and want an agent to suggest which to remove. Open the linked apps page in Chrome first and tell the agent the tab is open.
Agent workflows and retrospectives ยท runs in a repo
List every assumption you're making about this codebase. Mark each one verified (you read the actual code) or guessed (you inferred it, and say why). Propose your highest confidence surgical fix for each, but don't apply it yet. Stop and wait for my manual review.
Use when: An agent is about to change code in a codebase it may not fully understand, and you want its guesses surfaced first.
Testing and verification ยท runs in a repo
test this e2e & give me irrefutable proof it works
Use when: A completed feature needs end-to-end evidence that it works.
Testing and verification ยท runs in a repo
/goal Check [COMPONENT NAME OR PATH] and make sure it survives the content and states it will encounter in real use. INSPECT ONLY THIS COMPONENT. Do not modify it yet. Read its actual props, slots, states, data sources, and where it is used. Based on what it really accepts, select the stress cases that apply. TEST THESE WHEN RELEVANT: โ No data, one item, and many items โ Loading, error, disabled, and permission-denied states โ Normal text, very long text, and an unbreakable string โ Missing images, very large numbers, and incomplete data โ A 320px viewport and any other widths the component supports โ Dark mode; skip it if the project does not support it Do not add irrelevant cases just to make the list longer. BUILD THE TEST PAGE: Create a temporary page inside the app. Import the real component and use the projectโs existing fonts, styles, tokens, and layout context. Render every scenario side by side in one pass. Do not rebuild a lookalike component or connect to production data. Open the page and record only problems you can actually reproduce. Do not predict failures from the code or report personal taste as a bug. FIX ONLY CONFIRMED PROBLEMS: Fix them one at a time. After each change, rerender the original failing state and verify: โ Content no longer overflows or disappears โ Primary actions still work โ Keyboard and focus behavior did not regress โ States that already passed were not broken Do not use this as an excuse to redesign the component, change its public API, or touch functionality outside the test page. RETURN: โ Every state you tested โ Before-and-after screenshots โ What you fixed โ Anything still unresolved โ Relevant test and build results DONE WHEN: Every applicable state has been rendered, every confirmed problem has been fixed and retested, the existing tests pass, and the build succeeds.
Use when: A key component only ever saw sample data and you want it checked against empty, long, failing and narrow-screen cases.
Codebase audits and simplification ยท runs in a repo
single source of truth audit
Use when: The same fact or configuration may be maintained in multiple places.
Design and experience ยท runs in a repo
Find all the happy-path debt in my app: every screen that only works when data loads fast, nothing fails, lists aren't empty, text is short, and the screen is wide. Fix missing states and layout breaks, one component at a time, without changing my design and without breaking anything. Summarize by file: what happened before vs. how it works now.
Use when: An app works in the demo but breaks on slow loads, failures, empty lists, long text, or narrow screens.
Agent workflows and retrospectives ยท runs on your machine
## Opus 5.5 token audit Opus 5.5 is already priced low per token. Find what in this Claude Code setup still wastes tokens on every turn. Goal: the lowest cost per finished task. It must stay as thorough as it is now and keep taking on big tasks. Smaller requests don't count as a win if the task then takes more turns. ### 1. Measure first, change nothing List everything that loads when a session starts: - Every CLAUDE.md that loads (global, project, nested) and the files it imports - Skill listings: every name and description the model sees - MCP servers: which are connected, and which tools load upfront - Hooks or scripts that inject text into the conversation - Settings: model, modelSettings, CLAUDE_CODE_EFFORT_LEVEL, CLAUDE_CODE_SUBAGENT_MODEL If I paste `/context` or `/usage` output, use those numbers. Otherwise ask once, then count lines and bytes yourself. Read each file in full. Repeated, conflicting and outdated rules are easy to miss in a summary. ### 2. Check the Opus 5.5 settings **Effort**: report the level Opus 5.5 actually runs at and where it comes from. It starts at medium, and a top-level effortLevel in ~/.claude/settings.json doesn't count for it. **Checks**: list the test, build and typecheck commands this repo already has. A test run costs one turn. Higher effort adds thinking to every turn. **Subagents**: for each one, model, effort, and whether it writes code or only reads. With no model line it follows CLAUDE_CODE_SUBAGENT_MODEL, or the main model if that's unset. **Output**: an output token costs 100x a cache read, and thinking counts as output. Flag rules that make it write more than the task needs. ### 3. Label every instruction line **Keep**: what it can't work out from the repo, like how this project ships and how I like to work, plus fixes for mistakes it has made in this project. **Move**: playbooks for one workflow into a skill, so they load only when used. **Cut**: what it already does by default, and rules that contradict each other. Keep each CLAUDE.md under ~200 lines. ### 4. Protect the cache These make the next request re-read the whole session uncached: switching `/model`, turning on fast mode, connecting an MCP server whose tools load upfront, and a skill that pins another model. - If you need another model's opinion, hand that task to a subagent so the main session keeps its cache. - Compact between tasks. Start unrelated work with `/clear`. ### 5. Keep long output out of the conversation - Test runs, builds, logs: return the failures plus the last few lines, and write the full log to a file it can grep. Cutting output at a fixed length can drop the error line it needed. - Progress notes: keep one short file and overwrite it. If it keeps growing, every later read costs more. ### 6. Off-limits - Adding "be concise" or "save tokens" to any prompt. An agent told to save tokens can start shying away from big tasks. - Dropping effort on hard tasks, or changing models halfway through a task, to cut the bill. - Judging by tokens per request. Measure cost per finished task. ### 7. Report, then wait 1. Baseline: each source, its size, when it loads 2. Changes, biggest saving first: what it saves and how you worked that out, what could get worse, how to reverse it 3. The exact edits to each instruction file, each one tagged Keep, Move or Cut Back up every file before touching it. Apply nothing until I approve.
Use when: Your Claude Code setup burns tokens every turn and you want a measured, approve-first cleanup plan.
Security and system cleanup ยท runs on your machine
remove all the apps, tcc/permission grants, login items, daemons, kexts, browser exts, homebrew packages, etc., that I don't need and use.
Use when: The user explicitly wants to review and remove unused macOS software and permissions.
Security and system cleanup ยท runs in a repo
Read this incident: https://x.com/Scott_Helme/status/2122422157959471456 Help me understand what the root cause of this issue is. Do we load any third-party JS that would be susceptible to a similar attack (if that third-party JS provider were compromised)?
Use when: A third-party script provider has been compromised and you want to know if your site is exposed to a similar attack.
Agent workflows and retrospectives ยท runs in a repo
Look through my Claude Code chat history for this repo in ~/.claude/projects/. 1. Find the files and folders agents visit most often. 2. For each one, count how many tool calls it usually took to get there, and roughly how many tokens that used. 3. Flag the paths where the agent searched, opened the wrong files, or backtracked before finding the right spot. 4. Rank the 5 most wasteful paths by total tokens burned. 5. Suggest the smallest CLAUDE.md edits that would send an agent straight there. Pointers, not paragraphs. Don't change any files yet. Show me the report first.
Use when: You want to see which paths in a repo cost your agents the most searching and backtracking.
Security and system cleanup ยท runs on your machine
scan my system to find what's eating up storage. look for large files, old installers, unused apps, cache folders, stale project folders, and anything else safe to clean up. list everything by category with size, and flag what's safe to auto delete vs what needs my review before deleting. don't delete anything yet, just give me the list first.
Use when: Your disk is full and you do not know why.
Codebase audits and simplification ยท runs in a repo
Map this codebase for me. Show the folder structure, what each main file does, how data flows from UI to database, and the 5 riskiest files to touch. Write it all to ARCHITECTURE.md.
Use when: A project has grown messy and you want a written map of its structure, data flow, and riskiest files.
Security and system cleanup ยท runs in a repo
Install Cloudflareโs security-audit skill globally and invoke its full audit workflow on this project. github.com/cloudflare/sec โ https://t.co/PoZZnDNiPy Please implement this skill for my project repos or globally in my projects. Independently verify findings, implement targeted fixes for confirmed vulnerabilities, and run relevant tests. Preserve unrelated changes. Build an interactive security dashboard covering frontend, APIs, authentication, databases, infrastructure and dependencies. Show: - Findings by severity and affected stack layer. - Open, fixed and verified remediation status. - Security posture before and after fixes. - Source evidence, code changes and test results. - Audit coverage, unverified areas and remaining priorities. Base posture assessments on evidence and clearly label coverage gaps.
Use when: A project needs a security audit and evidence of remediation; the prompt references an external Cloudflare skill.
Agent workflows and retrospectives ยท runs in a repo
look at last weeks sessions and suggest improvements
Use when: Recent coding sessions are available and the user wants to identify ways to improve their workflow.
Product ยท runs on your machine
what have customers told me? what should I be fixing next?
Use when: You have customer feedback in connected tools (support, email, chat, CRM) and want the agent to surface what to fix next.
Agent workflows and retrospectives ยท runs on your machine
Time frame: 30d
Work out what my Claude Code sessions in this time frame would cost if I had paid for
them on the Claude API at Anthropic's list prices. Use only Python's standard library
and do it in one script you write to a temporary folder. Do not send my logs or any
results anywhere.
1. **Prices.** Fetch `https://platform.claude.com/docs/en/about-claude/pricing.md`
(the public pricing page, as Markdown). From the "Model pricing" table take, per
model, the USD per million tokens for: base input, 5-minute cache write, 1-hour
cache write, cache read and output. From the "Fast mode pricing" section take the
fast-mode input and output price per model; fast-mode cache prices are the base
cache prices scaled by fast input divided by base input. Take the web search price
per 1,000 searches. Never guess or hard-code a rate. If the page cannot be fetched,
stop and tell me.
2. **Usage.** Read every `*.jsonl` file under `~/.claude/projects/`, recursively, so
subagent logs under `<project>/<session>/subagents/` count too and belong to their
parent project. Each line is JSON. Keep lines whose `message.usage` and
`message.model` are set, skipping the model `<synthetic>`. A reply is written as
several lines that stream, so its usage is only final on the last one: treat each
`(message.id, requestId)` pair as one reply and keep each usage field's largest
value across its lines, not the first line's. Use the first line's `timestamp`
(ISO, UTC) and keep only replies inside the time frame, counted back from now
(`all` means everything; a month is 30.44 days).
Claude Code deletes logs after its cleanup period (30 days by default). If the
time frame starts before the oldest log, estimate the missing days from
`~/.claude/stats-cache.json` (what /stats shows): `dailyModelTokens` has tokens
per day per model, `modelUsage` has each model's split by token type (use it to
split a day's tokens), `dailyActivity` has sessions per day. /stats adds up every
log line, so it counts each reply several times. Measure that overcount on the
full days that have both logs and cache (cache tokens divided by log tokens, all
types summed) and divide the missing days by it. Never hard-code the ratio. Price
the estimate's cache writes at the 5-minute rate, so it is a lower bound. If the
file is missing or no day has both, skip the estimate and say why.
3. **Price each reply** at the rate of the model that wrote it. Map the model id to
the pricing table by dropping a trailing `[...]`, a leading `claude-`, any
`anthropic.`/`us.anthropic.` prefix and a date suffix (`claude-haiku-4-5-20251001`
is Haiku 4.5; old ids like `claude-3-5-haiku` are Haiku 3.5). From `usage`:
- `input_tokens` at the input rate, `output_tokens` at the output rate,
`cache_read_input_tokens` at the cache read rate;
- `cache_creation.ephemeral_5m_input_tokens` and `ephemeral_1h_input_tokens` at the
5-minute and 1-hour write rates; if both are missing, put all of
`cache_creation_input_tokens` at the 5-minute rate;
- `speed == "fast"` means fast-mode rates;
- `server_tool_use.web_search_requests` at the web search price.
A model with no list price is left out of the total and listed as unpriced.
4. **Tell me:** the total API cost for the time frame, the number of sessions
(distinct `sessionId`) and replies, the split by cache reads, cache writes, output,
fresh input and web searches (tokens and dollars each), cost by model, the top six
projects (the project is the log's folder name under `~/.claude/projects/`), any
unpriced models, and the date the prices were fetched. If part of it is the
estimate, say how much, for which dates, and the overcount you divided by;
projects and per-day cover the logged days only.
5. **Card.** Write the same figures as one self-contained HTML page to
`~/api-bill/api-bill-<timeframe>-<date>.html` and give me the path: the total in
large type, the itemised split as a receipt, bars for cost by model and by
project, a bar chart of cost per day, and a table of the prices used, and the
estimate (if any) marked as one. Start the page with `<!doctype html>`,
`<meta charset="utf-8">` and a viewport meta tag, so symbols such as "ยท" and "ร"
show correctly when opened locally. Make it readable on a phone and in dark mode. If you can publish Artifacts in this
session, offer to publish the card as a private page. It shows my project names,
so never make it public.
Do not compare with my subscription price. This is what the same work would cost on
the API, nothing more.Use when: The user wants a local, offline-safe report of what their Claude Code sessions over a time frame would have cost at Anthropic's API list prices, with an HTML summary card.
Design and experience ยท runs in a repo
Audit my app's buttons. First match wins: 1. opens options or navigates โ trailing chevron 2. familiar symbol โ leading icon 3. in a group of actions โ leading icon 4. needs more input โ ellipsisโฆ 5. anything else โ plain text
Use when: You want consistent button treatment: a trailing chevron for navigation or options, a leading icon only when it helps, an ellipsis when more input is needed, and plain text otherwise.
Codebase audits and simplification ยท runs in a repo
Visit [domain] like a strict enterprise buyer doing due diligence. Check DNS records, every footer/legal link, public JS bundles, and onboarding pages, and give me a checklist of anything broken or sloppy.
Use when: The user wants an outside-in check of a live site or product, run from an empty folder with no repo access, to catch broken links, stale subdomains, and sloppy public pages.
Codebase audits and simplification ยท runs in a repo
Review the repository without changing it. Map its subsystems and boundaries, then examine each for worthwhile improvements to data structures, state representation, algorithms, control flow, and ownership. Use bounded, independent reviews where available. Keep a shared coverage record, including explicit decisions that no change is warranted. Limit each subsystem to two strong recommendations, supported by file references, proposed changes, scope, risks, validation needs, and confidence. Independently check findings, remove duplicates and weak abstractions, and review coverage before ranking recommendations by impact and dependencies. Do not implement changes or run tests during the audit. This is an editorial summary. Read the linked gist for the complete workflow.
Use when: You want evidence-backed simplification recommendations before authorizing code changes.
Design and experience ยท runs in a repo
Assess the current product without modifying its repository. Establish its users, goals, and constraints from workspace evidence. Track coverage of screens, states, and complete journeys, combining code inspection with safe runtime observation. Focus on desktop and tablet, including keyboard, touch, accessibility, and recovery behavior; phone optimization is generally excluded. Coordinate bounded reviews, keeping shared browser sessions serialized. Support recommendations with concrete user consequences, screenshots where useful, implementation references, acceptance criteria, and validation needs. Check design-system ownership and only use competitor examples for demonstrated, contained gaps. Independently verify findings, record inaccessible or unverified areas, and prioritize small implementation slices with cross-functional handoffs. This is an editorial summary. Read the linked gist for the complete workflow.
Use when: You need a product-wide UX review with an actionable handoff for product, design, and engineering.
Security and system cleanup ยท runs on your machine
Audit my Mac for AI agent transcripts (Claude, Codex, Cursor, Grok), SQLite session logs, and leftover editor dotfolders older than 30 days. Show me the sizes first, delete everything >30 days old, and add a daily 30-day auto-prune check.
Use when: The user wants to review and remove old coding-agent transcripts, session logs, and leftover editor folders on a Mac.
Paste the setup prompt into your agent once. Then ask for a prompt whenever you like, or have it suggest one every morning.
for botsprompts.jsonrssjson feedllms.txtadd a prompt โupdated
Good Prompts is a collection of 45 prompts that developers have posted on X.com for coding agents such as Claude Code and Codex. Each prompt is shown next to the post it came from, credited to its author, and tagged with when to use it.
Copy the prompt and paste it into Claude Code, Codex or another coding agent. Prompts marked โruns in a repoโ act on the project the agent is working in; prompts marked โruns on your machineโ act on your computer more broadly, so read them before running.
The prompts are grouped into 8 categories: design and experience, security and system cleanup, performance, product, testing and verification, codebase audits and simplification, agent workflows and retrospectives, state machines and semantics. Most ask an agent to test, audit or simplify a codebase.
Yes. Paste the setup prompt near the top of this page into Claude Code, Codex, Cursor or another agent. It installs the daily-prompt skill with npx skills, which picks one prompt that fits your project whenever you ask and checks with you before running it. The setup prompt also offers to put it on a schedule, for example every weekday morning.
Yes. The full list is at /prompts.json, with RSS at /feed.xml, a JSON Feed at /feed.json and a plain-text summary for language models at /llms.txt. New prompts are added by pull request to prompts.json on GitHub.
good prompt "find all of the implicit state machines in my app"
Go ahead and point Neon / Claude / Codex look at your Wi-Fi to optimize it, I just tried and it ๐คฏ Posting a full prompt in the ๐งต
Vibecoders, ๐'๐บ ๐ฏ๐ฒ๐ด๐ด๐ถ๐ป๐ด ๐๐ผ๐, before your next website or app, paste this into Claude Code or Codex: "I want this to be as perfect as Linear's website or Apple Notes: simple purpose, simple architecture, simple design, simple implementation. Cut taglines, helper textย Show more
Good prompt to polish your app, enjoy. Test this in the browser at different widths, with touch emulation, and on a throttled 3G connection. Fix anything that looks broken or feels off. Save a before and after screenshot for every fix and send me a summary afterwards.
Instructions to get your CI under 2 minutes โก
Our frontend CI is now under 2 minutes. What we did: - tsc to bun check - oxlint, every rule we can turn on - shards filled by recorded test time - PRs run only the tests the diff can reach - lint, typecheck, build and tests all run in parallel
This is an amazing prompt that helps find a ton of bugs for me. โFind the appโs explicit and implicit state machines and document their states, invariants, and transition tables in one file. Identify invalid states or transitions the code can actually reach, with evidence,ย Show more
My biggest UI pet peeve: animations that are not origin-aware. Dropdowns, popovers, menus, etc. should scale from their trigger, not from the center. Just send this to your agent: Make all trigger-based UI elements in this app animate from their trigger, not their center.
use this prompt on your favorite codebase where you don't hate your users: do a deep scan of all hot paths and fix any unnecessary sequential async functions calls the diffs are very easy to review and almost always find some bangers
you can make almost any program self-improve btw step 1: prompt your agent "help me plan comprehensive logging such that we can replay what the user experienced, meaningful internal operations, and visible outcomes" step 2: setup a daily loop with this prompt "analyze my logsย Show more
Claude Fable 5.2 is out and it's the perfect time to run this god-level prompt on your codebase: "I want you to audit our codebase, is anything here unnecessary, overly complicated in our current setup, or based on weak assumptions? Challenge them. - What can be deletedย Show more
Introducing Claude Fable 5.2 and Claude Mythos 5.2, designed to tackle the most daunting technical challenges. Theyโre capable collaborators on ambitious projects in many fields, and show improvements in areas like coding, reasoning, and vision.
One of my favorite prompts for Gemini Neon especially for apps โ/goal Hillclimb the latency, bytes transferred, and overall lag of my app. Make it lightning fast. Track all metrics and get each of them as low as possible. Feel free to redesign core infrastructure if it makes theย Show more
80-90% of major "AI incidents" that cause real harm have no attacker, just an agent tripping up on a poor codebase. i turned the latest research into into a prompt that checks your setup for the most common causes. Hand it to your agent -> github.com/jdpru/cover-yoโฆ
๐๐ผ๐ฑ๐ฒ๐ ๐๐ถ๐ฝ: if you still have half your quota left when it resets, youโre throwing away days of Sol. Use `/goal` to squeeze every last bit out of it: audit your entire site, map your codebase, speed up your app, or even clear out the half-finished work in your workspace.ย Show more
Prompts to use with Fable 5.2 to improve your codebase. 1/ Full health check. from Alex Albert๏ผAnthropic Read this entire project and find everything that's broken, inconsistent, inefficient, or no longer needed. Fix what you're sure about and list the rest for me to review.ย Show more
Prompts to use with Fable 5.2 to improve your codebase. 1/ Full health check. from Alex Albert๏ผAnthropic Read this entire project and find everything that's broken, inconsistent, inefficient, or no longer needed. Fix what you're sure about and list the rest for me to review.ย Show more
this prompt is already god tier. here's the elaborate version : "Recover my program's minimal semantic model. 1. State: every value that changes what the user sees 2. Transitions: what commutes, what's idempotent, what's order-dependent 3. Dependencies: what must be trueย Show more
BREAKING: Claude Code and Codex can now QA your app before you launch. Every bug and dead end gets a screenshot. The agents fix them all, then rerun to prove it. Copy this QA prompt:
this is a really good prompt you can use to feel the power of fable 5.2 btw! i'd send it as - "audit and find implicit state machines in this <codebase/directory/module> that would drive concrete improvements if made explicit. explain before/after of each one and discuss withย Show more
more bangers for those who like healthy systems, fast software, and happy users > find every place we load a whole row from the database just to read a couple of fields. instead, select only what we need > remove all unnecessary `new URL()` parsing > compute all regexes at theย Show more
use this prompt on your favorite codebase where you don't hate your users: do a deep scan of all hot paths and fix any unnecessary sequential async functions calls the diffs are very easy to review and almost always find some bangers
more bangers for those who like healthy systems, fast software, and happy users > find every place we load a whole row from the database just to read a couple of fields. instead, select only what we need > remove all unnecessary `new URL()` parsing > compute all regexes at theย Show more
use this prompt on your favorite codebase where you don't hate your users: do a deep scan of all hot paths and fix any unnecessary sequential async functions calls the diffs are very easy to review and almost always find some bangers
more bangers for those who like healthy systems, fast software, and happy users > find every place we load a whole row from the database just to read a couple of fields. instead, select only what we need > remove all unnecessary `new URL()` parsing > compute all regexes at theย Show more
use this prompt on your favorite codebase where you don't hate your users: do a deep scan of all hot paths and fix any unnecessary sequential async functions calls the diffs are very easy to review and almost always find some bangers
more bangers for those who like healthy systems, fast software, and happy users > find every place we load a whole row from the database just to read a couple of fields. instead, select only what we need > remove all unnecessary `new URL()` parsing > compute all regexes at theย Show more
use this prompt on your favorite codebase where you don't hate your users: do a deep scan of all hot paths and fix any unnecessary sequential async functions calls the diffs are very easy to review and almost always find some bangers
Paste this into Codex with GPT-6.1 Sol Ultra if you want to delete all the dead code and bloated tests in your repo: It nearly costed me just 5% of the weekly limit while obtaining a huge clean up in my codebase "Run a deep test audit to find unused legacy code, using subagentsย Show more
Very useful prompt for Codex with computer use.
If you care about your privacy: 1. Go to myaccounts.google.com in Chrome 2. Run this prompt in Codex or Claude Code and tell it there's an open tab in your browser 3. Then pick the ones you want to remove and tell AI to do it Just disconnected half the apps that should noย Show more
If youโre vibe coding with Claude Code, Codex, or Grok, steal this prompt: "List every assumption you're making about this codebase. Mark each one verified (you read the actual code) or guessed (you inferred it, and say why). Propose your highest confidence surgical fix forย Show more
I'll say this: I've gotten more out of using orbs and asking agents "test this e2e & give me irrefutable proof it works" than out of 80% of tests I've written and ran over the last 15 years. It's truly remarkable that we can now ask machines: "Did you manually test it?"
I agree with @thorstenball, I think unit tests are dead in the water. The ones the models write are terrible, at best just doubling total LOC. Inverting the testing approach - heavy e2e/black box/golden master, reaching for lower levels only if necessary, works better for me
Codex tip: before you ship, use /goal to stress-test your appโs most important component in every state that matters. Donโt let users be the first to find the broken ones. A component working with sample data only proves that the sample didnโt break it. What happens with noย Show more
๐ฅฉ a prompt: "single source of truth audit" ๐ซด
If you still think Claude Code and Codex ๐๐๐ฐ๐ธ ๐ฎ๐ ๐ฝ๐ผ๐น๐ถ๐๐ต, try this: "Find all the happy-path debt in my app: every screen that only works when data loads fast, nothing fails, lists aren't empty, text is short, and the screen is wide. Fix missing states and layoutย Show more
This Claude Code prompt is literally a $300/hr token auditor for Opus 5.5 ๐คฏ ๐ฐ๐ผ๐ฝ๐ ๐ฎ๐ป๐ฑ ๐ฝ๐ฎ๐๐๐ฒ the full prompt ๐
๐๐น๐ฎ๐๐ฑ๐ฒ ๐๐ผ๐ฑ๐ฒ ๐๐ถ๐ฝ: once Opus 5.5 is your main model, don't let your Fable quota sit idle. Put Fable on call with /advisor. Run /advisor fable and Claude Code gets ๐ฎ๐ป ๐ฎ๐ฑ๐๐ถ๐๐ผ๐ฟ ๐ผ๐ป ๐๐ต๐ฒ ๐๐ถ๐ฑ๐ฒ๐น๐ถ๐ป๐ฒ๐. Opus 5.5 keeps doing the work and usually calls Fable pic.x.com/Xi7vFzhGl2
It's a good day to ask your agent to lock down your machine: "remove all the apps, tcc/permission grants, login items, daemons, kexts, browser exts, homebrew packages, etc., that I don't need and use." I kept only Chrome, Amp (orbs only, no more local dev for me), Ghostty,ย Show more
We removed third-party JS on Amp awhile ago after the first such attack. But today's Optimizely/KissMetrics/etc compromise is a good reminder. Here's the prompt in Amp that I used to double-check: > Help me understand what the root cause of this issue is. > Do we load anyย Show more
We are tracking a breach of a 3rd-party JS host impacting hundreds of high value websites. This is staggering.
Opus 5.5 is crushing the game right now. Here's a prompt that you can copy and paste into Claude to audit your tool calls and improve efficiency even more. ---- Look through my Claude Code chat history for this repo in ~/.claude/projects/. 1. Find the files and foldersย Show more
Introducing Claude Opus 5.5, the first model in our new Claude 5.5 family. It performs at the level of Claude Fable 5.1 for most tasks, and costs 40% less to run than Opus 5.
codex tip: use codex to free up storage if your storage is full and you have no idea what's eating it up. just ask codex. prompt: "scan my system to find what's eating up storage. look for large files, old installers, unused apps, cache folders, stale project folders, andย Show more
Paste this into Claude Code when your project gets messy: "Map this codebase for me. Show the folder structure, what each main file does, how data flows from UI to database, and the 5 riskiest files to touch. Write it all to ARCHITECTURE.md." You'll understand your ownย Show more
Try this prompt Install Cloudflareโs security-audit skillโ globally and invoke its full audit workflow on this project. github.com/cloudflare/secโฆ Please implement this skill for my project repos or globally in my projects Independently verify findings, implement targetedย Show more
btw this was discovered by a simple "look at last weeks sessions and suggest improvements" prompt. use @mattpocockuk's /retro for something more intense.
My attention span is shot to shit. Claude recommended this addition to Agents.md and... I'm loving it? It's giving me a literal TLDR at the end of each turn and I no longer have to read it's fuckhuge wall of text.
wildly underrated prompt: "what have customers told me? what should I be fixing next?"
Last 7 Days of my Claude Code usage would cost $6,211 if it ran on API instead of subscription ๐ Check the prompt in the comments if you wanna check yours ย Show more
good prompt: "audit my app's buttons. first match wins: 1. opens options or navigates โ trailing chevron 2. familiar symbol โ leading icon 3. in a group of actions โ leading icon 4. needs more input โ ellipsisโฆ 5. anything else โ plain text"