Agent skill
architecture-analysis
Comprehensive frontend architecture analyzer that identifies technology stacks, build tools, and architectural patterns. Use when you need to quickly understand a project's structure, dependencies, and technical configuration. Provides analysis for Vue/React/Angular frameworks, Node.js environments, package managers, TypeScript usage, linters, and architecture patterns with multiple output formats including executive summaries and visualizations.
Install this agent skill to your Project
npx add-skill https://github.com/hubvue/fe-analysis-skills/tree/main/skills/architecture-analysis
SKILL.md
Frontend Architecture Analyzer
This skill analyzes frontend project architecture and provides comprehensive insights about technology stacks, build tools, and architectural patterns.
Quick Start
Analyze any frontend project with a single command:
const result = await analyzeProject("/path/to/project", {
format: "markdown", // json, markdown, summary, scorecard
includeRecommendations: true
});
Core Capabilities
The analyzer detects:
- Frameworks: Vue, React, Angular, Svelte, Solid.js
- Meta-frameworks: Nuxt, Next.js, Remix, Gatsby, Astro
- Build Tools: Vite, Webpack, Rollup, Parcel, esbuild
- Package Managers: pnpm, yarn, npm
- Architecture Patterns: Monorepo, microservices, modular, layered
- Quality Metrics: TypeScript coverage, linters, code quality tools
Output Formats
Choose the format that best suits your audience:
Technical Analysis (JSON)
{
"success": true,
"data": {
"framework": { "name": "vue", "metaFramework": "nuxt" },
"buildTool": { "name": "vite", "version": "5.0.0" },
"architecturePatterns": ["modular", "layered"]
}
}
Markdown Report
Human-readable report with sections for stakeholders
Executive Summary
High-level overview for decision makers
Scorecard
Quantitative assessment with scores
Usage Examples
Basic Analysis
node scripts/analyze-project.js /path/to/project
With Options
node scripts/analyze-project.js /path/to/project '{"format": "markdown", "depth": 2}'
Generate Executive Summary
const analyzer = new ProjectAnalyzer("./my-project");
const result = await analyzer.analyze();
const report = new ReportGenerator(result);
const summary = report.generate("summary");
Advanced Features
Pattern Recognition
- Monorepo Detection: Identifies workspace configurations
- Microservices: Service-based architecture detection
- Modular Design: Feature-based organization analysis
- Layered Architecture: Controller-service-repository patterns
Quality Assessment
- TypeScript adoption and coverage calculation
- Code quality tool detection (ESLint, Prettier, Stylelint)
- Architectural complexity evaluation
- Maintainability scoring
Recommendations Engine
Provides actionable recommendations based on:
- Missing tooling (testing, linting)
- Architecture improvements
- Best practice adoption
- Technology debt
Implementation Details
Detector Modules
framework-detector.js- Framework and meta-framework detectionbuild-tool-detector.js- Build tool and bundler identificationarchitecture-detector.js- Pattern recognition and scoring
Report Generator
Supports multiple output formats:
- Technical JSON for API integration
- Markdown for documentation
- Executive summaries for presentations
- Scorecards for metrics tracking
Reference Documentation
Detailed implementation guides and patterns:
- Framework Detection: See framework-patterns.md
- Build Tools: See build-tool-patterns.md
- Architecture Patterns: See architecture-patterns.md
- Output Formats: See output-formats.md
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
dependency-analysis
Enhanced dependency analyzer with comprehensive markdown reporting and actionable recommendations. Use when you need to optimize frontend project dependencies, detect security vulnerabilities, identify unused packages, find duplicate functionality, analyze dependency impact, generate cleanup scripts, or produce detailed Markdown reports. Supports JavaScript, TypeScript, Vue, React, Angular, and modern build tools with parallel processing and incremental analysis capabilities.
unit-test-generator
scaffold-exercises
Create exercise directory structures with sections, problems, solutions, and explainers that pass linting. Use when user wants to scaffold exercises, create exercise stubs, or set up a new course section.
handoff
Compact the current conversation into a handoff document for another agent to pick up.
edit-article
Edit and improve articles by restructuring sections, improving clarity, and tightening prose. Use when user wants to edit, revise, or improve an article draft.
setup-pre-commit
Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. Use when user wants to add pre-commit hooks, set up Husky, configure lint-staged, or add commit-time formatting/typechecking/testing.
Didn't find tool you were looking for?