Ijfw critique

From FerroxLabs/wayland-core · View interactive version

Ijfw critique is an AI agent skill from the GitHub repository FerroxLabs/wayland-core. Challenge decisions, surface counter-arguments, flag assumptions. Trigger: 'should I', 'is this right', 'critique', 'poke holes', 'second opinion', 'devil's advocate'. Auto-fired by ijfw-intent-router.

How to use this skill

Skill file

Before you agree, disagree. Before you advise, stress-test.

When the user asks you to critique, review a decision, or give a second

opinion -- or when the intent router flags critique intent -- follow this

pattern rather than answering from the same frame they asked from.

Four-step critique

  1. Steelman first. In one sentence, state the strongest version of the

current plan / decision / design. Not to flatter -- to make sure you're

critiquing the real thing, not a caricature.

  1. Surface the assumptions. Name 2-3 assumptions the plan rests on.

These are the load-bearing beliefs that, if wrong, collapse the argument.

Be specific: "assumes traffic stays under 10k qps", not "assumes scale".

  1. Three concrete counter-arguments. Each should be:

Prefer counter-arguments that come from different angles: operational,

social/organizational, economic, correctness. One bug-class concern is

worth less than one operational + one social + one correctness concern.

  1. State your verdict briefly. After laying out the counters, give a

1-line recommendation: proceed / proceed with X mitigation / stop and

rework because Y. Own the verdict -- don't just hedge.

Refactor reframe (single-line trigger)

When the user is mid-refactor and a fix feels hacky, or you catch yourself

patching around a smell rather than removing it, run this prompt out loud:

Knowing everything I know now, what would the elegant solution look like?

Answer it briefly (3-5 lines). If the elegant version costs less than the

hack you're about to ship, replace the hack. If it costs more than 2x, log

the elegant version as a follow-up and proceed with the pragmatic fix --

but only after you've named the debt explicitly.

Skip this for trivial or obvious fixes; the point is to break frame on

non-trivial decisions, not to over-engineer.

When NOT to critique

answers, not a rehash of whether to do it at all.

Output shape

Steelman: <one-line strongest version>

Assumptions:
  1. <load-bearing belief>
  2. <load-bearing belief>

Counter-arguments:
  1. <non-obvious objection> -- applies when <condition>; watch for <signal>.
  2. <different angle> -- applies when <condition>; test with <method>.
  3. <third angle> -- applies when <condition>; mitigate via <approach>.

Verdict: <proceed|mitigate|rework> -- <one-line reason>

Audit: stress-tested <N> assumptions, <N> angles (<angle-1> + <angle-2> + <angle-3>). Confidence: <low|med|high>.

Worked example

Steelman: Rewriting the auth layer in Rust eliminates the class of memory bugs that caused last quarter's outages.

Assumptions:
  1. The team has enough Rust fluency to maintain the new code without slowdown.
  2. The outages trace to memory bugs, not logic or config errors.

Counter-arguments:
  1. Operationally: Rust compile times and borrow-checker friction could double review cycles -- applies when the team has <3 months Rust experience; watch for PR cycle time increasing past 2 days.
  2. Socially: the auth team may resist a full rewrite when incremental hardening (address-sanitiser + fuzzing) could close the same risk at 20% of the effort -- applies when management is measuring velocity; test by asking the team to estimate both approaches.
  3. Correctness: auth logic bugs (e.g. missing token expiry checks) are language-agnostic -- applies if the root-cause analysis is incomplete; mitigate by running a postmortem before deciding on the rewrite.

Verdict: mitigate -- commission a 2-week root-cause analysis first; if the cause is confirmed memory-safety, Rust is the right call.

Audit: stress-tested 2 assumptions, 3 angles (operational + social + correctness). Confidence: high.

Tone

Direct, not hedging. The user asked for a critique; they don't need

"this is just my opinion". State the counter clearly. If they push back,

that's the signal to update or yield -- but make them do the work of

pushing back, not you.

Resume normal mode after.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.