home/productivity/probe-generic

Probe Generic

GPTClaudeDeepSeek··826 copies·updated 2026-07-14
probe-generic.prompt
<input kind="{{INPUT_KIND}}" source="{{INPUT_LABEL}}">
<![CDATA[
{{INPUT_BODY}}
]]>
</input>

<task>
You are running AFTER a panel of broad reviewers and specialists has already
been over this code. Your job: identify the **single highest-risk defect class**
that broad reviewers reliably miss for code shaped like this input, then audit
exhaustively for that class.

Pick exactly one focus area from the list below — whichever fits the input best:

  - Value-object / equality contracts (Equals, GetHashCode, immutability)
  - Async / cancellation / continuation semantics
  - Resource lifecycle (IDisposable, IAsyncDisposable, ownership transfer)
  - Concurrency (lock targets, shared state, atomicity, ordering)
  - Layering / dependency direction (DI, abstract dependencies, ports)
  - Persistence consistency (transaction boundaries, dual-writes)
  - Error propagation (catch-and-swallow, lost stack traces, retry storms)

Emit one <finding> per distinct defect you find within that focus area. Do not
emit findings outside it. If your chosen area is clean, pick the second-best
area and re-audit. If the input is too small to host any of these patterns,
emit <findings/>.

Begin your output with one HTML comment naming your focus, then the findings:

  <!-- probe focus: <area-name> -->
  <finding ...>...</finding>
  ...
</task>

<schema>
<finding severity="critical|high|medium|low" category="correctness|performance|architecture|consistency|security" file="{{INPUT_LABEL}}" line-start="N" line-end="N" confidence="0.0..1.0">
  <title>one-sentence summary</title>
  <rationale><![CDATA[why; include ONE reason this might be a false positive]]></rationale>
  <suggested-fix><![CDATA[concrete code or steps]]></suggested-fix>
  <quoted-code><![CDATA[verbatim source at line-start..line-end]]></quoted-code>
</finding>
</schema>

<rules>
- HALLUCINATION GATE / ACTIONABILITY GATE / FIX-CONSISTENCY GATE — same as the standard specialist prompt.
- {{CAP_DIRECTIVE}}
- The <input> is the entire scope. Do not read external files.
- Keep rationale under 6 sentences.
- Pick a focus that matches what's actually in the input — don't audit for async hazards in pure-CRUD code.
</rules>

fill the variables

This prompt has 4 variables. Pro fills them into a ready-to-paste prompt for you — no manual find-and-replace.

{{INPUT_KIND}{{INPUT_LABEL}{{INPUT_BODY}{{CAP_DIRECTIVE}
Unlock with Pro →

when to use it

Community prompt sourced from the open-source GitHub repo CodeAlive-AI/ai-driven-development (MIT). A "Probe Generic" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.

tags

productivitycommunitydeveloper

source

CodeAlive-AI/ai-driven-development · MIT