A modular skill library for software engineering agents to analyze, compare, and synthesize agent framework architectures.
We are analyzing 14 of the most popular agent frameworks to deconstruct their architectures and inform the design of a new, optimized derivative system.
This strategy prioritizes understanding:
- Software Engineering Decisions (how it runs): The "Engineering Chassis" (Data, Execution, Component Model, Resilience).
- Cognitive Architecture Decisions (how it thinks): The "Cognitive Core" (Control Loop, Memory, Tooling, Coordination).
The ultimate goal is to extract reusable "best-of-breed" patterns and document critical anti-patterns to guide the development of robust, scalable agentic software.
The repos/ directory contains clones of major agent frameworks for analysis:
| Framework | Source | Focus |
|---|---|---|
| autogen | Microsoft | Multi-agent conversation patterns |
| langgraph | LangChain | Graph-based agent orchestration |
| crewAI | CrewAI | Role-based multi-agent teams |
| openai-agents-python | OpenAI | Swarm-inspired lightweight agents |
| pydantic-ai | Pydantic | Type-safe agent interfaces |
| llama_index | LlamaIndex | Data-augmented agents |
| google-adk | Agent Development Kit | |
| aws-strands | AWS | Strands agent framework |
| ms-agent-framework | Microsoft | Semantic Kernel agents |
| MetaGPT | DeepWisdom | Software dev team simulation |
| camel | CAMEL-AI | Communicative agent framework |
| agno | Agno | Lightweight agent runtime |
| agent-zero | FrdLnd | Personal assistant framework |
| swarm | OpenAI | Educational multi-agent patterns |
# 1. Download install-skills.sh and files.zip to your project directory
# 2. Make the installer executable
chmod +x install-skills.sh
# 3. Run the installer
./install-skills.sh
# Skills are now available at .claude/skills/Clone the target frameworks you wish to analyze into the repos/ directory:
git clone https://github.com/microsoft/autogen repos/autogen
git clone https://github.com/langchain-ai/langgraph repos/langgraph
# ... other frameworksTo start or resume the analysis, simply run:
/analyze-frameworksHow it works:
- Automatic Discovery: The command finds all frameworks in
repos/. - Smart Resumption: If a previous run was interrupted, the agent automatically detects incomplete jobs, resets them (clean slate), and resumes processing from where it left off.
- Idempotency: Completed frameworks are skipped.
State is tracked in forensics-output/.state/manifest.json. To view the current status table:
python scripts/state_manager.py statusFor manual control (rarely needed), use the state_manager.py script:
python scripts/state_manager.py init: Refresh manifest fromrepos/.python scripts/state_manager.py reset-running: Manually reset in-progress jobs.python scripts/state_manager.py mark <framework> <status>: Force a status update.
.claude/skills/
├── Phase 1: Engineering Chassis
│ ├── codebase-mapping/ # Repository structure & dependencies
│ ├── data-substrate-analysis/ # Types, state, serialization
│ ├── execution-engine-analysis/ # Async, control flow, events
│ ├── component-model-analysis/ # Extensibility, DI, configuration
│ └── resilience-analysis/ # Error handling, sandboxing
│
├── Phase 2: Cognitive Architecture
│ ├── control-loop-extraction/ # Reasoning patterns, step functions
│ ├── memory-orchestration/ # Context management, eviction
│ ├── tool-interface-analysis/ # Schema generation, feedback loops
│ └── multi-agent-analysis/ # Coordination, handoffs, state
│
├── Phase 3: Synthesis
│ ├── comparative-matrix/ # Best-of-breed decisions
│ ├── antipattern-catalog/ # Technical debt documentation
│ └── architecture-synthesis/ # Reference architecture spec
│
└── Orchestration
└── architectural-forensics/ # Master protocol
┌─────────────────────────────────────────────────────────────┐
│ For Each Framework │
├─────────────────────────────────────────────────────────────┤
│ 1. codebase-mapping │
│ ↓ │
│ 2. Phase 1 Analysis (parallel) │
│ ├── data-substrate-analysis │
│ ├── execution-engine-analysis │
│ ├── component-model-analysis │
│ └── resilience-analysis │
│ ↓ │
│ 3. Phase 2 Analysis (parallel) │
│ ├── control-loop-extraction │
│ ├── memory-orchestration │
│ ├── tool-interface-analysis │
│ └── multi-agent-analysis │
└─────────────────────────────────────────────────────────────┘
↓
┌─────────────────────────────────────────────────────────────┐
│ Synthesis │
├─────────────────────────────────────────────────────────────┤
│ 4. comparative-matrix │
│ 5. antipattern-catalog │
│ 6. architecture-synthesis │
└─────────────────────────────────────────────────────────────┘
For rapid assessment:
codebase-mapping → execution-engine-analysis → control-loop-extraction → tool-interface-analysis
| Skill | Trigger Phrases | Key Outputs |
|---|---|---|
codebase-mapping |
"map the codebase", "dependency analysis" | File tree, import graph, entry points |
data-substrate-analysis |
"analyze types", "state management" | Typing strategy, mutation patterns |
execution-engine-analysis |
"control flow", "async analysis" | Concurrency model, event architecture |
component-model-analysis |
"extensibility", "base classes" | Abstraction depth, DI patterns |
resilience-analysis |
"error handling", "sandboxing" | Error propagation, isolation mechanisms |
control-loop-extraction |
"reasoning loop", "ReAct pattern" | Pattern classification, step function |
memory-orchestration |
"context management", "memory system" | Assembly order, eviction policies |
tool-interface-analysis |
"tool interface", "schema generation" | Schema methods, error feedback |
multi-agent-analysis |
"agent handoff", "coordination" | Coordination model, state sharing |
comparative-matrix |
"compare frameworks", "decision matrix" | Best-of-breed table |
antipattern-catalog |
"anti-patterns", "technical debt" | Categorized issues, remediation |
architecture-synthesis |
"reference architecture", "design spec" | Primitives, protocols, loop design |
After installation:
.claude/
└── skills/
├── MANIFEST.md # Index of installed skills
├── SKILL_DECOMPOSITION.md # Detailed skill definitions
├── SKILL_FLOW.md # Visual workflow diagram
│
├── architectural-forensics/ # Master orchestration skill
│ ├── SKILL.md
│ └── references/
│ ├── phase1-engineering.md
│ └── phase2-cognitive.md
│
├── codebase-mapping/
│ ├── SKILL.md
│ └── scripts/
│ └── map_codebase.py # Python analysis script
│
└── [other-skills]/
└── SKILL.md
Each skill follows a consistent structure:
---
name: skill-name
description: What the skill does and when to trigger it.
---
# Skill Name
## Process
1. Step one
2. Step two
...
## Detection Patterns
[How to identify relevant code patterns]
## Output Template
[Standardized output format]
## Integration
- Prerequisites: [required skills]
- Feeds into: [downstream skills]- Run
codebase-mappingon both repositories - Execute Phase 1 & 2 skills on each
- Use
comparative-matrixto generate comparison - Document issues with
antipattern-catalog - Design new framework with
architecture-synthesis
User: "Analyze the agent loop in this codebase"
Agent: [triggers control-loop-extraction]
→ Classifies as ReAct pattern
→ Extracts step function pseudocode
→ Documents termination conditions
User: "How easy is it to add custom tools?"
Agent: [triggers component-model-analysis + tool-interface-analysis]
→ Evaluates abstraction depth
→ Documents registration patterns
→ Assesses schema generation approach
./install-skills.sh./install-skills.sh /path/to/custom-skills.zipunzip files.zip
mkdir -p .claude/skills
cp -r architectural-forensics-skills/skills/* .claude/skills/- Bash shell
unzipcommand- Write access to create
.claude/directory
- Add agents that utilize these skills
- Create example analysis reports
- Add more framework-specific detection patterns
- Build interactive comparison tool
Skills follow the format defined in the skill-creator reference. Key principles:
- Concise is key - Only include what Claude doesn't already know
- Progressive disclosure - SKILL.md for core workflow, references for details
- Clear triggers - Description should specify when the skill activates
- Standardized outputs - Use consistent templates across skills
See LICENSE file for details.
┌────────────────────────────────────────────────────────────────┐
│ ARCHITECTURAL FORENSICS │
├────────────────────────────────────────────────────────────────┤
│ │
│ PHASE 1: ENGINEERING PHASE 2: COGNITIVE │
│ ├─ codebase-mapping ├─ control-loop-extraction │
│ ├─ data-substrate ├─ memory-orchestration │
│ ├─ execution-engine ├─ tool-interface │
│ ├─ component-model └─ multi-agent │
│ └─ resilience │
│ │
│ PHASE 3: SYNTHESIS │
│ ├─ comparative-matrix → antipattern-catalog │
│ └─ architecture-synthesis │
│ │
├────────────────────────────────────────────────────────────────┤
│ Install: ./install-skills.sh │
│ Location: .claude/skills/ │
└────────────────────────────────────────────────────────────────┘