Установка
SKILL.md
Architectural Forensics Protocol
Deconstruct agent frameworks to inform derivative system architecture.
Mission
Distinguish between software engineering decisions (how it runs) and cognitive architecture decisions (how it thinks) to extract reusable patterns for new systems.
Quick Start
# 1. Map the codebase (uses codebase-mapping skill's script)
python .claude/skills/codebase-mapping/scripts/map_codebase.py /path/to/framework --output codebase-map.json
# 2. Run analysis via the command
/analyze-frameworks
Protocol Phases
Phase 1: Engineering Chassis
Analyze the software substrate. See references/phase1-engineering.md for detailed guidance.
| Analysis | Focus Files | Output |
|---|---|---|
| Data Substrate | types.py, schema.py, state.py | Typing strategy, mutation patterns |
| Execution Engine | runner.py, executor.py, agent.py | Async model, control flow topology |
| Component Model | base_*.py, interfaces.py | Abstraction depth, DI patterns |
| Resilience | executor.py, try/except blocks | Error propagation, sandboxing |
Phase 2: Cognitive Architecture
Extract agent "business logic". See references/phase2-cognitive.md for detailed guidance.
| Analysis | Focus Files | Output |
|---|---|---|
| Control Loop | agent.py, loop.py | Reasoning pattern, step function |
| Memory | memory.py, context.py | Context assembly, eviction policies |
| Tool Interface | tool.py, functions.py | Schema generation, error feedback |
| Harness-Model Protocol | llm.py, adapters/, stream.py | Wire format, tool call encoding, agentic primitives |
| Multi-Agent | orchestrator.py, router.py | Coordination model, state sharing |
Phase 3: Synthesis
Generate actionable outputs:
- Best-of-Breed Matrix → Framework comparison table
- Anti-Pattern Catalog → "Do Not Repeat" list
- Reference Architecture → New framework specification
Execution Workflow
┌─────────────────────────────────────────────────────────┐
│ 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 │
│ ├── harness-model-protocol │
│ └── multi-agent-analysis (if applicable) │
└─────────────────────────────────────────────────────────┘
↓
┌─────────────────────────────────────────────────────────┐
│ Synthesis │
├─────────────────────────────────────────────────────────┤
│ 4. comparative-matrix │
│ 5. antipattern-catalog │
│ 6. architecture-synthesis │
└─────────────────────────────────────────────────────────┘
Quick Analysis (Single Framework)
For rapid assessment, run the minimal path:
codebase-mapping → execution-engine-analysis → control-loop-extraction → tool-interface-analysis
Output Directory Structure
forensics-output/ # Working/intermediate files
├── .state/
│ ├── manifest.json
│ └── {framework}.state.json
└── frameworks/
└── {framework}/
├── codebase-map.json
├── phase1/*.md
└── phase2/*.md
reports/ # Final deliverables
├── frameworks/
│ └── {framework}.md # Framework summary
└── synthesis/
├── comparison-matrix.md
├── antipatterns.md
├── reference-architecture.md
└── executive-summary.md
State Management & Resumption
The protocol is designed to be stateful and resumable.
- Idempotency: The Orchestrator tracks progress in
manifest.jsonand will skip frameworks marked ascompleted. - Clean Slate Resumption: If a run is interrupted, frameworks marked as
in_progressare considered "stale". Usepython scripts/state_manager.py reset-runningto move them back topendingand delete their partial output directories, ensuring a clean restart for those items.
Agent Orchestration
This skill uses a 4-tier hierarchy of specialized agents for context efficiency:
Orchestrator
│
└── Framework Agents (parallel, one per framework)
│
└── Skill Agents (parallel, one per skill) [COORDINATORS]
│
└── Reader Agents (parallel, one per file cluster) [EXTRACTORS]
│
└── Synthesis Agent (cross-framework synthesis)
Agent Roles
| Agent | Context Budget | Reads | Produces |
|---|---|---|---|
| Orchestrator | ~10K | State files | Coordination decisions |
| Framework Agent | ~50K | Skill outputs | Framework summary report |
| Skill Agent | ~25K | Cluster extracts | Skill analysis report |
| Reader Agent | ~20K | 1-5 source files | JSON extract (~2K) |
| Synthesis Agent | ~40K | All framework reports | Comparison matrix, architecture spec |
Key Innovation: Cluster-Based Reading
Reader Agents read file clusters (1-5 related files) rather than individual files:
- Clusters are grouped by relationship: hierarchy, module cohort, type+usage, interface+impl
- Cross-file patterns (inheritance, imports, shared state) are captured in the extract
- This enables understanding architectural patterns that span multiple files
See:
references/orchestrator-agent.md— Top-level coordinationreferences/framework-agent.md— Per-framework analysis coordinationreferences/skill-agent.md— Skill coordination and cluster assignmentreferences/reader-agent.md— File cluster extractionreferences/synthesis-agent.md— Cross-framework synthesis
Sub-Skill Reference
| Skill | Purpose | Key Outputs |
|---|---|---|
codebase-mapping | Repository structure | File tree, dependencies, entry points |
data-substrate-analysis | Type system | Typing strategy, serialization |
execution-engine-analysis | Control flow | Async model, event architecture |
component-model-analysis | Extensibility | Abstraction patterns, DI |
resilience-analysis | Error handling | Error propagation, sandboxing |
control-loop-extraction | Reasoning loop | Pattern classification, step function |
memory-orchestration | Context management | Assembly, eviction, tiers |
tool-interface-analysis | Tool system | Schema gen, error feedback |
harness-model-protocol | LLM interface layer | Wire format, encoding, agentic primitives |
multi-agent-analysis | Coordination | Handoffs, state sharing |
comparative-matrix | Comparison | Decision tables |
antipattern-catalog | Tech debt | Do-not-repeat list |
architecture-synthesis | New design | Reference spec |
Вставить в README
Ссылка на карточку для вашего README — без картинок и счётчиков.
[DarkPlay: architectural-forensics](https://darkplay.ru/ai/skills/aiskillstore-marketplace-architectural-forensics)
Из того же репозитория
Похожие скиллы и другие разделы каталога
Самые востребованные скиллов раздела по установкам и звёздам.
find-skillsvercel-labs · Помогает находить и устанавливать навыки агентов по запросам вроде «как сделать X»…
grill-memattpocock · Настойчивое интервью для доработки плана или дизайна.
hyperframesheygen-com · Обязательная точка входа для любых задач по видео, анимации и motion-графике в…
hyperframes-cliheygen-com · Цикл разработки HyperFrames CLI: init, add, render, preview, publish и другие команды.
agent-browservercel-labs · CLI для автоматизации браузера для ИИ-агентов: навигация по страницам, заполнение форм…
media-useheygen-com · Agent Media OS: единый навык для медиа в HyperFrames — BGM, SFX, изображения, голос, LUT.
hyperframes-registryheygen-com · Установка и подключение блоков реестра в композиции HyperFrames через add и catalog.
grill-with-docsmattpocock · Настойчивое интервью для доработки плана или дизайна, попутно создающее документацию (ADR…
improve-codebase-architecturemattpocock · Поиск в кодовой базе возможностей для углубления, визуальный HTML-отчёт о них и детальный…
tddmattpocock · Разработка через тестирование (TDD): red-green-refactor и интеграционные тесты.Соседние разделы каталога: возможно, нужный инструмент живёт там.
Architectaffaan-m · Специалист по архитектуре ПО для проектирования систем, масштабируемости и принятия…
Build Error Resolveraffaan-m · Специалист по устранению ошибок сборки и TypeScript. Используйте ПРОАКТИВНО при сбое…
Planneraffaan-m · Специалист по планированию сложных функций, архитектурных изменений и рефакторинга.
framework-migrationwshobson · Обновление фреймворков, планирование миграции и workflow архитектурных преобразований
ADR Generatorgithub · Экспертный агент для создания подробных Architectural Decision Records (ADR) со…
CAST Imaging Software Discovery Agentgithub · Специализированный агент для комплексного исследования программных приложений и…
Clojure Interactive Programminggithub · Экспертный парный программист по Clojure с методологией REPL-first, архитектурным…
High-Level Big Picture Architect (HLBPA)github · Режим чата для архитектурной документации и ревью высокого уровня. Подходит для точечных…
Modernization Agentgithub · Помощник по модернизации с участием человека для анализа, документирования и планирования…
Senior Cloud Architectgithub · Эксперт по паттернам проектирования, требованиям NFR и созданию архитектурных диаграмм и…Лучшие ИИ-инструменты для программирования
Подборка нейросетей и ИИ-ассистентов для разработки и автоматизации кода. Сервисы, которые ускоряют написание, ревью и отладку, экономят часы рутины и снижают порог входа в сложные
GenAPIGenapi
Notepad++ AINotepad-plus-plus
Creatium MaxCremax
Emacs AIGnu
KiteKite
Amazon Q DeveloperAmazonЛучшие ИИ-инструменты для автоматизации и ассистентов
Подборка ИИ-ассистентов для автоматизации рутины и ускорения рабочих процессов. Сервисы, которые берут на себя переписку, анализ данных, ведение базы знаний и подготовку продаж, эк
Give Me Public
AITunnelAitunnel
STIVAStiva
Wikibot (Викибот)Wikibot
mymeet.aiMymeet
InsighterInsighter
TGHuntTghunt
LegiscanLegiscan
RouterAIRouterai
Wikibot 1.0 (Викибот)WikibotЛучшие ИИ-инструменты для генерации видео
Подборка нейросетей для генерации и монтажа видео. Инструменты, которые превращают текст в готовые ролики, экономят часы на съемках и постпродакшне. Подходит для SMM-специалистов,
VEED.IOVeed
MootionMootion
Sora (OpenAI)OpenAI
viralpulse.appViralpulse
Viral Maker AIViral-maker