agentleFS
d-o-hubd-o-hub/github-template-ai-agents/.agents/skills/triz-solver/SKILL.md

triz-solver

Skill2 starsChanged 10 days agoMITView on GitHub

Systematic problem-solving using TRIZ (Theory of Inventive Problem Solving) principles adapted for software engineering. Use when facing technical contradictions, optimizing system design, running a TRIZ audit, finding contradictions in a design, or seeking innovative solutions beyond trial-and-error — even if they just say "help me solve this contradiction" or "run a TRIZ audit". Prevents solving the wrong problem correctly. Not for goap-agent, delegate.

2 other projects use a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    System-level: Add component that resolves both

    line 102
  2. Very specific:

    REPORT: write findings to analysis/triz-<scope>-YYYY-MM-DD.md (e.g.

    line 151
  3. Distinctive:

    goap-agent: Use TRIZ to identify contradictions before decomposing (Phase 2).

    line 158
  4. Distinctive:

    iterative-refinement: Use contradiction analysis to guide refinement cycles

    line 159

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

TRIZ Problem Solver

Systematic innovation methodology for software engineering problems.

When to Use

  • Complex problems with apparent trade-offs
  • System design contradictions (improving X worsens Y)
  • Architecture refactoring decisions
  • Seeking innovative solutions beyond incremental improvement
  • Agent instruction optimization

Core Protocol

Contradiction-First Approach

1. STATE the problem in one sentence
2. IDENTIFY contradiction: "Improving [X] causes [Y] to worsen"
3. CHECK if contradiction is real or apparent
4. RESOLVE using separation principles
5. VALIDATE no new contradictions introduced

Ideal Final Result (IFR)

"The ideal solution delivers all benefits with zero cost"

1. What is the ideal outcome? (no implementation details)
2. What prevents reaching it? (constraints)
3. Which constraints are real vs assumed?
4. Can the system self-solve without added complexity?

40 Inventive Principles (Software Edition)

Top 10 for Software

#PrincipleSoftware AnalogyWhen to Apply
1SegmentationSplit into modules/microservicesMonolithic code, complex functions
2Taking outExtract concerns, separate interfacesMixed responsibilities
3Local qualitySingle-purpose componentsGeneric implementations
4AsymmetryContext-specific solutionsOne-size-fits-all antipattern
5MergingCombine operations, reduce round-tripsExcessive function calls
6UniversalityShared interfaces, polymorphismDuplicate implementations
7NestingHierarchical structures, inheritanceFlat complex structures
12InversionIoC, reverse data flow, pull vs pushCurrent approach failing
13DynamicsRuntime config, hot-reload, adaptersStatic rigid configurations
17Another dimensionAdd abstraction layerImpasse at current level

Extended Reference

See references/principles.md for all 40 principles with software examples.

Contradiction Matrix (Software)

Improving            vs Worsening              → Principle
──────────────────────────────────────────────────────────────
Functionality        vs Complexity             → #1, #9, #15
Performance          vs Maintainability        → #7, #13, #17
Flexibility          vs Simplicity             → #6, #2, #3
Security             vs Usability              → #12, #4, #17
Scalability          vs Resource Cost          → #1, #13, #35

Decision Workflow

Step 1: Frame Problem

Problem: [One sentence]
Current approach: [What you're doing]
Stuck because: [Why it doesn't work]

Step 2: Identify Contradiction

Improving: [Parameter that needs improvement]
Worsens: [Parameter that degrades]
Type: [Technical/Physical/Inherent]

Step 3: Apply Resolution

Choose separation strategy:

  • Time: Different behavior at different stages
  • Space: Different behavior in different contexts
  • Condition: Different behavior based on input type
  • System-level: Add component that resolves both

Step 4: Validate

✓ Original problem solved
✓ No new contradictions introduced
✓ Solution approaches IFR (minimal complexity added)
✓ Tests pass

Examples

Example 1: Performance vs Maintainability

Problem: Caching improves speed but adds staleness complexity
Contradiction: Performance (improve) vs Maintainability (worsen)
Apply: #1 Segmentation → Cache with TTL per data type
Result: Speed improved, staleness bounded, complexity isolated

Example 2: Security vs Usability

Problem: Strong auth improves security but hurts UX
Contradiction: Security (improve) vs Usability (worsen)
Apply: #12 Inversion → Risk-based auth (challenge only suspicious)
Result: Security maintained, UX unaffected for legitimate users

Example 3: Agent Instruction Optimization

Problem: More instructions improve reliability but consume context
Contradiction: Completeness (improve) vs Token limits (worsen)
Apply: #4 Asymmetry → Heavy knowledge in references/, load lazily
Result: Reliability maintained, context efficiency improved

Audit Mode (absorbed from triz-analysis)

Same protocol, wider scope: audit a codebase, architecture, or workflow for hidden trade-offs instead of solving one problem.

  1. SCOPE SCAN: examine the target for pain points and trade-offs.
  2. CONTRADICTION DISCOVERY: state each as "Improving [X] worsens [Y]".
  3. PRINCIPLE MAPPING: map to inventive principles via the matrix above.
  4. INNOVATION ROADMAP: propose architectural or process changes.
  5. REPORT: write findings to analysis/triz-<scope>-YYYY-MM-DD.md (e.g. analysis/triz-scripts-2025-05-20.md); use the audit IFR ("the ideal system performs its function with zero overhead") to separate real constraints from assumed ones.

Integration with Other Skills

  • goap-agent: Use TRIZ to identify contradictions before decomposing (Phase 2); apply IFR to coordination strategy selection
  • iterative-refinement: Use contradiction analysis to guide refinement cycles

Quality Checklist

✓ Contradiction explicitly stated before solution ✓ IFR defined before implementation ✓ Solution verified against contradiction matrix ✓ No new contradictions introduced ✓ Approaches ideal state (minimal added complexity)

See Also

  • goap-agent — Orchestrator that uses TRIZ problem-solving
  • iterative-refinement — Use contradiction analysis to guide refinement cycles

Rationalizations

RationalizationReality
"I already know the solution, no need for TRIZ analysis"Skipping contradiction analysis often means solving the wrong problem correctly, wasting implementation effort.
"This is just a minor tweak, not a real problem"Minor tweaks can introduce new contradictions; validate that no new trade-offs are created.

Red Flags

  • Proposing a solution without explicitly stating the contradiction first
  • Skipping IFR definition and jumping to implementation details
  • Introducing new contradictions without validating the solution

References

  • references/principles.md - All 40 TRIZ principles with software examples
  • references/patterns.md - Common software contradiction patterns and resolutions
  • references/evolution.md - TRIZ evolution trends for system design

Voice & Context

  • Default: professional + blog
  • Reference: voice-profiles skill for definitions and auto-detection.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.