Analyzing Projects
Project Analysis Workflow
Copy this checklist and track progress:
Project Analysis Progress:
- [ ] Step 1: Quick overview (README, root files)
- [ ] Step 2: Detect tech stack
- [ ] Step 3: Map project structure
- [ ] Step 4: Identify key patterns
- [ ] Step 5: Find development workflow
- [ ] Step 6: Generate summary report
Step 1: Quick Overview
# Check for common project markers
ls -la
cat README.md 2>/dev/null | head -50
Step 2: Tech Stack Detection
Package Managers & Dependencies
package.json → Node.js/JavaScript/TypeScript
requirements.txt / pyproject.toml / setup.py → Python
go.mod → Go
Cargo.toml → Rust
pom.xml / build.gradle → Java
Gemfile → Ruby
Frameworks (from dependencies)
- React, Vue, Angular, Next.js, Nuxt
- Express, FastAPI, Django, Flask, Rails
- Spring Boot, Gin, Echo
Infrastructure
Dockerfile, docker-compose.yml → Containerized
kubernetes/, k8s/ → Kubernetes
terraform/, .tf files → IaC
serverless.yml → Serverless Framework
.github/workflows/ → GitHub Actions
Step 3: Project Structure Analysis
Present as a tree with annotations:
project/
├── src/ # Source code
│ ├── components/ # UI components (React/Vue)
│ ├── services/ # Business logic
│ ├── models/ # Data models
│ └── utils/ # Shared utilities
├── tests/ # Test files
├── docs/ # Documentation
└── config/ # Configuration
Step 4: Key Patterns Identification
Look for and report:
- Architecture: Monolith, Microservices, Serverless, Monorepo
- API Style: REST, GraphQL, gRPC, tRPC
- State Management: Redux, Zustand, MobX, Context
- Database: SQL, NoSQL, ORM used
- Authentication: JWT, OAuth, Sessions
- Testing: Jest, Pytest, Go test, etc.
Step 5: Development Workflow
Check for:
.eslintrc, .prettierrc → Linting/Formatting
.husky/ → Git hooks
Makefile → Build commands
scripts/ in package.json → NPM scripts
Step 6: Output Format
Generate a summary using this template:
# Project: [Name]
## Overview
[1-2 sentence description]
## Tech Stack
| Category | Technology |
|----------|------------|
| Language | TypeScript |
| Framework | Next.js 14 |
| Database | PostgreSQL |
| ... | ... |
## Architecture
[Description with simple ASCII diagram if helpful]
## Key Directories
- `src/` - [purpose]
- `lib/` - [purpose]
## Entry Points
- Main: `src/index.ts`
- API: `src/api/`
- Tests: `npm test`
## Conventions
- [Naming conventions]
- [File organization patterns]
- [Code style preferences]
## Quick Commands
| Action | Command |
|--------|---------|
| Install | `npm install` |
| Dev | `npm run dev` |
| Test | `npm test` |
| Build | `npm run build` |
Analysis Validation
After completing analysis, verify:
Analysis Validation:
- [ ] All major directories explained
- [ ] Tech stack accurately identified
- [ ] Entry points documented
- [ ] Development commands verified working
- [ ] No assumptions made without evidence
If any items cannot be verified, note them as "needs clarification" in the report.
1---2name: analyzing-projects3description: Analyzes codebases to understand structure, tech stack, patterns, and conventions. Use when onboarding to a new project, exploring unfamiliar code, or when asked "how does this work?" or "what's the architecture?"4---56# Analyzing Projects78## Project Analysis Workflow910Copy this checklist and track progress:1112```13Project Analysis Progress:14- [ ] Step 1: Quick overview (README, root files)15- [ ] Step 2: Detect tech stack16- [ ] Step 3: Map project structure17- [ ] Step 4: Identify key patterns18- [ ] Step 5: Find development workflow19- [ ] Step 6: Generate summary report20```2122## Step 1: Quick Overview2324```bash25# Check for common project markers26ls -la27cat README.md 2>/dev/null | head -5028```2930## Step 2: Tech Stack Detection3132### Package Managers & Dependencies33- `package.json` → Node.js/JavaScript/TypeScript34- `requirements.txt` / `pyproject.toml` / `setup.py` → Python35- `go.mod` → Go36- `Cargo.toml` → Rust37- `pom.xml` / `build.gradle` → Java38- `Gemfile` → Ruby3940### Frameworks (from dependencies)41- React, Vue, Angular, Next.js, Nuxt42- Express, FastAPI, Django, Flask, Rails43- Spring Boot, Gin, Echo4445### Infrastructure46- `Dockerfile`, `docker-compose.yml` → Containerized47- `kubernetes/`, `k8s/` → Kubernetes48- `terraform/`, `.tf` files → IaC49- `serverless.yml` → Serverless Framework50- `.github/workflows/` → GitHub Actions5152## Step 3: Project Structure Analysis5354Present as a tree with annotations:55```56project/57├── src/ # Source code58│ ├── components/ # UI components (React/Vue)59│ ├── services/ # Business logic60│ ├── models/ # Data models61│ └── utils/ # Shared utilities62├── tests/ # Test files63├── docs/ # Documentation64└── config/ # Configuration65```6667## Step 4: Key Patterns Identification6869Look for and report:70- **Architecture**: Monolith, Microservices, Serverless, Monorepo71- **API Style**: REST, GraphQL, gRPC, tRPC72- **State Management**: Redux, Zustand, MobX, Context73- **Database**: SQL, NoSQL, ORM used74- **Authentication**: JWT, OAuth, Sessions75- **Testing**: Jest, Pytest, Go test, etc.7677## Step 5: Development Workflow7879Check for:80- `.eslintrc`, `.prettierrc` → Linting/Formatting81- `.husky/` → Git hooks82- `Makefile` → Build commands83- `scripts/` in package.json → NPM scripts8485## Step 6: Output Format8687Generate a summary using this template:8889```markdown90# Project: [Name]9192## Overview93[1-2 sentence description]9495## Tech Stack96| Category | Technology |97|----------|------------|98| Language | TypeScript |99| Framework | Next.js 14 |100| Database | PostgreSQL |101| ... | ... |102103## Architecture104[Description with simple ASCII diagram if helpful]105106## Key Directories107- `src/` - [purpose]108- `lib/` - [purpose]109110## Entry Points111- Main: `src/index.ts`112- API: `src/api/`113- Tests: `npm test`114115## Conventions116- [Naming conventions]117- [File organization patterns]118- [Code style preferences]119120## Quick Commands121| Action | Command |122|--------|---------|123| Install | `npm install` |124| Dev | `npm run dev` |125| Test | `npm test` |126| Build | `npm run build` |127```128129## Analysis Validation130131After completing analysis, verify:132133```134Analysis Validation:135- [ ] All major directories explained136- [ ] Tech stack accurately identified137- [ ] Entry points documented138- [ ] Development commands verified working139- [ ] No assumptions made without evidence140```141142If any items cannot be verified, note them as "needs clarification" in the report.