project-analyzer
Analyzes project structure, technology stack, patterns, and conventions. Use when starting development tasks, reviewing code, or understanding an existing codebase.
What this skill does
# Project Analyzer Skill This skill enables comprehensive analysis of software projects to understand their structure, patterns, and conventions before making changes. ## When to Use This Skill - Starting work on a new task in an existing project - Creating a task breakdown for a feature - Understanding project conventions before coding - Reviewing code for consistency - Setting up a new project with best practices ## Analysis Framework ### 1. Project Structure Analysis **Directory Layout** - Identify the project type (monorepo, single app, library, etc.) - Map the directory structure - Understand the organization pattern (by feature, by layer, etc.) **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 ``` ### 2. Technology Stack Detection **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** - Check dependencies for framework indicators - Look for framework-specific config files - Identify framework version **Build Tools** - Webpack, Vite, esbuild (JavaScript) - Make, CMake (C/C++) - Maven, Gradle (Java) - Cargo (Rust) ### 3. Code Patterns & Conventions **Coding Style** - Check for `.editorconfig` - Look for linter configs (`.eslintrc`, `.prettierrc`, `phpcs.xml`) - Analyze existing code for patterns: - Naming conventions (camelCase, snake_case, PascalCase) - Indentation style - Quote style - Semicolon usage **Architecture Patterns** - MVC (Model-View-Controller) - Clean Architecture / Hexagonal - Repository Pattern - Service Layer - Domain-Driven Design **Design Patterns in Use** - Factory - Singleton - Observer - Strategy - Decorator - Dependency Injection ### 4. Testing Strategy **Test Framework Detection** | Framework | Language | |-----------|----------| | Jest, Mocha, Vitest | JavaScript | | PHPUnit, Pest | PHP | | pytest, unittest | Python | | RSpec, Minitest | Ruby | | JUnit | Java | **Test Organization** - Unit tests location - Integration tests location - Test naming conventions - Mocking patterns ### 5. Documentation Standards **README Structure** - Project description - Installation instructions - Usage examples - Contributing guidelines **Code Documentation** - JSDoc, PHPDoc, docstrings - Inline comments style - API documentation ## Analysis Output Template When analyzing a project, report findings in this format: ```markdown ## 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] ``` ## Empty Project Guidance When project is new/empty, recommend: ### JavaScript/TypeScript - TypeScript for type safety - ESLint + Prettier for formatting - Jest or Vitest for testing - Clear src/ structure ### Python - Type hints throughout - Black + isort for formatting - pytest for testing - src layout or flat layout ### PHP - PSR-4 autoloading - PHP-CS-Fixer or PHP_CodeSniffer - PHPUnit for testing - Proper namespace organization ### General Best Practices - README with setup instructions - .editorconfig for consistency - .gitignore appropriate for stack - CI/CD configuration - Environment variable handling ## Integration with Development After analysis, use findings to: 1. Match existing code style in new code 2. Follow established patterns 3. Use same testing approaches 4. Maintain documentation standards 5. Respect architectural boundaries See [references/patterns.md](references/patterns.md) for detailed pattern examples.
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.