agentleFS
ryanmacleanryanmaclean/skills/triz/skill.md

triz

Skill1 starsChanged 2 months agoMITView on GitHub

TRIZ contradiction matrix oracle for software and systems design. Use when improving one quality worsens another — speed vs correctness, isolation vs sharing, autonomy vs control, simplicity vs completeness. Trigger phrases: "tradeoff", "tension between", "can't have both", "worsens when", "at the cost of", "faster but less reliable", "more isolated but harder to share". Not for bugs, merge conflicts, or tool choices. Prerequisite: triz binary must be installed (run `triz doctor` to verify).

4 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 3 are distinctive, and 0 are 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.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If not a genuine tension, use a different tool (see below).

    line 18
  2. Distinctive:

    Never ask the LLM to classify the contradiction before the lookup.

    line 62
  3. Distinctive:

    Without the binary: look up the improving/worsening pair above, then read the principle definition from references/principles.md.

    line 103

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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 Oracle

The contradiction test

"If I make it more X, it becomes less Y." If yes — TRIZ applies. If not a genuine tension, use a different tool (see below).

Workflow

Copy this checklist and check off as you go:

Contradiction Analysis:
- [ ] 1. State the contradiction: "improving X worsens Y"
- [ ] 2. Map to TRIZ parameters — see [parameters.md](parameters.md)
- [ ] 3. Run: script/solve.nu "X" "Y"
- [ ] 4. Review recommended principles — see [principles.md](principles.md)
- [ ] 5. Apply: write the specific solution using the best principle
- [ ] 6. Verify: does it actually resolve the tension without introducing a worse one?

Feedback loop:

  • Contradiction unclear → run script/whys.nu first
  • Parameter must be X AND not-X simultaneously → use references/physical_contradictions.md instead of the matrix
  • Empty matrix cell → reframe the parameters; see references/examples.md for analogies
  • Principle doesn't fit the domain → try the next one in the recommendation list
  • None fit → run script/fmea.nu PRINCIPLE_ID to understand failure modes
  • Contradiction keeps recurring → check references/evolution_trends.md — may be structural
  • Unsure how deep to search → check references/innovation_levels.md first

Scripts

ScriptUse
script/solve.nu "X" "Y"Matrix lookup + principle application
script/solve.nu "X" "Y" -c "context"With situational context
script/solve.nu "X" "Y" --jsonMachine-readable output
script/whys.nu5 Whys drill → articulate contradiction interactively
script/whys.nu --jsonWhys output with ready solve_cmd field
script/fmea.nu 35Failure mode analysis for principle 35
script/fmea.nu --stdinPipe from script/solve.nu --json
script/lookup.nu "speed"Find matching parameter by keyword
script/lookup.nu --principle 35Explain a principle

Scripts are executable (chmod +x). Run from the skill directory or by full path.

Core architectural rule

The matrix lookup is always first. LLM applies the principle after lookup. Never ask the LLM to classify the contradiction before the lookup.

Quick reference — top principles for software

#PrincipleSoftware pattern
1SegmentationMicroservices, feature flags, namespaces
2ExtractionSeparate config from code; pure functions
5CombiningBatch operations; co-location
6UniversalityOne format, many consumers (e.g. Iceberg)
10Preliminary actionSchema migrations before deploys; pre-warming
13InversionPull not push; reactive not polling
15DynamicsAdaptive timeouts; circuit breakers
23FeedbackObservability gates; acceptance criteria in spec
24IntermediaryMessage queues; API gateways
25Self-serviceSelf-healing systems; auto-remediation
35Parameter changesFeature flags; runtime configuration
40Composite materialsTiered storage; hybrid consistency models

Common software contradictions — cheatsheet

Real matrix cell values. Use when triz binary is unavailable. Format: improving → worsening: principles (in priority order)

ImprovingWorseningPrinciplesKey idea
Speed (9)Reliability (27)11, 35, 27, 28Cushion; param change; copy of object
Speed (9)System complexity (36)10, 28, 4, 34Preliminary action; copies; discard/recover
Speed (9)Build/test time (32)12, 36, 18, 31Equipotentiality; phase change; thermal expansion
Speed (9)Automation coverage (38)13, 35, 8, 1Inversion; param change; anti-weight; segmentation
Reliability (27)Adaptability (35)3, 35, 10, 40Local quality; param change; prelim action; composite
Reliability (27)Build time (32)35, 3, 22, 39Param change; local quality; convert harm to benefit
Automation (38)Reliability (27)11, 2, 13, 39Cushion; extraction; inversion; pneumatic/hydraulic
Automation (38)System complexity (36)35, 28, 6, 37Param change; copies; universality; thermal expansion
Adaptability (35)System complexity (36)24, 26, 28, 18Intermediary; copying; copies; mediation
System complexity (36)Reliability (27)1, 24, 6, 35Segmentation; intermediary; universality; param change
Ease of operation (33)System complexity (36)35, 1, 3, 24Param change; segmentation; local quality; intermediary
Observability (18)System complexity (36)2, 35Extraction; param change

How to read: improving Speed while worsening Reliability → try P11 (Cushion/Beforehand compensation) first, then P35 (Parameter changes), etc.

Without the binary: look up the improving/worsening pair above, then read the principle definition from references/principles.md.

References (load on demand)

FileLoad when
references/principles.mdNeed full 40 principles with approach/sub-principles
references/parameters.mdNeed full 39 parameters to map a concept
references/examples.mdNeed domain analogies for an empty matrix cell
references/physical_contradictions.mdParameter must be X AND not-X simultaneously
references/evolution_trends.mdContradiction keeps recurring; predicting next bottleneck
references/innovation_levels.mdCalibrating search depth; setting expectations

When TRIZ does not apply

SituationBetter tool
Merge conflictUnderstand semantic intent; resolve manually
Which library to useCapability matrix comparison
Bug in codeSystematic debugging; read the error
NamingUser research; naming criteria checklist
Priority between featuresPlanning poker; value/effort matrix
Two options, no tensionJust pick one

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.