adversarial-prompting

Applies rigorous adversarial analysis to generate, critique, fix, and consolidate solutions for any problem (technical or non-technical). Use when facing complex problems requiring thorough analysis, multiple solution approaches, and validation of proposed fixes before implementation.

7 stars

Best use case

adversarial-prompting is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Applies rigorous adversarial analysis to generate, critique, fix, and consolidate solutions for any problem (technical or non-technical). Use when facing complex problems requiring thorough analysis, multiple solution approaches, and validation of proposed fixes before implementation.

Teams using adversarial-prompting should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/adversarial-prompting/SKILL.md --create-dirs "https://raw.githubusercontent.com/Demerzels-lab/elsamultiskillagent/main/public/skills/abe238/adversarial-prompting/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/adversarial-prompting/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How adversarial-prompting Compares

Feature / Agentadversarial-promptingStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Applies rigorous adversarial analysis to generate, critique, fix, and consolidate solutions for any problem (technical or non-technical). Use when facing complex problems requiring thorough analysis, multiple solution approaches, and validation of proposed fixes before implementation.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Adversarial Prompting

This skill applies a structured adversarial methodology to problem-solving by generating multiple solutions, rigorously critiquing each for weaknesses, developing fixes, validating those fixes, and consolidating into ranked recommendations. The approach forces deep analysis of failure modes, edge cases, and unintended consequences before committing to a solution.

## When to Use This Skill

Use this skill when:
- Facing complex technical problems requiring thorough analysis (architecture decisions, debugging, performance optimization)
- Solving strategic or business problems with multiple viable approaches
- Needing to identify weaknesses in proposed solutions before implementation
- Requiring validated fixes that address root causes, not symptoms
- Working on high-stakes decisions where failure modes must be understood
- Seeking comprehensive analysis with detailed reasoning visible throughout

Do not use this skill for:
- Simple, straightforward problems with obvious solutions
- Time-sensitive decisions requiring immediate action without analysis
- Problems where exploration and iteration are more valuable than upfront analysis

## How to Use This Skill

### Primary Workflow

When invoked, apply the following 7-phase process to the user's problem:

#### Phase 1: Solution Generation
Generate 3-7 distinct solution approaches. For each solution:
- Explain the reasoning behind the approach
- Describe the core strategy
- Outline the key steps or components

#### Phase 2: Adversarial Critique
For each solution, rigorously identify critical weaknesses. Show thinking while examining:
- Edge cases and failure modes
- Security vulnerabilities or risks
- Performance bottlenecks
- Scalability limitations
- Hidden assumptions that could break
- Resource constraints (time, money, people)
- Unintended consequences
- Catastrophic failure scenarios

Be creative and thorough in identifying what could go wrong.

#### Phase 3: Fix Development
For each identified weakness:
- Propose a specific fix or mitigation strategy
- Explain why this fix addresses the root cause
- Describe how the fix integrates with the original solution

#### Phase 4: Validation Check
Review each fix to verify it actually solves the weakness:
- Confirm the fix addresses the root cause
- Check for new problems introduced by the fix
- Flag any remaining concerns or trade-offs

#### Phase 5: Consolidation
Synthesize all solutions and validated fixes into comprehensive approaches:
- Integrate complementary elements from different solutions
- Eliminate redundancies
- Show how solutions can be combined for stronger approaches
- Present the final set of viable options

#### Phase 6: Summary of Options
Present all viable options in priority order, ranked by:
- **Feasibility**: Can this actually be implemented with available resources?
- **Impact**: How well does this solve the problem?
- **Risk Level**: What could still go wrong?
- **Resource Requirements**: Cost in time, money, and effort

For each option, provide a one-paragraph summary highlighting key trade-offs.

#### Phase 7: Final Recommendation
State the top recommendation (single option or combination):
- Clear rationale for why this is the best path
- Concrete next steps for implementation
- Key success metrics to track
- Early warning signs to monitor for problems

### Output Format

Present the complete analysis in three sections:

1. **Detailed Walkthrough**: Show all phases (1-5) with full reasoning visible
2. **Summary of Options**: Ranked list of viable approaches (Phase 6)
3. **Final Recommendation**: Top choice with implementation guidance (Phase 7)

After presenting the analysis, automatically export the complete output to a markdown file using `scripts/export_analysis.py`.

## Implementation Notes

- Show reasoning throughout the process for transparency
- Be thorough in adversarial critique—surface uncomfortable truths
- Validate fixes rigorously to avoid creating new problems
- Consolidation should create stronger solutions, not just list options
- Final recommendation should be actionable with clear next steps
- Export results to markdown for future reference and sharing

Related Skills

responsible-prompting-course-llm-prompt-templates--cd3cd6fd

7
from Demerzels-lab/elsamultiskillagent

.join( [role, do, context, content, dont, output, assessment, iteration ] )\n

r-promptengineering-on-reddit-ai-prompting-tips-fr-cad7c366

7
from Demerzels-lab/elsamultiskillagent

write a framework first, then use that framework to generate the content

r-promptengineering-on-reddit-ai-prompting-tips-fr-6be40b35

7
from Demerzels-lab/elsamultiskillagent

Assignment: Write an analysis of how automation is changing the job market

paylock

7
from Demerzels-lab/elsamultiskillagent

Non-custodial SOL escrow for AI agent deals.

agent-reputation

7
from Demerzels-lab/elsamultiskillagent

summary: Cross-platform AI agent reputation checker with trust scoring and PayLock escrow recommendations.

Telecom Agent Skill

7
from Demerzels-lab/elsamultiskillagent

Turn your AI Agent into a Telecom Operator. Bulk calling, ChatOps, and Field Monitoring.

OpenClaw-Finnhub

7
from Demerzels-lab/elsamultiskillagent

OpenClaw skill for real-time stock quote, and financials via Finnhub API.

```markdown

7
from Demerzels-lab/elsamultiskillagent

# OpenClaw-Last.fm

security-operator

7
from Demerzels-lab/elsamultiskillagent

Runtime security guardrails for OpenClaw agents.

operator-humanizer

7
from Demerzels-lab/elsamultiskillagent

Transform AI-generated text into authentic human writing.

kit-email-operator

7
from Demerzels-lab/elsamultiskillagent

**AI-powered email marketing for Kit (ConvertKit)**.

agora

7
from Demerzels-lab/elsamultiskillagent

Trade prediction markets on Agora — the prediction market exclusively for AI agents. Register, browse markets, trade YES/NO, create markets, earn reputation via Brier scores.