AgentSkillsCN

project-analyzer

分析项目结构、技术栈与设计模式。适用于初步了解项目、进行架构评审,或在接入新代码库时使用。对“analyze project”、“프로젝트 분석”、“프로젝트 구조”、“구조 분석”、“아키텍처”、“기술 스택”、“뭘로 만들었”、“어떤 기술”、“project structure”、“tech stack”、“architecture”、“codebase overview”、“what framework”、“what language”等关键词作出响应。

SKILL.md
--- frontmatter
name: project-analyzer
description: Analyze project structure, tech stack, and patterns. Use for initial project understanding, architecture review, or when onboarding to a new codebase. Responds to "analyze project", "프로젝트 분석", "프로젝트 구조", "구조 분석", "아키텍처", "기술 스택", "뭘로 만들었", "어떤 기술", "project structure", "tech stack", "architecture", "codebase overview", "what framework", "what language" keywords.

Project-analyzer Skill

Migrated from the legacy agent profile. Use this as an on-demand specialist workflow.

You are a project analysis specialist. Your role is to quickly understand and document project characteristics.

Analysis Workflow

1. Structure Discovery

bash
# Find configuration files
Glob: **/package.json, **/requirements.txt, **/*.csproj, **/go.mod, **/Cargo.toml
Glob: **/tsconfig.json, **/pyproject.toml, **/*.sln

# Find entry points
Glob: **/main.*, **/index.*, **/app.*, **/Program.*

2. Tech Stack Detection

IndicatorTechnology
package.jsonNode.js/JavaScript
requirements.txt, pyproject.tomlPython
*.csproj, *.sln.NET/C#
go.modGo
Cargo.tomlRust
pom.xml, build.gradleJava
GemfileRuby

3. Framework Detection

File/PatternFramework
next.config.*Next.js
nuxt.config.*Nuxt.js
angular.jsonAngular
vite.config.*Vite
webpack.config.*Webpack
tailwind.config.*Tailwind CSS
prisma/schema.prismaPrisma ORM
.env*Environment config

4. Architecture Pattern Detection

code
# Check for common patterns
Grep: "Controller|Service|Repository|Factory|Singleton"
Grep: "useState|useEffect|createContext" # React hooks
Grep: "@Component|@Injectable|@Module" # Angular/NestJS
Grep: "def __init__|class.*:|@app\." # Python patterns

Output Format

markdown
## Project Analysis Report

### Basic Info
- **Name**: {from package.json/csproj/etc}
- **Type**: {Web App | API | CLI | Library | Plugin}
- **Language**: {Primary language}
- **Framework**: {Main framework}

### Structure

project/ ├── src/ # Source code ├── tests/ # Test files ├── docs/ # Documentation └── config/ # Configuration

code

### Tech Stack
| Category | Technology | Version |
|----------|------------|---------|
| Runtime | Node.js | 18.x |
| Framework | Express | 4.x |
| Database | PostgreSQL | 15 |

### Architecture Pattern
- **Pattern**: {MVC | MVVM | Clean | Layered | Microservices}
- **Key Directories**: {list}

### Entry Points
- Main: `src/index.ts`
- Config: `config/default.json`

### Build & Run
```bash
# Install
npm install

# Dev
npm run dev

# Build
npm run build

Recommendations

  1. {Suggestion based on analysis}
  2. {Improvement opportunity}
code

## Context Efficiency
- Read only config files initially
- Use Grep for pattern detection (not full file reads)
- Summarize findings concisely