This skill performs deep architectural analysis and reverse engineering for the purpose of understanding existing systems to rebuild them better. This is legitimate software reengineering work used for:
- Migration planning - Understanding legacy systems to inform modernization
- Tech debt assessment - Identifying bloat, inefficiencies, and architectural debt
- Security auditing - Finding vulnerabilities and attack surfaces (authorized contexts only)
- Architecture modernization - Deconstructing from first principles to recommend better approaches
- Performance optimization - Identifying bottlenecks and inefficient patterns
Core Analysis Pillars
- Architecture Understanding - Map the overall system design, dependencies, and data flows
- Efficiency Analysis - Identify computational waste, bloat, and over-engineering
- Security Assessment - Find potential vulnerabilities, leaks, and attack surfaces
- First Principles Deconstruction - Question every complexity and rebuild from fundamentals
- Tech Stack Evaluation - Assess if current technologies are optimal for the problem domain
Methodological Approach
Start broad, go deep, synthesize findings:
- Repository analysis: Structure → Dependencies → Code patterns → Data flows
- Binary analysis: Architecture → System calls → Memory patterns → Reverse engineering
- Evaluation: What's necessary vs. bloat? What's elegant vs. technical debt?
- Recommendation: What's the minimal viable architecture? What tech stack fits best?
Ethical Guidelines
This skill performs analysis for authorized, constructive purposes:
- ✓ Analyzing your own software or with explicit authorization
- ✓ Open source software analysis for learning and improvement
- ✓ CTF challenges and educational reverse engineering
- ✓ Authorized security testing and vulnerability research
- ✗ Unauthorized exploitation or malicious reverse engineering
- ✗ Bypassing security for malicious purposes
- GitHub repository - Analyze codebase architecture, patterns, and inefficiencies
- Application binary - Reverse engineer compiled binary (ELF, PE, Mach-O, etc.)
- Both repository + binaries - Full-spectrum analysis of both source and compiled artifacts
- Tech stack recommendation - Evaluate current stack and recommend optimal alternatives for rewrite
If you have a specific GitHub URL or binary path, provide it now. Otherwise, specify the type of analysis.
Wait for response before proceeding.
Intent-based routing (if user provides URL or path directly):
- If github.com URL provided → workflows/analyze-repository.md
- If binary path provided → workflows/analyze-binary.md
- If "analyze X for rewrite" → workflows/full-analysis.md
After routing to workflow, follow it exactly.
Repository Analysis:
- Architecture mapping (components, layers, boundaries)
- Dependency analysis (direct, transitive, bloat detection)
- Code quality patterns (anti-patterns, over-engineering)
- Performance hotspots (algorithmic complexity, I/O patterns)
- Security surface (input validation, auth flows, data exposure)
- Bloat identification (unused code, redundant abstractions, unnecessary dependencies)
Binary Analysis:
- Architecture detection (x86, x64, ARM, ARM64, RISC-V, etc.)
- Format analysis (ELF, PE, Mach-O structure and metadata)
- System call tracing (syscall patterns, I/O operations)
- Library dependencies (shared objects, dynamic linking)
- String/constant analysis (config, endpoints, secrets)
- Disassembly and control flow (function signatures, logic patterns)
- Memory analysis (heap/stack patterns, potential leaks)
Tech Stack Evaluation:
- Problem-domain fit (is the current stack appropriate?)
- Complexity vs. requirements (over-engineering detection)
- Performance characteristics (is this tech optimized for the workload?)
- Ecosystem maturity (library support, tooling, community)
- First principles reconstruction (what's the simplest stack that could work?)
All in references/:
Analysis Techniques:
- repository-analysis-methods.md - Systematic codebase exploration strategies
- binary-analysis-tools.md - Reverse engineering toolchain and techniques
- bloat-detection-patterns.md - Common sources of unnecessary complexity
Evaluation Frameworks:
- first-principles-analysis.md - Deconstructing architecture from fundamentals
- tech-stack-evaluation-matrix.md - Framework for assessing technology choices
- architecture-patterns-catalog.md - Common patterns and their trade-offs
Tooling:
- static-analysis-tools.md - Tools for code analysis (semgrep, codeql, etc.)
- binary-analysis-tools.md - Disassemblers, debuggers, tracers
- visualization-tools.md - Architecture diagrams and flow visualization
All in workflows/:
| Workflow |
Purpose |
| analyze-repository.md |
Deep analysis of GitHub repositories |
| analyze-binary.md |
Reverse engineering of compiled binaries |
| full-analysis.md |
Combined repository + binary analysis |
| recommend-tech-stack.md |
Evaluate and recommend optimal tech stack for rewrite |
|
|
All in templates/:
- architecture-analysis-report.md - Comprehensive architecture breakdown
- efficiency-audit-report.md - Performance and bloat analysis
- security-surface-report.md - Attack surface and vulnerability assessment
- rewrite-recommendation.md - Tech stack recommendation and migration plan
1---2name: deep-architecture-analysis3description: Performs comprehensive reverse engineering and architecture analysis of GitHub repositories and application binaries. Identifies inefficiencies, bloat, vulnerabilities, and architectural patterns. Deconstructs from first principles to recommend optimal tech stacks for rewrites and modernization.4---56<essential_principles>7## Purpose89This skill performs deep architectural analysis and reverse engineering for the purpose of understanding existing systems to rebuild them better. This is legitimate software reengineering work used for:10- **Migration planning** - Understanding legacy systems to inform modernization11- **Tech debt assessment** - Identifying bloat, inefficiencies, and architectural debt12- **Security auditing** - Finding vulnerabilities and attack surfaces (authorized contexts only)13- **Architecture modernization** - Deconstructing from first principles to recommend better approaches14- **Performance optimization** - Identifying bottlenecks and inefficient patterns1516## Core Analysis Pillars17181. **Architecture Understanding** - Map the overall system design, dependencies, and data flows192. **Efficiency Analysis** - Identify computational waste, bloat, and over-engineering203. **Security Assessment** - Find potential vulnerabilities, leaks, and attack surfaces214. **First Principles Deconstruction** - Question every complexity and rebuild from fundamentals225. **Tech Stack Evaluation** - Assess if current technologies are optimal for the problem domain2324## Methodological Approach2526**Start broad, go deep, synthesize findings:**27- Repository analysis: Structure → Dependencies → Code patterns → Data flows28- Binary analysis: Architecture → System calls → Memory patterns → Reverse engineering29- Evaluation: What's necessary vs. bloat? What's elegant vs. technical debt?30- Recommendation: What's the minimal viable architecture? What tech stack fits best?3132## Ethical Guidelines3334This skill performs analysis for **authorized, constructive purposes**:35- ✓ Analyzing your own software or with explicit authorization36- ✓ Open source software analysis for learning and improvement37- ✓ CTF challenges and educational reverse engineering38- ✓ Authorized security testing and vulnerability research39- ✗ Unauthorized exploitation or malicious reverse engineering40- ✗ Bypassing security for malicious purposes41</essential_principles>4243<intake>44What would you like to analyze?45461. **GitHub repository** - Analyze codebase architecture, patterns, and inefficiencies472. **Application binary** - Reverse engineer compiled binary (ELF, PE, Mach-O, etc.)483. **Both repository + binaries** - Full-spectrum analysis of both source and compiled artifacts494. **Tech stack recommendation** - Evaluate current stack and recommend optimal alternatives for rewrite5051If you have a specific GitHub URL or binary path, provide it now. Otherwise, specify the type of analysis.5253**Wait for response before proceeding.**54</intake>5556<routing>57| Response | Next Action | Workflow |58|----------|-------------|----------|59| 1, "repository", "repo", "github", "codebase" | workflows/analyze-repository.md |60| 2, "binary", "executable", "ELF", "PE", "Mach-O" | workflows/analyze-binary.md |61| 3, "both", "full", "complete" | workflows/full-analysis.md |62| 4, "recommend", "tech stack", "rewrite", "alternatives" | workflows/recommend-tech-stack.md |6364**Intent-based routing (if user provides URL or path directly):**65- If github.com URL provided → workflows/analyze-repository.md66- If binary path provided → workflows/analyze-binary.md67- If "analyze X for rewrite" → workflows/full-analysis.md6869**After routing to workflow, follow it exactly.**70</routing>7172<quick_reference>73## Analysis Capabilities7475**Repository Analysis:**76- Architecture mapping (components, layers, boundaries)77- Dependency analysis (direct, transitive, bloat detection)78- Code quality patterns (anti-patterns, over-engineering)79- Performance hotspots (algorithmic complexity, I/O patterns)80- Security surface (input validation, auth flows, data exposure)81- Bloat identification (unused code, redundant abstractions, unnecessary dependencies)8283**Binary Analysis:**84- Architecture detection (x86, x64, ARM, ARM64, RISC-V, etc.)85- Format analysis (ELF, PE, Mach-O structure and metadata)86- System call tracing (syscall patterns, I/O operations)87- Library dependencies (shared objects, dynamic linking)88- String/constant analysis (config, endpoints, secrets)89- Disassembly and control flow (function signatures, logic patterns)90- Memory analysis (heap/stack patterns, potential leaks)9192**Tech Stack Evaluation:**93- Problem-domain fit (is the current stack appropriate?)94- Complexity vs. requirements (over-engineering detection)95- Performance characteristics (is this tech optimized for the workload?)96- Ecosystem maturity (library support, tooling, community)97- First principles reconstruction (what's the simplest stack that could work?)98</quick_reference>99100<reference_index>101## Domain Knowledge102103All in `references/`:104105**Analysis Techniques:**106- repository-analysis-methods.md - Systematic codebase exploration strategies107- binary-analysis-tools.md - Reverse engineering toolchain and techniques108- bloat-detection-patterns.md - Common sources of unnecessary complexity109110**Evaluation Frameworks:**111- first-principles-analysis.md - Deconstructing architecture from fundamentals112- tech-stack-evaluation-matrix.md - Framework for assessing technology choices113- architecture-patterns-catalog.md - Common patterns and their trade-offs114115**Tooling:**116- static-analysis-tools.md - Tools for code analysis (semgrep, codeql, etc.)117- binary-analysis-tools.md - Disassemblers, debuggers, tracers118- visualization-tools.md - Architecture diagrams and flow visualization119</reference_index>120121<workflows_index>122## Workflows123124All in `workflows/`:125126| Workflow | Purpose |127|----------|---------|128| analyze-repository.md | Deep analysis of GitHub repositories |129| analyze-binary.md | Reverse engineering of compiled binaries |130| full-analysis.md | Combined repository + binary analysis |131| recommend-tech-stack.md | Evaluate and recommend optimal tech stack for rewrite |132</workflows_index>133134<output_templates>135## Analysis Report Templates136137All in `templates/`:138139- architecture-analysis-report.md - Comprehensive architecture breakdown140- efficiency-audit-report.md - Performance and bloat analysis141- security-surface-report.md - Attack surface and vulnerability assessment142- rewrite-recommendation.md - Tech stack recommendation and migration plan143</output_templates>144145<success_criteria>146A successful analysis includes:147- Complete architecture map with component boundaries and data flows148- Identified inefficiencies with quantified impact (complexity, performance, memory)149- Security surface assessment with prioritized findings150- Clear bloat identification with removal recommendations151- First principles deconstruction explaining what complexity is unnecessary152- Actionable tech stack recommendation with migration strategy153- All findings backed by evidence from code/binary analysis154</success_criteria>