AgentSkillsCN

analyze-codebase

借助专业智能体对代码库进行全方位分析。无论是架构评估、依赖关系梳理,还是性能优化与代码质量审查,此技能都能为你提供专业视角与精准建议。

SKILL.md
--- frontmatter
name: analyze-codebase
description: "Run codebase analysis with specialized agents. Use for architecture, dependencies, performance, or code quality review."

Analyze Codebase

Launch appropriate analysis agent(s) based on user request.

Available Agents

AgentUse For
repo-architecture-scannerStructure, tech stack, entry points
codebase-analyzerTrace specific flows, call graphs
dependency-analyzerImports, cycles, coupling
performance-analyzerBottlenecks, complexity, scaling
dead-code-analyzerUnused code, doc drift
error-flow-analyzerError handling, silent failures
state-flow-analyzerState mutations, race conditions
domain-logic-mapperBusiness logic, invariants
interface-contract-analyzerAPI contracts, validation
cross-cutting-concern-analyzerAuth, logging, resilience
architecture-synthesizerCombine multiple reports
report-criticReview report accuracy

Quick Reference

User RequestAgent to Launch
"How is this organized?"repo-architecture-scanner
"Trace this function"codebase-analyzer
"Find circular imports"dependency-analyzer
"Why is this slow?"performance-analyzer
"Find unused code"dead-code-analyzer
"Check error handling"error-flow-analyzer
"Full codebase review"Multiple → architecture-synthesizer

Agent

Use subagent_type: [agent-name]