Skip to content

william1mufassa/IRON-SYSTEM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

IRON System

Iterative Reverse-engineering & Optimization Nexus

Stop single-pass prompting. Start iterative reverse-engineering.

The meta-cognitive framework that turns any capable AI agent into a disciplined engineer β€” with structured deconstruction, named tactical loops, and mandatory self-audit.

License: MIT Version PRs Welcome Skill Format Status

Get Started Β· How It Works Β· 7 Tactical Loops Β· Playbooks Β· Compare


⚑ TL;DR

Most AI agents run in single-pass mode: prompt β†’ answer β†’ done. IRON System replaces that with a 4-phase master cycle (EXTRACT β†’ SYNTHESIZE β†’ BUILD β†’ AUDIT), 7 named tactical loops, and 6 reverse-engineering protocols β€” plus depth control that prevents overkill on trivial tasks.

Drop it in your agent's skill folder. It activates itself on complex tasks. It stays silent on simple ones.


🎯 The Problem

Prompt  ─►  Answer  ─►  You reformulate manually  ─►  Repeat
                              (cognitive waste)

Modern AI agents lack:

  • ❌ Systematic extraction β€” competitor analysis is ad-hoc, not protocolized
  • ❌ Structured iteration β€” no methodical return to previous work
  • ❌ Convergence signals β€” improvement attempts loop forever or stop arbitrarily
  • ❌ Self-audit rigor β€” the agent judges its own output softer than it judges yours
  • ❌ Shared vocabulary β€” you can't request a specific type of iteration

πŸ’‘ The Solution

IRON gives your agent a methodology, a vocabulary, and a set of guardrails:

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  LEVEL 3 β€” INTELLIGENCE MECHANISMS                        β”‚
β”‚  Loop Selector Β· Convergence Engine Β· Depth Controller     β”‚
β”‚  Conflict Resolution Β· Confidence Scoring                  β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  LEVEL 2 β€” 7 TACTICAL LOOPS                                β”‚
β”‚  FORGE Β· SIEGE Β· PRISM Β· RAZOR Β· MIRROR Β· SCAFFOLD Β· ECHO  β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  LEVEL 1 β€” MASTER CYCLE (RLE)                              β”‚
β”‚  EXTRACT ─► SYNTHESIZE ─► BUILD ─► AUDIT                   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸš€ Quick Start

Drop the skill files into your agent's skill directory. 30 seconds, zero config.

# Clone the repo
git clone https://github.com/william1mufassa/IRON-SYSTEM.git

# Copy into your agent's skill folder (path depends on your platform)
cp IRON-SYSTEM/SKILL.md your-agent/skills/iron-system.md
cp -r IRON-SYSTEM/references your-agent/skills/references/
cp IRON-SYSTEM/anti-patterns.md your-agent/skills/anti-patterns.md

⚠️ Important: Keep the references/ folder name intact β€” SKILL.md points to it with relative paths.

That's it. Your next complex prompt triggers IRON automatically. Try one:

> Analyze https://stripe.com/pricing and design a better pricing page for a competitor.
> Audit this authentication code and fix the vulnerabilities.
> Compare React, Vue, and Svelte for a real-time dashboard app.
> Deconstruct Uber's business model and identify the moat.

🧠 How It Works

The Master Cycle β€” RLE

Every complex task flows through 4 phases with distinct cognitive postures:

Phase Persona Posture Output
πŸ” EXTRACT The Archaeologist Methodical curiosity, zero judgment Patterns, flaws, design decisions
βš—οΈ SYNTHESIZE The Strategist Cold prioritization Improvement specs by severity
πŸ”¨ BUILD The Architect Disciplined construction Justified, tested output
πŸ”¬ AUDIT The Saboteur Adversarial destruction Confidence score, remaining flaws

Each phase has strict transition criteria. Each persona actually changes how the agent reasons β€” the Saboteur hunts for flaws the Archaeologist wouldn't dare name.


βš™οΈ The 7 Tactical Loops

