| name | predictive-intelligence |
| description | Analyze tasks upfront before execution. Predict task category, identify key files, assess risk level, and detect high-consequence operations. Use proactively when any task description is provided to guide execution strategy. |
| allowed-tools | Read, Grep, Glob |
Predictive Intelligence
Apex2's prediction phase implemented as a Claude Code skill. This skill extracts critical task metadata before any execution begins.
Instructions
When invoked (either explicitly or automatically by Claude), perform these sequential analyses:
1. Task Categorization
Analyze the task description to determine:
- Primary category: ML/DL, Web Development, Data Analysis, Security, System Admin, DevOps, etc.
- Complexity level: Simple, Medium, Complex
- Estimated duration: <5min, 5-30min, >30min
- Risk profile: Low (reversible), Medium (potentially disruptive), High (irreversible/dangerous)
2. Key File Identification
Extract specific file/folder mentions from the task:
- Explicit file names mentioned
- Implicit file patterns based on task type
- Critical configuration files
- Test files that may need updating
3. Risk Assessment
Identify potential high-consequence operations:
rm -rf or destructive commands
- Database migrations or data deletion
- System configuration changes
- Network service modifications
- Security credential changes