Framework Distillation
Overview
Extract architecture, not code.
Use this skill to reverse engineer framework shape, runtime model, extension points, and engineering tradeoffs so another AI or team can reproduce similar architecture in another language or domain.
When to Use
- Reverse engineering framework architecture beyond README and public API
- Studying runtime, lifecycle, state machine, or extension mechanism
- Reproducing similar framework in another language or domain
- Creating AI-readable architecture knowledge packages
- Comparing frameworks by architecture and tradeoffs
Typical targets: agent runtimes, workflow engines, state machine frameworks, plugin systems, orchestration platforms.
When Not to Use
- README summary only
- API tutorial or usage guide
- Line-by-line code walkthrough
- Copy-paste reimplementation
- Feature inventory without tradeoff analysis
If request is close but off-target, redirect scope first.
Required Inputs
Minimum:
- Repository URL or local source path
Recommended:
- Framework name
- Analysis goal
- Target implementation language or domain
- Depth:
mini, standard, or deep
- Focus areas
Core Principle
Architecture > Code
Reason > Syntax
Design > API
Tradeoff > Feature
Principles > Implementation
Workflow
- Check fit; decline or redirect tutorial/API/file-by-file requests.
- Choose depth from goal. Default
standard; use mini for fast first pass, deep for exhaustive reproduction.
- Scan docs, tests, examples, and repository shape before deep source reading.
- Extract architecture, runtime, state, data model, extension points, decisions, and tradeoffs.
- Distill reusable rules and produce output matched to chosen mode and reproduction goal.
Execution Rules
- Lead with architecture, not feature lists.
- Do not drift into tutorial, API inventory, or file-by-file walkthrough.
- Anchor claims to evidence from code, docs, tests, examples, or commit history when available.
- Distinguish observed facts from inference; use
Observed, Strong inference, Tentative inference when evidence is thin.
- State incomplete repository access or weak evidence explicitly.
- Tailor analysis to target language, domain, focus areas, and comparison criteria.
Output Modes
mini — fast first-pass architecture summary
standard — full architecture extraction for most studies
deep — exhaustive reverse engineering for framework reproduction
Details in:
references/output-modes.md
references/analysis-checklist.md
references/deliverables.md
Anti-Patterns
Avoid:
- Summarizing README only
- Listing APIs without architecture
- Explaining examples without extracting design
- Describing code without asking why it exists
- Ignoring tradeoffs, failure paths, or extension points
- Copying implementation instead of distilling principles
- Declaring philosophy or rationale as fact when evidence is weak
- Comparing frameworks by feature checklist alone
Supporting References
references/output-modes.md — output shapes, templates, diagrams
references/analysis-checklist.md — analysis checklist and quality gate
references/deliverables.md — deliverable structure and AI simulation prompt
references/self-test.md — loophole review and fixes applied
references/simulated-dialogue-tests.md — pressure prompts and scorecard
1---2name: framework-distillation3description: Distill an open-source framework into reusable architecture knowledge. Use when reverse engineering a framework, runtime, workflow engine, orchestration platform, or plugin system to reproduce its architecture, execution model, extension points, and engineering tradeoffs without copying implementation.4---56# Framework Distillation78## Overview910Extract architecture, not code.1112Use this skill to reverse engineer framework shape, runtime model, extension points, and engineering tradeoffs so another AI or team can reproduce similar architecture in another language or domain.1314## When to Use1516- Reverse engineering framework architecture beyond README and public API17- Studying runtime, lifecycle, state machine, or extension mechanism18- Reproducing similar framework in another language or domain19- Creating AI-readable architecture knowledge packages20- Comparing frameworks by architecture and tradeoffs2122Typical targets: agent runtimes, workflow engines, state machine frameworks, plugin systems, orchestration platforms.2324## When Not to Use2526- README summary only27- API tutorial or usage guide28- Line-by-line code walkthrough29- Copy-paste reimplementation30- Feature inventory without tradeoff analysis3132If request is close but off-target, redirect scope first.3334## Required Inputs3536Minimum:37- Repository URL or local source path3839Recommended:40- Framework name41- Analysis goal42- Target implementation language or domain43- Depth: `mini`, `standard`, or `deep`44- Focus areas4546## Core Principle4748```text49Architecture > Code50Reason > Syntax51Design > API52Tradeoff > Feature53Principles > Implementation54```5556## Workflow57581. Check fit; decline or redirect tutorial/API/file-by-file requests.592. Choose depth from goal. Default `standard`; use `mini` for fast first pass, `deep` for exhaustive reproduction.603. Scan docs, tests, examples, and repository shape before deep source reading.614. Extract architecture, runtime, state, data model, extension points, decisions, and tradeoffs.625. Distill reusable rules and produce output matched to chosen mode and reproduction goal.6364## Execution Rules6566- Lead with architecture, not feature lists.67- Do not drift into tutorial, API inventory, or file-by-file walkthrough.68- Anchor claims to evidence from code, docs, tests, examples, or commit history when available.69- Distinguish observed facts from inference; use `Observed`, `Strong inference`, `Tentative inference` when evidence is thin.70- State incomplete repository access or weak evidence explicitly.71- Tailor analysis to target language, domain, focus areas, and comparison criteria.7273## Output Modes7475- `mini` — fast first-pass architecture summary76- `standard` — full architecture extraction for most studies77- `deep` — exhaustive reverse engineering for framework reproduction7879Details in:80- `references/output-modes.md`81- `references/analysis-checklist.md`82- `references/deliverables.md`8384## Anti-Patterns8586Avoid:87- Summarizing README only88- Listing APIs without architecture89- Explaining examples without extracting design90- Describing code without asking why it exists91- Ignoring tradeoffs, failure paths, or extension points92- Copying implementation instead of distilling principles93- Declaring philosophy or rationale as fact when evidence is weak94- Comparing frameworks by feature checklist alone9596## Supporting References9798- `references/output-modes.md` — output shapes, templates, diagrams99- `references/analysis-checklist.md` — analysis checklist and quality gate100- `references/deliverables.md` — deliverable structure and AI simulation prompt101- `references/self-test.md` — loophole review and fixes applied102- `references/simulated-dialogue-tests.md` — pressure prompts and scorecard