Loops are invoked by BUILD or AUDIT. Each solves a distinct problem class.

Loop Icon Specialty Flow Max Iter
FORGE πŸ”¨ Content creation Generate β†’ Critique β†’ Refine β†’ Validate 3
SIEGE βš”οΈ Robustness & security Attack β†’ Catalog β†’ Defend β†’ Verify 2
PRISM πŸ”Ί Multi-angle analysis Facet β†’ Refract β†’ Intersect β†’ Synthesize 2
RAZOR βœ‚οΈ Editing & concision Expand β†’ Cut β†’ Sharpen β†’ Verify 2
MIRROR πŸͺž Audience communication Profile β†’ Project β†’ Adjust β†’ Re-project 2
SCAFFOLD πŸ—οΈ Complex architecture Skeleton β†’ Layers β†’ Stress test 2
ECHO πŸ”Š Pattern transfer Distill β†’ Abstract β†’ Transpose β†’ Compare 1

Each loop ships with its own anti-patterns, convergence criteria, and iteration cap. See references/loops/ for details.


πŸŽ›οΈ 6 Entry Modes

IRON detects the task type and routes to the right mode automatically:

Mode Trigger Flow
A β€” Full RLE Analyzing an existing system EXTRACT β†’ SYNTHESIZE β†’ BUILD β†’ AUDIT
B β€” Build Direct Creating from scratch BUILD (loops) β†’ AUDIT β†’ REFINE
C β€” Audit Improving existing work AUDIT β†’ SYNTHESIZE β†’ targeted BUILD
D β€” Extract Only Understanding, not building EXTRACT + PRISM (no BUILD)
E β€” Battlefield Comparing 2+ targets Multi-EXTRACT β†’ Matrix β†’ Hybrid BUILD
F β€” Coach Learning the process Any mode + step-by-step explanations

πŸ”¬ Reverse Engineering Toolkit

Deconstruct any target β€” even without source code.

Protocol Target Sample Signals Extracted
Web Target Websites & webapps Stack, routes, data model, API surface, monetization
Mobile Target Mobile apps (no source) Store metadata, review mining, permission β†’ feature inference
Business Target Business models & startups Revenue model, acquisition funnel, moat, traction
AI System Target Chatbots & prompts I/O probing, system prompt inference, capability mapping
Open Source Target GitHub repos Architecture, dependencies, community health, bus factor
Data Model Target Schemas & DDL Entities, relationships, constraints, anti-patterns

πŸ“˜ Domain Playbooks

Pre-configured for the workflows people actually use:

  • πŸ›‘οΈ Code Review β€” SIEGE β†’ FORGE for security, performance, maintainability
  • 🎨 Product Design β€” PRISM β†’ SCAFFOLD β†’ MIRROR for user, business, tech
  • ✍️ Copywriting β€” FORGE β†’ MIRROR β†’ RAZOR for message, audience, tightness
  • πŸ›οΈ System Architecture β€” SCAFFOLD β†’ SIEGE for layered design + stress testing
  • βš”οΈ Competitive Analysis β€” Battlefield mode with cross-synthesis
  • 🎯 Prompt Engineering β€” SIEGE β†’ FORGE β†’ MIRROR to audit, rewrite, test
  • πŸ”Œ API Integration β€” PRISM β†’ SCAFFOLD β†’ SIEGE for reliable third-party wiring

🎚️ Depth Control

IRON automatically calibrates to task complexity β€” it doesn't turn "translate hello" into a 3-phase architecture review.

Depth Task Behavior
BYPASS Trivial (translate, calculate) Direct answer β€” skill doesn't activate
LIGHT Standard (write an email) 1 loop, 1 iteration, no canvas
STANDARD Complex (review code) 1-2 loops, 2 iterations, simplified canvas
DEEP Critical (payment architecture) Full RLE, all needed loops, detailed canvas, breakpoints

Autopilot by default (silent work, clean output). Verbose on demand ("show me the process") β€” you see the canvas, scores, and delta reports.


