Our review
This skill deeply investigates a codebase to debug issues, analyze patterns, or identify root causes.
Strengths
- Systematic approach with clear steps
- Can form and test hypotheses
- Supports multiple analysis types (bug, pattern, performance)
- Produces a structured report
Limitations
- Requires a clear problem description
- Depends on available tools (grep, git, logs)
- May be slow on very large codebases
Use this skill when you need to understand a complex bug, analyze a code pattern, or explore architecture.
Avoid using it for quick fixes or simple questions that don't require deep analysis.
Security analysis
SafeThe skill provides a template for code investigation using safe, common commands (grep, find, git, npm test). No destructive or exfiltrating actions are instructed. Bash is allowed but only for investigative tasks; no risky patterns are present.
No concerns found
Examples
Investigate why the login endpoint returns a 500 error when the username contains special characters.Analyze the data flow for the user registration process, focusing on validation and persistence.Investigate why the report generation endpoint is slow when handling more than 1000 records.name: analyse description: Investigate codebase, debug issues, or analyze patterns argument-hint: <issue or area to investigate> user-invocable: true allowed-tools:
- Read
- Grep
- Glob
- Bash
- WebSearch
/analyse - Code Investigation
Investigate codebase issues, debug problems, or analyze patterns.
Purpose
Provide deep analysis by:
- Investigating bugs and issues
- Analyzing code patterns
- Tracing data flow
- Identifying root causes
Inputs
$ARGUMENTS: Issue description or area to investigate${PROJECT_NAME}: Current project context- Error messages or symptoms if debugging
Outputs
Analysis report at reports/analysis/YYYY-MM-DD-topic.md
Workflow
1. Understand the Question
From $ARGUMENTS:
- Is this debugging an issue?
- Is this understanding a pattern?
- Is this exploring code structure?
2. Gather Context
- Read relevant code
- Search for patterns
- Check logs if available
- Review recent changes
3. Form Hypotheses
Based on initial investigation:
- What might cause this?
- What patterns are involved?
- What dependencies matter?
4. Investigate
For each hypothesis:
- Search for evidence
- Trace code paths
- Check data flow
- Test assumptions
5. Analyze Findings
Synthesize discoveries:
- What is the root cause?
- What patterns were found?
- What are the implications?
6. Document
Create analysis report:
# Analysis: [Topic]
**Date**: YYYY-MM-DD
**Scope**: [What was investigated]
**Conclusion**: [Key finding]
---
## Context
[What prompted this investigation]
## Investigation
### Approach
[How the investigation was conducted]
### Findings
#### Finding 1: [Title]
[Description of finding]
**Evidence**:
- [File:line - what was found]
- [Pattern observed]
#### Finding 2: [Title]
[Description]
## Root Cause
[If applicable, the underlying issue]
## Impact
[What this affects]
## Recommendations
1. [Recommendation 1]
2. [Recommendation 2]
## Related
- [Links to related code]
- [Links to docs]
Investigation Patterns
Bug Investigation
- Reproduce the issue
- Identify symptoms
- Trace to source
- Identify root cause
- Propose fix
Pattern Analysis
- Identify pattern instances
- Analyze commonalities
- Note variations
- Document implications
Code Structure Analysis
- Map components
- Trace dependencies
- Identify boundaries
- Document architecture
Performance Analysis
- Identify slow operations
- Profile if possible
- Analyze bottlenecks
- Propose optimizations
Tools for Investigation
# Search for patterns
grep -r "pattern" src/
# Find file types
find . -name "*.ts" -type f
# Git history
git log --oneline --all -- file.ts
git blame file.ts
# Test in isolation
npm test -- --grep "specific test"
Next.js App Router Expert
Development
A skill that turns Claude into a Next.js App Router expert.
README Generator
Development
Creates professional and comprehensive README.md files for your projects.
API Documentation Writer
Development
Generates comprehensive API documentation in OpenAPI/Swagger format.