Analyzes project structure, technology stack, patterns, and conventions. Use when starting development tasks, reviewing code, or understanding an existing codebase.
This skill enables comprehensive analysis of software projects to understand their structure, patterns, and conventions before making changes.
Directory Layout
Key Directories to Look For
src/ # Source code
lib/ # Library code
app/ # Application code
tests/ # Test files
docs/ # Documentation
config/ # Configuration
scripts/ # Build/utility scripts
public/ # Static assets
dist/ # Build output
Package Managers & Dependencies
| File | Technology |
|---|---|
package.json |
Node.js/JavaScript |
composer.json |
PHP |
requirements.txt, pyproject.toml |
Python |
Gemfile |
Ruby |
Cargo.toml |
Rust |
go.mod |
Go |
pom.xml, build.gradle |
Java |
Frameworks
Build Tools
Coding Style
.editorconfig.eslintrc, .prettierrc, phpcs.xml)Architecture Patterns
Design Patterns in Use
Test Framework Detection
| Framework | Language |
|---|---|
| Jest, Mocha, Vitest | JavaScript |
| PHPUnit, Pest | PHP |
| pytest, unittest | Python |
| RSpec, Minitest | Ruby |
| JUnit | Java |
Test Organization
README Structure
Code Documentation
When analyzing a project, report findings in this format:
## Project Analysis Report
### Overview
- **Type**: [Web App / API / Library / CLI / etc.]
- **Primary Language**: [Language + version]
- **Framework**: [Framework + version]
### Structure
[Description of directory organization]
### Dependencies
- **Runtime**: [key dependencies]
- **Development**: [key dev dependencies]
### Patterns & Conventions
#### Coding Style
- Naming: [convention]
- Formatting: [tool/standard]
- Linting: [tool/rules]
#### Architecture
- Pattern: [architecture pattern]
- Key abstractions: [list]
#### Testing
- Framework: [test framework]
- Coverage: [if measurable]
- Organization: [how tests are organized]
### Recommendations
[Recommendations for maintaining consistency]
When project is new/empty, recommend:
After analysis, use findings to:
See references/patterns.md for detailed pattern examples.