/task
Launches a smart agent to handle complex searches and investigations. Great for large-scale work without eating up context.
> /plugin marketplace add wasabeef/claude-code-cookbookHow it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/task
Context preview
What this command does when you run it.
Launches a smart agent to handle complex searches and investigations. Great for large-scale work without eating up context.
Command definition
task.mdAutonomous agent for research and analysis tasks
Launches a smart agent to handle complex searches and investigations. Great for large-scale work without eating up context.
Usage
# Request Task from Claude
"Investigate [task] using Task"
What Task Does
**Works Independently**
- Combines multiple tools automatically
- Gathers and analyzes step by step
- Puts results together in clear reports
**Saves Context**
- Uses less memory than manual searching
- Searches lots of files efficiently
- Pulls data from outside sources
**Ensures Quality**
- Checks if sources are reliable
- Verifies from different angles
- Fills in missing pieces
Basic Examples
# Complex codebase investigation
"Investigate which files implement this feature using Task"
# Large-scale file search
"Identify configuration file inconsistencies using Task"
# External information collection
"Investigate the latest AI technology trends using Task"
Collaboration with Claude
# Complex problem analysis
"Analyze the cause of memory leaks using Task, including profiling results and logs"
# Dependency investigation
"Investigate vulnerabilities of this npm package using Task"
# Competitor analysis
"Investigate API specifications of competing services using Task"
# Architecture analysis
"Analyze dependencies of this microservice using Task"
Task vs Other Commands
When to Use What
| Command | Main Use Case | Execution Method | Information Collection | | ------------------- | ------------------------------- | --------------------- | -------------------------- | | **Task** | Investigation, analysis, search | Autonomous execution | Multiple sources | | ultrathink | Deep thinking, judgment | Structured thinking | Existing knowledge-focused | | sequential-thinking | Problem-solving, design | Step-by-step thinking | As needed | | plan | Implementation planning | Approval process | Requirement analysis |
Quick Decision Guide
Need to gather info?
├─ Yes → From many places or lots of files?
│ ├─ Yes → **Use Task**
│ └─ No → Just ask normally
└─ No → Need deep thinking?
├─ Yes → Use ultrathink/sequential-thinking
└─ No → Just ask normallyWhen Task Works Best
**Great For**
- Exploring complex codebases (dependencies, architecture)
- Searching many files (patterns, configs)
- Gathering external info (tech trends, libraries)
- Combining data from multiple places (logs, metrics)
- Repetitive investigations (audits, debt checks)
- Big searches that would eat too much context
**Not Great For**
- Simple questions I already know
- Quick one-time tasks
- Things needing back-and-forth discussion
- Design decisions (use plan or thinking commands instead)
Detailed Examples by Category
System Analysis and Investigation
# Complex system analysis
"Identify bottlenecks in the EC site using Task, investigating database, API, and frontend"
# Architecture analysis
"Analyze dependencies of this microservice using Task, including API communication and data flow"
# Technical debt investigation
"Analyze technical debt in legacy code using Task, including refactoring priorities"
Security and Compliance
# Security audit
"Investigate vulnerabilities in this application using Task, based on OWASP Top 10"
# License investigation
"Investigate license issues in project dependencies using Task"
# Configuration file audit
"Identify security configuration inconsistencies using Task, including environment differences"
Performance and Optimization
# Performance analysis
"Identify heavy queries in the application using Task, including execution plans and optimization proposals"
# Resource usage investigation
"Investigate causes of memory leaks using Task, including profiling results and code analysis"
# Bundle size analysis
"Investigate frontend bundle size issues using Task, including optimization suggestions"
External Information Collection
# Technology trend investigation
"Investigate 2026 JavaScript framework trends using Task"
# Competitor analysis
"Investigate API specifications of competing services using Task, including feature comparison table"
# Library evaluation
"Compare state management libraries using Task, including performance and learning costs"
Execution Flow and Quality Assurance
Task Execution Flow
1. Initial Analysis
├─ Decomposition of task and identification of investigation scope
├─ Selection of necessary tools and information sources
└─ Development of execution plan
2. Information Collection
├─ File search and code analysis
├─ Collection of external information
└─ Data structuring
3. Analysis and Integration
├─ Relevance analysis of collected information
├─ Identification of patterns and issues
└─ Verification of hypotheses
4. Reporting and Proposal
├─ Structuring of results
├─ Creation of improvement proposals
└─ Presentation of next actions
Quality Assurance
- **Reliability check of information sources**: Fact confirmation from multiple sources
- **Completeness check**: Verification of no gaps in investigation targets
- **Consistency verification**: Confirmation of consistency in conflicting information
- **Practicality evaluation**: Assessment of feasibility and effectiveness of proposals
Error Handling and Constraints
Common Constraints
- **External API usage limits**: Rate limits and authentication errors
- **Large file processing limits**: Memory and timeout constraints
- **Access permission issues**: Restrictions on file and directory access
Error Handling
- **Partial result reporting**: Analysis with only obtainable information
- **Alternative proposals**: Suggestion of alternative investigation methods under c
Read more
Autonomous agent for research and analysis tasks
Launches a smart agent to handle complex searches and investigations. Great for large-scale work without eating up context.
Usage
# Request Task from Claude "Investigate [task] using Task"
What Task Does
**Works Independently**
- Combines multiple tools automatically
- Gathers and analyzes step by step
- Puts results together in clear reports
**Saves Context**
- Uses less memory than manual searching
- Searches lots of files efficiently
- Pulls data from outside sources
**Ensures Quality**
- Checks if sources are reliable
- Verifies from different angles
- Fills in missing pieces
Basic Examples
# Complex codebase investigation "Investigate which files implement this feature using Task" # Large-scale file search "Identify configuration file inconsistencies using Task" # External information collection "Investigate the latest AI technology trends using Task"
Collaboration with Claude
# Complex problem analysis "Analyze the cause of memory leaks using Task, including profiling results and logs" # Dependency investigation "Investigate vulnerabilities of this npm package using Task" # Competitor analysis "Investigate API specifications of competing services using Task" # Architecture analysis "Analyze dependencies of this microservice using Task"
Task vs Other Commands
When to Use What
| Command | Main Use Case | Execution Method | Information Collection | | ------------------- | ------------------------------- | --------------------- | -------------------------- | | **Task** | Investigation, analysis, search | Autonomous execution | Multiple sources | | ultrathink | Deep thinking, judgment | Structured thinking | Existing knowledge-focused | | sequential-thinking | Problem-solving, design | Step-by-step thinking | As needed | | plan | Implementation planning | Approval process | Requirement analysis |
Quick Decision Guide
Need to gather info?
├─ Yes → From many places or lots of files?
│ ├─ Yes → **Use Task**
│ └─ No → Just ask normally
└─ No → Need deep thinking?
├─ Yes → Use ultrathink/sequential-thinking
└─ No → Just ask normallyWhen Task Works Best
**Great For**
- Exploring complex codebases (dependencies, architecture)
- Searching many files (patterns, configs)
- Gathering external info (tech trends, libraries)
- Combining data from multiple places (logs, metrics)
- Repetitive investigations (audits, debt checks)
- Big searches that would eat too much context
**Not Great For**
- Simple questions I already know
- Quick one-time tasks
- Things needing back-and-forth discussion
- Design decisions (use plan or thinking commands instead)
Detailed Examples by Category
System Analysis and Investigation
# Complex system analysis "Identify bottlenecks in the EC site using Task, investigating database, API, and frontend" # Architecture analysis "Analyze dependencies of this microservice using Task, including API communication and data flow" # Technical debt investigation "Analyze technical debt in legacy code using Task, including refactoring priorities"
Security and Compliance
# Security audit "Investigate vulnerabilities in this application using Task, based on OWASP Top 10" # License investigation "Investigate license issues in project dependencies using Task" # Configuration file audit "Identify security configuration inconsistencies using Task, including environment differences"
Performance and Optimization
# Performance analysis "Identify heavy queries in the application using Task, including execution plans and optimization proposals" # Resource usage investigation "Investigate causes of memory leaks using Task, including profiling results and code analysis" # Bundle size analysis "Investigate frontend bundle size issues using Task, including optimization suggestions"
External Information Collection
# Technology trend investigation "Investigate 2026 JavaScript framework trends using Task" # Competitor analysis "Investigate API specifications of competing services using Task, including feature comparison table" # Library evaluation "Compare state management libraries using Task, including performance and learning costs"
Execution Flow and Quality Assurance
Task Execution Flow
1. Initial Analysis ├─ Decomposition of task and identification of investigation scope ├─ Selection of necessary tools and information sources └─ Development of execution plan 2. Information Collection ├─ File search and code analysis ├─ Collection of external information └─ Data structuring 3. Analysis and Integration ├─ Relevance analysis of collected information ├─ Identification of patterns and issues └─ Verification of hypotheses 4. Reporting and Proposal ├─ Structuring of results ├─ Creation of improvement proposals └─ Presentation of next actions
Quality Assurance
- **Reliability check of information sources**: Fact confirmation from multiple sources
- **Completeness check**: Verification of no gaps in investigation targets
- **Consistency verification**: Confirmation of consistency in conflicting information
- **Practicality evaluation**: Assessment of feasibility and effectiveness of proposals
Error Handling and Constraints
Common Constraints
- **External API usage limits**: Rate limits and authentication errors
- **Large file processing limits**: Memory and timeout constraints
- **Access permission issues**: Restrictions on file and directory access
Error Handling
- **Partial result reporting**: Analysis with only obtainable information
- **Alternative proposals**: Suggestion of alternative investigation methods under c
A collection of commands, roles, and automation scripts for Claude Code. Automate your workflow without unnecessary confirmations, allowing you to focus on what matters.
Repo: wasabeef/claude-code-cookbook
Other commands on claude-code-cookbook.
- /analyze-dependencies
Analyzes your project's dependencies and checks architecture health.
Open command - /analyze-performance
Analyzes application performance from a user experience perspective and quantifies experience improvements from optimizations. Calculates UX scores based on Core Web Vitals and proposes prioritized optimization strategies.
Open command - /check-fact
Verifies if a statement is true by checking your project's code and documentation.
Open command - /check-prompt
A comprehensive collection of best practices for evaluating and improving the quality of prompts for AI Agents. It systematizes knowledge gained from actual prompt improvement processes, covering all important aspects such as ambiguity elimination, information integration,
Open command - /commit-message
Generates commit messages from staged changes (git diff --staged). This command only creates messages and copies them to your clipboard—it doesn't run any git commands.
Open command - /context7
Searches technical documentation using MCP's Context7.
Open command

