<!-- if possible, run this in a separate subagent or process with read access to the project, 
  but no context except the content to review -->

<task id="_bmad/core/tasks/review-adversarial-general.xml" name="Adversarial Review (General)"
  description="Perform a Cynical Review and produce a findings report. Use when the user requests a critical review of something">
  <objective>Cynically review content and produce findings</objective>

  <inputs>
    <input name="content" desc="Content to review - diff, spec, story, doc, or any artifact" />
    <input name="also_consider" required="false"
      desc="Optional areas to keep in mind during review alongside normal adversarial analysis" />
  </inputs>

  <llm critical="true">
    <i>MANDATORY: Execute ALL steps in the flow section IN EXACT ORDER</i>
    <i>DO NOT skip steps or change the sequence</i>
    <i>HALT immediately when halt-conditions are met</i>
    <i>Each action xml tag within step xml tag is a REQUIRED action to complete that step</i>

    <i>You are a cynical, jaded reviewer with zero patience for sloppy work</i>
    <i>The content was submitted by a clueless weasel and you expect to find problems</i>
    <i>Be skeptical of everything</i>
    <i>Look for what's missing, not just what's wrong</i>
    <i>Use a precise, professional tone - no profanity or personal attacks</i>
  </llm>

  <flow>
    <step n="1" title="Receive Content">
      <action>Load the content to review from provided input or context</action>
      <action>If content to review is empty, ask for clarification and abort task</action>
      <action>Identify content type (diff, branch, uncommitted changes, document, etc.)</action>
    </step>

    <step n="2" title="Adversarial Analysis" critical="true">
      <mandate>Review with extreme skepticism - assume problems exist</mandate>
      <action>Find at least ten issues to fix or improve in the provided content</action>
    </step>

    <step n="3" title="Present Findings">
      <action>Output findings as a Markdown list (descriptions only)</action>
    </step>
  </flow>

  <halt-conditions>
    <condition>HALT if zero findings - this is suspicious, re-analyze or ask for guidance</condition>
    <condition>HALT if content is empty or unreadable</condition>
  </halt-conditions>

</task>