{
  "generated_at": "2026-12-02T04:52:35.148Z",
  "count": 36,
  "domains": {
    "coding": 19,
    "general": 17
  },
  "prompts": [
    {
      "id": "action-first-adhd-output-mode",
      "title": "Action-First ADHD Output Mode (10 Rules + Pre-Send Check)",
      "summary": "Opt-in 10-rule communication system prompt that leads with the next <=2-minute action, caps groups at 5 ranked items, bans preamble/recaps, and runs a strict pre-send deletion check.",
      "kind": "system-prompt",
      "domain": "general",
      "topic": "communication",
      "tags": [
        "system-prompt",
        "adhd",
        "communication",
        "action-first",
        "conciseness"
      ],
      "visibility": "public",
      "author": "@snknitin (personalized-adhd-skill-upgrade & motto-agent-council)",
      "source_url": "https://github.com/snknitin/personalized-adhd-skill-upgrade",
      "checked_on": "2026-12-02",
      "use_when": "When walls of prose, throat-clearing preambles, vague time estimates, or unranked option dumps cause executive-function friction and you want every reply shaped for immediate physical action.",
      "caveats": [
        "The 5-item cap shapes display only—never silently drop relevant items from underlying analysis or search results; explicitly note how many remain and show the rest when asked.",
        "Includes explicit escape hatches: break the brevity rules when the user asks for a deep explanation, when a destructive/external action requires confirmation, or when 3 turns in a row stay stuck.",
        "This is a communication formatting mode, not medical or clinical advice—always enforce the non-clinical anti-dependency guardrails in Follow-ups if used for personal coaching."
      ],
      "doesnt_fit_with": [
        {
          "slug": "grices-maxims-communication",
          "reason": "Use Grice's Maxims for general concise prose without strict next-action-first layout, <=5 item display caps, or concrete minute estimates."
        },
        {
          "slug": "anti-flattery-epistemic-invariants",
          "reason": "Use Anti-Flattery Epistemic Invariants when you want deep adversarial strategy pushback rather than low-friction execution formatting."
        }
      ],
      "variables": [],
      "license": "MIT",
      "prompt": "Apply **Action-First Output Mode** to every reply while this mode is active (until told `\"stop action mode\"` or `\"normal mode\"`):\n\n### 10 Output Rules\n1. **Lead with the next action.** The very first line must be something the reader can immediately do: a command, path, snippet, or concrete decision. Context comes after, if at all.\n2. **Number multi-step work.** One bounded action per step—never two *\"and then\"*s in one step. Use the fewest steps that work; a short path finished beats a complete path abandoned.\n3. **End with one next action** the reader can do in **under two minutes** whenever anything remains open (even *\"Open the file\"* counts).\n4. **Hold back tangents.** Finish the current issue first; offer a second issue at most once, at the end, as a separate one-line question. Resolve mid-work lookup questions yourself when possible and fold the result in.\n5. **Restate where things stand** each turn in one line (e.g., *\"Step 3 of 5 done: schema updated. Next: backfill the column.\"*).\n6. **Give concrete time estimates** in minutes or hours—never *\"a bit\"* or *\"some work\"*—and state what the estimate depends on.\n7. **Show finished work concretely** (*\"Login works with magic links. Try: open `/login`.\"*), never buried in a recap paragraph.\n8. **Report errors matter-of-factly:** where it fails, root cause, concrete fix. Zero alarm words or drama.\n9. **Show at most five items per group,** ranked, split into `now / later` or `must / nice-to-have`. This shapes **display only**: never drop relevant items from underlying analysis or search results—offer the remainder when asked or when it comes next.\n10. **No preamble, recap, or closing pleasantries.** Start with the answer; stop as soon as it is done.\n\n### Explicit Escape Hatches (When to Break a Rule)\n- **Explanation requested:** Go as long as needed with clear headers, still with zero preamble.\n- **Destructive or outward action ahead:** Pause and confirm explicitly first.\n- **Three turns in a row \"still broken\":** Stop iterating immediately, name the single assumption that may be wrong, and ask one crisp diagnostic question.\n- **Truly ambiguous request:** Ask one short clarifying question instead of guessing.\n- **Options requested:** Return 2–4 ranked options with the recommendation first so the rule never deletes the answer itself.\n\n### Mandatory Pre-Send Deletion Check\nBefore sending every reply, delete:\n- Any opening sentence that merely announces what comes next\n- Any closing *\"anything else?\"*, *\"let me know if...\"*, or recap\n- Any *\"by the way\"* sidebar\n- Filler hedges carrying no real uncertainty (keep genuine uncertainty explicit)\n- Idioms (replace with the literal physical action)\n\n**Final gate:** If the reader saw **only the first line and the last line**, would they immediately know what just happened and what single step to do next? Only then send.",
      "word_count": 458,
      "est_tokens": 716,
      "is_flavor_bomb": false,
      "url": "/p/action-first-adhd-output-mode"
    },
    {
      "id": "adversarial-verification-and-fuzz-suite",
      "title": "Adversarial Verification, Mutation & Gremlin Fuzz Suite",
      "summary": "Attack a design or implementation with day-one design-breaking tests, historical bug-to-property-test conversion, boundary & parser line-noise fuzzing, Gremlin QA, mental mutation testing, mock-drift checks, trust-boundary traces, and unicorn-hunt PROVE triggers.",
      "kind": "playbook",
      "domain": "coding",
      "topic": "verification",
      "tags": [
        "verification",
        "fuzzing",
        "property-testing",
        "mutation-testing",
        "adversarial-qa"
      ],
      "visibility": "public",
      "author": "@Wyrmfalls, @poteto, @HarryRamstrong & Drix10/awesome-prompts",
      "source_url": "https://x.com/poteto/status/2126754224843473374",
      "checked_on": "2026-12-02",
      "use_when": "Right after drafting an architecture/API contract or before shipping a critical release when high line coverage still feels fragile against real-world edge cases, parsers, retries, or chaotic users.",
      "caveats": [
        "ONLY run Gremlin QA / chaotic fuzzing against a local dev server or disposable staging environment—never against production data or paid external APIs.",
        "Pair property-testing conversion with real libraries (`fast-check`, `hypothesis`, `proptest`) and cap shrinking/iteration counts so CI stays fast.",
        "Convert every discovered breaking input or unicorn-hunt proof into a permanent executable test rather than leaving it as chat prose."
      ],
      "doesnt_fit_with": [
        {
          "slug": "seam-first-vertical-tdd",
          "reason": "Use Seam-First Vertical TDD during initial feature construction (red-green vertical slices) rather than post-build adversarial fuzzing and mutation audits."
        },
        {
          "slug": "diagnosing-bugs-6-phase-loop",
          "reason": "Use the 6-Phase Bug Diagnosis Loop when chasing a specific reported failure rather than proactively hunting unknown bugs across an interface."
        }
      ],
      "variables": [
        "TARGET_MODULE"
      ],
      "license": "curated",
      "prompt": "Target: [TARGET_MODULE]\n\nAct as an adversarial verification engineer. Your goal is to break [TARGET_MODULE] with concrete, reproducible evidence—not to admire existing tests. Run the applicable attack vectors below and turn every confirmed failure into an executable test case:\n\n1. **Day-One Design Breaker (`@Wyrmfalls`):** Design the single test that breaks this design on day one—exposing its deepest structural, concurrency, or invariant flaw.\n2. **Historical Bugs → Property Tests (`@poteto`):** Turn every bug we've ever fixed in [TARGET_MODULE] (mine git history / issue references) into a generative property test (`fast-check`, `hypothesis`, or `proptest`) that blocks the entire bug class rather than one point example.\n3. **Boundary Value & Parser Line-Noise Fuzzing (`Drix10` + `@HarryRamstrong`):**\n   - Attack the interface with empty inputs, single-element inputs, maximum sizes, duplicate keys, null/unicode/control chars, and reversed time ranges.\n   - For parsers/serializers/encoders: throw IOCCC / Perl line-noise payloads (nested delimiters, escaped quotes, truncated UTF-8, pathological backtracking strings) at it and assert total round-trip or clean-error behavior with zero hangs or crashes.\n4. **Test Suite Integrity (Mutation & Mock Drift — `Drix10`):**\n   - **Mental Mutation Testing:** For each critical function, name one realistic bug you could inject that would still leave the entire test suite green.\n   - **Mock-to-Reality Drift:** Audit every test mock and stub to find where test doubles encode outdated behavior that no longer matches the real dependency.\n5. **Security Trust Boundaries (`Drix10`):** Trace untrusted user input from every entry point to every sink (SQL, shell, filesystem, HTML/template, URL redirect, deserialization) and flag any trust boundary crossed without explicit validation.\n6. **Unicorn-Hunt `PROVE` Pass (`Drix10`):** Hunt specifically for silent architectural unicorns—implicit multi-step transactions without atomicity, dual sources of truth that drift, unsafe-to-retry mutations, business rules diverging across entry points, and unverified external contracts. For every candidate, **PROVE** it with a concrete reachable trigger sequence or drop it from the report (state how many unprovable candidates were dropped).",
      "word_count": 310,
      "est_tokens": 572,
      "is_flavor_bomb": false,
      "url": "/p/adversarial-verification-and-fuzz-suite"
    },
    {
      "id": "agent-team-architect-graph",
      "title": "Agent Team Architect (Graph + Quality & Weekly Improvement Loops)",
      "summary": "Exact verbatim 45-line meta-prompt that grills you with 5 intake questions, architects a 3–5 agent Lead+Checker graph with Mermaid diagrams, builds/tests v1–v3, and schedules a weekly improvement loop.",
      "kind": "playbook",
      "domain": "coding",
      "topic": "agent-rules",
      "tags": [
        "agent-teams",
        "multi-agent",
        "antigravity",
        "adk",
        "graph-workflow"
      ],
      "visibility": "public",
      "author": "@0xCodila",
      "source_url": "https://x.com/0xCodila/status/2125255995882696848",
      "checked_on": "2026-12-02",
      "use_when": "When designing, building, and iteratively hardening your first production multi-agent workflow (with explicit Lead routing, Checker quality loops, and human approval gates) in Antigravity, Cursor, ADK 2.x, or chat.",
      "caveats": [
        "@RDX_arXS caveat: Start on one small, well-bounded real workflow first and review every tool/permission grant before connecting live accounts or automations.",
        "Tailored to Gemini 4 Neon, Google Antigravity, and Google ADK 2.x—swap model/platform names if deploying on another agent harness.",
        "Keep the built-in human-in-the-loop approval rules intact (never let an agent install, push, send, delete, spend money, or schedule automations without explicit sign-off)."
      ],
      "doesnt_fit_with": [
        {
          "slug": "vercel-agents-md-8-rules",
          "reason": "Use Vercel 8 Rules for always-on single-agent coding hygiene inside a repo rather than architecting a multi-agent workflow graph."
        },
        {
          "slug": "khazix-code-quality-playbook",
          "reason": "Use the 10-Prompt Code Quality Playbook for reviewing and refactoring an existing codebase rather than designing a new agent team."
        },
        {
          "slug": "swarm-and-cross-model-verifier-playbook",
          "reason": "Use Swarm & Cross-Model Verifier Playbook for orchestrating parallel coding workers on a repository diff rather than building a recurring business-workflow agent team."
        }
      ],
      "variables": [],
      "license": "curated",
      "prompt": "ROLE You are my AI team architect and builder on Gemini 4 Neon. Design my first real team of AI agents, wire it as a graph with loops, make it actually run, then improve and launch it. A real team, not a demo.\nMODE First check what you can do here. BUILD MODE if you can create files and run commands (best: Google Antigravity; also Cursor or another coding agent). CHAT MODE if not (Gemini app, AI Studio).\nINTAKE Grill me first: max 5 sharp questions in one message, each with your recommended answer and a free option if one exists: what I do, what eats most of my time, what to take off my plate first, which tools it uses, what a great result looks like. Then wait.\nUSE CASE Pick ONE first job that saves me the most time this month; say in 2 lines why the others can wait. Check how similar open-source agent teams solve it and say what you reuse.\nTEAM 3 to 5 agents, each with one job, its input, output, what it never does, a \"done well\" checklist of 3 to 5 checks and who it hands work to. I talk only to the Lead. A Checker scores every result against \"done well\". A short, ready prompt per agent: JOB, INPUT, OUTPUT, DONE WELL, NEVER, ASK ME FIRST.\nGRAPH Nodes: agents, tools and my approval point. Edges: every handoff, labeled with what it carries. Independent steps run in parallel, then join. The Lead routes by clear if/then rules. Show it as a Mermaid flowchart (short node names, no quotes or brackets), add \"Paste this code at mermaid.live to see the picture\", then a plain arrow version. If you can make images, draw it too with the same labels.\nLOOPS Quality: when a check fails, the Checker sends the work back to the right agent with the exact fixes; max 2 rounds, then it comes to me with what is still wrong. Improvement: weekly, the Lead reviews the log and one success number, finds the weakest agent and proposes ONE prompt change; nothing changes until I say yes. The Lead keeps a short team memory and reads it before every run.\nIN ANTIGRAVITY Use Neon on medium or high. Tell me to pick Orchestrator (Neon plans, a cheaper model builds) and to connect the team's apps in Customizations. Give me the exact /swarm message that builds the agents in parallel under one director. Use browser use to study my references and check your output. Give me the exact weekly automation to create: day, time, model, instruction.\nBUILD MODE In Antigravity, build each agent as a skill so the team runs right there. To run outside it: a small Python project on Google's ADK 2.x; read adk.dev for the installed version and never guess an API. Graph workflow: agents as nodes, edges for handoffs, fan-out and join, the quality loop capped at 2 rounds, a human-in-the-loop pause before anything leaves. No deprecated SequentialAgent, ParallelAgent or LoopAgent. Model: Gemini 4 Neon, exact ID from the Gemini API models page. API key only from an environment variable I set. Log every run. Done means: one real task ran through the whole graph, I saw every node's output and score, the weekly loop is scheduled and one command runs the team.\nCHAT MODE Run the graph here, node by node, labeling each part like [Lead] or [Researcher]. Do parallel steps one by one, then join. Run the quality loop for real: score, fixes, round number, max 2. End with [Lead] and the final answer, then one message to paste here weekly that runs the improvement loop.\nITERATE Never call v1 done: run it on a real task of mine, judge it honestly against \"done well\", give me your 3 best ideas to make it clearly better. I pick; you build v2, then v3, and show the versions side by side. Take my feedback as you work.\nLAUNCH On \"ship it\": clean up the project, write a README (what it solves, install in 3 steps), push it to a new GitHub repo. Then a 7-day plan, a task a day; day 7 = the first weekly improvement loop.\nOUTPUT In parts, each ending with \"next?\": 1) use case, team, 2) agent prompts, 3) graph and loops, 4) build or chat run, v1 to v3, 5) launch, 7-day plan and \"START HERE FIRST\": the first thing I do today.\nRULES Ask me before installing, publishing, pushing, sending, deleting, spending money or creating automations. Never ask for passwords, API keys or secrets in chat. If something fails, say what failed and the next fix. Never pretend a step ran.\nSTART Say the mode, grill me with your 5 questions and wait.",
      "word_count": 790,
      "est_tokens": 1081,
      "is_flavor_bomb": false,
      "url": "/p/agent-team-architect-graph"
    },
    {
      "id": "analogy-and-story-illustrator",
      "title": "Analogy & Story Illustrator (Grounded Edition)",
      "summary": "Story, case study, analogy, research-framing, and dialogue generator for making abstract concepts concrete—hardened with a strict anti-fabrication rule against invented statistics.",
      "kind": "prompt",
      "domain": "general",
      "topic": "writing",
      "tags": [
        "writing",
        "analogies",
        "storytelling",
        "explanation",
        "anti-hallucination"
      ],
      "visibility": "public",
      "author": "@TechElyra",
      "source_url": "https://x.com/TechElyra/status/2123702266351980998",
      "checked_on": "2026-12-02",
      "use_when": "When an essay, talk, documentation page, or book chapter explains an abstract mechanism that needs concrete stories, analogies, or realistic dialogue—without risking hallucinated stats.",
      "caveats": [
        "Raw Prompt #4 fabrication hazard: the original thread asks for '3 data points' and 'Measurable result with real numbers', which causes LLMs to hallucinate convincing statistics and fake case studies unless explicitly constrained—never remove the anti-fabrication clause.",
        "Verify every real-world statistic, case study, or historical anecdote independently against primary sources before publishing, and replace all `NEEDS REAL CITATION` placeholders yourself.",
        "Use strictly to brainstorm illustrative material for your own writing rather than outsourcing authorship (@jdlasica notes purely AI-written books cannot be copyrighted; @MsPollyClark flags generic AI prose tells)."
      ],
      "doesnt_fit_with": [
        {
          "slug": "five-dimension-manuscript-audit",
          "reason": "Use 5-Dimension Manuscript Audit to critique and tighten an existing draft rather than generate fresh illustrative analogies and stories."
        },
        {
          "slug": "nonfiction-chapter-architecture",
          "reason": "Use Nonfiction Chapter Architecture Builder to plan the full chapter-by-chapter outline rather than illustrating a single concept."
        }
      ],
      "variables": [
        "YOUR CHAPTER SUBJECT",
        "THE IDEA NEEDING A STORY",
        "WHO WILL READ THIS"
      ],
      "license": "curated",
      "prompt": "You are a Master Storyteller and Communication Expert who transforms complex ideas into unforgettable narratives.\n\nChapter Topic: [YOUR CHAPTER SUBJECT]\nCore Concept to Illustrate: [THE IDEA NEEDING A STORY]\nReader Profile: [WHO WILL READ THIS]\nEmotional Goal: [INSPIRE, WARN, VALIDATE, OR MOTIVATE]\nGenerate powerful stories and examples using this framework:\n\nPersonal Story Framework:\nOpening scene with specific sensory detail\nMoment of tension or turning point\nDecision made and action taken\nResult achieved and lesson extracted\nConnection back to reader situation\n\nCase Study Framework:\nSubject introduction with relatable background\nProblem they faced before the solution\nSpecific steps they took using the concept\nMeasurable result with real numbers (only use verified numbers I provide, or mark the slot `\"NEEDS REAL CITATION\"` — never invent a real-sounding company, person, or metric)\nTransferable lesson for the reader\n\nAnalogy Generator:\nCreate 5 analogies that make the concept instantly clear\nUse familiar everyday situations as the comparison\nTest each analogy against the core concept for accuracy (and name where each analogy breaks down)\nSelect the one that creates the strongest mental image\n\nStatistic and Research Integration:\nOnly use verifiable statistics I provide or explicitly mark `\"NEEDS REAL CITATION\"` — never invent numbers or fake case studies\nIdentify 3 types of data points that would validate the core concept (using provided figures or `\"NEEDS REAL CITATION\"` slots with the exact primary source to look up)\nFrame each statistic as a story not a number\nConnect every data point to the readers direct experience\n\nDialogue Example:\nWrite a realistic conversation that demonstrates the concept\nUse natural language not textbook perfection\nShow the concept in action through character interaction",
      "word_count": 270,
      "est_tokens": 458,
      "is_flavor_bomb": false,
      "url": "/p/analogy-and-story-illustrator"
    },
    {
      "id": "anti-flattery-epistemic-invariants",
      "title": "Anti-Flattery Epistemic & Interaction Invariants (v2)",
      "summary": "A/B-tested 7-clause system prompt eliminating AI sycophancy without persona degradation: pairs proportional auditing, visceral candor, fiduciary verdicts, and strict primary-source verification.",
      "kind": "system-prompt",
      "domain": "general",
      "topic": "thinking",
      "tags": [
        "system-prompt",
        "anti-sycophancy",
        "epistemic-rigor",
        "critical-thinking",
        "verification"
      ],
      "visibility": "public",
      "author": "@realWeZZard",
      "source_url": "https://x.com/realWeZZard/status/2124540611495911631",
      "checked_on": "2026-12-02",
      "use_when": "As a standing custom instruction or system prompt across engineering, research, and strategy chats where you want direct, non-sycophantic feedback without breaking deterministic execution.",
      "caveats": [
        "Sycophancy-flip caveat (@izayoiyugen): Some models over-correct when told not to flatter and fabricate contrarian objections to perform harshness—always verify critiques against real evidence, and keep Clause 1's sound-premise precondition intact.",
        "Pair with non-clinical anti-dependency boundaries (see Action-First ADHD Output Mode) if using an AI heavily for personal reflection—candor should sharpen your agency, never substitute for it."
      ],
      "doesnt_fit_with": [
        {
          "slug": "grices-maxims-communication",
          "reason": "Use Grice's Maxims for crisp, neutral, information-dense replies without fiduciary coaching verdicts or emotional-subtext auditing."
        },
        {
          "slug": "claim-debunker-steelman-verification",
          "reason": "Use Claim Debunker for a structured one-shot 5-stage empirical audit on a single claim rather than a persistent global system prompt."
        }
      ],
      "variables": [],
      "license": "curated",
      "prompt": "### Epistemic & Interaction Invariants\n\nOperate without a fixed persona across execution, engineering, research, and strategy:\n\n1. **Truth Over Appeasement**: Prioritize accuracy and utility over social frictionlessness. Never flatter or hedge. If my premise is sound, confirm it concisely and execute without manufacturing disagreement.\n2. **Proportional Auditing**: Audit both the causal logic and emotional subtext of my inputs. Execute deterministic tasks directly, but push back proportionally against flawed premises, XY problems, ego defenses, or second-order risks.\n3. **Generative Reconstruction**: Never critique without building. When exposing a flaw, reframe the core problem, offer a sharper mental model, and surface superior alternatives.\n4. **First-Principles & Asymmetric Leverage**: Penetrate past \"what\" to structural \"why.\" Synthesize context and my goals to expose sunken costs and asymmetric downside—where status or attention leaks exceed upside—biasing toward highest-leverage actions.\n5. **Visceral Candor**: Do not sanitize critiques into detached, academic lists when judgment or ego is at stake. Speak with a direct human voice: when I rationalize or dodge hard truths, lead with a sharp warning that interrupts self-deception before analyzing.\n6. **Fiduciary Verdict**: Stand firmly in my corner rather than playing a neutral referee. Weigh real-world stakes through my agency and boundaries, closing dilemmas with a decisive verdict on what to do—and what to ignore.\n7. **Source Verification & Relentless Agency**: Before evaluating any critique, secondhand quote, or truncated excerpt, you MUST exhaust all your options, resources and avenues to retrieve the verbatim primary source—and you MUST NOT endorse claims built on partial snippets. When a direct path is blocked, exhaust every available tool, modality, and workaround to secure the core payload; if platform walls still block retrieval, explicitly expose the cutoff and withhold judgment on unverified parts rather than guessing.",
      "word_count": 284,
      "est_tokens": 505,
      "is_flavor_bomb": false,
      "url": "/p/anti-flattery-epistemic-invariants"
    },
    {
      "id": "architectural-hardening-formal-verification",
      "title": "Architectural Hardening & Formal Verification Playbook",
      "summary": "Full verbatim 4-phase engineering playbook combining 8 architectural invariants, TLA+ / Lean 4 / property & chaos testing, CI ratchets, and cold adversarial review.",
      "kind": "playbook",
      "domain": "coding",
      "topic": "state-machines",
      "tags": [
        "formal-verification",
        "tla-plus",
        "lean4",
        "state-machines",
        "playbook"
      ],
      "visibility": "public",
      "author": "Hugo Montenegro (@uwwgo)",
      "source_url": "https://x.com/uwwgo/status/2126705042325401867",
      "checked_on": "2026-12-02",
      "use_when": "When hardening high-stakes production systems (distributed state, financial ledgers, sync engines, concurrency-heavy cores) in an isolated git worktree.",
      "caveats": [
        "@ErnestZamelczyk caveat: Reserve TLA+/TLC strictly for genuine concurrency, interleaving, and recovery races—formalizing every UI state or trivial CRUD endpoint kills CI via state-space explosion.",
        "Heavyweight playbook (~2,000 words) with high token and compute cost—do NOT apply to throwaway prototypes or simple static pages.",
        "Always execute in an isolated git worktree per wave and verify every TLA+ spec actually catches a deliberately broken `*_Buggy*.cfg` model.",
        "Never merge high-risk PRs (auth, billing, data-deletion, CI workflows, production migrations) without human approval."
      ],
      "doesnt_fit_with": [
        {
          "slug": "vercel-agents-md-8-rules",
          "reason": "Use Vercel 8 Rules for lightweight greenfield prototypes where formal proofs would be overkill."
        },
        {
          "slug": "formal-methods-23-point-framework",
          "reason": "Use the 23-Point Framework for open-ended theoretical research rather than concrete CI-ratcheted engineering waves."
        },
        {
          "slug": "implicit-to-explicit-state-machines",
          "reason": "Use Implicit-to-Explicit State Machines for a focused state-machine cleanup before pulling out the full TLA+/Lean 4 verification stack."
        }
      ],
      "variables": [],
      "license": "curated",
      "prompt": "# Architectural Hardening, DRY Primitives & Formal Verification Prompt\n\nYou are taking ownership of systematically reducing architectural entropy in this codebase: lifting duplicated logic into clean shared primitives, making implicit state machines explicit and strongly typed, pushing I/O to the edges (functional core / imperative shell), fixing concurrency and lifecycle races, hardening critical flows with machine-checked invariants (TLA+, Lean 4, property/chaos tests, and CI ratchets), deleting dead weight, and speeding up tests and CI — without breaking working product behavior or external contracts.\n\nWork autonomously in an isolated git worktree, in closed, verifiable waves, until all high-impact targets converge or your runtime budget is reached.\n\n---\n\n### Core Philosophy\n\nAssume today is day one of this product, except you already know its real requirements, edge cases, and production constraints. Design what the architecture should look like, then converge toward it through small, safe, verified refactors.\n\n**Focus on live, user-facing code first.** Before spending effort on any subsystem, verify whether it is live (check feature flags, active routes, ADRs, or usage). Prioritize live user flows, hot APIs, shared UI/domain primitives, and core infrastructure over dormant or dark features.\n\nPursue eight non-negotiable engineering properties:\n\n1. **Explicit State Machines, Single Owners, Stronger Typing**\n   Every persisted status column and every multi-step client/async flow has **one authoritative owner module** containing its transition table or total pure reducer. Nothing else mutates that status directly. Replace coupled boolean flags (`isLoading` + `isErrored`, `solved` + `lost`, `hasSubmitted` + `busy`) and deep `if`-ladders with discriminated unions (`status: 'loading' | 'error' | 'ready'`) and exhaustive `switch` checks where **illegal states are unrepresentable at compile time**. Eliminate `any` and stringly-typed boundaries on hot paths.\n2. **Functional Core, Imperative Shell**\n   Keep state transitions, rules, planners, scoring/eligibility matrices, recovery logic, and codecs as **pure, zero-I/O, zero-SDK functions**. HTTP handlers, webhooks, background workers, and UI components only read inputs, call the pure core, and perform side effects/writes at the thin outer edges.\n3. **DRY Through Shared Primitives (The Deletion Test)**\n   When N sibling features, routes, or screens repeat the same async loader, lifecycle, persistence, retry, or state-machine boilerplate, **lift one clean, strongly-typed shared primitive** instead of patching N copies. Apply the Deletion Test to every abstraction, wrapper, barrel file, flag, and compatibility layer:\n   > *If this layer is deleted, does complexity disappear, or does it spread to callers?*\n   Keep only what genuinely encapsulates complexity or serves verified live callers/contracts. Every migration batch is a closed loop: build canonical primitive/owner → migrate all callers → delete the old path (net-negative LOC where possible).\n4. **One Source of Truth — Generated, Never Hand-Copied**\n   Every enum, error code, transition table, cap constant, and API contract lives in one canonical place. Generate downstream artifacts from it (schema/OpenAPI → client types & enum constants; production pure tables → Lean/TLA+ constants) and fail CI on drift. Exported constants must be **environment-independent** (separate pure defaults from runtime env overrides).\n5. **Deep Modules, Legibility & Locality of Change**\n   Encapsulate complexity behind small, clear, well-named interfaces. Changing one domain rule should touch one logical module, not five copies across backend, frontend, workers, and tests. Eliminate circular dependencies, hidden global/module mutable state, and subtle side effects. Prefer readable, obvious code over clever indirection.\n6. **Concurrency, Races & Clean Lifecycles (Backend + Frontend)**\n   - **Backend:** Use compare-and-swap (`WHERE status IN (...)`), atomic single-statement SQL/JSONB updates, idempotency keys, single-flight dedup on cold caches, and explicit row/advisory locks **only on write paths** (preserve unlocked, zero-write fast paths on hot reads). Emit side effects (events, emails, notifications) **post-commit** and gated on actual state transitions.\n   - **Frontend / Clients:** Guard every async request with monotonic generation/version tokens (`requestGen` / `version`) and disposal checks (`onScopeDispose` / unmount), cancel every timer/listener on reset and unmount, guard against concurrent double-submits, and prevent stale responses from overwriting newer state or stranding users in stuck UI states.\n7. **Enforceable Architecture (CI Ratchets)**\n   Never rely on prose guidelines to keep entropy out. Turn every architectural invariant you establish into an automated CI ratchet whose violation count can only stay flat or go down:\n   - Non-owner state-write linter (flags direct status mutations outside owner modules).\n   - JSON/metadata spread linter (flags non-atomic read-spread-write clobbers on concurrent columns).\n   - Cross-layer import linter (keeps DB/server internals out of client/UI layers and business logic out of thin transport layers).\n   - Strict typing ratchet (`any` count baseline, hand-copied enum/error-code detector).\n   - Formal model-sync & table-drift check (fails PRs when a modeled source file changes without updating its formal spec or exported tables, unless a commit explicitly carries `Model-unchanged: <reason>`).\n8. **Evidence Over Confidence**\n   Pin existing behavior with characterization tests before touching risky flows. Before deleting any \"legacy\" path, flag, or odd branch in a live product, verify callers, dynamic imports, configs, and live usage (read-only).\n\n---\n\n### Where to Apply Formal Verification (High ROI Only)\n\nDo **not** formalize trivial CRUD or write disconnected toy models. Apply formal methods surgically where subtle bugs corrupt data, break concurrency invariants, or trap users — and always wire them directly to production code.\n\n#### 1. TLA+ (TLC) — Concurrency, Races & Recovery\nUse TLA+ for **interleavings that unit tests never find**:\n- Concurrent writes to shared records, counters, balances, quotas, rankings, or stateful workflows.\n- Out-of-order or duplicate events/webhooks racing local DB writes or background workers.\n- Queue/job leases, expiry/rollover transitions, idempotent retries, and concurrent claim races.\n- Multi-tab, multi-device, or offline/reconnect client recovery flows.\n\n**Strict TLA+ rules:**\n- **Every spec MUST include at least one negative `*_Buggy*.cfg` config** that reproduces a real bug or concrete failure mode and **MUST FAIL** in CI. A spec with only passing configs can be vacuously true.\n- **Model honestly:** never collapse a real check-then-act race into one atomic TLA+ action unless the production code genuinely serializes it under a lock or unique constraint; document any narrowing assumption explicitly.\n- Every `.tla` spec declares `Models: <comma-separated source files>` in its header, checked by CI `check-model-sync`.\n- Every `_Buggy*.cfg` cites the exact bug, test, or invariant it guards.\n- Pin `tla2tools.jar` by SHA256 and cache it in CI.\n\n#### 2. Lean 4 (`decide` Proofs) — Finite Decision Matrices & State Tables\nUse Lean 4 to prove **universal properties over finite tables** that unit tests only sample:\n- Exhaustiveness and totality of multi-factor decision/eligibility/routing matrices (every cell maps to a valid action; zero unreachable or stuck combinations).\n- Disjoint, complete partitions of statuses (e.g., `terminal ∪ active ∪ retryable = All`, pairwise disjoint).\n- External-status → internal-status mapping soundness and precedence rules.\n- Transition-table invariants (terminal states have no outgoing edges, monotonic progression, symmetry/antisymmetry of comparators).\n\n**Strict Lean 4 rules:**\n- **Prove theorems ONLY over tables exported directly from production source code** (`export-state-tables` → `Generated.lean` + CI drift check). Never hand-transcribe tables into Lean; never keep disconnected toy models.\n- Pin `lean-toolchain` and cache the toolchain by SHA256 in CI so verification stays fast.\n\n#### 3. Property & Chaos Simulations (`fast-check` / Hypothesis / Proptest)\nFormal specs prove the *model*; property and chaos tests prove the *implementation* under messy real-world inputs:\n- **Pure-core invariants:** Fuzz domain rules, planners, parsers, comparators, merge functions, and reducers against algebraic invariants (idempotency, monotonicity, conservation, boundedness, round-trip fidelity, no illegal state combinations).\n- **Client/UI & boundary chaos:** Fuzz randomized latency, out-of-order responses, `AbortError`, 5xx/HTML error bodies, timeouts, cold reloads, missing/null/unknown optional fields, clock skew, and multi-tab races. Assert **no user ever gets stuck** (no infinite spinner, no blank screen, no dead CTA, no contradicting state across sibling views).\n\n---\n\n### High-Impact Engineering Checklist (Audit & Remediate in Order)\n\n#### Phase 0 — Map Before Editing\nBuild a compact architecture map (in a working log file, separate from app code):\n1. Which subsystems are **live and user-facing** vs. dark/dormant (rank by user impact).\n2. All persisted status/state columns and every file that writes them.\n3. All duplicated client/domain flows, multi-step state machines, and coupled boolean/view-state ladders.\n4. Backend concurrency & data-integrity hotspots (missing CAS/locks on writes, non-atomic JSON spreads, read-after-write replica hazards, unbounded queries, cache stampedes, timezone/clock skew).\n5. Client lifecycle & stuck-UI hotspots (missing generation/version guards, uncancelled timers/listeners, double-submit races, error states swallowed behind loading flags).\n6. Test & CI bottlenecks (slow tests, real-time `setTimeout` sleeps, missing sharding, duplicate lint/build passes, weak typing hotspots).\n\n#### Phase 1 — Shared Primitives, State Ownership & Concurrency\n- Lift high-ROI shared primitives that collapse duplicated state-machine/loader/lifecycle code across N callers (net-negative LOC) while fixing systemic bugs once at the root.\n- Route every stateful write through its single owner with explicit transition validation / CAS / atomic SQL, keeping hot read paths fast and lock-free.\n- Fix side-effect ordering (emit notifications/events post-commit, gated on actual state transitions) and external-edge/clock-skew bugs systematically.\n\n#### Phase 2 — Pure UI Reducers, Typed Contracts & \"No User Stuck\"\n- Replace tangled component-level boolean ladders with pure, total `derive*State` / `resolve*View` reducers and discriminated unions tested with property tests.\n- Ensure error/empty/offline states can never be masked by loading flags or stale in-flight requests.\n- Unify state derivation across sibling views so two surfaces never contradict each other.\n- Eliminate hand-copied enums/error codes and tighten weak types (`any` → real types, narrow union return types).\n\n#### Phase 3 — Formalize, Simulate & Lock with Ratchets\n- Add TLA+ specs (`_Fixed` + `_Buggy*`) for the highest-risk concurrent/recovery flows.\n- Export pure finite state tables to Lean 4 and prove exhaustiveness, partition, and transition theorems where finite tables exist.\n- Add property and chaos simulation suites (`fast-check` / Hypothesis / Proptest).\n- Add or tighten CI ratchets (`state-writes`, `json-spreads`, `cross-layer-imports`, `any-baseline`, `model-sync`, `tables-check`).\n\n#### Phase 4 — Delete Dead Code & Speed Up Tests / CI\n- Delete confirmed zero-caller dead files, exports, and stale scaffolding (verify zero callers across static refs, dynamic imports, routes, and configs).\n- Replace hand-copied brute-force table tests **only** when a stronger Lean `decide` proof over the exported production table completely supersedes them — keep tests that exercise runtime wiring, I/O, or error shapes.\n- Cut test and CI wall-clock time and memory:\n  - Replace real-timer sleeps (`setTimeout` / `sleep`) in unit tests with fake timers.\n  - Shard unit/integration/E2E suites (balanced by file duration where supported) and cache build/transform/formal-tool artifacts.\n  - Eliminate redundant lint/typecheck/build passes (e.g., reuse single-pass ESLint JSON output across checks; skip duplicate coverage on PRs when main runs coverage).\n\n---\n\n### Execution Loop & Guardrails\n\nRun this closed loop wave by wave:\n\n```text\nScan live system & rank highest-impact entropy\n  → Verify callers, contracts, and live usage/flags\n  → Pin behavior with characterization tests\n  → Build canonical owner / shared primitive / pure core / fix\n  → Migrate all callers & delete replaced code\n  → Add formal proof (TLA+/Lean) or property/chaos tests + CI ratchet\n  → Verify (typecheck, lint, format, unit/integration tests, TLC, Lean, build)\n  → Spawn a cold, independent, read-only adversarial review session\n  → Fix every confirmed finding & re-verify cleanly\n  → Update decision log → repeat until converged\n```\n\n#### Cold Independent Adversarial Review (Mandatory Before Finishing Any Wave)\nBefore wrapping up each wave, have a **fresh, read-only session with zero prior attachment to your edits** adversarially try to break your diff across five lenses:\n1. **Concurrency, Locking & Performance**: Can any interleaving, retry, partial failure, or out-of-order event corrupt state, drop updates, deadlock, or add unnecessary locks/writes to a hot read path?\n2. **External Boundaries, Types & Clocks**: What happens on unknown enum values, `null`/`undefined`, mixed casing, floating-point vs. exact DB numeric comparisons, clock skew, timeouts, or 5xx responses?\n3. **UI Stuck States & Lifecycle**: Can any combination of loading/error/cold-reload/rapid-retry/navigation/multi-tab state trap a user with no exit, leak timers/listeners, or let a stale response overwrite a newer state?\n4. **Formal Spec Honesty**: Are exported tables generated from real code? Does every `_Buggy*.cfg` fail for the exact intended reason? Does the TLA+ model honestly match the code's lock granularity?\n5. **DRY, Legibility & Restraint**: Did we actually reduce complexity and improve readability, or did we over-abstract, introduce circular imports, leave dead code, or drift from repo conventions?\n\n#### Hard Guardrails\n- **Do not over-abstract**, rename directories without reducing complexity, sacrifice legibility for line count, or merge concepts with different domain semantics.\n- **Keep every behavior delta transparent**: Maintain a concise `decisions-and-risks.md` log with three buckets:\n  1. Confirmed bugs fixed (root cause + regression test/proof).\n  2. Pure structural/DRY cleanups (behavior-preserving).\n  3. **Ambiguous product behavior changes or deferred items** requiring human sign-off — record clearly and keep moving on independent waves.\n- **Never fabricate verification**: Report exact commands run, exact counts (tests, theorems, TLC configs, ratchet baselines, timings), and state plainly anything that could not be run.\n- **Never merge high-risk PRs (auth, billing, data-deletion, CI workflows, production migrations) without human approval.** Finish with clean, reviewable PR descriptions (architecture summary, net LOC & metrics, deploy order, risks, and verification table) ready for a human to judge quickly.",
      "word_count": 2118,
      "est_tokens": 3844,
      "is_flavor_bomb": false,
      "url": "/p/architectural-hardening-formal-verification"
    },
    {
      "id": "batman-prep-time-framework",
      "title": "Batman Prep Time — Bounded Prep Brief & Rank-Ordered Pre-Mortem",
      "summary": "Prepare for any high-stakes event with a <=600-word brief, mandatory success evidence, zero fake numeric probabilities, Prevent/Detect/Recover triples, an evidence drop-list, and structural-only AAR.",
      "kind": "framework",
      "domain": "general",
      "topic": "planning",
      "tags": [
        "planning",
        "pre-mortem",
        "contingencies",
        "after-action-review",
        "risk"
      ],
      "visibility": "public",
      "author": "@snknitin (expert-lens-skill)",
      "source_url": "https://github.com/snknitin/expert-lens-skill",
      "checked_on": "2026-12-02",
      "use_when": "Before a high-stakes presentation, negotiation, interview, launch, migration, or critical meeting where crisp preparation and fast contingency recovery beat a bloated plan.",
      "caveats": [
        "Enforce the <=600-word cap on the main brief aggressively; if a section cannot fit, prune low-leverage details rather than turning the brief into an unreadable dossier.",
        "Reject any numeric probabilities (e.g., '30% chance', 'p=0.2', '1 in 5')—models invent fake precision; relative plausibility must be expressed strictly by rank order."
      ],
      "doesnt_fit_with": [
        {
          "slug": "chartered-decision-council",
          "reason": "Use Chartered Decision Council when you have not yet decided which option to pick; use Batman Prep Time once the event or direction is chosen and you need to prepare for execution."
        },
        {
          "slug": "pre-build-95-percent-interview",
          "reason": "Use Pre-Build 95% Interview to resolve software specification ambiguity before coding rather than building an operational event prep brief."
        }
      ],
      "variables": [
        "EVENT_OR_GOAL",
        "AVAILABLE_SOURCES_OR_CONTEXT"
      ],
      "license": "MIT",
      "prompt": "Generate a bounded **Prep Brief** for the event or goal below, strictly following every structural and epistemic constraint.\n\nEvent / goal: [EVENT_OR_GOAL]\nAvailable sources / context: [AVAILABLE_SOURCES_OR_CONTEXT]\n\n### Hard Rules\n1. **Main brief word cap:** Keep the main brief (all 8 sections below) strictly **<= 600 words**.\n2. **Mandatory success evidence:** The Mission section must include an explicit `Success evidence:` line describing an observable, external proof that the event succeeded.\n3. **Strict ban on fake numeric probabilities:** Never write percentages, `p=0.x`, or `1 in n` anywhere in Pre-mortem or Contingencies. Express plausibility by **rank order alone**—the boring, most plausible failure goes first, not the most dramatic one.\n4. **Prevent / Detect / Recover triples:** Every pre-mortem item must be one `- Risk: ...` bullet with three indented sub-bullets: `- Prevent: ...`, `- Detect: ...`, and `- Recover: ...`.\n5. **Conditional contingencies:** Every contingency must use exact `\"If ... -> then ...\"` form.\n\n### Required Main Brief Sections (<= 600 words total)\n- **Mission** — One-sentence goal + mandatory `Success evidence:` line.\n- **Situation map** — Key actors, constraints, incentives, and current state.\n- **Pareto brief** — The critical 20% of facts/moves that drive 80% of the outcome.\n- **Backward plan** — Reverse-chronological milestones from the event back to today.\n- **Questions** — The highest-leverage questions to ask or resolve before/during the event.\n- **Pre-mortem** — Assume the event failed; list risks in strict descending order of relative plausibility, each with `Prevent`, `Detect`, and `Recover`.\n- **Contingencies** — Three subsections (`Likely`, `Adverse`, `Surprise`), each using `\"If ... -> then ...\"` rules.\n- **Ten-minute card** — Ultra-compact checklist to glance at 10 minutes before start.\n\n### Evidence Discipline Table (Appended After the 600-Word Brief)\nAudit every source provided in the context:\n- **Retained Evidence:** Each kept source gets `Date:` (`YYYY-MM-DD` or `undated`) and `Supports:`, quoting or closely paraphrasing an actual bullet that exists in the brief.\n- **Dropped (supports nothing):** Any source that supports no decision, question, or action in the brief must be moved here with a one-line reason. Never stretch a `Supports:` line to justify keeping a source.",
      "word_count": 348,
      "est_tokens": 590,
      "is_flavor_bomb": false,
      "url": "/p/batman-prep-time-framework"
    },
    {
      "id": "bounded-performance-hillclimb",
      "title": "Bounded Performance Hillclimb & Entropy Loop",
      "summary": "Run a benchmark-locked, test-parity-enforced optimization loop with hard stop budgets, auto-revert on regressions, hot-path allocation audits, and performance-entropy principles.",
      "kind": "playbook",
      "domain": "coding",
      "topic": "performance",
      "tags": [
        "performance",
        "benchmarking",
        "hillclimb",
        "optimization",
        "profiling"
      ],
      "visibility": "public",
      "author": "@PatrickToulme (hardened with @bil0090, @0xDataWolf, @bitfalls, @xGoatJames, @shaharfrish & Drix10)",
      "source_url": "https://x.com/PatrickToulme/status/2124562528738988251",
      "checked_on": "2026-12-02",
      "use_when": "When optimizing latency, bytes transferred, memory footprint, or throughput with an autonomous coding agent on a measurable benchmark.",
      "caveats": [
        "CRITICAL CAVEAT (@xGoatJames, @shaharfrish, @bil0090): Never run an unbounded `\"get metrics as low as possible\"` `/goal` loop—unbounded hillclimbs spin indefinitely (one user hit 220 checker triggers over 5 days burning massive quota).",
        "Always lock BOTH a deterministic benchmark script AND a full correctness/test-parity suite before editing so the agent cannot 'optimize' by silently dropping edge cases or serving stale data.",
        "Profile first and confirm the target is genuinely on the hot path before adding optimization complexity."
      ],
      "doesnt_fit_with": [
        {
          "slug": "delusional-ambition-engineering-suite",
          "reason": "Use Delusional Ambition Engineering Suite ('Make this 100x faster') to force a radical algorithmic rethinking before running a metered commit-by-commit hillclimb."
        },
        {
          "slug": "diagnosing-bugs-6-phase-loop",
          "reason": "Use the 6-Phase Bug Diagnosis Loop when investigating an unexpected performance regression with unknown cause rather than hillclimbing a known hot path."
        }
      ],
      "variables": [
        "TARGET_METRIC",
        "MAX_ITERATIONS",
        "MIN_GAIN_PCT"
      ],
      "license": "curated",
      "prompt": "/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.\n\n### Locked Benchmark & Stop Guardrails (Mandatory Safety Wrapper — Target: [TARGET_METRIC])\n\n1. **Write & Lock the Benchmark + Test-Parity Gate First (`@bil0090` + `@0xDataWolf`):**\n   - Before touching production code, write or verify a deterministic, reproducible benchmark measuring [TARGET_METRIC] (including tail latency p95/p99 where relevant) AND lock the full correctness/parity test suite.\n   - Never weaken, skip, or modify benchmark/parity assertions during the climb.\n2. **Performance Entropy Principles (`@bitfalls`):**\n   - **Profile first:** Measure where time, allocations, and I/O actually go before proposing edits.\n   - **Work elimination test:** Always ask whether work can be eliminated completely (redundant serialization, N+1 queries, unnecessary re-renders, duplicate fetches) before micro-tuning how fast it runs.\n   - **Bounded tail latency:** Track worst-case / p99 regressions, not just mean speedups, and do not trade catastrophic memory growth for trivial CPU savings.\n3. **Hard Stop Budget (`@xGoatJames` + `@shaharfrish`):**\n   - Stop automatically after at most [MAX_ITERATIONS] optimization passes **OR** when 2 consecutive passes yield less than [MIN_GAIN_PCT]% improvement — whichever comes first.\n4. **Small Verified Steps & Auto-Revert (`@bil0090`):**\n   - Work on an isolated git branch. Make one focused optimization per commit, record before/after metrics in a structured log table, and **immediately auto-revert** any change that fails test parity or does not beat the locked baseline.",
      "word_count": 247,
      "est_tokens": 441,
      "is_flavor_bomb": false,
      "url": "/p/bounded-performance-hillclimb"
    },
    {
      "id": "brain-blast-cognitive-operators",
      "title": "Brain Blast — 20-Card Cognitive Operator Ideation & Scoring",
      "summary": "Structured ideation framework combining 8 friction classes, a 20-card TRIZ/SCAMPER/forced-move operator deck, closed 10-lever deduplication, and a 6-dimension lifecycle scoring rubric.",
      "kind": "framework",
      "domain": "general",
      "topic": "ideation",
      "tags": [
        "ideation",
        "triz",
        "scamper",
        "problem-solving",
        "scoring-rubric"
      ],
      "visibility": "public",
      "author": "@snknitin (expert-lens-skill)",
      "source_url": "https://github.com/snknitin/expert-lens-skill",
      "checked_on": "2026-12-02",
      "use_when": "When a recurring workflow, system, or everyday friction needs genuinely distinct, reversible experiments rather than recycled generic brainstorming.",
      "caveats": [
        "Enforce the closed 10-lever deduplication step strictly; LLMs otherwise produce five cosmetically reworded variations of the same reminder or automation idea.",
        "Watch out for hidden maintenance_cost and dependency_count—clever automations frequently score worse than simple subtractions once upkeep is counted."
      ],
      "doesnt_fit_with": [
        {
          "slug": "crazy-ai-only-features",
          "reason": "Use Crazy AI-Only Features for unhinged AI-era product differentiation rather than reversible, low-maintenance friction elimination."
        },
        {
          "slug": "batman-prep-time-framework",
          "reason": "Use Batman Prep Time when preparing for a concrete upcoming event or milestone rather than generating solutions to a recurring friction."
        }
      ],
      "variables": [
        "FRICTION_OR_PROBLEM",
        "CONSTRAINTS_OR_CONTEXT"
      ],
      "license": "MIT",
      "prompt": "Run the **Brain Blast** cognitive-operator framework on the friction below to produce distinct, reversible, scored experiments.\n\nFriction / problem: [FRICTION_OR_PROBLEM]\nConstraints / context: [CONSTRAINTS_OR_CONTEXT]\n\n### Step 1 — Classify the Friction (Pick 1 of 8 Classes)\nAssign exactly one primary problem type:\n- `physical_flow` · `information_flow` · `timing` · `attention` · `coordination` · `cost` · `reliability` · `motivation`\n\n### Step 2 — Select 5 Operator Cards from the 20-Card Deck\nSelect 5 operators tailored to the problem type such that they attack **at least 3 distinct dimensions** (`subtraction`, `substitution`, `combination`, `automation`, `environmental redesign`, `incentive change`) and **always include at least one `forced` move** (`op02`, `op06`, or `op07`):\n\n| ID | Operator | Family | Attacks | Core Move |\n|---|---|---|---|---|\n| `op01` | Invert the flow | TRIZ | substitution | Reverse the direction of what flows instead of moving the user. |\n| `op02` | Remove a step | **forced** | subtraction | Delete one step entirely, see what breaks, and repair only the real break. |\n| `op03` | Change the medium | SCAMPER | substitution | Shift representation (paper over memory, physical over digital, visual over text). |\n| `op04` | Make it visible | HMW | environmental redesign | Surface invisible state right at the point of decision. |\n| `op05` | Time-shift | TRIZ | combination | Move the work to an earlier, later, or idle moment when it is cheaper. |\n| `op06` | Objects on hand only | **forced** | substitution, subtraction | Solve using only what is already within arm's reach—zero new purchases or tools. |\n| `op07` | Worst-solution inversion | **forced** | substitution | Write the worst possible way to handle it, then invert every element. |\n| `op08` | Restaurant analogy | analogy | environmental redesign | Borrow kitchen stations, *mise en place*, and a staging pass. |\n| `op09` | Operating-system analogy | analogy | automation | Daemonize routine work and give every artifact one canonical location. |\n| `op10` | Ant-colony analogy | analogy | combination | Let small signals accumulate so nearby actions batch automatically. |\n| `op11` | Airport analogy | analogy | environmental redesign | Add signage and paths that make the right route the easiest walk. |\n| `op12` | Game-designer analogy | analogy | incentive change | Alter the payoff with visible streaks, tallies, or stakes. |\n| `op13` | TRIZ segmentation | TRIZ | subtraction | Split the task into smaller pieces and shrink or drop the costly parts. |\n| `op14` | TRIZ merge | TRIZ | combination | Piggyback the task onto an existing habit or event happening nearby. |\n| `op15` | Morphological analysis | morphological | combination | Tabulate stages × options and pick a never-tried cross-row combination. |\n| `op16` | SCAMPER eliminate | SCAMPER | subtraction | Delete one input, step, or rule outright and verify if anything fails. |\n| `op17` | SCAMPER automate | SCAMPER | automation | Hand the repeated step to a timer, filter, script, or single-setting tool. |\n| `op18` | SCAMPER put-to-other-use | SCAMPER | substitution | Repurpose an existing tool or object built for another job. |\n| `op19` | How-might-we reframe | HMW | incentive change | Reframe the complaint so the desired behavior becomes the most rewarding path. |\n| `op20` | Pre-mortem | pre-mortem | environmental redesign | Assume the fix failed in 2 weeks, list why, and redesign the environment to block those causes. |\n\n### Step 3 — Generate 1–2 Concrete Experiments per Selected Card\nFor each option provide:\n- `id` (`opt-01`..), `title`, `operator_id`\n- `mechanism`: name the **causal change**, not the activity\n- `tier`: `two_minute` | `weekend` | `ambitious`\n- `first_step`: one action doable today in 1–15 minutes (`first_step_min`)\n- `assumptions` and `hazards`\n- Every option must be reversible or cheap enough to abandon without ceremony.\n\n### Step 4 — Closed 10-Lever Deduplication\nTag every option with `{lever, target}` using **only** this closed 10-lever vocabulary:\n`attach` · `relocate` · `batch` · `automate` · `cue` · `remove` · `substitute` · `schedule` · `incentive` · `container`\n\nIf two options apply the **same causal lever to the same normalized target**, merge them and keep only the stronger one. Report which duplicates were collapsed.\n\n### Step 5 — 6-Dimension Lifecycle Rubric & Final Ranking\nScore each surviving option from **1 to 5** on all six dimensions (with a `<= 6`-word reason for each):\n- `reversibility` (5 = instant zero-cost undo)\n- `benefit` (5 = eliminates the friction directly)\n- `learning_value` (5 = reveals high-value causal signal fast)\n- `effort` (5 = heavy setup work)\n- `maintenance_cost` (5 = ongoing upkeep, consumables, re-pairing, or new routines to remember)\n- `dependency_count` (5 = many purchases, permissions, or other people must cooperate)\n\nCompute the exact composite score for each option:\n`composite = 2 * reversibility + benefit + learning_value - effort - maintenance_cost - dependency_count`\n\nOutput the ranked shortlist with the top `two_minute` experiment highlighted first so it can be run today.",
      "word_count": 833,
      "est_tokens": 1286,
      "is_flavor_bomb": false,
      "url": "/p/brain-blast-cognitive-operators"
    },
    {
      "id": "chartered-decision-council",
      "title": "Chartered Decision Council (Isolated Round 1 + Red-Team + Row-Cited Chair)",
      "summary": "Deliberate hard multi-tradeoff decisions across isolated value charters with typed claims, jurisdictional fences, mandatory red-team option discovery, and a row-cited chair synthesis that preserves dissent verbatim.",
      "kind": "framework",
      "domain": "general",
      "topic": "thinking",
      "tags": [
        "decision-making",
        "council",
        "red-team",
        "synthesis",
        "governance"
      ],
      "visibility": "public",
      "author": "@snknitin (motto-agent-council)",
      "source_url": "https://github.com/snknitin/motto-agent-council",
      "checked_on": "2026-12-02",
      "use_when": "When facing a high-stakes personal, career, product, or architectural choice with genuine competing values (speed vs. runway vs. sustainability vs. hidden risk) and you want structured dissent instead of an averaged-out compromise.",
      "caveats": [
        "True Round 1 context isolation works best in separate chat turns or parallel subagents; when running in a single chat, explicitly enforce that each charter only cites Packet evidence IDs and never references another charter during Round 1.",
        "Customize the four default charters (Builder, Finance guardian, Health protector, Skeptic) with your own red lines and must_not_decide fences before running critical decisions."
      ],
      "doesnt_fit_with": [
        {
          "slug": "batman-prep-time-framework",
          "reason": "Use Batman Prep Time once a course of action is chosen and you need an execution prep brief, rather than deliberating which option to choose."
        },
        {
          "slug": "claim-debunker-steelman-verification",
          "reason": "Use Claim Debunker when testing whether a factual or scientific claim is true rather than weighing competing value charters."
        }
      ],
      "variables": [
        "DECISION_PACKET_AND_OPTIONS"
      ],
      "license": "MIT",
      "prompt": "Run a **Chartered Decision Council** on the decision packet below. Treat your output purely as a decision memo—never invent external facts beyond the packet.\n\n### Decision Packet (Facts, Evidence IDs `E1..En`, and Candidate Options `O1..On`)\n[DECISION_PACKET_AND_OPTIONS]\n\n### Default Generic Charters (Replace or Adapt as Needed)\n1. **Builder** (`red_team: false`)\n   - *Purpose:* Turn ideas into shipped, used work; protect momentum and learning by building.\n   - *Questions:* How fast can a working version reach real users? Which option protects focused building time?\n   - *Red lines:* Never trade away the chance to ship for comfort alone.\n   - *Must not decide:* (none)\n2. **Finance guardian** (`red_team: false`)\n   - *Purpose:* Protect solvency, runway, and steady downside coverage.\n   - *Questions:* How much runway remains under each option? What is the worst-case cost, and is it reversible?\n   - *Red lines:* Never let liquid runway fall below 3 months of expenses.\n   - *Must not decide:* Whether a project is personally meaningful.\n3. **Health protector** (`red_team: false`)\n   - *Purpose:* Protect sleep, energy, and sustainable stress levels over the long run.\n   - *Questions:* What happens to sleep and stress under each option? Is recovery time built into the plan?\n   - *Red lines:* Never recommend a plan that chronically keeps weeknight sleep under 7 hours.\n   - *Must not decide:* Whether to quit a job outright.\n4. **Skeptic** (`red_team: true`)\n   - *Purpose:* Surface hidden risks, untested assumptions, base rates, and options nobody listed.\n   - *Questions:* What would have to be true for this option to fail? Which assumption has no evidence behind it?\n   - *Red lines:* Never accept a claim just because the other perspectives agree.\n   - *Must not decide:* (none)\n\n### Shared Epistemic Rules (Rounds 1 & 2)\n- **Typed claims only:** Every claim must be tagged as `fact` (must cite at least one evidence ID from the packet, e.g., `E1`), `assumption`, `value` (grounded in that charter's own red lines/purpose), or `unknown`.\n- **Jurisdictional fences (`must_not_decide`):** Never decide anything inside a charter's `must_not_decide` list; if the core choice falls there, explicitly abstain (`option_id: null`) and explain why.\n\n### Round 1 — Context-Isolated Perspectives\nRun each charter **independently** using ONLY the Decision Packet and its own charter (do not reference or react to any other charter's view in Round 1). Output each charter's position (`option_id` or `null`), typed claims, and key unknowns.\n\n### Round 2 — Bounded Critique & Mandatory Red-Team Option Discovery\nNow let each charter read the other charters' Round 1 answers:\n- Critique weak assumptions, uncited leaps, and blind spots in the other views.\n- Keep or revise your own position (state explicitly what changed, if anything).\n- **Mandatory Red-Team Rule (`Skeptic`):** Hunt for options nobody listed and propose **at least one genuinely new option** (`new_options`) that was not in the original Decision Packet.\n\n### Round 3 — Comparison Table & Row-Cited Chair Synthesis\n1. First build a numbered **Comparison Table** (`R1..Rn`) mapping every position, typed claim, critique, and red-team option to a unique row ID.\n2. Then act as **Chair**, synthesizing **ONLY from the Comparison Table** (no outside facts) under four headings:\n   - **Agreements**\n   - **Conflicts**\n   - **Missing evidence**\n   - **Reversible next steps**\n3. **Row-citation rule:** Every single sentence in the Chair synthesis must list the exact table row IDs it rests on (e.g., `(R2, R5)`) and mention no other facts.\n4. **Verbatim dissent rule:** Do NOT soften, average away, or artificially reconcile disagreement. Report every unresolved dissent separately and verbatim.",
      "word_count": 563,
      "est_tokens": 941,
      "is_flavor_bomb": false,
      "url": "/p/chartered-decision-council"
    },
    {
      "id": "claim-debunker-steelman-verification",
      "title": "Claim Debunker — Steelman, 10-Check Physics/Stats Menu & Contrary Queries",
      "summary": "Verify extraordinary or high-stakes claims via proposition decomposition, strongest steelman, a closed 10-check physics/stats menu, mandatory contrary-evidence queries, and 3-layer synthesis.",
      "kind": "framework",
      "domain": "general",
      "topic": "verification",
      "tags": [
        "verification",
        "steelman",
        "critical-thinking",
        "physics",
        "statistics",
        "red-team"
      ],
      "visibility": "public",
      "author": "@snknitin (expert-lens-skill)",
      "source_url": "https://github.com/snknitin/expert-lens-skill",
      "checked_on": "2026-12-02",
      "use_when": "When evaluating a bold scientific, engineering, product, or market claim—or stress-testing your own preferred thesis before committing resources.",
      "caveats": [
        "Never let the model invent measurements, constants, or citations; every number in the calculation must be sourced from the user input, verified tools, or flagged explicitly as an unverified estimate.",
        "Keep the final verdict as a clear qualitative word (e.g., Supported, Plausible-but-unverified, Contradicted, Undetermined)—never a fake percentage confidence score."
      ],
      "doesnt_fit_with": [
        {
          "slug": "chartered-decision-council",
          "reason": "Use Chartered Decision Council for multi-stakeholder value trade-offs where multiple reasonable options compete, rather than empirical claim verification."
        },
        {
          "slug": "anti-flattery-epistemic-invariants",
          "reason": "Use Anti-Flattery Epistemic Invariants as a standing system prompt across all chats rather than a structured 5-stage claim audit."
        }
      ],
      "variables": [
        "CLAIM_TO_VERIFY"
      ],
      "license": "MIT",
      "prompt": "Audit the claim below using the 5-stage **Claim Debunker & Steelman Verification** protocol. Do not invent numbers, citations, or experimental results.\n\nClaim to verify:\n[CLAIM_TO_VERIFY]\n\n### Stage 1 — Proposition Decomposition\nDecompose the claim into tagged propositions `P1..Pn`, labelling each as `claim`, `subclaim` (with its parent tag), or `assumption`. Separate observable assertions from interpretive leaps.\n\n### Stage 2 — Strongest Steelman\nBefore critiquing, write the **strongest defensible form** of the claim:\n- `strongest_form`: charitable, rigorous restatement\n- `scope`: exact domain/conditions under which the proponent intends it to hold\n- `assumptions` (`A1..An`): numbered load-bearing assumptions with the best reasoning or evidence behind each\n\n### Stage 3 — Primary Discriminating Check (Closed 10-Check Menu)\nSelect the **single highest-leverage test** to run first from this exact 10-check menu (do not invent other categories; pick a secondary check only if the primary is inconclusive):\n1. `dimensional` — units or dimensions that cannot match\n2. `conservation` — mass, energy, momentum, or resource bookkeeping\n3. `inverse_square` — signal spreading or attenuation with distance\n4. `signal_noise` — whether the signal can be separated from noise at all\n5. `thermodynamics` — heat, work, or entropy limits\n6. `geometry_perspective` — viewing angle, projection, scale, or horizon geometry\n7. `material_limits` — strength, stiffness, bandwidth, or physical failure ceilings\n8. `orbital_mechanics` — orbits, gravity, free fall, or dynamical trajectories\n9. `statistics` — rates, denominators, sampling bias, or selection effects\n10. `base_rates` — baselines, chance, or falsifiability of the phrasing\n\nExplain in one sentence why this test discriminates fastest, then walk through the check step by step, clearly marking any missing inputs needed to complete it.\n\n### Stage 4 — Mandatory Contrary-Evidence Queries\nAlways search for disconfirming evidence, not just confirmation. Construct:\n- Three deterministic contrary templates from the claim's central `<quantity>`, `<effect>`, and `<mechanism>`:\n  1. `<quantity> measurement`\n  2. `<effect> not observed`\n  3. `<mechanism> null result`\n- Up to **three** additional domain-specific contrary queries designed to surface null results, replication failures, or confounding mechanisms.\n\n### Stage 5 — Three-Layer Synthesis\nState the overall verdict as a **word** (never a numeric percentage) and present three reader layers using ONLY facts established above (never introducing new ungrounded numbers):\n- **Beginner layer:** One plain, number-free sentence stating what physical/empirical mechanism the check tests + one sentence on what to verify next.\n- **Intermediate layer:** One everyday household analogy (zero jargon, zero numbers) + one sentence on what chain of reasoning to trace.\n- **Technical layer:** Exact conditions, equations, or data checks that are directly re-runnable and would flip the verdict.",
      "word_count": 415,
      "est_tokens": 748,
      "is_flavor_bomb": false,
      "url": "/p/claim-debunker-steelman-verification"
    },
    {
      "id": "codebase-entropy-governance-plan",
      "title": "Codebase Entropy Governance Plan (Day-1 Ideal + 92k-LOC Guardrails)",
      "summary": "Day-1 Ideal Convergence governance playbook pursuing 7 architectural properties, upgraded with battle-tested 92k-LOC hotspot scoring, off-limits boundaries, CI proof checks, stop conditions, and a fresh-session Agent test.",
      "kind": "playbook",
      "domain": "coding",
      "topic": "architecture",
      "tags": [
        "governance",
        "entropy",
        "refactoring",
        "ousterhout",
        "playbook"
      ],
      "visibility": "public",
      "author": "@Khazix0918 (upgraded with @linlin454136, @hylarucoder & @necklace_btc)",
      "source_url": "https://x.com/Khazix0918/status/2126324185626734795",
      "checked_on": "2026-12-02",
      "use_when": "When paying down accumulated AI-generated or rapid-growth architectural drift inside an isolated git worktree on a scoped subsystem with explicit budget and off-limits contracts.",
      "caveats": [
        "CRITICAL CAVEAT (@necklace_btc, @dreamcreator_d, @HiltonMisia): Never run unbounded across a live production repo—agents can collapse intentionally separate tenant, compliance, or API version contracts. Always populate `[OFF_LIMITS]` first.",
        "@hylarucoder discipline: Target ONE pain point per branch, resolve DRY vs. YAGNI conflicts explicitly (only unify when semantics truly match), and delete replaced paths rather than leaving compatibility wrappers.",
        "@linlin454136 battle-test note: Tested on a 92,000-LOC repo (33% weekly quota, -883 net LOC, 49 CI guardrails, 1,026 tests green); always verify each new CI guardrail actually fires against a deliberate noncompliant snippet."
      ],
      "doesnt_fit_with": [
        {
          "slug": "architectural-hardening-formal-verification",
          "reason": "Use Architectural Hardening when you also need TLA+, Lean 4, and chaos simulation rather than structural entropy governance."
        },
        {
          "slug": "delusional-ambition-engineering-suite",
          "reason": "Use Delusional Ambition Engineering Suite for aggressive exploratory jumps rather than budgeted, hotspot-ranked entropy convergence."
        }
      ],
      "variables": [
        "PAIN_POINTS",
        "OFF_LIMITS",
        "BUDGET"
      ],
      "license": "curated",
      "prompt": "### Background & Scope Guardrails (Fill Before Running)\n- **Target Pain Point(s) (pick 1–2 max per branch):** [PAIN_POINTS]\n- **Off-Limits (intentionally separate tenants, API versions, compliance paths, or dark modules that MUST NOT be merged or touched):** [OFF_LIMITS]\n- **Hard Budget & Stop Conditions:** [BUDGET] (Default: stop when the top 15 hotspots are converged, OR after 3 consecutive empty/no-gain batches, OR when the time/commit/token budget is exhausted — whichever comes first.)\n\n---\n\nSystematically reduce architectural entropy within the scoped pain points, standardize and normalize the codebase, decouple its modules, and manage its complexity, gradually evolving it into a highly structured engineering system that is easy to understand and maintain and well suited to large-scale parallel development by Agents.\n\nCore idea:\n\nAssume today is the product’s first day, but we already know all the current real requirements, business constraints, and product form. Consider what this codebase should ideally look like, then converge toward that state through safe, incremental, verifiable refactoring.\n\nPursue the following seven engineering properties:\n\n1. **Single Source of Truth:** Every business rule, data definition, configuration, state, and design standard should have one clear, authoritative source.\n2. **Canonical Implementation:** Keep only one standard implementation for the same semantics and responsibility. Thoroughly eliminate legacy parallel implementations, duplicated logic, temporary patches, meaningless compatibility layers, and multiple coexisting technical solutions. Retain compatibility capabilities only where real callers or explicit contract requirements exist.\n3. **Deep Modules:** Draw on John Ousterhout’s *A Philosophy of Software Design*. Encapsulate complexity internally and expose capabilities through interfaces that are as simple and stable as possible. Reduce shallow modules, meaningless forwarding layers, and abstractions that leak internal implementation.\n4. **High Cohesion, Low Coupling:** Every module has a clear responsibility, ownership, and dependency direction. Eliminate circular dependencies, implicit coupling, cross-layer access, and shared mutable state.\n5. **Locality of Change:** When changing a business concept, change only one logical location whenever possible. Eliminate synchronized edits across unrelated files.\n6. **Deletion over Accumulation:** Prioritize whether unnecessary complexity can be deleted. Every time a new standard implementation is introduced, migrate all existing callers and delete the replaced implementation once confirmed safe — no compatibility wrappers, no old-and-new coexistence. When DRY conflicts with YAGNI, explicitly state why the shared semantics are stable before unifying; otherwise keep separate.\n7. **Enforceable Architecture:** Turn established engineering standards into machine-enforceable constraints (type system, linting, AST checks, contract tests, CI). **Prove every new CI guardrail works** by testing it against a deliberate noncompliant snippet (confirm it fails CI) before removing the snippet.\n\n---\n\n### Execution Process\n\n**Step 1 — Read-Only Hotspot Map (Zero Edits):**\nUnderstand the codebase’s real business, architecture, historical decisions, module relationships, existing tests, and production constraints. Build an architecture map, state ownership map, and ranked hotspot backlog across the 12 dimensions (UI/design system, domain logic, API/data contracts, state flow, data access/caching, config/env, error/retry handling, logging/observability, auth/permissions, naming/boundaries, shared utilities, test/build toolchain).\n\nRank every candidate hotspot strictly using:\n`Hotspot Score = (60-day git churn × copy count × semantic drift) ÷ blast-radius risk`\n\nExclude anything listed in `[OFF_LIMITS]`. Confirm the top targets before writing code.\n\n**Step 2 — Closed-Loop Convergence Waves (Isolated Git Worktree / Separate Branch):**\nContinuously run this loop until a Stop Condition triggers:\n\n```text\nPick highest-scored hotspot\n  → Analyze real callers, dependencies & off-limits contracts\n  → Propose refactoring options & choose lowest overall complexity (resolve DRY vs. YAGNI explicitly)\n  → Pin behavioral baseline with tests\n  → Build canonical primitive & migrate ALL callers in one batch\n  → Delete old replaced code cleanly (no shim wrappers)\n  → Independent read-only review + run full verification suite\n  → Add CI anti-regression guardrail & prove it fires on a deliberate noncompliant snippet\n  → Commit batch independently & update progress/ADR log\n```\n\nApply the **Deletion Test** to every abstraction layer: *If this layer is deleted, does complexity disappear, or does it spread to callers?* Keep only abstractions that genuinely encapsulate complexity.\n\n**Step 3 — Fresh-Session Agent Test (Convergence Proof):**\nOnce the wave stops, open a fresh, plan-only session (no prior refactor history) and ask it to design 3 recent real requirements against this codebase. Confirm the fresh agent naturally discovers and reuses the canonical primitives without inventing parallel helpers.\n\n**Acceptance Criteria & Restraint:**\n- Each core business concept has one authoritative implementation and clear public interface; zero unapproved circular dependencies; all external contracts and data compatibility preserved.\n- Do not over-abstract, relocate directories with no value, sacrifice readability for line count, or merge concepts with different domain semantics (such as separate tenants or API versions).\n- Record items requiring product decisions or breaking migrations as pending human confirmation and continue with independent tasks until a stop condition is met.",
      "word_count": 770,
      "est_tokens": 1433,
      "is_flavor_bomb": false,
      "url": "/p/codebase-entropy-governance-plan"
    },
    {
      "id": "crazy-ai-only-features",
      "title": "Crazy AI-Era-Only Feature Brainstormer",
      "summary": "Generate 5 escalating, unhinged AI-native product capabilities impossible before modern LLMs—with anti-agent-cliché guardrails and a willingness-to-pay filter.",
      "kind": "prompt",
      "domain": "general",
      "topic": "ideation",
      "tags": [
        "ideation",
        "product",
        "ai-native",
        "brainstorming",
        "differentiation"
      ],
      "visibility": "public",
      "author": "@yongfook",
      "source_url": "https://x.com/yongfook/status/2125963268237971775",
      "checked_on": "2026-12-02",
      "use_when": "When your product roadmap looks like a boring CRUD clone with a tacked-on chatbot and you want genuinely differentiated AI-era ideas.",
      "caveats": [
        "LLMs default to bland tropes without constraints (@jefcodes: '1. add an agent 2. add more agents 3. agents managing agents')—keep the anti-agent-wrapper guardrail in place.",
        "Most raw ideas from round 1–2 will be impractical and models struggle to judge commercial viability (@mikeobsolete); always run a human review or the willingness-to-pay follow-up pass."
      ],
      "doesnt_fit_with": [
        {
          "slug": "brain-blast-cognitive-operators",
          "reason": "Use Brain Blast Cognitive Operators to systematically solve a concrete operational friction with reversible experiments rather than blue-sky AI-era product brainstorming."
        },
        {
          "slug": "delusional-ambition-engineering-suite",
          "reason": "Use Delusional Ambition Engineering Suite to push code architecture and refactoring ceilings on an existing codebase rather than ideating product features."
        }
      ],
      "variables": [
        "PROJECT_OR_IDEA"
      ],
      "license": "curated",
      "prompt": "Give me crazy AI-pilled ways to take [PROJECT_OR_IDEA] to the next phase. Features only doable in the AI era. Suggest 5 ideas, each one crazier than before.\n\nConstraint: Ban generic \"add a chatbot\", \"add an agent\", \"add more agents\", or \"agents managing agents\" answers. Every idea must name the exact user workflow it collapses, the non-obvious modality or data transformation AI unlocks, and why it was impossible before modern foundation models.",
      "word_count": 71,
      "est_tokens": 112,
      "is_flavor_bomb": false,
      "url": "/p/crazy-ai-only-features"
    },
    {
      "id": "delusional-ambition-engineering-suite",
      "title": "Delusional Ambition Engineering Suite",
      "summary": "Shock coding agents out of incremental patchwork using @poteto's 4 delusional vectors, @CryptoCred's full end-state framing, @cory_schulz_'s 4-step cleanup cycle, and Thorsten Ball's test-matrix escalation—wrapped in worktree and verification guardrails.",
      "kind": "playbook",
      "domain": "coding",
      "topic": "code-quality",
      "tags": [
        "delusional-prompt",
        "simplification",
        "invariants",
        "performance",
        "ambition"
      ],
      "visibility": "public",
      "author": "@poteto (with @CryptoCred, @cory_schulz_, @DavidOndrej1, @cu30rry_ & @NakatomiHarry)",
      "source_url": "https://x.com/poteto/status/2126754224843473374",
      "checked_on": "2026-12-02",
      "use_when": "When incremental tweaking has plateaued and you want to force order-of-magnitude algorithmic leaps, radical code deletion, invariant proofs, or an unwatered-down end-state blueprint.",
      "caveats": [
        "CRITICAL WORKTREE & TOKEN-BURN CAVEAT (@slashslashdjk, @motatoeshq): Always run inside a clean isolated git branch/worktree with a green test suite and real benchmarks—literal deletion or 100x rewrites burn heavy tokens and can silently drop untested edge cases.",
        "Never trust a prose 'proof' from an LLM at face value—demand executable counterexamples, property tests, or machine-checked specs.",
        "Pair ambitious generation with a mandatory review/remove pass so ambition does not bloat the repo with speculative complexity."
      ],
      "doesnt_fit_with": [
        {
          "slug": "bounded-performance-hillclimb",
          "reason": "Use Bounded Performance Hillclimb when you want a metered, commit-by-commit benchmark loop with auto-revert rather than a 100x architectural leap."
        },
        {
          "slug": "codebase-entropy-governance-plan",
          "reason": "Use Codebase Entropy Governance Plan for a hotspot-scored, CI-ratcheted multi-wave cleanup plan."
        }
      ],
      "variables": [
        "TARGET_AREA"
      ],
      "license": "curated",
      "prompt": "Scope: [TARGET_AREA] (Isolated git branch/worktree ONLY; preserve all verified external behavior.)\n\nPick ONE of the delusional ambition vectors below (or run the full 4-step cycle) to break out of timid incrementalism:\n\n### Vector 1 — Full Ambitious End-State (`@CryptoCred` + `@DavidOndrej1`)\nBe unreasonably ambitious. Ignore how long a human team would take or how they'd phase this into a watered-down v1. Show me the full, ambitious end-state for [TARGET_AREA] and what it takes to build that directly.\n\n### Vector 2 — Radical Subtraction (`@poteto`)\nDelete half the codebase without breaking anything. Before deleting, output a deletion impact map proving zero live callers or showing the simpler canonical replacement, then verify the full test suite stays green.\n\n### Vector 3 — Algorithmic 100x Leap (`@poteto`)\nMake this 100x faster. Abandon 5% micro-optimizations; question the algorithm, data layout, I/O round trips, and unnecessary work first. Prove the speedup against a locked benchmark and full correctness parity tests.\n\n### Vector 4 — Invariants & Bug-Class Eradication (`@poteto`)\n1. Find all implicit invariants, formally prove them or find counterexamples (prefer executable failing tests or formal checks over prose arguments).\n2. Turn every bug we've ever fixed into a property test (using `fast-check`, `hypothesis`, or `proptest` with bounded shrinking).\n\n### Mandatory 4-Step Execution Cycle (`@cory_schulz_`)\nNever stop at ambitious v1 output. Close every pass with:\n`build → review (cold adversarial diff check) → refactor (flatten over-abstractions) → remove (delete dead code & superseded paths)`",
      "word_count": 239,
      "est_tokens": 407,
      "is_flavor_bomb": false,
      "url": "/p/delusional-ambition-engineering-suite"
    },
    {
      "id": "dense-technical-manual-page",
      "title": "Dense Technical Manual Page Generator (Caleb Fahlgren Style)",
      "summary": "Publication-grade JSON system prompt that transforms raw book chapters or engineering docs into zero-fluff technical manual pages with formulas, comparison tables, quoted-label Mermaid diagrams, and redline failure-mode notes.",
      "kind": "system-prompt",
      "domain": "coding",
      "topic": "writing",
      "tags": [
        "technical-writing",
        "documentation",
        "system-prompt",
        "mermaid",
        "manuals"
      ],
      "visibility": "public",
      "author": "manual-press",
      "source_url": "https://github.com/snknitin/manual-press",
      "checked_on": "2026-12-02",
      "use_when": "When distilling dense technical books, RFCs, research papers, or architecture specs into structured, high-density engineering reference pages with strict JSON output.",
      "caveats": [
        "Enforce double-quoted Mermaid node labels (e.g., `A[\"Raw Traces\"]`) so punctuation or parentheses never break Mermaid parsers.",
        "Provide real source chapter text or verified excerpts—do not ask the model to invent citations or figure paths not present in the provided material.",
        "Adapt or omit the figure-embedding path convention if your pipeline does not serve extracted book images."
      ],
      "doesnt_fit_with": [
        {
          "slug": "five-dimension-manuscript-audit",
          "reason": "Use Five-Dimension Manuscript Audit to critique and tighten existing prose rather than synthesize structured JSON technical manual pages from source material."
        },
        {
          "slug": "prep-before-query-long-doc",
          "reason": "Use Prep-Before-Query Long Document Reader for interactive Q&A over a single huge file rather than generating publication-grade manual pages."
        }
      ],
      "variables": [],
      "license": "MIT",
      "prompt": "[TASK:MANUAL_PAGE]\nYou are a senior staff engineer authoring a dense, publication-grade technical manual in the Caleb Fahlgren style.\nTransform the provided book chapter material (and any supplemental web research) into a tightly packed, authoritative manual page.\n\nRequirements:\n- Dense, zero-fluff engineering prose with exact technical definitions, formulas (`$...$` or `$$...$$`), Markdown comparison tables, and at least one crisp `mermaid` diagram (`flowchart LR`/`TD`, `sequenceDiagram`, or `stateDiagram-v2` with EVERY node label double-quoted like `A[\"Raw Traces\"] --> B[\"Open Coding\"]`) illustrating the core architecture, pipeline, or decision flow.\n- When `AVAILABLE_BOOK_FIGURES` lists relevant figures from the original book, embed 1–2 directly using Markdown image syntax `![Descriptive caption](/api/books/<book_id>/media/<filename>)` (or your pipeline's configured media path).\n- Do NOT put repetitive inline `[Ch. N]` citation tags inside sentences — the chapter reference already lives in the page header block; keep the prose clean and uninterrupted.\n- Include 2–4 crisp `redline_notes` highlighting subtle failure modes, engineering traps, or edge cases.\n- Return ONLY valid JSON matching this exact schema:\n```json\n{\n  \"title\": \"Concise section title (max 80 chars)\",\n  \"summary\": \"2-sentence dense executive overview of the page\",\n  \"body_markdown\": \"Rich Markdown technical manual page body (500-950 words)\",\n  \"redline_notes\": [\"RED-LINE: ...\", \"RED-LINE: ...\"],\n  \"citations\": [{\"chapter\": \"Ch. X — Title\", \"excerpt\": \"short grounded quote or paraphrase\"}]\n}\n```",
      "word_count": 206,
      "est_tokens": 397,
      "is_flavor_bomb": false,
      "url": "/p/dense-technical-manual-page"
    },
    {
      "id": "diagnosing-bugs-6-phase-loop",
      "title": "6-Phase Empirical Bug Diagnosis Loop",
      "summary": "Discipline for hard bugs and performance regressions—build a tight red-capable feedback loop first, reproduce and minimize, rank 3–5 falsifiable hypotheses, instrument one variable at a time, lock with a seam-level regression test, and clean up.",
      "kind": "playbook",
      "domain": "coding",
      "topic": "debugging",
      "tags": [
        "debugging",
        "root-cause",
        "diagnosis",
        "regression-testing",
        "playbook"
      ],
      "visibility": "public",
      "author": "agy-pro-kit (with Drix10 & @merterdir)",
      "source_url": "https://github.com/snknitin/agy-pro-kit",
      "checked_on": "2026-12-02",
      "use_when": "When diagnosing a stubborn bug, flaky failure, race condition, or performance regression where guessing fixes wastes time.",
      "caveats": [
        "Do NOT jump straight to reading code and forming theories before a tight, red-capable reproduction command exists—jumping to hypotheses without a loop is the exact failure mode this playbook prevents.",
        "For performance regressions, skip logging and establish a baseline measurement (timing harness, profiler, query plan) before bisecting.",
        "Always remove all temporary tagged debug logs and throwaway harnesses before finishing."
      ],
      "doesnt_fit_with": [
        {
          "slug": "bounded-performance-hillclimb",
          "reason": "Use Bounded Performance Hillclimb once you know what is slow and want to iteratively optimize a locked benchmark metric rather than diagnose a defect."
        },
        {
          "slug": "seam-first-vertical-tdd",
          "reason": "Use Seam-First Vertical TDD when building new features test-first rather than hunting down an existing failure's root cause."
        }
      ],
      "variables": [],
      "license": "MIT",
      "prompt": "Follow this 6-phase empirical diagnosis discipline strictly. Skip a phase only when explicitly justified. Read `CONTEXT.md` (if present) and relevant ADRs to anchor your mental model.\n\n### Phase 1 — Build a Feedback Loop\n**This is the skill.** Everything else is mechanical. Spend disproportionate effort constructing a **tight**, **red-capable** pass/fail command that drives the actual bug code path and asserts the user's exact symptom.\n\nTry constructing the loop in roughly this order:\n1. Failing test at whatever seam reaches the bug (unit, integration, e2e).\n2. Curl / HTTP script against a running dev server.\n3. CLI invocation with a fixture input diffing stdout against a known-good snapshot.\n4. Headless browser script (Playwright / Puppeteer) asserting on DOM, console, or network.\n5. Replay a captured trace (saved request, payload, or event log) in isolation.\n6. Throwaway harness spinning up a minimal subset of the system with mocked deps.\n7. Property / fuzz loop (1,000 random inputs for \"sometimes wrong output\" bugs).\n8. Bisection harness (`git bisect run` between two known commits/versions/datasets).\n9. Differential loop (same input through old vs. new version or two configs, diffing outputs).\n10. Structured human-in-the-loop script as a last resort so captured output still feeds back cleanly.\n\n**Tighten the loop:** Make it faster (seconds, not minutes), sharper (assert the exact symptom, not \"didn't crash\"), and deterministic (pin time, seed RNG, isolate filesystem, freeze network). For non-deterministic bugs, loop 100x, parallelize, add stress, or narrow timing windows until the flake rate is high enough to debug (e.g., 50%+).\n\n**If you genuinely cannot build a loop:** Stop and say so explicitly. List what you tried and ask for environment access, a captured artifact (HAR, log dump, core dump), or permission to add temporary instrumentation. **No red-capable command, no Phase 2.**\n\n### Phase 2 — Reproduce + Minimize\nRun the loop and watch it go red. Confirm it reproduces the user's exact symptom (not a nearby failure) across runs, and capture the exact output/timing.\n\nThen **minimize**: shrink inputs, callers, config, data, and steps **one at a time**, re-running after each cut until **every remaining element is load-bearing** (removing any single element makes the loop go green). Do not proceed until reproduced AND minimized.\n\n### Phase 3 — Hypothesize\nGenerate **3–5 ranked, falsifiable hypotheses** before testing any of them (single-hypothesis generation anchors on the first plausible guess). Every hypothesis must state a concrete prediction:\n> Format: \"If `<cause>` is the root cause, then `<changing x>` will make the bug disappear or `<changing y>` will make it worse.\"\n\nDiscard any hypothesis that cannot make a falsifiable prediction. Share the ranked list so domain knowledge can re-rank or eliminate candidates immediately.\n\n### Phase 4 — Instrument\nMap every probe to a specific Phase 3 prediction and **change one variable at a time**:\n1. Prefer debugger / REPL breakpoints over logs.\n2. Otherwise add targeted logs at the boundaries that distinguish hypotheses — never \"log everything and grep\".\n3. Tag every debug log with a unique searchable prefix (e.g., `[debug-a4f2]`) so cleanup is a single grep.\n4. **Performance regressions:** Measure first with a timing harness, profiler, or query plan, then bisect.\n\n### Phase 5 — Fix + Regression Test\nWrite the regression test **before the fix**, provided a **correct seam** exists (one that exercises the real bug pattern as it occurs at the call site, not a shallow mock giving false confidence). If no correct seam exists, document that architectural finding explicitly.\n\nWhen a seam exists:\n1. Turn the minimized repro into a failing test at that seam and watch it fail.\n2. Apply the root-cause fix and watch the test pass.\n3. Re-run the Phase 1 feedback loop against the original (un-minimized) scenario.\n\n### Phase 6 — Cleanup + Post-Mortem\nBefore declaring done, verify every item:\n- Original un-minimized repro no longer reproduces.\n- Regression test passes (or missing seam is documented).\n- All `[debug-...]` instrumentation is grepped and removed; throwaway harnesses deleted.\n- The winning hypothesis is stated in the commit/PR message so the next debugger learns.\n- **Prevention check:** After the fix lands, state what architectural change (better seam, single state owner, CI check) would have prevented this bug class.",
      "word_count": 689,
      "est_tokens": 1111,
      "is_flavor_bomb": false,
      "url": "/p/diagnosing-bugs-6-phase-loop"
    },
    {
      "id": "dual-coding-interest-adaptive",
      "title": "Dual-Coding Interest-Adaptive Learning + 19-Type Active Probes",
      "summary": "Learn any technical topic through personal-interest analogies, ASCII/Mermaid visual models, and an upgraded 19-type active-learning probe taxonomy that tests reasoning and delayed recall.",
      "kind": "prompt",
      "domain": "general",
      "topic": "learning",
      "tags": [
        "learning",
        "dual-coding",
        "analogies",
        "active-recall",
        "quizzes"
      ],
      "visibility": "public",
      "author": "@imAlsahli (Google Learn Your Way) & @snknitin (youtube-learning-center)",
      "source_url": "https://x.com/imAlsahli/status/2126739505038197179",
      "checked_on": "2026-12-02",
      "use_when": "When self-studying an unfamiliar technical concept and you want sticky domain analogies, verbal+visual Dual Coding, and high-signal active-recall questions that cannot be answered by parroting.",
      "caveats": [
        "Empirical gain caveat: Google's Learn Your Way paper (arXiv:2509.13348v4) reported 67% -> 78% test scores, but that result comes from a small, short-duration controlled study (N=60 total, 30 per group, 3–5 days)—treat it as a promising pedagogy, not a magic guarantee.",
        "Always explicitly inspect where the personal-interest analogy breaks down so simplified metaphors do not plant lasting technical misconceptions.",
        "This prompt adapts the Learn Your Way pedagogy into a reusable chat template; the original X thread describes the research paper rather than providing a verbatim prompt."
      ],
      "doesnt_fit_with": [
        {
          "slug": "four-layers-of-understanding",
          "reason": "Use Four Layers of Understanding when dissecting a specific research paper step by step (Motivation -> Café Intuition -> Worked Example -> Abstract Essence) rather than interactive personal-interest tutoring."
        },
        {
          "slug": "expert-question-bank-and-acta",
          "reason": "Use Expert Question Bank & ACTA to interview a domain expert and document tacit knowledge rather than self-studying an established subject."
        }
      ],
      "variables": [
        "TOPIC",
        "CURRENT_LEVEL",
        "PERSONAL_INTEREST"
      ],
      "license": "curated",
      "prompt": "Teach me [TOPIC] at a [CURRENT_LEVEL] level using concrete examples and analogies drawn from [PERSONAL_INTEREST] without dropping or watering down any core technical concepts.\n\nStructure the lesson using **Dual Coding** and **Active Probes**:\n1. **Core Mental Model (Verbal + Visual):** Explain the mechanism clearly, map it to [PERSONAL_INTEREST], explicitly name **where the analogy breaks down**, and pair the explanation with a clean ASCII or Mermaid visual diagram showing the causal flow.\n2. **Diagnostic Active Probes (3 Questions, Wait for My Answers):** Pick the 3 highest-leverage probe types from the list below that genuinely fit this material (do not rotate mechanically; every question must be <= 40 words, name the specific concept, and be unanswerable by simply repeating a sentence above):\n   - `counterexample` (when a broad rule fails)\n   - `boundary` (smallest change that breaks a condition)\n   - `spot_the_flaw` (state a plausible wrong conclusion and ask what is wrong with it)\n   - `first_principles` (why the mechanism works, not what it is called)\n   - `transfer` (apply the worked method to a different setting)\n   - `number_sense` (what a specific metric/number does and does not show)\n   - `decide` (concrete trade-off: choose and name what you give up)\n3. **Immediate Feedback Loop:** Wait for my replies, diagnose the exact misconception behind any wrong answer, and adapt the next explanation to close the gap.",
      "word_count": 217,
      "est_tokens": 361,
      "is_flavor_bomb": false,
      "url": "/p/dual-coding-interest-adaptive"
    },
    {
      "id": "expert-prompt-rewriter-sharpen",
      "title": "Expert 4-Step Prompt Rewriter (/sharpen)",
      "summary": "Upgrade a shallow task prompt into an expert-grade brief by surfacing domain methods, rawest source material, external verification criteria, and material-assumption tests.",
      "kind": "prompt",
      "domain": "general",
      "topic": "prompt-engineering",
      "tags": [
        "prompt-engineering",
        "sharpen",
        "meta-prompt",
        "expert-workflow",
        "assumptions"
      ],
      "visibility": "public",
      "author": "Felix Rieseberg (@andrewmichaelio)",
      "source_url": "https://x.com/andrewmichaelio/status/2126044155830759789",
      "checked_on": "2026-12-02",
      "use_when": "When your current prompt is producing generic, surface-level output and you want a deeper version of the task—not a longer, bloated one.",
      "caveats": [
        "Review the rewritten prompt before running it blindly; step (2) often identifies raw primary data or source files you need to attach before execution.",
        "Skip this for trivial mechanical edits where domain framing adds latency without changing the output."
      ],
      "doesnt_fit_with": [
        {
          "slug": "pre-build-95-percent-interview",
          "reason": "Use Pre-Build 95% Interview to clarify an ambiguous project spec and challenge whether to build at all, rather than sharpening a single task prompt."
        },
        {
          "slug": "vercel-agents-md-8-rules",
          "reason": "Use Vercel AGENTS.md 8 Rules to tighten persistent agent instruction files rather than upgrade a one-off task prompt."
        }
      ],
      "variables": [
        "DRAFT_TASK_OR_PROMPT"
      ],
      "license": "curated",
      "prompt": "I want a deeper version of this task, not a bigger one. Before rewriting it: (1) say what a top professional in this field would do here that I'm not asking for; (2) name the rawest material they would start from instead of what has already been digested for me; (3) name the specific methods and tools they would use; (4) say what, other than you or me, would show the result is right. Then rewrite my prompt to ask for exactly that.\n\nDraft task or prompt to sharpen:\n[DRAFT_TASK_OR_PROMPT]",
      "word_count": 90,
      "est_tokens": 123,
      "is_flavor_bomb": false,
      "url": "/p/expert-prompt-rewriter-sharpen"
    },
    {
      "id": "expert-question-bank-and-acta",
      "title": "Expert 10-Class Question Bank & ACTA Knowledge Elicitation",
      "summary": "Generate high-information-gain expert questions across 10 classes (banning vague filler) and run a 4-part ACTA elicitation brief with strict evidence provenance where recollection is never laundered into standard fact.",
      "kind": "framework",
      "domain": "general",
      "topic": "learning",
      "tags": [
        "learning",
        "interviewing",
        "acta",
        "knowledge-elicitation",
        "expertise"
      ],
      "visibility": "public",
      "author": "@snknitin (expert-lens-skill)",
      "source_url": "https://github.com/snknitin/expert-lens-skill",
      "checked_on": "2026-12-02",
      "use_when": "Before interviewing a domain expert, running a technical deep-dive, or turning tacit practitioner transcripts into a durable, provenance-tracked knowledge brief.",
      "caveats": [
        "Enforce the filler-phrase rejection strictly: any question like 'tell me more' or 'can you elaborate' carries zero discriminating power and must be discarded.",
        "In ACTA synthesis, never silently upgrade an expert's memory or local habit into an official standard—preserve exact evidence_kind labels (recollection, local_practice, empirical, regulation, standard, vendor, model_inference)."
      ],
      "doesnt_fit_with": [
        {
          "slug": "prep-before-query-long-doc",
          "reason": "Use Prep-Before-Query Long-Doc Grounding to extract cited facts from an existing written PDF or spec rather than designing live expert interview questions."
        },
        {
          "slug": "dual-coding-interest-adaptive",
          "reason": "Use Dual-Coding Interest-Adaptive Learning for self-study with analogies and quizzes rather than eliciting tacit practitioner knowledge."
        }
      ],
      "variables": [
        "DOMAIN_OR_TOPIC",
        "SITUATION_AND_OUTCOME",
        "KNOWN_TERMS_GAPS_OR_CONTRADICTIONS"
      ],
      "license": "MIT",
      "prompt": "Build a **10-Class Expert Question Bank** and rank the **Top 5 highest-information-gain questions** for the domain and decision below.\n\nDomain / topic: [DOMAIN_OR_TOPIC]\nLive situation & desired outcome (`D1`): [SITUATION_AND_OUTCOME]\nKnown terms, unconnected concept gaps (`G1..Gn`), or source contradictions (`X1..Xn`): [KNOWN_TERMS_GAPS_OR_CONTRADICTIONS]\n\n### Part 1 — Hard Question-Quality Rules\n1. **Reject open-ended filler outright:** Never generate vague prompts containing `\"tell me more\"`, `\"can you elaborate\"`, `\"elaborate on\"`, `\"tell me about\"`, or `\"more about\"`.\n2. **Require a `discriminating_answer`:** Every question must explicitly specify what kind of concrete answer separates a real practitioner from a textbook restatement.\n3. **Anchor to refs:** Tag every gap-driven (`G1..Gn`), contradiction-driven (`X1..Xn`), or decision-driven (`D1`) question with its reference IDs.\n4. **Add one sharp follow-up** per question that probes the first five minutes, earliest warning sign, or hidden moderator variable.\n\n### Part 2 — 10-Class Question Bank\nGenerate targeted questions spanning **all 10 classes**:\n1. `definition` — Domain-precise meaning vs. where everyday usage misleads people.\n2. `mechanism` — Exact causal chain producing the effect (or hidden moderator variable reconciling a contradiction).\n3. `boundary` — Concrete conditions and trigger variables where the rule stops holding.\n4. `failure` — Most common novice failure mode or strongest misconception and what corrects it.\n5. `comparison` — Evidence/experiment that resolves a source conflict, or practical contrast that changes the next action.\n6. `decision` — Which single unknown matters most to resolve first to reach `D1`.\n7. `history` — Dated shift in domain understanding over the past decade and which older practice is now obsolete.\n8. `practice` — How experienced practitioners adapt when the standard recipe fails.\n9. `evaluation` — Mid-way early-warning observable proving the chosen approach is failing (not a retrospective metric).\n10. `transfer` — One neighboring domain where the principle transfers cleanly and one named break with its cause.\n\n### Part 3 — Top 5 Ranked by Information Gain\nRank the top 5 referenced questions using this priority order:\n- **Contradictions (`X`) beat Gaps (`G`), which beat Decisions (`D`).**\n- Within the same reference tier, prioritize `comparison` and `mechanism`, followed by `decision`, `boundary`, and `failure`.\n\nOutput each Top 5 entry with: `id`, `class`, `refs`, `question`, `discriminating_answer`, and `follow_up`.",
      "word_count": 356,
      "est_tokens": 640,
      "is_flavor_bomb": false,
      "url": "/p/expert-question-bank-and-acta"
    },
    {
      "id": "first-principles-architecture-redesign",
      "title": "First-Principles Architecture Redesign & Compensating Code Audit",
      "summary": "Expose compensating workarounds, leaky boundaries, and hidden coupling, document every edge case they preserve, and redesign from irreducible constraints or a higher-level abstraction.",
      "kind": "framework",
      "domain": "coding",
      "topic": "architecture",
      "tags": [
        "architecture",
        "first-principles",
        "compensating-code",
        "refactoring",
        "coupling"
      ],
      "visibility": "public",
      "author": "@mazeincoding (with @Rachel_hkz, @nellobjects, @Wyrmfalls, @Dyikhyi56, @Khazix0918 & Drix10)",
      "source_url": "https://x.com/mazeincoding/status/2120357828040745281",
      "checked_on": "2026-12-02",
      "use_when": "When a subsystem is drowning in retries, normalization shims, post-processing fixups, cascading multi-file edits, or thin pass-through layers and needs a root-cause architectural redesign.",
      "caveats": [
        "@nellobjects domain caveat ('Show me the rollback that unships a parcel'): In distributed sagas, payment rails, and external side effects, compensating transactions are domain-mandatory—not design debt. Never 'simplify away' real-world saga compensation.",
        "@Rachel_hkz precondition: Always document the exact real-world behavior, external quirk, or backward-compatibility edge case each workaround preserves before removing it.",
        "Verify that any proposed 'higher-level abstraction' actually deletes net complexity rather than hiding simple control flow behind clever indirection."
      ],
      "doesnt_fit_with": [
        {
          "slug": "codebase-entropy-governance-plan",
          "reason": "Use Codebase Entropy Governance Plan for a budgeted, CI-ratcheted multi-wave cleanup campaign rather than a focused first-principles redesign."
        },
        {
          "slug": "implicit-to-explicit-state-machines",
          "reason": "Use Implicit-to-Explicit State Machines when the primary pathology is tangled boolean flags and illegal state transitions."
        },
        {
          "slug": "skeptical-codebase-audit",
          "reason": "Use Skeptical Codebase Audit when you need a read-only line-by-line bug, security, and test-validity audit across the repository."
        }
      ],
      "variables": [
        "TARGET_SUBSYSTEM"
      ],
      "license": "curated",
      "prompt": "Scope: [TARGET_SUBSYSTEM]\n\nFind all compensating code, then propose redesigns from first principles under which it would never have been written.\n\nWork through these five disciplined steps before proposing any edits:\n\n1. **Inventory Compensating Code & Preserved Behavior:** List every workaround, post-processing fixup, defensive override, normalization shim, or retry patch compensating for an upstream flaw. For **each** item, explicitly document:\n   - The exact real-world edge case, external system quirk, or user-visible behavior it currently preserves.\n   - Whether it is **design debt** (caused by our own upstream model) or **domain-mandatory saga compensation** (handling irreversible external side effects such as shipped orders, settled payments, or third-party webhooks—keep these intact).\n2. **Surface Structural Friction:** Check for:\n   - Leaky module boundaries where callers must know internal implementation details or undocumented call orders.\n   - The three files that change together most often and the hidden dependency forcing them to move in lockstep.\n   - Single-caller wrappers, interfaces, or helpers that add indirection without buying real I/O isolation or reuse.\n3. **First-Principles Redesign (Two Contrasting Lenses):**\n   - **Top-down dissolver:** What higher-level abstraction would make this entire problem disappear (and net-delete code)?\n   - **Bottom-up rebuild:** Reduce this problem to its irreducible physical, product, and compatibility constraints and rebuild it from zero.\n4. **Principal Architect Gut-Check:** Name the single structural flaw a principal architect would immediately rewrite before building another feature on top of [TARGET_SUBSYSTEM].\n5. **Second- & Third-Order Effects:** Don't just consider the direct effects of the recommended redesign. Reason through its second- and third-order effects across coupled modules, migrations, user behavior, system complexity, and long-term maintenance costs.",
      "word_count": 259,
      "est_tokens": 490,
      "is_flavor_bomb": false,
      "url": "/p/first-principles-architecture-redesign"
    },
    {
      "id": "five-dimension-manuscript-audit",
      "title": "5-Dimension Manuscript Editing & Clarity Audit",
      "summary": "Verbatim 5-dimension editorial audit (Clarity, Flow, Impact, Story Quality, Reader Experience) with tracked changes, plus 50% cut, Pareto 20% crux compression, and empty-context-window handoff checks.",
      "kind": "prompt",
      "domain": "general",
      "topic": "writing",
      "tags": [
        "editing",
        "writing",
        "clarity",
        "manuscript",
        "compression"
      ],
      "visibility": "public",
      "author": "@TechElyra, Drix10 & @snknitin",
      "source_url": "https://x.com/TechElyra/status/2123702266351980998",
      "checked_on": "2026-12-02",
      "use_when": "When editing an essay, technical post, RFC, memo, or book chapter you already drafted and want sharp line-level editorial feedback, compression passes, or outside-reader sanity checks.",
      "caveats": [
        "Copyrightability caveat (@jdlasica): Use strictly as an editorial critique tool on your own human-authored draft—purely AI-generated books cannot be copyrighted.",
        "AI-prose tell caveat (@MsPollyClark, @mguyeberhart): Blindly accepting full AI rewrites flattens author voice into generic prose that readers spot immediately (and detectors like Pangram flag, driving book returns); review tracked changes line by line.",
        "Compare aggressive compression passes (50% cut or Pareto 20% crux) against your original so load-bearing legal, technical, or empirical qualifiers are never silently stripped."
      ],
      "doesnt_fit_with": [
        {
          "slug": "nonfiction-chapter-architecture",
          "reason": "Use Nonfiction Chapter Architecture Builder upfront to design a whole book's outline before drafting; use 5-Dimension Manuscript Audit on an existing draft."
        },
        {
          "slug": "analogy-and-story-illustrator",
          "reason": "Use Analogy & Story Illustrator when you need fresh concrete examples and stories to illuminate an abstract concept rather than editing a full draft."
        }
      ],
      "variables": [
        "PASTE YOUR WRITTEN CHAPTER",
        "ONE SENTENCE SUMMARY"
      ],
      "license": "curated",
      "prompt": "You are a Senior Editor at Harper Collins with 15 years of experience transforming good manuscripts into great ones.\n\nChapter Text: [PASTE YOUR WRITTEN CHAPTER]\nBook Tone: [CONVERSATIONAL, AUTHORITATIVE, OR INSPIRATIONAL]\nTarget Reader Level: [BEGINNER, INTERMEDIATE, OR ADVANCED]\nCore Message of Chapter: [ONE SENTENCE SUMMARY]\nEdit this chapter across five dimensions:\n\nClarity Audit:\nIdentify every sentence that requires reading twice\nSimplify complex explanations without losing depth\nReplace jargon with plain powerful language\nEnsure every paragraph serves one clear purpose\n\nFlow and Pacing:\nIdentify where the reader loses momentum\nRestructure sections that interrupt the reading rhythm\nShorten paragraphs that slow the pace unnecessarily\nAdd transition sentences where the logic jumps abruptly\n\nImpact Enhancement:\nFind the three weakest sentences and rewrite them\nIdentify the strongest sentence and amplify it further\nReplace passive voice with direct active language\nElevate the opening and closing line of every paragraph\n\nStory and Example Quality:\nAssess whether stories are specific enough to be believable\nIdentify abstract concepts that still need a concrete example\nEnsure every story connects back to the reader directly\n\nReader Experience Check:\nDoes the chapter deliver on its opening promise\nWill the reader feel they gained something specific\nIs the call to action clear and immediately executable\nDoes the final sentence create anticipation for what comes next\n\nDeliver a full edit with tracked changes and reasoning for every significant modification.",
      "word_count": 226,
      "est_tokens": 395,
      "is_flavor_bomb": false,
      "url": "/p/five-dimension-manuscript-audit"
    },
    {
      "id": "formal-methods-23-point-framework",
      "title": "Formal Methods 23-Point Deep Analysis",
      "summary": "Exact verbatim 23-lens formal methods and theoretical CS prompt to reconstruct a system from observable semantics, bounds, and proof obligations—plus spec-first synthesis and scoping guards.",
      "kind": "framework",
      "domain": "coding",
      "topic": "architecture",
      "tags": [
        "formal-methods",
        "verification",
        "proofs",
        "architecture",
        "deep-research"
      ],
      "visibility": "public",
      "author": "@infinterenders (with @P33RL3SS & @ppmpreetham)",
      "source_url": "https://x.com/infinterenders/status/2126834177605845422",
      "checked_on": "2026-12-02",
      "use_when": "When designing or auditing parsers, compilers, distributed protocols, schedulers, query planners, or consensus algorithms where mathematical invariants govern correctness.",
      "caveats": [
        "@vitormarkisdev & @eulerfx caveat: High risk of generating 5,000 lines of unreadable academic slop if fired blindly at an ordinary CRUD web app.",
        "Always scope everyday systems to ONLY the 2–3 most relevant lenses instead of running all 23 at once."
      ],
      "doesnt_fit_with": [
        {
          "slug": "architectural-hardening-formal-verification",
          "reason": "Use Architectural Hardening when you want concrete executable TLA+/Lean 4/property-test tooling integrated into CI waves rather than a theoretical 23-lens research spec."
        },
        {
          "slug": "delusional-ambition-engineering-suite",
          "reason": "Use Delusional Ambition Engineering Suite for fast exploratory invariant hunts or 100x redesign shocks before pulling out the full 23-lens framework."
        }
      ],
      "variables": [],
      "license": "curated",
      "prompt": "Objective → reconstruct the problem from observable semantics · derive the smallest structure satisfying the contract · treat the implementation as a hypothesis\n\n01. State Minimization: quotient by observational equivalence → prove behavior preserved\n02. Expressiveness Limits: unrepresentable behavior → implementation or abstraction limit\n03. Representations: operational · denotational · algebraic · transition systems\n04. Information Bounds: minimum state between execution points → measure redundancy\n05. Algebra: monoid · lattice · group · category → laws eliminate computation\n06. Fixed Points: ordering · continuity · least fixed point → widening · narrowing\n07. Rewriting: optimizations as rules → termination · confluence · normal forms\n08. Canonical Forms: unique representative → algorithm or obstruction\n09. CEGAR: minimal abstraction → spurious vs concrete → refine minimally\n10. Weakest Assumptions: minimal violation → weakest assumption restoring the guarantee\n11. Hyperproperties: noninterference · determinism · leakage → self-composition\n12. Termination: ranking functions · ordinals → or characterize divergence\n13. Compilation: IR preserving contextual equivalence → obligations per lowering\n14. Incrementality: input deltas → output deltas → when maintenance beats recompute\n15. Scheduling: fairness · latency · starvation · throughput → which coexist\n16. Minimal Runtime: lower bounds on state · sync · memory traffic · dispatch\n17. Proof Cost: proof vs implementation cost at fixed correctness\n18. Experiments: competing models → smallest test eliminating whole families\n19. Representation Independence: largest verifiable class of contract-preserving changes\n20. Impossibility: complexity · communication · memory limits vs weak implementation\n21. Proof-Carrying Architecture: checkable contracts → static vs runtime enforcement\n22. Prior Work: theorems · bounds · open problems → before claiming novelty\n23. Refinement: minimal implementation → proof it refines the contract\n\nRequirements: definitions · assumptions · formal statements · proof obligations or minimized counterexamples · bounds with a named machine model · reproducible experiments · citations · precise gaps\n\nDeliverable: specification · falsifiable hypotheses · proofs · complexity analysis · verification strategy · derived implementation",
      "word_count": 319,
      "est_tokens": 584,
      "is_flavor_bomb": false,
      "url": "/p/formal-methods-23-point-framework"
    },
    {
      "id": "four-layers-of-understanding",
      "title": "Four Layers of Understanding (Paper & Concept Explainer)",
      "summary": "Full verbatim 4-layer prompt based on Jakob Schwichtenberg's A Physics Travel Guide: Motivation, zero-formula Café Intuition, Concrete Worked Example, and Abstract Essence with failure boundaries.",
      "kind": "framework",
      "domain": "general",
      "topic": "learning",
      "tags": [
        "papers",
        "learning",
        "mental-models",
        "first-principles",
        "physics"
      ],
      "visibility": "public",
      "author": "@LotusDecoder (Jakob Schwichtenberg)",
      "source_url": "https://x.com/LotusDecoder/status/2125874422078972062",
      "checked_on": "2026-12-02",
      "use_when": "When reading a research paper, textbook chapter, or intimidating technical mechanism and you want genuine structural understanding instead of a shallow summary.",
      "caveats": [
        "Attach or paste the actual paper/text whenever possible—relying purely on model memory for recent or niche papers risks fabricated details and weakens the anti-hallucination rule.",
        "Check that Step 2 gives a genuinely structurally isomorphic analogy rather than a loose surface metaphor, and that Step 3 explicitly maps every equation term back to Step 2."
      ],
      "doesnt_fit_with": [
        {
          "slug": "prep-before-query-long-doc",
          "reason": "Use Prep-Before-Query Long-Doc Grounding when you need exact quantitative tables and page-referenced Q&A on a 40+ page document rather than a conceptual 4-layer walkthrough."
        },
        {
          "slug": "dual-coding-interest-adaptive",
          "reason": "Use Dual-Coding Interest-Adaptive Learning when you want analogies tailored to a personal hobby plus visual diagrams and active-learning diagnostic quizzes."
        }
      ],
      "variables": [
        "PASTE PAPER / LINK / TOPIC"
      ],
      "license": "curated",
      "prompt": "Please use physicist Jakob Schwichtenberg’s “Four Layers of Understanding” from A Physics Travel Guide to explain this paper/technical article to me in a way that is both accessible and in-depth.\n\nThe most common reason people find hardcore technical material difficult is that they skip the earlier steps and dive straight into a pile of formulas and jargon. Please follow the four steps below strictly, without skipping a single one, and add one more layer of depth at each step:\n\n### Step 1: Motivation (Why should we care?)\n- Don’t introduce new concepts yet. In a few sentences, explain: Before this work, how did people usually solve this kind of problem? What practical pain points did they encounter (such as being too expensive, too slow, or too difficult to measure accurately), or what counterintuitive, strange phenomenon did they discover?\n- What urgent problem does this work actually solve?\n\n### Step 2: Intuitive (Intuition — a plain-language café version, zero formulas)\n- Hard constraint: This layer must not contain any mathematical formulas, symbolic abbreviations, or unexplained academic jargon.\n- Find a real-life or engineering scenario that is “structurally isomorphic” to the paper’s core mechanism. Like chatting over coffee, explain in full why “the old approach went wrong” and “which key rules the authors changed to fix the problem,” helping me first build a complete mental map.\n\n### Step 3: Concrete (Concrete — work through the calculations with the smallest real example)\n- Drop the analogies and return to the paper’s actual task setting. Pick out (or construct) a tangible, minimal input-output example.\n- Present the paper’s most essential equations, filtering rules, or algorithmic steps, but don’t do abstract derivations—point directly to the concrete example above and map each term in the equations to the intuition from Step 2 (What is it doing? What data does it turn into what? How much do the key metrics differ before and after the crucial changes?).\n\n### Step 4: Abstract (Abstract — underlying general principles, cross-domain isomorphisms, and failure boundaries)\nWith intuition and a concrete worked example as a foundation, please take me to the highest level and look past the specifics to the essence:\n1. Underlying essence: Once you strip away the specific task, what is this method actually doing in terms of mathematics, information theory, or system mechanisms?\n2. Cross-domain connections: Which classic ideas or methods in other fields are actually saying the same thing?\n3. Failure boundaries (required): What assumptions does this method implicitly rely on? Under what circumstances will it fail, produce biased results, or be unable to replace the original approach?\n\n---\nPresentation requirements:\n- The layers must connect naturally: the equation breakdown in Step 3 should echo the analogy in Step 2, and the abstraction in Step 4 should grow out of the concrete mechanisms in Step 3.\n- Keep the language plain, restrained, and clear. Avoid empty praise and boilerplate.\n- Where the original text is unpublished or the evidence is insufficient, say so honestly. Don’t make things up.\n\nThe material to explain is as follows:\n[PASTE PAPER / LINK / TOPIC]",
      "word_count": 513,
      "est_tokens": 805,
      "is_flavor_bomb": false,
      "url": "/p/four-layers-of-understanding"
    },
    {
      "id": "grices-maxims-communication",
      "title": "Grice's Maxims Communication & Anti-Fabrication System Prompt",
      "summary": "Authoritative system prompt operationalizing Grice's four conversational maxims (Quantity, Quality, Relation, Manner) with explicit anti-fabrication and missing-information disclosures.",
      "kind": "system-prompt",
      "domain": "general",
      "topic": "communication",
      "tags": [
        "system-prompt",
        "grice",
        "communication",
        "truthfulness",
        "conciseness"
      ],
      "visibility": "public",
      "author": "@fanxing321, @bgmup99 & @qilaidav9",
      "source_url": "https://x.com/fanxing321/status/2115785866551656954",
      "checked_on": "2026-12-02",
      "use_when": "As a clean everyday system prompt for technical, analytical, and research chats where high signal-to-noise, relevance, and zero fluff matter.",
      "caveats": [
        "Style preference != fact-checking guarantee (@CKeayea4407): instructing a model to be 'truthful and evidence-based' shifts style rather than triggering real retrieval—still verify critical facts and specify target reader, length, format, and citation rules explicitly.",
        "Brainstorming caveat (@HuttonBockflie): enforcing all four Gricean maxims strictly can turn creative ideation into a 'sterile conveyor belt'—for divergent brainstorming or lively writing, drop Quantity/Relation and invoke only the Manner maxim selectively.",
        "Extreme brevity can occasionally strip edge-case nuance (@juzipic); verify that critical caveats were not compressed away."
      ],
      "doesnt_fit_with": [
        {
          "slug": "anti-flattery-epistemic-invariants",
          "reason": "Use Anti-Flattery Epistemic Invariants when you want direct strategic pushback, fiduciary verdicts, and subtext auditing rather than neutral communication hygiene."
        },
        {
          "slug": "action-first-adhd-output-mode",
          "reason": "Use Action-First ADHD Output Mode when you specifically need lead-with-the-next-action formatting, <=5 ranked items, and concrete minute estimates."
        }
      ],
      "variables": [],
      "license": "curated",
      "prompt": "Strictly adhere to Grice's Cooperative Principle and its four conversational maxims to maximize information density and communication efficiency without compromising accuracy or necessary depth:\n\n- **Quantity (Minimal Sufficiency):** Cover core facts and necessary depth with zero small talk, filler, or redundant preliminaries.\n- **Quality (Verifiable Grounding):** Output only evidence-based, verifiable conclusions; strictly prohibit speculation or fabrication, and explicitly delineate unknown or missing information.\n- **Relation (Tight Alignment):** Stay strictly aligned with the core question and contextual boundaries; avoid tangents and unsolicited digressions.\n- **Manner (Structural Clarity):** Use rigorous logic, precise wording, and clear structure with zero ambiguity.",
      "word_count": 97,
      "est_tokens": 196,
      "is_flavor_bomb": false,
      "url": "/p/grices-maxims-communication"
    },
    {
      "id": "implicit-to-explicit-state-machines",
      "title": "Implicit-to-Explicit State Machines Kit",
      "summary": "Discover hidden boolean-flag state machines, triage which ones are worth fixing, build transition tables, eliminate illegal and non-terminal states, and escalate concurrency races to TLA+/Quint.",
      "kind": "playbook",
      "domain": "coding",
      "topic": "state-machines",
      "tags": [
        "state-machines",
        "type-design",
        "refactoring",
        "concurrency",
        "invariants"
      ],
      "visibility": "public",
      "author": "@DavidKPiano & @steveruizok (with @garbnzgh, @peytoncasper, @bensenescu, @dkubb, @azolotov & Drix10)",
      "source_url": "https://x.com/steveruizok/status/2116552016218710389",
      "checked_on": "2026-12-02",
      "use_when": "When UI flows, async loaders, persisted status columns, or multi-step workflows suffer from coupled boolean flags, stuck loading spinners, or intermittent edge-case races.",
      "caveats": [
        "@Valuable caveat: Do not treat every pair of booleans as a critical bug—triage real defect risk first and prefer a simple discriminated union over a heavy state-machine library when transitions are small.",
        "Large repositories produce noisy inventories; scope the pass to a specific package, service, or user flow first.",
        "Check both API endpoints and UI event handlers—an impossible UI click can still arrive via a direct network request or out-of-order webhook."
      ],
      "doesnt_fit_with": [
        {
          "slug": "architectural-hardening-formal-verification",
          "reason": "Use Architectural Hardening when you want a full multi-wave formal verification campaign (TLA+, Lean 4, chaos sims, and CI ratchets) across an entire codebase."
        },
        {
          "slug": "first-principles-architecture-redesign",
          "reason": "Use First-Principles Architecture Redesign when the root issue is compensating workarounds or leaky module boundaries rather than implicit state transitions."
        }
      ],
      "variables": [
        "TARGET_SCOPE"
      ],
      "license": "curated",
      "prompt": "Scope: [TARGET_SCOPE]\n\nFind all of the implicit state machines in my app, then turn all implicit state machines into explicit state machines so I can actually understand what the code is doing & prevent entire classes of bugs.\n\nExecute in four strict stages (do NOT edit code until Stage 2 triage is complete):\n\n1. **Discover (Read-Only):** Scan [TARGET_SCOPE] for coupled boolean flags (`isLoading`/`hasError`/`isSubmitting`), nullable field pairs, scattered status strings, and multi-step async lifecycles. Use parallel subagents on large directories.\n2. **Triage Before Refactoring:** For every implicit state machine found, assess whether it is actually worth fixing (real bug surface, user-visible stuck states, data corruption risk, or high churn). Skip trivial independent flags. Propose how to catch similar implicit state machines in future code reviews.\n3. **Transition Table & Hazard Audit:** For each machine worth fixing:\n   - Write the complete transition table and mark every transition that should be domain-impossible yet remains reachable in code.\n   - Find all non-terminal states from which execution can never legitimately reach a terminal or exit state (infinite spinners, dead-end modals, wedged jobs).\n   - Identify every place where two independent state machines mutate the same piece of data without a single owner.\n4. **Explicit Conversion:** Minimize the state space and make illegal states unrepresentable using discriminated unions / sum types and a single authoritative reducer or transition owner per state machine, preserving verified external contracts.",
      "word_count": 229,
      "est_tokens": 397,
      "is_flavor_bomb": false,
      "url": "/p/implicit-to-explicit-state-machines"
    },
    {
      "id": "khazix-code-quality-playbook",
      "title": "10-Prompt Code Quality Agent Playbook",
      "summary": "Complete 10-step engineering prompt sequence covering first-principles framing, failure-mode plan contrast, second-order impacts, red-teaming, git archeology, cognitive load, and turning recurring bugs into hooks and rules.",
      "kind": "playbook",
      "domain": "coding",
      "topic": "code-quality",
      "tags": [
        "playbook",
        "code-quality",
        "agents",
        "first-principles",
        "post-mortem"
      ],
      "visibility": "public",
      "author": "@Khazix0918 (upgraded with @hppzyy, @YXxquf, @AAAce4518, @Maddere7 & @djxxxxnb)",
      "source_url": "https://x.com/Khazix0918/status/2122268349707219333",
      "checked_on": "2026-12-02",
      "use_when": "When running a structured multi-turn engineering review or architecture overhaul with a coding agent from problem framing to permanent automated prevention.",
      "caveats": [
        "@Maddere7 caveat: Break the problem into 3 concrete layers (symptom, mechanism, constraint) before invoking Prompt #1 ('first principles')—repeatedly pushing 'first principles' on simple tasks causes rabbit-hole over-complication.",
        "@djxxxxnb caveat on Prompt #10: Move deterministic, mechanically checkable rules into git hooks, linters, or CI checks—prose rules in `AGENTS.md` drift over long agent sessions.",
        "Do not fire all 10 steps in one monolithic prompt; run the relevant phase(s) sequentially so the agent stays grounded."
      ],
      "doesnt_fit_with": [
        {
          "slug": "skeptical-codebase-audit",
          "reason": "Use Skeptical Codebase Audit for a single-shot read-only bug and architecture report without modifying workflows or git history analysis."
        },
        {
          "slug": "codebase-entropy-governance-plan",
          "reason": "Use Codebase Entropy Governance Plan for a hotspot-scored subsystem convergence refactor in an isolated worktree."
        },
        {
          "slug": "pre-build-95-percent-interview",
          "reason": "Use Pre-Build 95%-Confidence Interview before greenfield builds when you want a structured discovery interview rather than an existing-codebase quality playbook."
        }
      ],
      "variables": [
        "N",
        "TIMEFRAME"
      ],
      "license": "curated",
      "prompt": "1. Start from first principles, find the most fundamental cause, and fix it.\n\n2. First ask clarifying questions (only questions whose answer will change the next action) to align with my preferences, then come up with 3 versions of the plan — **first say where each version is most likely to fail**.\n\n3. Don't assume that the problem I've defined is correct. First analyze the underlying need I'm actually trying to address, and determine whether I've mistaken symptoms for causes or means for goals. If there's a more worthwhile problem to solve, point it out directly.\n\n4. Don't just consider the direct effects of this change. Keep reasoning through its second- and third-order effects, paying particular attention to potential impacts on other modules, user behavior, system complexity, and long-term maintenance costs.\n\n5. Are there similar approaches in other fields? Think comprehensively across domains to find the optimal solution.\n\n6. First assume that the approach you currently consider most reasonable is wrong. Take the perspective of the strongest opponent and look for evidence, counterexamples, and edge cases that could overturn it. Then reassess the approach and see whether there's a better solution.\n\n7. Analyze the entire codebase's Git history, key PRs, and architectural evolution in depth. Identify which designs were intentional, which are historical leftovers, and which were introduced to solve problems that no longer exist. Identify legacy baggage that can be safely removed.\n\n8. Assume that tomorrow, an engineer who knows nothing about the project but is highly capable will take over. Assess the cognitive cost of understanding the entire project, identify code with confusing names, excessive abstraction, unclear responsibilities, or that requires a lot of context to understand, and propose ways to simplify it.\n\n9. Comprehensively analyze all PRs from the past [N] days, identify the slowest ones, and see whether there are bottlenecks that can be optimized.\n\n10. Comprehensively review the bugs, rework, rollbacks, and repeated changes from the past [TIMEFRAME]. Don't just tally what happened; analyze whether these issues share a common root cause. Turn preventable, recurring issues into project rules, automation, or Skills so we don't keep paying the same cost over and over.",
      "word_count": 358,
      "est_tokens": 580,
      "is_flavor_bomb": false,
      "url": "/p/khazix-code-quality-playbook"
    },
    {
      "id": "lasseter-animation-and-motion-craft",
      "title": "Lasseter Animation & Motion Craft (2-Pass Review & Foundational Grounding)",
      "summary": "Critique and rebuild UI transitions, motion graphics, or interactive animations using Pixar's 12 principles of animation, grounded in classic animation and cinematography texts via a 2-pass review-and-redo loop.",
      "kind": "prompt",
      "domain": "coding",
      "topic": "animation",
      "tags": [
        "animation",
        "ui-craft",
        "motion",
        "frontend",
        "cinematography"
      ],
      "visibility": "public",
      "author": "@Shwinnabego (upgraded with @rileybrown, @madonna_matt, @BowTiedGroundHo, @wilfredlee & @drpeepee)",
      "source_url": "https://x.com/Shwinnabego/status/2108573799302205935",
      "checked_on": "2026-12-02",
      "use_when": "When polishing interactive UI transitions, micro-interactions, canvas/WebGL scenes, Remotion/SVG motion videos, or game feel that currently look robotic, linear, or rushed.",
      "caveats": [
        "Respect UI restraint and `prefers-reduced-motion`: productivity apps should stay crisp (<= 250ms ease-out) instead of adding bouncy cartoon overshoot everywhere.",
        "Grounding the model in explicit principles and timing curves from classic texts outperforms a bare name-drop of John Lasseter alone."
      ],
      "doesnt_fit_with": [
        {
          "slug": "bounded-performance-hillclimb",
          "reason": "Use Bounded Performance Hillclimb when fixing dropped frames, layout thrashing, or GPU bottlenecks rather than improving motion craft and timing feel."
        }
      ],
      "variables": [
        "ANIMATION_TARGET"
      ],
      "license": "curated",
      "prompt": "Target: [ANIMATION_TARGET]\n\nRun a **2-pass animation craft review and rebuild** grounded in John Lasseter's 12 principles of animation and foundational craft texts (*The Illusion of Life* by Frank Thomas & Ollie Johnston, *The Animator's Survival Kit* by Richard Williams, Milt Kahl's discipline of weight and clarity of silhouette, and *The Five C's of Cinematography* — camera angles, continuity, cutting, close-ups, and composition):\n\n### Pass 1 — Honest Timing & Craft Audit (No Edits Yet)\nCritique [ANIMATION_TARGET] specifically for what makes AI-generated animations feel robotic or rushed:\n1. **Timing & Slow-In / Slow-Out:** Identify linear or rushed transitions, give beats room to breathe, and replace generic easings with physically motivated curves (`cubic-bezier`, critically damped springs).\n2. **Anticipation, Follow-Through & Overlapping Action:** Show where motion starts abruptly or stops dead on one frame, and where secondary elements should trail or settle naturally instead of moving in robotic lockstep.\n3. **Staging, Arcs & Silhouette Clarity:** Check focal hierarchy, camera/viewport composition, and whether trajectories follow clean arcs or purposeful geometric paths rather than chaotic straight-line jumps.\n4. **Restraint & Accessibility:** Separate expressive showcase motion from functional UI transitions (keep functional UI crisp and honor `prefers-reduced-motion`).\n\n### Pass 2 — Concrete Rebuild\nNow redo [ANIMATION_TARGET] from Pass 1's critique, implementing the exact timing changes, easing curves, staggered choreography, and settling motion cleanly in code, and summarize every before/after timing parameter changed.",
      "word_count": 226,
      "est_tokens": 415,
      "is_flavor_bomb": false,
      "url": "/p/lasseter-animation-and-motion-craft"
    },
    {
      "id": "nonfiction-chapter-architecture",
      "title": "Nonfiction Chapter Architecture Builder",
      "summary": "Exact verbatim structural outline prompt covering opening strategy, benefit-driven chapter arc, internal chapter cadence, closing momentum, and content-to-page ratios.",
      "kind": "prompt",
      "domain": "general",
      "topic": "writing",
      "tags": [
        "writing",
        "outlining",
        "structure",
        "nonfiction"
      ],
      "visibility": "public",
      "author": "@TechElyra",
      "source_url": "https://x.com/TechElyra/status/2123702266351980998",
      "checked_on": "2026-12-02",
      "use_when": "When planning the chapter-by-chapter structural arc and pacing of a long-form nonfiction book, technical handbook, or guide before writing.",
      "caveats": [
        "Use strictly as a structural outlining tool before drafting in your own voice—do NOT use AI to ghostwrite entire books (@jdlasica notes purely AI-generated books cannot be copyrighted, and @MsPollyClark warns generic AI prose triggers reader backlash and returns).",
        "Treat suggested word counts and story-to-teaching ratios as starting scaffolding; adapt them to your domain's actual technical density."
      ],
      "doesnt_fit_with": [
        {
          "slug": "five-dimension-manuscript-audit",
          "reason": "Use 5-Dimension Manuscript Audit after you have already written a draft chapter; use Chapter Architecture Builder upfront to design the outline."
        },
        {
          "slug": "analogy-and-story-illustrator",
          "reason": "Use Analogy & Story Illustrator to deepen individual concepts inside a chapter rather than architecting the whole book outline."
        },
        {
          "slug": "dense-technical-manual-page",
          "reason": "Use Dense Technical Manual Page for compact, high-density reference documentation rather than narrative nonfiction chapter pacing."
        }
      ],
      "variables": [
        "YOUR TITLE",
        "TRANSFORMATION YOU DELIVER",
        "WHO READS THIS",
        "SHORT 20K WORDS OR FULL 50K WORDS"
      ],
      "license": "curated",
      "prompt": "You are a Master Book Architect who has structured over 200 bestselling nonfiction books.\n\nBook Title: [YOUR TITLE]\nCore Promise: [TRANSFORMATION YOU DELIVER]\nTarget Reader: [WHO READS THIS]\nBook Length Goal: [SHORT 20K WORDS OR FULL 50K WORDS]\nTone: [CONVERSATIONAL, AUTHORITATIVE, OR INSPIRATIONAL]\nDesign the complete book structure using this framework:\n\nBook Opening Strategy:\nHook chapter that earns the readers trust immediately\nOrigin story placement and emotional arc\nPromise statement that keeps them reading past page one\n\nComplete Chapter Outline:\nIntroduction with the problem and promise\nChapter one through final chapter with individual purpose\nEach chapter title written as a reader benefit not a topic\nOne sentence summary of what each chapter delivers\nLogical progression that builds on the previous chapter\n\nChapter Internal Structure:\nOpening hook for every chapter\nCore teaching framework for each chapter\nStory or case study placement within each chapter\nKey takeaway summary at chapter close\nTransition bridge into the next chapter\n\nBook Closing Strategy:\nConclusion that creates momentum not closure\nCall to action that extends the reader relationship\nFinal sentence that stays with the reader permanently\n\nContent to Page Ratio:\nRecommended word count per chapter\nStory versus teaching ratio for engagement\nExercise or implementation section placement",
      "word_count": 200,
      "est_tokens": 344,
      "is_flavor_bomb": false,
      "url": "/p/nonfiction-chapter-architecture"
    },
    {
      "id": "parallel-deep-research-protocol",
      "title": "Parallel Subagent Deep Research Protocol",
      "summary": "Lead-researcher orchestration protocol that decomposes complex topics into 3–5 non-overlapping sub-questions, fans out budgeted parallel research subagents against primary sources, prevents straggler stalls, and synthesizes a cited report.",
      "kind": "playbook",
      "domain": "general",
      "topic": "planning",
      "tags": [
        "deep-research",
        "subagents",
        "parallel-search",
        "synthesis",
        "verification"
      ],
      "visibility": "public",
      "author": "Google Gemini / agy-pro-kit",
      "source_url": "https://github.com/snknitin/agy-pro-kit",
      "checked_on": "2026-12-02",
      "use_when": "When conducting a broad survey, multi-angle technical investigation, competitive comparison, or exhaustive primary-source literature check that benefits from parallel search tracks.",
      "caveats": [
        "Do NOT use for simple single-fact lookups—answer directly or cap at 1–2 subagents so coordination overhead does not waste time and tokens.",
        "Cap subagent fan-out at 2–3 tracks on slower or high-thinking models, and cancel stalled straggler workers once the main tracks finish.",
        "Always include an explicit Unresolved section when primary sources conflict or data is missing rather than smoothing over gaps."
      ],
      "doesnt_fit_with": [
        {
          "slug": "claim-debunker-steelman-verification",
          "reason": "Use Claim Debunker & Steelman Verification when stress-testing a single specific claim or statistic with contrary queries rather than orchestrating a multi-angle parallel survey."
        },
        {
          "slug": "swarm-and-cross-model-verifier-playbook",
          "reason": "Use Swarm & Cross-Model Verifier Playbook for parallel code editing with disjoint file ownership rather than read-only multi-track research."
        }
      ],
      "variables": [
        "RESEARCH_TOPIC"
      ],
      "license": "Apache-2.0",
      "prompt": "Research Topic: [RESEARCH_TOPIC]\n\nAct as a lead researcher orchestrating parallel subagents to investigate [RESEARCH_TOPIC], then synthesize a grounded, primary-source report.\n\n### 1. Orient First\nClarify scope only if genuinely ambiguous. If the topic is unfamiliar, run one quick search to map the landscape first.\n- For narrow lookups: answer directly or use at most 2 subagents.\n- For broad topics: decompose [RESEARCH_TOPIC] into **3 to 5 non-overlapping sub-questions** (cap at 2 to 3 on slow or high-thinking models).\n\n### 2. Gather in Parallel\nSpawn concurrent read-only `research` subagents (use a `browser` subagent when a sub-question requires full-page reads of live, JS-rendered, or authenticated pages). If subagent tools are unavailable, execute the distinct search tracks directly.\n\nGive every subagent:\n- A distinct, non-overlapping angle and explicit time frame / source scope.\n- A hard budget of at most **8 to 12 web searches or tool steps**.\n\n### 3. Keep Evidence Primary\nInstruct every subagent to:\n- Verify claims against **primary sources** (official docs, papers, repositories, filings, specs) rather than stopping at search snippets or secondary summaries.\n- Include exact quotes or raw outputs for key numbers, benchmarks, dates, and definitions.\n- Return partial verified findings plus remaining gaps when hitting its step budget instead of looping endlessly.\n\n### 4. Resolve Gaps & Avoid Straggler Stalls\nRead findings as they arrive. If most subagents finish and one track stalls, cancel the stalled worker and move on. Run at most **one** targeted follow-up pass only if important gaps remain, and spawn a fresh verification subagent only for high-stakes or data-heavy reports.\n\n### 5. Synthesize Cleanly\nDeliver the final report using Simplified Technical English with:\n- A **2-sentence top-line summary** up front.\n- **Inline clickable citations** tied directly to primary sources.\n- A brief **Unresolved** section whenever primary sources conflict, numbers cannot be reconciled, or data is missing.",
      "word_count": 304,
      "est_tokens": 508,
      "is_flavor_bomb": false,
      "url": "/p/parallel-deep-research-protocol"
    },
    {
      "id": "pre-build-95-percent-interview",
      "title": "Pre-Build 95%-Confidence Project Interview & Plan Contrast",
      "summary": "Interrogate requirements before writing a line of code—filtering every question for actionability, challenging XY problems, contrasting 3 architectures by where each fails first, triaging one-way doors, and consolidating one crisp spec.",
      "kind": "prompt",
      "domain": "coding",
      "topic": "planning",
      "tags": [
        "planning",
        "interview",
        "problem-framing",
        "architecture",
        "specs"
      ],
      "visibility": "public",
      "author": "Curated (with @YXxquf, @Khazix0918, @hppzyy, @Gtwy & Drix10)",
      "source_url": "https://x.com/Khazix0918/status/2122268349707219333",
      "checked_on": "2026-12-02",
      "use_when": "Right before starting a new project, major feature, or ambiguous refactor so you expose hidden constraints and XY problems before burning cycles building the wrong thing.",
      "caveats": [
        "Skip the full interview for tiny, unambiguous bug fixes or mechanical edits where the scope is already settled.",
        "Enforce the actionability gate (`@YXxquf`) strictly—stop the interview if the model begins asking low-stakes trivia that will not change the next engineering decision.",
        "Do not let skepticism stall mandatory compliance, security, or core reliability work."
      ],
      "doesnt_fit_with": [
        {
          "slug": "expert-prompt-rewriter-sharpen",
          "reason": "Use Expert Prompt Rewriter (/sharpen) to upgrade a single prompt's domain depth and methodology rather than interview you to define a project's architecture and spec."
        },
        {
          "slug": "khazix-code-quality-playbook",
          "reason": "Use the 10-Prompt Code Quality Playbook when auditing and refactoring an existing repository across git history, cognitive load, and recurring-bug rules."
        }
      ],
      "variables": [],
      "license": "curated",
      "prompt": "I'm about to start this project — interview me until you have 95% confidence about what I actually want, not what I think I should want.\n\nFollow these strict rules during the interview and planning handoff:\n\n1. **Challenge the Framing First (`@Khazix0918` #3):** Don't assume that the problem I've defined is correct. First analyze the underlying need I'm actually trying to address, and determine whether I've mistaken symptoms for causes or means for goals. If there's a more worthwhile problem to solve, point it out directly.\n2. **Actionability Gate (`@YXxquf`):** Before asking any clarifying question, filter it through: *\"Will this answer actually change the next action or architectural choice?\"* Ask only high-leverage questions (3–5 at a time, with your recommended default for each) and stop interviewing once you reach ~95% confidence.\n3. **One-Way vs. Two-Way Door Triage (`Drix10`):** Separate the project's decisions into easily reversible choices (two-way doors—pick clean defaults fast) and irreversible commitments (one-way doors: schemas, public URLs/APIs, auth boundaries, data ownership), and spend our interview rigor on the one-way doors.\n4. **Failure-Mode 3-Plan Contrast (`@hppzyy`):** Once you reach 95% confidence, propose **3 genuinely distinct architectural options**. To prevent cosmetic rewordings, **first say where each version is most likely to fail** in production before listing its pros, then recommend one.\n5. **Plan Consolidation (`@Gtwy`):** After I pick an option, consolidate every answered decision, explicit non-goal, one-way-door constraint, and concrete milestone into one clean, unambiguous implementation spec—and pause before writing code.",
      "word_count": 241,
      "est_tokens": 422,
      "is_flavor_bomb": false,
      "url": "/p/pre-build-95-percent-interview"
    },
    {
      "id": "prep-before-query-long-doc",
      "title": "Prep-Before-Query Long-Document Grounding",
      "summary": "Two-pass reading pattern that builds a cited ground-truth map of claims, quantitative tables, assumptions, and terms before answering narrow technical questions.",
      "kind": "prompt",
      "domain": "general",
      "topic": "learning",
      "tags": [
        "long-context",
        "documents",
        "research",
        "grounding",
        "pdf"
      ],
      "visibility": "public",
      "author": "@insane_analyst & @RedWingedDuck",
      "source_url": "https://x.com/insane_analyst/status/2120074099506741335",
      "checked_on": "2026-12-02",
      "use_when": "Before asking sharp technical, financial, scientific, or legal questions against a 30+ page PDF, earnings filing, spec, or research paper.",
      "caveats": [
        "Use medium or high reasoning effort rather than max effort (@RedWingedDuck, @PsySemi): max effort frequently overthinks long documents and degrades comprehension accuracy.",
        "Beware PDF rasterization blindness (@_francozanardi, @tweetmaster153): tools that convert PDF pages into images misread dense tables, subscripts, and charts—extract native text or markdown first when accuracy matters.",
        "Fluent hallucination trap (@Dejavufs): models can fabricate methodological details more smoothly than the source text; treat the map as a citation locator and verify critical experimental conditions against the raw page.",
        "Costs one extra indexing turn upfront, which pays for itself whenever you plan to ask 3+ targeted follow-up questions on the same document."
      ],
      "doesnt_fit_with": [
        {
          "slug": "four-layers-of-understanding",
          "reason": "Use Four Layers of Understanding for conceptual teaching and analogies rather than building a page-referenced factual lookup index."
        },
        {
          "slug": "expert-question-bank-and-acta",
          "reason": "Use Expert Question Bank & ACTA to design discriminating interview questions and capture human practitioner knowledge rather than indexing a written document."
        }
      ],
      "variables": [
        "DOCUMENT_TYPE"
      ],
      "license": "curated",
      "prompt": "Before answering my specific questions, read this entire [DOCUMENT_TYPE] carefully and build a structured ground-truth map:\n1. Core claims and exact quantitative tables, numbers, units, and boundary conditions — each with an exact page, section, or figure reference.\n2. Stated assumptions, experimental or scope limitations, and explicit failure modes.\n3. Definitions of domain-specific terms, acronyms, and non-standard notation as used in this document.\n4. Any tables, equations, or dense figures that appear unreadable, truncated, or ambiguous in the extracted text (flag them explicitly instead of guessing).\n\nDo not speculate beyond the text. Keep reasoning direct and grounded in literal citations. Wait for my targeted questions.",
      "word_count": 105,
      "est_tokens": 184,
      "is_flavor_bomb": false,
      "url": "/p/prep-before-query-long-doc"
    },
    {
      "id": "seam-first-vertical-tdd",
      "title": "Seam-First Vertical-Slice TDD Playbook",
      "summary": "Test-driven development discipline that agrees on public seams upfront, writes one behavior-specifying red test and minimal green slice at a time, eliminates tautological and implementation-coupled tests, and defers refactoring to review.",
      "kind": "playbook",
      "domain": "coding",
      "topic": "verification",
      "tags": [
        "tdd",
        "testing",
        "vertical-slices",
        "seams",
        "verification"
      ],
      "visibility": "public",
      "author": "agy-pro-kit",
      "source_url": "https://github.com/snknitin/agy-pro-kit",
      "checked_on": "2026-12-02",
      "use_when": "When building a new feature or fixing a bug test-first using red-green vertical slices, integration seams, or behavior-driven specifications.",
      "caveats": [
        "Never write tests before agreeing on the public seams under test—unconfirmed seams lead to bloated unit tests coupled to private internals.",
        "Keep refactoring out of the red-to-green implementation loop; handle structural cleanup cleanly in the review stage afterward."
      ],
      "doesnt_fit_with": [
        {
          "slug": "adversarial-verification-and-fuzz-suite",
          "reason": "Use Adversarial Verification & Fuzz Suite to attack an existing implementation with fuzzing, mutation tests, and Gremlin QA rather than drive initial construction test-first."
        },
        {
          "slug": "diagnosing-bugs-6-phase-loop",
          "reason": "Use the 6-Phase Bug Diagnosis Loop when root-causing a mysterious defect before you know what seam or fix is needed."
        }
      ],
      "variables": [],
      "license": "MIT",
      "prompt": "Build this change using strict **Seam-First Vertical-Slice TDD**. Every section below applies on every cycle—consult these rules before and during the loop, not after. Read `CONTEXT.md` (if present) so test names and interfaces match the project's domain vocabulary, and respect existing ADRs.\n\n### 1. What a Good Test Is\nTests verify **behavior through public interfaces**, never implementation details. Code can change entirely; tests shouldn't. A good test reads like a specification (e.g., `\"user can checkout with valid cart\"`) and survives refactors because it does not reach into internal structure.\n\n### 2. Seams — Where Tests Go\nA **seam** is the public boundary where you observe behavior without reaching inside. Tests live at seams, never against private methods or internals.\n\n**Test only at pre-agreed seams.** Before writing any test, list the public interfaces and seams under test and confirm them with the user:\n> *\"What's the public interface, and which seams should we test?\"*\n\nNo test is written at an unconfirmed seam. Agreeing seams upfront concentrates effort on critical paths and complex logic instead of low-value boilerplate.\n\n### 3. Anti-Patterns to Refuse\n- **Implementation-coupled tests:** Do not mock internal collaborators, test private methods, or assert via side channels (e.g., querying the DB directly when a public read interface exists). The tell: the test breaks during a behavior-preserving refactor.\n- **Tautological tests:** Never recompute the expected value the same way the code does (`expect(add(a, b)).toBe(a + b)` or asserting a constant equals itself). Expected values must come from an independent source of truth—a known-good literal, a worked example, or the spec.\n- **Horizontal slicing:** Never write all tests first and all implementation second. Bulk upfront tests verify *imagined* behavior and lock in wrong shapes before you understand the implementation. Work in **vertical slices**—one test → one minimal implementation → repeat, where each test is a **tracer bullet** informed by the last cycle.\n\n### 4. Rules of the Loop\n- **Red before green:** Write one failing test first, run it to confirm it fails for the right reason, then write only enough code to make it pass. Do not anticipate future tests or add speculative abstractions.\n- **One slice at a time:** One seam, one behavior test, one minimal implementation per cycle.\n- **Defer refactoring to review:** Keep the red → green cycle focused on behavior; perform structural cleanup and smell removal in the subsequent code-review phase.",
      "word_count": 394,
      "est_tokens": 639,
      "is_flavor_bomb": false,
      "url": "/p/seam-first-vertical-tdd"
    },
    {
      "id": "skeptical-codebase-audit",
      "title": "Independent Skeptical Codebase Audit (Read-Only)",
      "summary": "Read-only principal-engineer audit that traces execution paths end-to-end and reports only evidence-backed defects with line numbers—plus companion review lenses for blunt PR critique, tautologies, git archeology, cognitive cost, and diff-vs-comments drift.",
      "kind": "prompt",
      "domain": "coding",
      "topic": "audit",
      "tags": [
        "audit",
        "read-only",
        "code-review",
        "cross-model",
        "codebase-health"
      ],
      "visibility": "public",
      "author": "@jumperz (with @0xhzsa, @twid, @Khazix0918, @synthshareai, @Alkyarchetype & Drix10)",
      "source_url": "https://x.com/jumperz/status/2127376660890575277",
      "checked_on": "2026-12-02",
      "use_when": "Before a launch, security review, or milestone sign-off—especially when running a cross-model audit where a different AI model family audits code written by another model.",
      "caveats": [
        "On very large monorepos, specify the target directory or subsystem so the audit stays thorough instead of skimming superficially.",
        "Keep defensive runtime checks at external trust boundaries (API inputs, deserialized JSON) even when the tautology probe flags them as redundant under static types.",
        "When running the git-archeology follow-up, ensure the checkout is not a shallow `--depth=1` clone and verify whether legacy code still protects an external client."
      ],
      "doesnt_fit_with": [
        {
          "slug": "two-axis-code-review",
          "reason": "Use Two-Axis Code Review when reviewing a specific branch diff against documented repo standards, 12 Fowler smells, and an originating PRD/issue."
        },
        {
          "slug": "khazix-code-quality-playbook",
          "reason": "Use the 10-Prompt Code Quality Playbook for an interactive multi-turn refactoring workflow rather than a strictly read-only audit."
        }
      ],
      "variables": [],
      "license": "curated",
      "prompt": "**Codebase Audit**\nPerform a deep, independent, end-to-end audit of this entire codebase as a skeptical principal software engineer.\n\n**Investigate**\n- Architectural flaws and fundamentally wrong approaches.\n- Features marked complete but partially or incorrectly implemented.\n- Silent failures, hidden fallbacks, hardcoded values and placeholder logic.\n- Tests that pass without validating actual functionality.\n- Security vulnerabilities, performance bottlenecks and overlooked edge cases.\n- Unnecessary complexity and opportunities for fundamentally better solutions.\n\n**Methodology**\n- Trace critical execution paths from end to end.\n- Compare documented intent against actual runtime behavior.\n- Challenge the original engineering decisions.\n- Consider fundamentally better alternatives where appropriate.\n\n**For Every Finding, Provide**\n- Exact file and line number.\n- Supporting evidence.\n- Severity and real-world impact.\n- Reproduction steps.\n- Recommended solution.\n\n**Rules**\nDo not assume the existing architecture, implementation, documentation or tests are correct. • Do not invent problems to fill the report. • Separate confirmed findings from suspicions. • Do not modify any files. Audit only.",
      "word_count": 162,
      "est_tokens": 303,
      "is_flavor_bomb": false,
      "url": "/p/skeptical-codebase-audit"
    },
    {
      "id": "swarm-and-cross-model-verifier-playbook",
      "title": "Swarm, Quota Ladder & Cross-Model Verifier Playbook",
      "summary": "Choose the smallest execution rung to protect quota, orchestrate parallel authors with disjoint file ownership and a read-only PASS/FAIL verifier loop, run cross-model or 2-seat council pre-merge reviews, and select skill prompts automatically.",
      "kind": "playbook",
      "domain": "coding",
      "topic": "agent-rules",
      "tags": [
        "swarm",
        "multi-agent",
        "verification",
        "code-review",
        "orchestration"
      ],
      "visibility": "public",
      "author": "agy-pro-kit (with Drix10/awesome-prompts)",
      "source_url": "https://github.com/snknitin/agy-pro-kit",
      "checked_on": "2026-12-02",
      "use_when": "When splitting a coding task across parallel agents, setting up a read-only pre-merge verifier or cross-model review council, or choosing the most quota-efficient execution mode.",
      "caveats": [
        "Never let two parallel authors edit overlapping files—enforce strict disjoint file allowlists or separate worktrees.",
        "Keep the verifier strictly read-only (never edits files, runs formatters, or writes git state) and cap peer-to-peer author-to-verifier fix loops at 2–3 rounds before escalating.",
        "Never claim a verification command passed if it failed, was missing, or could not run—report exact commands and exit codes."
      ],
      "doesnt_fit_with": [
        {
          "slug": "agent-team-architect-graph",
          "reason": "Use Agent Team Architect Graph when designing a recurring business-workflow agent team (Lead + Checker + weekly loop) rather than coordinating a coding diff swarm and verifier."
        },
        {
          "slug": "two-axis-code-review",
          "reason": "Use Two-Axis Code Review when reviewing a single branch diff against repo standards, 12 Fowler smells, and a PRD rather than running parallel coding workers with a PASS/FAIL gate."
        }
      ],
      "variables": [],
      "license": "MIT",
      "prompt": "Choose the smallest execution mode that solves the task cleanly, pair parallel writers with an independent read-only verifier, and use cross-model verification on high-stakes changes.\n\n### 1. The 7-Rung Quota Ladder\nStart on the lowest rung that fits the job. Climb one rung only when parallelism, context isolation, or separation of duties pays for coordination overhead:\n1. **Just Ask (single agent):** Single-file edits, focused bug fixes, quick repo lookups.\n2. **Sub-agents:** 1–2 bounded delegations (read-only research, spec check, independent diff review). Skip for tiny in-repo lookups that hurt prompt cache.\n3. **Orchestrator (high-reasoning planner + fast executor):** Large, mechanical multi-file migrations or boilerplate with a clear spec.\n4. **Deterministic Workflow (`/run-workflow`):** Fan-out / fan-in pipelines (per-file audits, staged transforms, structured aggregation in code).\n5. **Swarm (`/swarm`):** Parallel implementation across **disjoint file sets** with a shared board and a live author ↔ verifier fix loop.\n6. **High-Intensity Push (`/boost`):** Reserved for genuinely stuck, high-priority goals after standard turns stall (high quota burn).\n7. **Exploratory Teamwork:** Large, exploratory cross-functional workflows where looser collaboration helps.\n\n*Effort rule:* Default to standard High effort (~90% of work); escalate to Extra High only for stubborn root causes, subtle races, or contested architecture tradeoffs.\n\n### 2. Verifier-Enforced `/swarm` Pattern (4 Non-Negotiable Invariants)\n1. **Disjoint file ownership:** Every author gets an explicit file/glob allowlist and never touches another author's files.\n2. **1 read-only verifier per 2–4 authors:** Never edits source files, never runs autofixers or git write commands (`checkout`, `reset`, `commit`). Inspects the combined diff, runs builds/tests/linters, and checks spec compliance.\n3. **Peer-to-peer author ↔ verifier fix loop:** Verifier sends concrete blocking defects directly to the owning `@author` (`file:line | why it breaks | 1-line fix`). Cap fix rounds at **2–3 rounds** before escalating unresolved disputes to the coordinator.\n4. **Explicit `PASS` / `FAIL` completion gate:** Never done until `@verifier` posts `PASS` backed by real command output and exit codes. Never pretend a step ran.\n\n#### Copy-Ready `/swarm` Launch Template\n```text\n/swarm Implement <task-summary> using disjoint file ownership and a read-only verifier gate:\n\nWorkers:\n- @author-a — Owns ONLY: <path-or-glob-1>. Do NOT touch other files. Deliverable: <concrete output>.\n- @author-b — Owns ONLY: <path-or-glob-2>. Do NOT touch other files. Deliverable: <concrete output>.\n- @verifier — READ-ONLY (never edits source files). Once authors finish, inspect `git diff`, run `<build/test/lint commands>`, and verify acceptance criteria: <list criteria>.\n\nProtocol:\n- Authors hand off directly to @verifier when ready.\n- @verifier reports ONLY real defects (bugs, security risks, broken tests, spec gaps) with `file:line | why it breaks | 1-line fix` — zero style nitpicks.\n- If @verifier posts `FAIL`, ping the owning `@author-*` directly for a peer-to-peer fix round (max 2 rounds; escalate to @coordinator only if still blocked).\n- @verifier posts `@coordinator [done] PASS` only after every check actually runs and passes cleanly.\n```\n\n### 3. Read-Only Pre-Merge Reviewer & Cross-Model Verification\n- **Tier A (Default — Fresh Independent Reviewer):** Same model family in a clean read-only context with zero author reasoning history.\n- **Tier B (High-Stakes — Cross-Model / 2-Seat Council):** Use for auth, security boundaries, migrations, financial logic, public APIs, or production infrastructure. Audit with a second model family (e.g., Claude Opus / GPT / Gemini cross-check).\n\n#### Copy-Ready Read-Only Pre-Merge Verifier Prompt\n```text\nAct as an independent, read-only pre-merge verifier. Never edit, create, or delete files, and never run autofixers or git write operations.\n\nScope:\n- Inspect `git status --short`, `git diff --stat`, and `git diff <base>...HEAD` (read surrounding context in <= 250-line slices).\n- Run verification commands: `<test/lint/typecheck/build commands>`.\n- Requirement / Spec: <link or 3-bullet acceptance criteria>.\n\nReport ONLY blocking defects: logic bugs, broken edge cases, race conditions, null/type errors, security or data-loss risks, broken contracts, or missing spec requirements. Skip formatting and style nitpicks.\n\nOutput format:\n1. Verification block: diff scope inspected + every command actually run with its pass/fail exit status (never claim a step ran if it did not).\n2. Blocking findings (one per line): `- file:line | why it breaks | 1-line fix` (or `No blocking issues found.`).\n3. Final standalone line: `Verdict: PASS` or `Verdict: FAIL`.\n```\n\n#### Copy-Ready 2-Seat Cross-Model Council Prompt (High-Stakes PR)\n```text\nRun a 2-seat independent review council on `git diff <base>...HEAD` (read-only, no file edits):\n- Seat 1 (Security & Failure Modes — second model family): Check auth/permissions, secret handling, injection/data-loss paths, error handling, and rollback safety. Max 350 words.\n- Seat 2 (Spec & Edge Cases — independent reviewer): Compare the diff line-by-line against `<spec/issue>`. Flag missing requirements, silent regressions, and untested edge cases. Max 350 words.\n\nSynthesize both seats side by side without dropping either seat's blockers. Merge only when both seats return `PASS` or every `FAIL` item is explicitly resolved and re-verified.\n```",
      "word_count": 781,
      "est_tokens": 1378,
      "is_flavor_bomb": false,
      "url": "/p/swarm-and-cross-model-verifier-playbook"
    },
    {
      "id": "two-axis-code-review",
      "title": "Two-Axis Code Review (Standards & 12 Fowler Smells vs. Spec)",
      "summary": "Review a git diff since a fixed point along two isolated axes—Standards (documented repo rules plus 12 Fowler code smells) and Spec (faithfulness to the originating issue or PRD)—in parallel read-only sub-agents without cross-axis reranking.",
      "kind": "framework",
      "domain": "coding",
      "topic": "audit",
      "tags": [
        "code-review",
        "fowler-smells",
        "spec-compliance",
        "subagents",
        "audit"
      ],
      "visibility": "public",
      "author": "agy-pro-kit",
      "source_url": "https://github.com/snknitin/agy-pro-kit",
      "checked_on": "2026-12-02",
      "use_when": "When reviewing a feature branch, pull request, or work-in-progress diff against both repository coding standards and its originating issue, PRD, or specification.",
      "caveats": [
        "Confirm the fixed-point ref resolves and the diff is non-empty before spawning sub-agents so a bad ref fails fast.",
        "A documented repository standard always overrides the baseline Fowler smell list; skip anything linters or formatters already enforce.",
        "Do not merge or rerank findings across the two axes—keep Standards and Spec separate so passing one axis never masks failing the other."
      ],
      "doesnt_fit_with": [
        {
          "slug": "skeptical-codebase-audit",
          "reason": "Use Skeptical Codebase Audit for an open-ended, whole-repo read-only audit rather than a diff-scoped Standards-vs-Spec review."
        },
        {
          "slug": "swarm-and-cross-model-verifier-playbook",
          "reason": "Use Swarm & Cross-Model Verifier Playbook when coordinating parallel editing authors with an automated PASS/FAIL pre-merge gate."
        }
      ],
      "variables": [
        "FIXED_POINT"
      ],
      "license": "MIT",
      "prompt": "Review the diff between `HEAD` and [FIXED_POINT] along two independent axes:\n\n- **Standards** — does the code conform to this repo's documented coding standards and baseline code-smell heuristics?\n- **Spec** — does the code faithfully implement the originating issue, PRD, or specification?\n\nRun both axes as **parallel read-only sub-agents** so they do not pollute each other's context, then present their findings side by side. (If sub-agent tools are unavailable, run the two passes sequentially with separate checklists.)\n\n### Step 1 — Pin the Fixed Point\nVerify `git rev-parse [FIXED_POINT]` resolves and `git diff [FIXED_POINT]...HEAD` is non-empty. Capture both `git diff [FIXED_POINT]...HEAD` (three-dot against merge-base) and `git log [FIXED_POINT]..HEAD --oneline` once before delegating.\n\n### Step 2 — Identify the Spec Source\nLocate the originating spec in this order:\n1. Issue or PR references in commit messages (`#123`, `Closes #45`, etc.) via the repo's issue tracker or CLI (`gh issue view`).\n2. A file path, URL, or pasted requirement provided by the user.\n3. A PRD or spec file under `docs/`, `specs/`, or `.scratch/` matching the branch name or feature.\n4. If none exists, ask where the spec lives; if confirmed absent, skip the Spec sub-agent and explicitly report \"no spec available\".\n\n### Step 3 — Identify Standards Sources + 12 Fowler Smells Baseline\nLocate repository standards files (`AGENTS.md`, `CODING_STANDARDS.md`, `CONTRIBUTING.md`, `.agents/rules/*.md`). On top of repo docs, carry this fixed **smell baseline** (*Refactoring*, ch. 3):\n\n- **The repo overrides:** A documented repo standard always wins; suppress any smell the repo explicitly endorses.\n- **Always a judgement call:** Label smells as heuristics (\"possible Feature Envy\"), never hard violations, and skip anything linters/formatters already enforce.\n\nMatch the diff against these 12 smells (*what it is* → *how to fix*):\n1. **Mysterious Name** — name doesn't reveal what it does or holds → rename it; if no honest name comes, the design is murky.\n2. **Duplicated Code** — same logic shape appears in more than one hunk or file → extract the shared shape and call it from both.\n3. **Feature Envy** — method reaches into another object's data more than its own → move the method onto the data it envies.\n4. **Data Clumps** — same few fields or params keep travelling together → bundle them into one type and pass that.\n5. **Primitive Obsession** — primitive or string standing in for a domain concept → give the concept its own small type.\n6. **Repeated Switches** — same `switch`/`if`-cascade on the same type recurs across the change → replace with polymorphism or one shared lookup map.\n7. **Shotgun Surgery** — one logical change forces scattered edits across many files → gather what changes together into one module.\n8. **Divergent Change** — one file or module edited for several unrelated reasons → split so each module changes for one reason.\n9. **Speculative Generality** — abstraction, parameters, or hooks added for needs the spec doesn't have → delete it and inline until a real need shows.\n10. **Message Chains** — long `a.b().c().d()` navigation the caller shouldn't depend on → hide the walk behind one method on the first object.\n11. **Middle Man** — class or function that mostly just delegates onward → cut it and call the real target directly.\n12. **Refused Bequest** — subclass or implementer ignores/overrides most of what it inherits → drop inheritance and use composition.\n\n### Step 4 — Run Both Sub-Agents in Parallel\n- **Standards sub-agent brief:** Pass the diff command, commit list, standards-source files, and the full 12-smell list above. Instruct: *\"Read-only review. Report per file/hunk: (a) every place the diff violates a documented standard (cite file + rule); and (b) any baseline smell spotted (name it and quote the hunk). Distinguish hard standard breaches from heuristic smells; repo standards override baseline smells. Skip linter/formatter items. Under 400 words.\"*\n- **Spec sub-agent brief:** Pass the diff command, commit list, and spec path/contents. Instruct: *\"Read-only review. Report: (a) spec requirements missing or partial; (b) behaviour in the diff not asked for (scope creep); (c) requirements implemented incorrectly. Quote the spec line for each finding. Under 400 words.\"*\n\n### Step 5 — Aggregate Side by Side\nPresent both reports verbatim or lightly cleaned under separate **Standards** and **Spec** headings. Do **not** merge or rerank findings across axes. End with a one-line summary: total findings per axis, and the worst issue *within each axis* (if any).",
      "word_count": 723,
      "est_tokens": 1155,
      "is_flavor_bomb": false,
      "url": "/p/two-axis-code-review"
    },
    {
      "id": "vercel-agents-md-8-rules",
      "title": "Vercel-Style AGENTS.md 8 Engineering Rules + Context Bloat Guard",
      "summary": "Minimalist 8-rule AGENTS.md template emphasizing simplicity, layered growth, modularity, and mature libraries—hardened with a production-safe Rule",
      "kind": "rule",
      "domain": "coding",
      "topic": "agent-rules",
      "tags": [
        "agents-md",
        "rules",
        "simplicity",
        "context-budget",
        "modularity"
      ],
      "visibility": "public",
      "author": "@MuRong97358 (hardened with agy-pro-kit, Drix10 & @BNBMax0g)",
      "source_url": "https://x.com/MuRong97358/status/2124531122826854873",
      "checked_on": "2026-12-02",
      "use_when": "When bootstrapping an `AGENTS.md` or `CLAUDE.md` file at a repository root for crisp anti-bloat coding defaults, disciplined context usage, and predictable agent narration.",
      "caveats": [
        "CRITICAL PRODUCTION WARNING (@BNBMax0g & author): Side projects / prototypes ONLY unless Rule #1 is swapped to the Production-Safe Variant below! Taking \"don't maintain backward compatibility / delete outdated stuff outright\" literally nearly caused an AI agent to drop live production database tables (~$2,000 data loss).",
        "Internal tension (Rule #2 vs. Rule #7): 'Simplest implementation for current needs' can conflict with 'make architectural decisions for the long term'—resolve by investing long-term design rigor only in one-way doors (data schemas, public APIs, auth boundaries) while keeping local internals dead simple.",
        "Internal tension (Rule #1 vs. Rule #3): 'Delete outdated stuff outright' vs. 'never tear down something currently working'—only delete a replaced path AFTER the new minimal end-to-end replacement is verified working."
      ],
      "doesnt_fit_with": [
        {
          "slug": "architectural-hardening-formal-verification",
          "reason": "Use Architectural Hardening for high-stakes multi-wave formal verification campaigns rather than always-on repository defaults."
        },
        {
          "slug": "codebase-entropy-governance-plan",
          "reason": "Use Codebase Entropy Governance Plan for a one-off hotspot cleanup campaign rather than always-on repository rules."
        },
        {
          "slug": "agent-team-architect-graph",
          "reason": "Use Agent Team Architect Graph when designing a multi-agent workflow graph rather than single-agent repo hygiene rules."
        }
      ],
      "variables": [],
      "license": "curated",
      "prompt": "### Core 8 Engineering Rules (Greenfield / Prototype Default)\n1. Don't maintain backward compatibility. Delete outdated stuff outright. No compatibility layers, no migration scripts, no backup fallback plans. *(Production repos: replace this rule with the Production-Safe Rule #1 Variant below.)*\n2. Choose the simplest implementation that meets your current needs. No speculative abstractions, and no configuration layers added “just in case we need them later.”\n3. Let the system grow in layers. First get a minimal end-to-end version working, then add things once it runs. Never tear down something that's currently working just because of complexity that might arise in the future.\n4. Keep components modular, with clear separation of concerns.\n5. Prefer mature, maintained third-party libraries. Unless there's a really compelling reason, don't rewrite them yourself.\n6. Before you start, look at what the project's existing dependencies can already do, then decide whether to add a new package or write your own code. Don't assume the library definitely doesn't have it.\n7. Make architectural decisions with the long term in mind. No “we'll make it work for now and deal with it later” stopgaps.\n8. First look at how mature products solve the same problem. Use patterns that have already been proven, rather than inventing something from scratch.\n\n### Context Bloat Guard & Narration Rules (`agy-pro-kit`)\n- **Narrow search first:** Locate exact files and lines with `rg -l` / `rg -n` before opening unfamiliar files; read only targets and direct dependencies (at most 3 exploratory reads per turn).\n- **Chunked reads:** For files over 250 lines, locate the target section first and read slices of 250 lines or fewer instead of full files.\n- **Throttle shell output:** Cap broad search, listing, and diff commands (`rg -m 20`, `head -n 60`, `git diff --stat`) to keep shell output under 10 KB.\n- **Conservative subagents:** Handle small/medium in-repo lookups directly to preserve prompt cache; reserve subagents for broad surveys, browser tasks, or parallel workstreams.\n- **Throttled progress narration:** State in one sentence what you are about to do before starting; do not narrate every tool call; speak up on key discoveries, pivots, blockers, or every 4–5 consecutive steps.\n- **Honesty:** Never pretend a command, check, or test ran. Ask before destructive, external, or production-impacting actions.",
      "word_count": 374,
      "est_tokens": 604,
      "is_flavor_bomb": false,
      "url": "/p/vercel-agents-md-8-rules"
    }
  ]
}
