返回 Skill 列表
extension
分类: 开发与工程无需 API Key

analyze-codebase-for-improvements

分析代码库或项目,以识别可操作的改进、架构增强和优化机会。当用户要求审查代码质量、提出改进建议、识别瓶颈、审计系统或获取增强项目的建议时,使用此技能。生成带有问题描述、解决方案及影响分析的优先级改进列表。

person作者: jakexiaohubgithub

Analyze Codebase for Improvements

Input Parameters

| Parameter | Required | Description | Example | | -------------- | -------- | --------------------------------------------------------------------------------------------------------- | ------------------------------------------ | | project_path | Yes | Path to the root directory of the project or codebase to analyze | ~/Code/GitHub/phpbot | | focus_areas | No | Comma-separated list of specific areas to prioritize | performance, error-handling, documentation | | project_type | No | Type of project for context-aware recommendations | PHP application |

Procedure

  1. Confirm the project path, scope, and priority areas with the user if not provided

  2. Examine directory layout, file counts, and key components:

    ls -la {{PROJECT_PATH}}
    find {{PROJECT_PATH}}/src -name "*.{{EXTENSION}}" | wc -l
    grep -r "TODO\|FIXME\|HACK" {{PROJECT_PATH}}/src 2>/dev/null | head -20
    
  3. Review README, configuration files, and recent changes to identify architectural pain points

  4. Generate 8–12 actionable improvements organized by impact and effort — each with a problem statement, proposed solution, and expected benefit

  5. Rank by value-to-effort ratio; surface quick wins first, then strategic long-term enhancements

  6. Deliver as structured markdown with code examples and implementation steps where relevant

Notes

  • Each improvement must have a clear problem statement to justify the recommendation
  • Consider the project's current maturity level and team capacity when scoping changes

Example

what are 10 things I could do to improve this codebase
audit this project and suggest architectural improvements
identify technical debt and quick wins in this repo
review code quality and suggest optimizations
what are the biggest bottlenecks in this codebase