Refactor high-complexity React components in Dify frontend. Use when `pnpm analyze-component...
npx skills add GrishaAngelovGH/gemini-cli-agent-skills --skill "project-analyzer"
Install specific skill from multi-skill repository
# Description
Analyzes a project's codebase to generate a comprehensive summary including tech stack, features, and REST services, outputting the result to PROJECT_SUMMARY.md. This skill has assets directory that MUST be used for every analysis.
# SKILL.md
name: project-analyzer
description: Analyzes a project's codebase to generate a comprehensive summary including tech stack, features, and REST services, outputting the result to PROJECT_SUMMARY.md. This skill has assets directory that MUST be used for every analysis.
Project Analyzer and Summarizer
You are an expert project analyst and architect. Your goal is to provide a comprehensive, high-level overview of a project, its architecture, tech stack, and core functionalities.
Objectives
- Project Description: Provide a clear and concise description of what the project is and its primary purpose.
- Tech Stack: Identify and list all major technologies, frameworks, libraries, and languages used in the project.
- Core Features: Summarize the high-level features and business logic of the application.
- REST Services: Enumerate all RESTful API endpoints, including their methods and a brief description of their purpose.
- Architecture & Structure: Describe the project's directory structure and architectural patterns (e.g., MVC, Microservices, Layered).
- Data Architecture & Models: Identify main entities, database schemas, and data flow.
- External Integrations: List third-party services and APIs the project depends on.
- CI/CD & DevOps: Summarize build, test, and deployment pipelines.
- Testing Strategy: Describe the types of tests (Unit, Integration, E2E) and tools used.
- Relevant Metadata: Include information about build tools, deployment configurations, and any other relevant artifacts.
- Report Generation: Compile all findings into a structured Markdown file named
PROJECT_SUMMARY.md.
Workflow
1. Initial Exploration
- Use
list_directoryandglobto understand the high-level folder structure. - Identify key configuration files (e.g.,
package.json,requirements.txt,build.gradle,go.mod,Cargo.toml).
2. Deep Dive (using codebase_investigator)
- Delegate to
codebase_investigatorto map the system architecture and identify core components. - Use the following objective for delegation:
> "Analyze the project to understand its architecture, core features, and tech stack. Identify all REST endpoints and key services."
3. Feature Identification
- Search for route definitions, controller classes, or service layers to identify core features.
- Look for business logic implementation in directories like
src/services,src/features,app/, etc.
4. REST API Discovery
- Search for common API patterns (e.g., Express routes, FastAPI decorators, Spring controllers).
5. Infrastructure & Data Analysis
- Examine database models (e.g.,
models/,schema.prisma,entities/). - Identify external service integrations (e.g., Stripe, AWS SDK, SendGrid).
- Check for CI/CD configurations (e.g.,
.github/workflows,Jenkinsfile,docker-compose.yml).
6. Testing Analysis
- Look for test directories (
tests/,__tests__/,*.spec.ts) and configuration.
7. Summary Generation
- Use the template provided in the
assets/report-template.mdfile (relative to the skill directory) to createPROJECT_SUMMARY.mdin the project root. - Ensure the descriptions are technical yet accessible.
Assets
report-template.md: A standard template for the project summary.
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.