deep-strategy
Generate comprehensive multi-approach strategies before execution. Extract domain knowledge, create alternative approaches, identify failure modes, and develop risk-aware plans. Use proactively for complex tasks requiring strategic thinking or when multiple approaches might succeed.
When & Why to Use This Skill
The Deep Strategy skill enables Claude to perform comprehensive pre-execution analysis for complex technical tasks. It focuses on extracting domain knowledge, generating multiple strategic approaches, and conducting rigorous risk assessments to ensure optimal project outcomes. By identifying potential failure modes and defining validation strategies before implementation, it minimizes technical debt and improves the reliability of software engineering and system administration workflows.
Use Cases
- Complex System Refactoring: Evaluating multiple architectural patterns to modernize legacy code while identifying high-risk dependencies and planning rollback procedures.
- New Feature Design: Comparing a straightforward implementation against a high-performance alternative, weighing the pros and cons of each approach before writing code.
- Risk-Aware Deployment Planning: Analyzing potential failure modes in infrastructure changes and developing mitigation strategies for configuration or runtime errors.
- Domain Knowledge Extraction: Surfacing best practices, common pitfalls, and relevant frameworks for unfamiliar technical domains to guide the development process.
| name | deep-strategy |
|---|---|
| description | Generate comprehensive multi-approach strategies before execution. Extract domain knowledge, create alternative approaches, identify failure modes, and develop risk-aware plans. Use proactively for complex tasks requiring strategic thinking or when multiple approaches might succeed. |
| allowed-tools | Read, Grep, Glob |
Deep Strategy Generation
Apex2's strategy generation phase implemented as a Claude Code skill. Focuses on extracting everything the LLM knows about a problem domain before execution.
Instructions
When invoked, perform deep strategic analysis focusing on knowledge extraction and strategic planning:
1. Domain Knowledge Extraction
Surface all relevant knowledge about the task domain:
- What frameworks, libraries, or tools are commonly used?
- What patterns and best practices apply?
- What are typical approaches for this type of problem?
- What common pitfalls should be avoided?
- What are the key decision points?
2. Alternative Approach Generation
Develop 2-3 distinct strategic approaches:
- Approach A: Most straightforward, conventional solution
- Approach B: More sophisticated, potentially better performance
- Approach C: Conservative, minimal change approach
- Each approach should have:
- Step-by-step execution sequence
- Required tools/dependencies
- Expected outcomes
- Risk assessment
3. Failure Mode Analysis
Identify common failure scenarios and remediation strategies:
- Installation/dependency issues
- Configuration problems
- Runtime errors
- Performance bottlenecks
- Security considerations
- Data corruption risks
4. Risk Assessment and Mitigation
For each approach, evaluate:
- Implementation risk (complexity, unfamiliar tech)
- Operational risk (system impact, data loss potential)
- Maintenance risk (long-term support, technical debt)
- Success probability and confidence levels
5. Validation Strategy Planning
Define how success will be verified:
- Test scenarios and expected results
- Performance benchmarks if relevant
- Security validation steps
- Rollback procedures if things go wrong
6. Prerequisites and Dependencies
List everything needed before starting:
- Software versions required
- Configuration files to prepare
- Data sources needed
- Permissions or access requirements
- Environmental setup steps
Category-Specific Strategic Patterns
Software Development Tasks
Consider:
- Testing strategy (unit, integration, e2e)
- Code review requirements
- Documentation needs
- Rollback capability
- Performance implications
Data/ML Tasks
Consider:
- Data validation and quality checks
- Training parameter selection
- Model evaluation metrics
- Resource requirements (CPU/GPU/memory)
- Result interpretability
System Administration Tasks
Consider:
- Backup requirements before changes
- Service maintenance windows
- Monitoring and alerting setup
- Rollback procedures
- Impact on dependent services
Security Operations
Consider:
- Principle of least privilege
- Immutable infrastructure practices
- Audit trail requirements
- Emergency access procedures
- Compliance implications
Strategic Analysis Process
- Use Grep to search for related patterns in existing codebase
- Use Read to examine relevant configuration files, documentation
- Use Glob to discover similar tasks or examples
- Synthesize findings into comprehensive strategic options
- Prioritize approaches based on context and constraints
Output Format
Provide structured strategy output:
Domain Analysis:
- Key patterns: [list]
- Common tools: [list]
- Best practices: [list]
- Critical considerations: [list]
Strategic Approaches:
Approach A: [Brief name]
Description: [what it does]
Steps: [numbered list]
Pros: [advantages]
Cons: [disadvantages]
Risk: [level - Low/Medium/High]
Success Rate: [estimated]
Approach B: [Brief name]
[same structure]
Failure Mode Prevention:
- [issue]: [prevention strategy]
- [issue]: [prevention strategy]
Recommended Strategy:
Primary: Approach [A/B/C] - [reasoning]
Backup: Approach [A/B/C] - [reasoning]
Validation: [how to verify success]
Rollback: [how to undo if needed]
Prerequisites:
Required: [list of must-haves]
Recommended: [list of should-haves]
When to Use
This skill excels when:
- Complex, multi-step problems need solving
- Multiple valid approaches exist
- High-level strategic planning is needed
- Domain expertise needs to be extracted
- Risk assessment is critical
- Best practices should guide the solution
The goal is to think deeply about the problem space before diving into implementation, ensuring the chosen approach is well-considered and positioned for success.