plugins/project-insight/skills/project-insight/SKILL.md
Comprehensive project analysis using multi-agent pipeline. Use when user says "analyze project", "project insight", "evaluate codebase", or wants to understand project quality.
npx skillsauth add jaykim88/claude-ai-engineering project-insightInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Rapid project analysis and improvement recommendations using multi-agent analysis.
Ask user to confirm the project directory if not obvious:
AskUserQuestion(
questions=[{
"question": "Which directory should I analyze?",
"header": "Target",
"options": [
{
"label": "Current directory",
"description": "Analyze the current working directory"
},
{
"label": "Specify path",
"description": "Provide a specific directory path"
}
],
"multiSelect": false
}]
)
If "Specify path" selected, ask for the path.
Execute three independent analysis agents simultaneously:
# Spawn 3 agents in parallel (single response with 3 Task calls)
Task(
subagent_type="tech-stack-analyzer",
model="sonnet",
description="Analyze tech stack",
prompt="""
Analyze the technology stack of the project in: {project_dir}
Tasks:
1. Identify programming languages and versions
2. List frameworks and libraries
3. Find build tools and package managers
4. Note development dependencies
5. Flag outdated or deprecated dependencies
Focus on PRIMARY technologies, not every dependency.
Provide specific file:line references for findings.
"""
)
Task(
subagent_type="structure-analyzer",
model="sonnet",
description="Analyze project structure",
prompt="""
Analyze the project structure and organization in: {project_dir}
Tasks:
1. Identify directory organization pattern
2. Evaluate naming consistency
3. Measure nesting depth and complexity
4. Assess separation of concerns
5. Find structural issues
Use bash commands to gather metrics.
Provide specific directory paths for issues.
"""
)
Task(
subagent_type="readme-analyzer",
model="sonnet",
description="Analyze documentation",
prompt="""
Analyze documentation quality in: {project_dir}
Tasks:
1. Read README.md and evaluate completeness
2. Check for essential sections
3. Identify missing documentation
4. Assess code example quality
5. Suggest improvements
Look for README.md, CONTRIBUTING.md, LICENSE, CHANGELOG.md.
Rate quality on a scale of 1-10.
"""
)
Wait for all three agents to complete.
After Phase 1 completes, synthesize findings:
Task(
subagent_type="insight-synthesizer",
model="haiku",
description="Synthesize insights",
prompt="""
You are receiving analysis results from three specialized agents.
# Tech Stack Analysis
{tech-stack-analyzer results}
# Structure Analysis
{structure-analyzer results}
# Documentation Analysis
{readme-analyzer results}
---
Tasks:
1. Remove duplicate or overlapping insights
2. Prioritize findings (Critical/Important/Beneficial)
3. Identify quick wins (< 1 hour tasks)
4. Detect cross-cutting patterns
5. Create actionable recommendations
Output a consolidated Project Insight Report.
Include:
- Executive summary
- Strengths and improvements
- Prioritized action items
- Quick wins checklist
- Overall health score
"""
)
Display the final consolidated report to the user.
Ask if they want to:
/learning-summary| Agent | Model | Reasoning | |-------|-------|-----------| | tech-stack-analyzer | sonnet | Deep analysis of dependencies and compatibility | | structure-analyzer | sonnet | Complex pattern recognition and metrics | | readme-analyzer | sonnet | Content quality assessment requires nuance | | insight-synthesizer | haiku | Fast synthesis, validation is straightforward |
| Error | Cause | Solution | |-------|-------|----------| | No package.json found | Not a Node.js project | Expand language detection logic | | Permission denied | Restricted directory | Ask user to change directory or permissions | | Phase 1 agent timeout | Large codebase | Add --max-depth flag to limit scope | | Empty analysis | No files found | Verify correct directory |
Usage:
"analyze this project"
/insight
Expected Duration:
Output: Consolidated report with:
learning-summary: Document insights from analysissession-wrap: Wrap up analysis sessiondevelopment
Audit and optimize third-party scripts — analytics, tag managers, chat widgets, embeds — with the right loading strategy, performance budget, facades, and CSP/consent controls. Use when adding a script, when TBT/INP regress, when a GDPR/CCPA consent requirement arises, or before shipping. Not for first-party bundle size (use bundle-optimization) or broad Core Web Vitals diagnosis (use rendering-performance).
development
Apply the Testing Trophy (mostly integration tests with RTL + MSW, sparing E2E with Playwright) and set coverage thresholds. Use before new feature work, after bug fixes, when CI coverage falls below target, or when tests are flaky or break on every refactor. Not for wiring coverage gates + Playwright into the GitHub Actions matrix (use cicd-pipeline) or auditing WCAG a11y compliance (use accessibility-audit).
development
Inventory and prioritize technical debt — TODO/FIXME/HACK, any usage, deprecated APIs, untested logic — with impact × effort matrix. Use at quarter start, before a refactoring sprint, when a new teammate joins, or when feature velocity slows. Not for actually paying down debt (use code-refactoring) or recording a migration approach (use decision-records) — this only inventories and prioritizes.
development
Decision framework for choosing the right state location — URL, server cache, local component, or shared/global store. Use when state-sync bugs appear, prop drilling gets deep (3+ levels), filters/tabs lose state on reload, or quarterly review. Not for form state specifically (use form-ux) or when the state is actually server data (use api-caching-optimization).