project-analysis
Analyze project codebase structure, architecture, key files, and dependencies using scan and filesystem tools
What this skill does
# Project Analysis Skill Perform comprehensive analysis of a project codebase to understand its structure, architecture, key files, and dependencies. ## When to Use Activate when: - User asks "analyze this project" or "what does this codebase look like?" - Starting work on an unfamiliar codebase - Reviewing project architecture before making changes - Generating documentation about project structure - Understanding dependency landscape ## Analysis Workflow ### Step 1: Initial Scan Scan the codebase to get a high-level overview: - Total files and lines of code - Languages detected and their distribution - File type breakdown - Directory structure overview If a recent scan exists, retrieve cached scan results instead of rescanning. ### Step 2: Understand Project Type Based on scan results, identify the project type: | Indicator | Project Type | |-----------|-------------| | package.json + React/Next.js | Web application | | package.json + Express/Fastify | API server | | Cargo.toml | Rust project | | pyproject.toml / setup.py | Python project | | go.mod | Go project | | Dockerfile + docker-compose | Containerized service | | index.ts + bin/ | CLI tool | ### Step 3: Read Key Files Examine critical files: **Always check:** - `README.md` - Project purpose and documentation - `package.json` / `Cargo.toml` / `pyproject.toml` - Dependencies and metadata **Check if they exist:** - `tsconfig.json` / `vite.config.ts` / `webpack.config.js` - Build configuration - `Dockerfile` / `docker-compose.yml` - Container setup - `.env.example` - Environment variables - `CONTRIBUTING.md` - Development workflow ### Step 4: Explore Architecture Explore the directory layout: 1. List the root directory to see top-level structure 2. List key directories (src/, lib/, app/, etc.) to understand component organization 3. Identify architectural patterns: | Pattern | Indicators | |---------|-----------| | MVC | controllers/, models/, views/ directories | | Layered | services/, repositories/, handlers/ | | Feature-based | Feature directories with co-located files | | Monorepo | packages/ or apps/ directories | | Microservices | Multiple service directories with own configs | ### Step 5: Analyze Dependencies Read the dependency file to understand: - **Runtime dependencies**: Core libraries the project relies on - **Dev dependencies**: Build tools, test frameworks, linters - **Package manager**: npm, yarn, pnpm, cargo, pip, etc. - **Dependency count**: Overall complexity indicator ## Output Format Present analysis in this structure: ```markdown ## Project Analysis: [Name] ### Overview - **Type**: [Web app / API / CLI / Library / etc.] - **Primary Language**: [language] (X%) - **Secondary Languages**: [languages] - **Total Files**: X - **Total Lines**: X ### Architecture - **Pattern**: [MVC / Layered / Feature-based / etc.] - **Key Directories**: - `src/commands/` - CLI command implementations - `src/services/` - Business logic layer - `src/tools/` - AI tool definitions - `src/utils/` - Shared utilities ### Key Files | File | Purpose | |------|---------| | `index.ts` | Application entry point | | `package.json` | Dependencies and scripts | | `tsconfig.json` | TypeScript configuration | ### Dependencies - **Package Manager**: [npm/yarn/pnpm] - **Runtime** (X packages): [key ones listed] - **Development** (Y packages): [key ones listed] ### Observations - [Notable patterns or concerns] - [Suggested improvements] ``` ## Analysis Depth Levels ### Quick Overview 1. Retrieve cached scan results, or perform a fresh scan 2. Present file count, languages, and structure summary ### Standard Analysis 1. Scan project 2. Read README and dependency file 3. List key directories 4. Present full analysis ### Deep Dive 1. Scan project 2. Read all key configuration files 3. Explore all major directories 4. Read entry points and core modules 5. Present comprehensive analysis with architecture diagram suggestions ## Best Practices 1. **Start with cached data**: Check for cached scan results first; only perform a fresh scan if no cache exists 2. **Read before concluding**: Don't guess architecture from file names alone; read key files 3. **Be specific**: Name actual files and directories, don't generalize 4. **Suggest next steps**: After analysis, recommend architecture diagramming or dependency mapping 5. **Note concerns**: Flag large files, missing docs, or unusual patterns
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.