πŸ†š vs Other Frameworks

Capability Chain of Thought Tree of Thought Reflection IRON System
Iterative βœ— βœ— Basic Multi-level (3 cycles)
Structured deconstruction βœ— βœ— βœ— 5 RE protocols
Named construction loops βœ— βœ— βœ— 7 tactical loops
Systematic self-audit βœ— βœ— Partial Saboteur persona
Convergence signals N/A N/A βœ— 3 stop signals
Adaptive depth βœ— βœ— βœ— 4 levels (BYPASSβ†’DEEP)
RE without source code βœ— βœ— βœ— 6 target protocols
Multi-mode routing βœ— βœ— βœ— 6 entry modes
Structured documentation βœ— βœ— βœ— Canvas + Delta Reports
Conflict resolution βœ— βœ— βœ— Explicit protocol
Pedagogical mode βœ— βœ— βœ— Coach mode
Comparative mode βœ— βœ— βœ— Battlefield mode

CoT, ToT, and Reflection are techniques β€” one thing done better. IRON is a framework β€” it organizes how the agent thinks, not just what it thinks. It ships a router, a convergence engine, documentation formats, an external analysis toolkit, roles, and conflict management. A workshop, not a tool.


πŸ“‚ Repository Structure

IRON-SYSTEM/
β”œβ”€β”€ SKILL.md                       # Core β€” cycle + routing + pointers
β”œβ”€β”€ anti-patterns.md               # Global + per-loop anti-patterns
β”œβ”€β”€ scripts/
β”‚   └── validate_integrity.py      # 81-check integrity validator
β”œβ”€β”€ references/
β”‚   β”œβ”€β”€ loops/                     # 7 loops, one file each
β”‚   β”œβ”€β”€ mechanisms/                # Convergence, conflict resolution, scoring
β”‚   β”œβ”€β”€ re-toolkit/                # 6 RE protocols
β”‚   β”œβ”€β”€ playbooks/                 # 7 domain guides
β”‚   └── templates/                 # Canvas, delta reports, session export
β”œβ”€β”€ evals/
β”‚   └── evals.json                 # 7 test cases
β”œβ”€β”€ CONTRIBUTING.md
β”œβ”€β”€ LICENSE
└── README.md

βœ… Integrity Validation

Every reference link, every loop iteration limit, every playbook structure is checked by a single script:

python scripts/validate_integrity.py
Ran 81 checks. 0 failure(s).

Perfect for CI. Prevents regressions when contributors add loops, protocols, or playbooks.


πŸ—ΊοΈ Roadmap

  • v1.0 β€” Master cycle, 7 loops, 6 modes, 6 RE protocols, 7 playbooks
  • Integrity validation script
  • Additional RE protocols: Design system, Video/Audio, Legal document
  • Additional playbooks: Data Science, Legal, Video Production
  • Evaluation harness that automatically runs evals.json against a model
  • Pattern Library persistence across sessions
  • Community-contributed loops

Have an idea? Open an issue.


🀝 Contributing

IRON improves through structured deconstruction β€” including of itself. Contributions welcome:

  • New loops β€” Identify a recurring iteration pattern? Propose a loop
  • New RE protocols β€” Target types not yet covered
  • New playbooks β€” Domain-specific pre-configurations
  • Before/After examples β€” Real deliverables demonstrating the framework
  • Evaluation cases β€” Additional evals.json entries

See CONTRIBUTING.md for guidelines.


πŸ“œ License

MIT License β€” Use it, fork it, improve it, embed it in products. No attribution required (but appreciated).


If IRON System changed how you prompt, give it a ⭐ β€” it helps others find the framework.

Made for anyone who thinks single-pass prompting leaves value on the table.

About

πŸ”¨ The meta-cognitive framework that turns any AI agent into a disciplined engineer. Iterative Reverse-engineering & Optimization Nexus.

Topics

Resources

License

Contributing

Stars

9 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages