Loading...
Loading...
Comprehensive code investigation and audit tool. Discovers all project features, then dispatches parallel subagents to analyze issues, risks, dead code, missing functionality, and redundancies. Produces a prioritized risk report. Use this skill when the user asks to "investigate code", "audit project", "find risks", "check code quality", "analyze codebase", "what's wrong with this code", "project health check", "code review entire project", "find dead code", "find redundant code", or any request for a thorough codebase analysis.
npx skill4agent add toilahuongg/shopify-agents-kit code-investigatorsubagent_type=Explore## Feature Inventory
| # | Feature/Module | Files | Description |
|---|---------------|-------|-------------|
| 1 | Authentication | src/auth/* | OAuth + session |
| 2 | Product CRUD | src/products/* | Admin API |
...| Subagent | Type | Focus |
|---|---|---|
| Security Auditor | | Vulnerabilities, injection risks, auth gaps, secret exposure |
| Dead Code Detector | | Unused exports, unreachable code, orphan files, unused dependencies |
| Architecture Reviewer | | Pattern violations, circular deps, coupling issues, missing abstractions |
| Error & Edge Case Analyzer | | Missing error handling, unhandled promises, race conditions |
| Dependency Auditor | | |
| Test Coverage Analyzer | | Missing tests, untested critical paths, test quality |
| Subagent | Type | When |
|---|---|---|
| Performance Profiler | | Web apps, APIs with DB queries |
| TypeScript Strictness | | TS projects with |
| API Contract Checker | | Projects with REST/GraphQL APIs |
| Accessibility Auditor | | Frontend projects |
# Code Investigation Report
**Project:** [name] | **Date:** [date] | **Files Analyzed:** [count]
## Executive Summary
[2-3 sentences: overall health, top concerns, immediate actions needed]
## Critical Findings (Act Immediately)
| # | Finding | Category | File:Line | Impact | Recommendation |
|---|---------|----------|-----------|--------|----------------|
## High Priority
| # | Finding | Category | File:Line | Impact | Recommendation |
|---|---------|----------|-----------|--------|----------------|
## Medium Priority
| # | Finding | Category | File:Line | Impact | Recommendation |
|---|---------|----------|-----------|--------|----------------|
## Low Priority / Improvements
| # | Finding | Category | File:Line | Impact | Recommendation |
|---|---------|----------|-----------|--------|----------------|
## Dead Code & Redundancies
| # | Item | Type | File:Line | Safe to Remove? |
|---|------|------|-----------|-----------------|
## Missing Functionality
| # | Gap | Why It Matters | Suggested Implementation |
|---|-----|----------------|--------------------------|
## Dependency Health
| Package | Current | Latest | Risk | Action |
|---------|---------|--------|------|--------|
## Metrics Summary
- Total findings: X (Critical: X, High: X, Medium: X, Low: X)
- Dead code items: X
- Missing features: X
- Vulnerable dependencies: X