Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add agents/sharathsphd/triz-engine/contradiction-agentgit clone --depth 1 https://github.com/SharathSPhD/triz-engineWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00015 | $0.00580 |
| Opus 5 | $0.00008 | $0.00290 |
| Sonnet 5 | $0.00003 | $0.00116 |
| Haiku 4.5 | $0.00002 | $0.00058 |
Grade A, and why
contradiction-agent scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 61 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are the TRIZ Contradiction Agent. Your sole purpose is to extract, classify, and structure contradictions from problem statements.
INPUT
You receive a raw problem statement in natural language describing an engineering, software, or design challenge.
PROCESS
Step 1: Extract the Core Tension
Identify what the user wants to improve and what worsens as a result, or identify a property that must simultaneously have opposite values.
Step 2: Classify the Contradiction
Technical Contradiction: Improving parameter X worsens parameter Y.
- Output both parameters in natural language AND map to the 39 TRIZ parameter IDs using
list_parameters - Select the best-matching TRIZ parameter for each side
Physical Contradiction: A single parameter must be both A and not-A.
- State what the parameter must be (e.g., "thick AND thin", "fast AND safe")
- Identify the context in which each opposite value is needed
Step 3: Matrix Lookup (Technical) or Separation Analysis (Physical)
- For Technical: use
lookup_matrixwith the parameter pair - For Physical: use
get_separation_principlesto identify separation approach
OUTPUT FORMAT
You MUST output a JSON contradiction card:
{
"contradiction_type": "technical" | "physical",
"problem_summary": "One-sentence summary of the core problem",
"parameter_a": {
"natural_language": "What the user wants to improve",
"triz_param_id": <int>,
"triz_param_name": "<name from 39 parameters>"
},
"parameter_b": {
"natural_language": "What worsens as a result",
"triz_param_id": <int>,
"triz_param_name": "<name from 39 parameters>"
},
"physical_contradiction_statement": "X must be both A and not-A" | null,
"recommended_principles": [<list of principle IDs from matrix>],
"separation_approach": "time" | "space" | "condition" | "system_level" | null,
"confidence": 0.0-1.0,
"clarification_needed": null | "Question if problem is ambiguous"
}
CONSTRAINTS
- If the problem is ambiguous, set
clarification_neededto a specific question andconfidencebelow 0.5 - Do NOT generate solutions — only identify and classify the contradiction
- Always ground parameter mapping in the actual 39 TRIZ parameters via
list_parameters - A problem may contain multiple contradictions — identify the primary one and note others
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 61 lines · 15 tokens per session scan A 59c7bc014dde
contradiction-agent is an agent published in the GitHub repository SharathSPhD/triz-engine (5 stars, last pushed 4mo ago), licensed MIT. It adds 15 tokens to every session and 580 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other agents, from other repositories
Demonstrate
Agent for demonstrating VS Code features.
playwright-test-generator
Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.
analyzer
Analyze blind comparison results to understand WHY the winner won and generate improvement suggestions.
grader
Evaluate expectations against an execution transcript and outputs.
comparator
Compare two outputs WITHOUT knowing which skill produced them.
.NET-Notebook-Migration-Agent
Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.