Turn open-source frameworks into architecture playbooks for humans and AI.
An AgentSkills-compatible skill for reverse engineering framework architecture, runtime, extension points, and tradeoffs.
Extract architecture, not code. This project helps another AI or team reproduce similar architecture without copying implementation.
Use framework-distillation when you want to:
- Understand how a framework is really structured beyond README and public API
- Reverse engineer runtime model, lifecycle, state machine, and extension points
- Reproduce similar architecture in another language or domain
- Compare frameworks by architecture and tradeoffs instead of feature checklists
- Create AI-readable knowledge packages for future implementation work
Core strengths:
- Architecture-first — focuses on system shape, module boundaries, runtime, and tradeoffs
- Evidence-aware — separates observed facts from inference and handles weak evidence explicitly
- Reproduction-oriented — produces outputs that help another AI or team build something similar
- AI coding agent users working with AgentSkills-style skill systems
- Platform engineers designing internal runtimes or orchestration systems
- Architects studying mature open-source frameworks
- Teams building agent runtimes, workflow engines, plugin systems, or similar infrastructure
Example prompt:
Analyze LangGraph using framework-distillation.
Goal: extract architecture knowledge for building an enterprise agent runtime in Java.
Depth: deep.
Focus: runtime, graph execution, checkpoint, state model, extension mechanism, production readiness.
Expected outcome:
- Architecture overview
- Runtime and lifecycle model
- State and data model analysis
- Extension mechanism analysis
- Design decisions and tradeoffs
- Reproduction guide
- AI simulation prompt
This repository follows the AgentSkills / SKILL.md format.
Place this project under your Claude Code skills directory using the folder name framework-distillation.
mkdir -p ~/.agents/skills
cd ~/.agents/skills
git clone https://github.com/yezhwi/framework-distillation.git framework-distillationAny skill runner that supports SKILL.md-based skills can load this repository as a skill directory:
framework-distillation/
├── SKILL.md
└── references/
If your platform requires a different install location, copy this directory into that platform's configured skills path.
Minimum input:
- Repository URL or local source path
Recommended input:
- Framework name
- Analysis goal
- Target implementation language or domain
- Depth:
mini,standard, ordeep - Focus areas such as runtime, state machine, plugins, storage, scheduler, or production readiness
- mini — fast first-pass architecture summary
- standard — full architecture extraction for most studies
- deep — exhaustive reverse engineering for framework reproduction
See references/output-modes.md for full output shapes.
After generating a distillation:
- Start with the repository summary and architecture sections for a human overview
- Use the knowledge package, reproduction guide, and AI simulation prompt as the main inputs for AI-assisted implementation
- Use the design decisions, runtime, state, and extension sections before refactoring or comparing frameworks
See references/deliverables.md for a detailed usage guide.
See the example prompts in examples/ for framework-specific starting points.
examples/langgraph.md— agent runtime, graph execution, checkpoint, state modelexamples/temporal.md— workflow engine, durable execution, recovery, schedulingexamples/vscode-extensions.md— plugin system, extension lifecycle, compatibility
For a quick overview, start with examples/README.md.
The skill helps analyze:
- Repository purpose and target users
- Architecture and module boundaries
- Runtime and execution flow
- Lifecycle and state machine
- Core data model
- Extension mechanism
- Engineering decisions and tradeoffs
- Performance and production readiness
- Reusable architecture principles
- Reproduction roadmap
See references/analysis-checklist.md for full checklist.
Good fit:
- Reverse engineering framework architecture
- Studying source code for reusable architectural patterns
- Building a similar framework in another language
- Architecture-level framework comparisons
Not good fit:
- README summary only
- API tutorial or usage guide
- File-by-file code walkthrough
- Copy-paste implementation guide
framework-distillation/
├── SKILL.md
├── README.md
├── README.zh-CN.md
├── CONTRIBUTING.md
├── LICENSE
├── social-preview.svg
├── examples/
│ ├── README.md
│ ├── README.zh-CN.md
│ ├── langgraph.md
│ ├── temporal.md
│ └── vscode-extensions.md
└── references/
├── analysis-checklist.md
├── deliverables.md
├── output-modes.md
├── self-test.md
└── simulated-dialogue-tests.md
SKILL.md— main skill entrypointREADME.md— project overview, installation, examples, and brand copyCONTRIBUTING.md— contribution workflow and review expectationsLICENSE— Apache License 2.0examples/README.md— example prompt overviewreferences/analysis-checklist.md— detailed analysis phases and quality gatereferences/output-modes.md— mini / standard / deep output structuresreferences/deliverables.md— deliverable layout, usage guide, and AI simulation prompt templatereferences/self-test.md— documented loopholes and fixesreferences/simulated-dialogue-tests.md— reusable pressure-test promptssocial-preview.svg— source asset for GitHub social preview images
Contributions welcome, especially in these areas:
- Better prompts and examples
- Stronger output templates
- More framework-specific test scenarios
- Improved installation guidance for different agent platforms
- Sharper wording for discovery and usability
Before opening a PR:
- Keep
SKILL.mdconcise and discovery-friendly - Put heavy reference material in
references/ - Preserve architecture-first, evidence-aware behavior
- Update self-test or simulated test docs when changing behavior
Early open-source package. Structure and guidance are stable enough for use, but wording, examples, and platform instructions will continue to improve.
social-preview.svg— default GitHub social preview source
Tagline
Turn open-source frameworks into architecture playbooks for humans and AI.
Short description
An AgentSkills-compatible skill for reverse engineering framework architecture, runtime, extension points, and tradeoffs.
GitHub About description
Turn open-source frameworks into architecture playbooks for humans and AI.
Social preview title
Framework Distillation
Social preview subtitle
Reverse-engineer framework architecture, runtime, extension points, and tradeoffs.
- Use the tagline in README hero sections and project summaries
- Use the GitHub About description for repository metadata
- Export
social-preview.svgto PNG for GitHub social preview images - Reuse the social preview title and subtitle in release posts or documentation cards
- Keep messaging architecture-first, not feature-first
- Prefer reverse engineering, runtime, state, extension points, and tradeoffs over generic AI wording
- Reuse
Extract architecture, not code.where a short principle line helps - Avoid framing the project as an API tutorial or code-copying guide
If this project helps you, you can support it here.
Licensed under the Apache License 2.0.
