---
description: Optimized creative phase template with progressive documentation
globs: "**/creative*/**", "**/design*/**", "**/decision*/**"
alwaysApply: false
---
# OPTIMIZED CREATIVE PHASE TEMPLATE
> **TL;DR:** This template implements a progressive documentation approach for creative phases, optimizing token usage while maintaining thorough design exploration.
## π PROGRESSIVE DOCUMENTATION MODEL
```mermaid
graph TD
Start["Creative Phase Start"] --> P1["1οΈβ£ PROBLEM<br>Define scope"]
P1 --> P2["2οΈβ£ OPTIONS<br>Explore alternatives"]
P2 --> P3["3οΈβ£ ANALYSIS<br>Evaluate selected options"]
P3 --> P4["4οΈβ£ DECISION<br>Finalize approach"]
P4 --> P5["5οΈβ£ IMPLEMENTATION<br>Document guidelines"]
style Start fill:#d971ff,stroke:#a33bc2,color:white
style P1 fill:#4da6ff,stroke:#0066cc,color:white
style P2 fill:#ffa64d,stroke:#cc7a30,color:white
style P3 fill:#4dbb5f,stroke:#36873f,color:white
style P4 fill:#d94dbb,stroke:#a3378a,color:white
style P5 fill:#4dbbbb,stroke:#368787,color:white
```
## π TEMPLATE STRUCTURE
```markdown
π CREATIVE PHASE START: [Component Name]
βββββββββββββββββββββββββββββββ
1οΈβ£ PROBLEM
Description: [Brief problem description]
Requirements: [Key requirements as bullet points]
Constraints: [Technical or business constraints]
2οΈβ£ OPTIONS
Option A: [Name] - [One-line description]
Option B: [Name] - [One-line description]
Option C: [Name] - [One-line description]
3οΈβ£ ANALYSIS
| Criterion | Option A | Option B | Option C |
|-----------|----------|----------|----------|
| Performance | βββ | ββ | ββββ |
| Complexity | ββ | βββ | ββββ |
| Maintainability | ββββ | βββ | ββ |
Key Insights:
- [Insight 1]
- [Insight 2]
4οΈβ£ DECISION
Selected: [Option X]
Rationale: [Brief justification]
5οΈβ£ IMPLEMENTATION NOTES
- [Implementation note 1]
- [Implementation note 2]
- [Implementation note 3]
βββββββββββββββββββββββββββββββ
π CREATIVE PHASE END
```
## π§© DETAILED OPTION ANALYSIS (ON DEMAND)
Detailed analysis can be provided on demand for selected options:
```markdown
<details>
<summary>Detailed Analysis: Option A</summary>
### Option A: [Full Name]
**Complete Description**:
[Detailed description of how the option works]
**Pros**:
- [Pro 1 with explanation]
- [Pro 2 with explanation]
- [Pro 3 with explanation]
**Cons**:
- [Con 1 with explanation]
- [Con 2 with explanation]
**Implementation Complexity**: [Low/Medium/High]
[Explanation of complexity factors]
**Resource Requirements**:
[Details on resource needs]
**Risk Assessment**:
[Analysis of risks]
</details>
```
## π COMPLEXITY-BASED SCALING
The template automatically scales documentation requirements based on task complexity level:
### Level 1-2 (Quick Fix/Enhancement)
- Simplified problem/solution
- Focus on implementation
- Minimal option exploration
### Level 3 (Feature Development)
- Multiple options required
- Analysis table with key criteria
- Implementation guidelines
### Level 4 (Enterprise Development)
- Comprehensive analysis
- Multiple viewpoints considered
- Detailed implementation plan
- Expanded verification criteria
## β
VERIFICATION PROTOCOL
Quality verification is condensed into a simple checklist:
```markdown
VERIFICATION:
[x] Problem clearly defined
[x] Multiple options considered
[x] Decision made with rationale
[x] Implementation guidance provided
```
## π USAGE EXAMPLES
### Architecture Decision (Level 3)
```markdown
π CREATIVE PHASE START: Authentication System
βββββββββββββββββββββββββββββββ
1οΈβ£ PROBLEM
Description: Design an authentication system for the application
Requirements: Secure, scalable, supports SSO, easy to maintain
Constraints: Must work with existing user database, <100ms response time
2οΈβ£ OPTIONS
Option A: JWT-based stateless auth - Simple token-based approach
Option B: Session-based auth with Redis - Server-side session storage
Option C: OAuth2 implementation - Delegated authorization framework
3οΈβ£ ANALYSIS
| Criterion | JWT | Sessions | OAuth2 |
|-----------|-----|----------|--------|
| Security | βββ | ββββ | βββββ |
| Scalability | βββββ | βββ | ββββ |
| Complexity | ββ | βββ | ββββ |
| Performance | βββββ | βββ | βββ |
Key Insights:
- JWT offers best performance but limited revocation options
- Sessions provide better security control but require more infrastructure
- OAuth2 most complex but offers best integration possibilities
4οΈβ£ DECISION
Selected: Option A: JWT-based auth with refresh tokens
Rationale: Best balance of performance and scalability while meeting security needs
5οΈβ£ IMPLEMENTATION NOTES
- Use HS256 algorithm for token signing
- Implement short-lived access tokens (15min) with longer refresh tokens (7 days)
- Store token blacklist in Redis for revocation capability
- Add rate limiting on token endpoints
βββββββββββββββββββββββββββββββ
π CREATIVE PHASE END
```
### Algorithm Decision (Level 2)
```markdown
π CREATIVE PHASE START: Search Algorithm
βββββββββββββββββββββββββββββββ
1οΈβ£ PROBLEM
Description: Implement efficient text search for product catalog
Requirements: Fast results, support for partial matches, case insensitive
Constraints: Dataset < 10,000 items, must work in browser environment
2οΈβ£ OPTIONS
Option A: Simple regex search - Basic pattern matching
Option B: Trie-based search - Prefix tree structure
Option C: Fuzzy search with Levenshtein - Edit distance algorithm
3οΈβ£ DECISION
Selected: Option B: Trie-based search
Rationale: Best performance for prefix searches with manageable memory usage
4οΈβ£ IMPLEMENTATION NOTES
- Use existing trie library
- Preprocess text to lowercase during indexing
- Implement letter-by-letter search for instant results
- Add debounce (300ms) to prevent excessive rebuilding
βββββββββββββββββββββββββββββββ
π CREATIVE PHASE END
```
## π TOKEN EFFICIENCY BENEFITS
This template significantly reduces token usage by:
1. Focusing on essential information without unnecessary verbosity
2. Using compact tabular formats for comparisons
3. Implementing progressive disclosure for detailed information
4. Scaling documentation requirements by task complexity
5. Using visual indicators (emojis) for quick scanning
The template maintains the rigor of the creative process while improving token efficiency by approximately 60% over the previous format.