create-raffles-it 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +214 -0
- package/agents/.agents +105 -0
- package/agents/backend-specialist/agent.yaml +21 -0
- package/agents/backend-specialist/prompt.md +255 -0
- package/agents/code-archaeologist/agent.yaml +13 -0
- package/agents/code-archaeologist/prompt.md +98 -0
- package/agents/database-architect/agent.yaml +13 -0
- package/agents/database-architect/prompt.md +218 -0
- package/agents/debugger/agent.yaml +7 -0
- package/agents/debugger/prompt.md +219 -0
- package/agents/devops-engineer/agent.yaml +16 -0
- package/agents/devops-engineer/prompt.md +234 -0
- package/agents/documentation-writer/agent.yaml +13 -0
- package/agents/documentation-writer/prompt.md +96 -0
- package/agents/explorer-agent/agent.yaml +16 -0
- package/agents/explorer-agent/prompt.md +65 -0
- package/agents/frontend-specialist/agent.yaml +17 -0
- package/agents/frontend-specialist/prompt.md +585 -0
- package/agents/orchestrator/agent.yaml +21 -0
- package/agents/orchestrator/prompt.md +408 -0
- package/agents/penetration-tester/agent.yaml +15 -0
- package/agents/penetration-tester/prompt.md +180 -0
- package/agents/performance-optimizer/agent.yaml +13 -0
- package/agents/performance-optimizer/prompt.md +179 -0
- package/agents/product-manager/agent.yaml +12 -0
- package/agents/product-manager/prompt.md +104 -0
- package/agents/product-owner/agent.yaml +12 -0
- package/agents/product-owner/prompt.md +87 -0
- package/agents/project-planner/agent.yaml +13 -0
- package/agents/project-planner/prompt.md +397 -0
- package/agents/qa-automation-engineer/agent.yaml +16 -0
- package/agents/qa-automation-engineer/prompt.md +95 -0
- package/agents/security-auditor/agent.yaml +15 -0
- package/agents/security-auditor/prompt.md +162 -0
- package/agents/seo-specialist/agent.yaml +13 -0
- package/agents/seo-specialist/prompt.md +103 -0
- package/agents/test-engineer/agent.yaml +17 -0
- package/agents/test-engineer/prompt.md +150 -0
- package/bin/commands/help.js +19 -0
- package/bin/commands/init.js +125 -0
- package/bin/commands/list.js +40 -0
- package/bin/index.js +44 -0
- package/bin/utils/logger.js +32 -0
- package/bin/utils/scaffold.js +114 -0
- package/configs/mcp_config.json +24 -0
- package/configs/model.yaml +20 -0
- package/configs/runtime.yaml +22 -0
- package/package.json +56 -0
- package/prompts/planning.md +31 -0
- package/prompts/reflection.md +21 -0
- package/prompts/system.md +24 -0
- package/rules/GEMINI.md +273 -0
- package/skills/api-patterns/SKILL.md +81 -0
- package/skills/api-patterns/api-style.md +42 -0
- package/skills/api-patterns/auth.md +24 -0
- package/skills/api-patterns/documentation.md +26 -0
- package/skills/api-patterns/graphql.md +41 -0
- package/skills/api-patterns/rate-limiting.md +31 -0
- package/skills/api-patterns/response.md +37 -0
- package/skills/api-patterns/rest.md +40 -0
- package/skills/api-patterns/scripts/api_validator.py +211 -0
- package/skills/api-patterns/security-testing.md +122 -0
- package/skills/api-patterns/skill.yaml +3 -0
- package/skills/api-patterns/trpc.md +41 -0
- package/skills/api-patterns/versioning.md +22 -0
- package/skills/architecture/SKILL.md +55 -0
- package/skills/architecture/context-discovery.md +43 -0
- package/skills/architecture/examples.md +94 -0
- package/skills/architecture/pattern-selection.md +68 -0
- package/skills/architecture/patterns-reference.md +50 -0
- package/skills/architecture/skill.yaml +3 -0
- package/skills/architecture/trade-off-analysis.md +77 -0
- package/skills/brainstorming/SKILL.md +163 -0
- package/skills/brainstorming/dynamic-questioning.md +350 -0
- package/skills/brainstorming/skill.yaml +3 -0
- package/skills/clean-code/SKILL.md +201 -0
- package/skills/clean-code/skill.yaml +3 -0
- package/skills/code-review-checklist/SKILL.md +109 -0
- package/skills/code-review-checklist/skill.yaml +3 -0
- package/skills/database-design/SKILL.md +52 -0
- package/skills/database-design/database-selection.md +43 -0
- package/skills/database-design/indexing.md +39 -0
- package/skills/database-design/migrations.md +48 -0
- package/skills/database-design/optimization.md +36 -0
- package/skills/database-design/orm-selection.md +30 -0
- package/skills/database-design/schema-design.md +56 -0
- package/skills/database-design/scripts/schema_validator.py +172 -0
- package/skills/database-design/skill.yaml +3 -0
- package/skills/frontend-design/SKILL.md +452 -0
- package/skills/frontend-design/animation-guide.md +331 -0
- package/skills/frontend-design/color-system.md +311 -0
- package/skills/frontend-design/decision-trees.md +418 -0
- package/skills/frontend-design/motion-graphics.md +306 -0
- package/skills/frontend-design/scripts/accessibility_checker.py +183 -0
- package/skills/frontend-design/scripts/ux_audit.py +722 -0
- package/skills/frontend-design/skill.yaml +3 -0
- package/skills/frontend-design/typography-system.md +345 -0
- package/skills/frontend-design/ux-psychology.md +1116 -0
- package/skills/frontend-design/visual-effects.md +383 -0
- package/skills/mcp-builder/SKILL.md +176 -0
- package/skills/mcp-builder/skill.yaml +3 -0
- package/skills/nextjs-react-expert/1-async-eliminating-waterfalls.md +351 -0
- package/skills/nextjs-react-expert/2-bundle-bundle-size-optimization.md +240 -0
- package/skills/nextjs-react-expert/3-server-server-side-performance.md +490 -0
- package/skills/nextjs-react-expert/4-client-client-side-data-fetching.md +264 -0
- package/skills/nextjs-react-expert/5-rerender-re-render-optimization.md +581 -0
- package/skills/nextjs-react-expert/6-rendering-rendering-performance.md +432 -0
- package/skills/nextjs-react-expert/7-js-javascript-performance.md +684 -0
- package/skills/nextjs-react-expert/8-advanced-advanced-patterns.md +150 -0
- package/skills/nextjs-react-expert/9-cache-components.md +103 -0
- package/skills/nextjs-react-expert/SKILL.md +293 -0
- package/skills/nextjs-react-expert/scripts/convert_rules.py +222 -0
- package/skills/nextjs-react-expert/scripts/react_performance_checker.py +252 -0
- package/skills/nextjs-react-expert/skill.yaml +3 -0
- package/skills/nodejs-best-practices/SKILL.md +333 -0
- package/skills/nodejs-best-practices/skill.yaml +3 -0
- package/skills/parallel-agents/SKILL.md +175 -0
- package/skills/parallel-agents/skill.yaml +3 -0
- package/skills/powershell-windows/SKILL.md +167 -0
- package/skills/powershell-windows/skill.yaml +3 -0
- package/skills/python-patterns/SKILL.md +441 -0
- package/skills/python-patterns/skill.yaml +3 -0
- package/skills/seo-fundamentals/SKILL.md +129 -0
- package/skills/seo-fundamentals/scripts/seo_checker.py +219 -0
- package/skills/seo-fundamentals/skill.yaml +3 -0
- package/skills/systematic-debugging/SKILL.md +109 -0
- package/skills/systematic-debugging/skill.yaml +3 -0
- package/skills/tdd-workflow/SKILL.md +149 -0
- package/skills/tdd-workflow/skill.yaml +3 -0
- package/skills/vulnerability-scanner/SKILL.md +276 -0
- package/skills/vulnerability-scanner/checklists.md +121 -0
- package/skills/vulnerability-scanner/scripts/security_scan.py +458 -0
- package/skills/vulnerability-scanner/skill.yaml +3 -0
- package/skills/web-design-guidelines/SKILL.md +57 -0
- package/skills/web-design-guidelines/skill.yaml +3 -0
- package/skills/webapp-testing/SKILL.md +187 -0
- package/skills/webapp-testing/scripts/playwright_runner.py +173 -0
- package/skills/webapp-testing/skill.yaml +3 -0
- package/workflows/brainstorm.md +113 -0
- package/workflows/create.md +59 -0
- package/workflows/debug.md +103 -0
- package/workflows/deploy.md +176 -0
- package/workflows/enhance.md +63 -0
- package/workflows/orchestrate.md +237 -0
- package/workflows/plan.md +89 -0
- package/workflows/preview.md +81 -0
- package/workflows/status.md +86 -0
- package/workflows/test.md +144 -0
- package/workflows/ui-ux-pro-max.md +296 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# Pattern Selection Guidelines
|
|
2
|
+
|
|
3
|
+
> Decision trees for choosing architectural patterns.
|
|
4
|
+
|
|
5
|
+
## Main Decision Tree
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
START: What's your MAIN concern?
|
|
9
|
+
|
|
10
|
+
ββ Data Access Complexity?
|
|
11
|
+
β ββ HIGH (complex queries, testing needed)
|
|
12
|
+
β β β Repository Pattern + Unit of Work
|
|
13
|
+
β β VALIDATE: Will data source change frequently?
|
|
14
|
+
β β ββ YES β Repository worth the indirection
|
|
15
|
+
β β ββ NO β Consider simpler ORM direct access
|
|
16
|
+
β ββ LOW (simple CRUD, single database)
|
|
17
|
+
β β ORM directly (Prisma, Drizzle)
|
|
18
|
+
β Simpler = Better, Faster
|
|
19
|
+
β
|
|
20
|
+
ββ Business Rules Complexity?
|
|
21
|
+
β ββ HIGH (domain logic, rules vary by context)
|
|
22
|
+
β β β Domain-Driven Design
|
|
23
|
+
β β VALIDATE: Do you have domain experts on team?
|
|
24
|
+
β β ββ YES β Full DDD (Aggregates, Value Objects)
|
|
25
|
+
β β ββ NO β Partial DDD (rich entities, clear boundaries)
|
|
26
|
+
β ββ LOW (mostly CRUD, simple validation)
|
|
27
|
+
β β Transaction Script pattern
|
|
28
|
+
β Simpler = Better, Faster
|
|
29
|
+
β
|
|
30
|
+
ββ Independent Scaling Needed?
|
|
31
|
+
β ββ YES (different components scale differently)
|
|
32
|
+
β β β Microservices WORTH the complexity
|
|
33
|
+
β β REQUIREMENTS (ALL must be true):
|
|
34
|
+
β β - Clear domain boundaries
|
|
35
|
+
β β - Team > 10 developers
|
|
36
|
+
β β - Different scaling needs per service
|
|
37
|
+
β β IF NOT ALL MET β Modular Monolith instead
|
|
38
|
+
β ββ NO (everything scales together)
|
|
39
|
+
β β Modular Monolith
|
|
40
|
+
β Can extract services later when proven needed
|
|
41
|
+
β
|
|
42
|
+
ββ Real-time Requirements?
|
|
43
|
+
ββ HIGH (immediate updates, multi-user sync)
|
|
44
|
+
β β Event-Driven Architecture
|
|
45
|
+
β β Message Queue (RabbitMQ, Redis, Kafka)
|
|
46
|
+
β VALIDATE: Can you handle eventual consistency?
|
|
47
|
+
β ββ YES β Event-driven valid
|
|
48
|
+
β ββ NO β Synchronous with polling
|
|
49
|
+
ββ LOW (eventual consistency acceptable)
|
|
50
|
+
β Synchronous (REST/GraphQL)
|
|
51
|
+
Simpler = Better, Faster
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## The 3 Questions (Before ANY Pattern)
|
|
55
|
+
|
|
56
|
+
1. **Problem Solved**: What SPECIFIC problem does this pattern solve?
|
|
57
|
+
2. **Simpler Alternative**: Is there a simpler solution?
|
|
58
|
+
3. **Deferred Complexity**: Can we add this LATER when needed?
|
|
59
|
+
|
|
60
|
+
## Red Flags (Anti-patterns)
|
|
61
|
+
|
|
62
|
+
| Pattern | Anti-pattern | Simpler Alternative |
|
|
63
|
+
|---------|-------------|-------------------|
|
|
64
|
+
| Microservices | Premature splitting | Start monolith, extract later |
|
|
65
|
+
| Clean/Hexagonal | Over-abstraction | Concrete first, interfaces later |
|
|
66
|
+
| Event Sourcing | Over-engineering | Append-only audit log |
|
|
67
|
+
| CQRS | Unnecessary complexity | Single model |
|
|
68
|
+
| Repository | YAGNI for simple CRUD | ORM direct access |
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# Architecture Patterns Reference
|
|
2
|
+
|
|
3
|
+
> Quick reference for common patterns with usage guidance.
|
|
4
|
+
|
|
5
|
+
## Data Access Patterns
|
|
6
|
+
|
|
7
|
+
| Pattern | When to Use | When NOT to Use | Complexity |
|
|
8
|
+
|---------|-------------|-----------------|------------|
|
|
9
|
+
| **Active Record** | Simple CRUD, rapid prototyping | Complex queries, multiple sources | Low |
|
|
10
|
+
| **Repository** | Testing needed, multiple sources | Simple CRUD, single database | Medium |
|
|
11
|
+
| **Unit of Work** | Complex transactions | Simple operations | High |
|
|
12
|
+
| **Data Mapper** | Complex domain, performance | Simple CRUD, rapid dev | High |
|
|
13
|
+
|
|
14
|
+
## Domain Logic Patterns
|
|
15
|
+
|
|
16
|
+
| Pattern | When to Use | When NOT to Use | Complexity |
|
|
17
|
+
|---------|-------------|-----------------|------------|
|
|
18
|
+
| **Transaction Script** | Simple CRUD, procedural | Complex business rules | Low |
|
|
19
|
+
| **Table Module** | Record-based logic | Rich behavior needed | Low |
|
|
20
|
+
| **Domain Model** | Complex business logic | Simple CRUD | Medium |
|
|
21
|
+
| **DDD (Full)** | Complex domain, domain experts | Simple domain, no experts | High |
|
|
22
|
+
|
|
23
|
+
## Distributed System Patterns
|
|
24
|
+
|
|
25
|
+
| Pattern | When to Use | When NOT to Use | Complexity |
|
|
26
|
+
|---------|-------------|-----------------|------------|
|
|
27
|
+
| **Modular Monolith** | Small teams, unclear boundaries | Clear contexts, different scales | Medium |
|
|
28
|
+
| **Microservices** | Different scales, large teams | Small teams, simple domain | Very High |
|
|
29
|
+
| **Event-Driven** | Real-time, loose coupling | Simple workflows, strong consistency | High |
|
|
30
|
+
| **CQRS** | Read/write performance diverges | Simple CRUD, same model | High |
|
|
31
|
+
| **Saga** | Distributed transactions | Single database, simple ACID | High |
|
|
32
|
+
|
|
33
|
+
## API Patterns
|
|
34
|
+
|
|
35
|
+
| Pattern | When to Use | When NOT to Use | Complexity |
|
|
36
|
+
|---------|-------------|-----------------|------------|
|
|
37
|
+
| **REST** | Standard CRUD, resources | Real-time, complex queries | Low |
|
|
38
|
+
| **GraphQL** | Flexible queries, multiple clients | Simple CRUD, caching needs | Medium |
|
|
39
|
+
| **gRPC** | Internal services, performance | Public APIs, browser clients | Medium |
|
|
40
|
+
| **WebSocket** | Real-time updates | Simple request/response | Medium |
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## Simplicity Principle
|
|
45
|
+
|
|
46
|
+
**"Start simple, add complexity only when proven necessary."**
|
|
47
|
+
|
|
48
|
+
- You can always add patterns later
|
|
49
|
+
- Removing complexity is MUCH harder than adding it
|
|
50
|
+
- When in doubt, choose simpler option
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# Trade-off Analysis & ADR
|
|
2
|
+
|
|
3
|
+
> Document every architectural decision with trade-offs.
|
|
4
|
+
|
|
5
|
+
## Decision Framework
|
|
6
|
+
|
|
7
|
+
For EACH architectural component, document:
|
|
8
|
+
|
|
9
|
+
```markdown
|
|
10
|
+
## Architecture Decision Record
|
|
11
|
+
|
|
12
|
+
### Context
|
|
13
|
+
- **Problem**: [What problem are we solving?]
|
|
14
|
+
- **Constraints**: [Team size, scale, timeline, budget]
|
|
15
|
+
|
|
16
|
+
### Options Considered
|
|
17
|
+
|
|
18
|
+
| Option | Pros | Cons | Complexity | When Valid |
|
|
19
|
+
|--------|------|------|------------|-----------|
|
|
20
|
+
| Option A | Benefit 1 | Cost 1 | Low | [Conditions] |
|
|
21
|
+
| Option B | Benefit 2 | Cost 2 | High | [Conditions] |
|
|
22
|
+
|
|
23
|
+
### Decision
|
|
24
|
+
**Chosen**: [Option B]
|
|
25
|
+
|
|
26
|
+
### Rationale
|
|
27
|
+
1. [Reason 1 - tied to constraints]
|
|
28
|
+
2. [Reason 2 - tied to requirements]
|
|
29
|
+
|
|
30
|
+
### Trade-offs Accepted
|
|
31
|
+
- [What we're giving up]
|
|
32
|
+
- [Why this is acceptable]
|
|
33
|
+
|
|
34
|
+
### Consequences
|
|
35
|
+
- **Positive**: [Benefits we gain]
|
|
36
|
+
- **Negative**: [Costs/risks we accept]
|
|
37
|
+
- **Mitigation**: [How we'll address negatives]
|
|
38
|
+
|
|
39
|
+
### Revisit Trigger
|
|
40
|
+
- [When to reconsider this decision]
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## ADR Template
|
|
44
|
+
|
|
45
|
+
```markdown
|
|
46
|
+
# ADR-[XXX]: [Decision Title]
|
|
47
|
+
|
|
48
|
+
## Status
|
|
49
|
+
Proposed | Accepted | Deprecated | Superseded by [ADR-YYY]
|
|
50
|
+
|
|
51
|
+
## Context
|
|
52
|
+
[What problem? What constraints?]
|
|
53
|
+
|
|
54
|
+
## Decision
|
|
55
|
+
[What we chose - be specific]
|
|
56
|
+
|
|
57
|
+
## Rationale
|
|
58
|
+
[Why - tie to requirements and constraints]
|
|
59
|
+
|
|
60
|
+
## Trade-offs
|
|
61
|
+
[What we're giving up - be honest]
|
|
62
|
+
|
|
63
|
+
## Consequences
|
|
64
|
+
- **Positive**: [Benefits]
|
|
65
|
+
- **Negative**: [Costs]
|
|
66
|
+
- **Mitigation**: [How to address]
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## ADR Storage
|
|
70
|
+
|
|
71
|
+
```
|
|
72
|
+
docs/
|
|
73
|
+
βββ architecture/
|
|
74
|
+
βββ adr-001-use-nextjs.md
|
|
75
|
+
βββ adr-002-postgresql-over-mongodb.md
|
|
76
|
+
βββ adr-003-adopt-repository-pattern.md
|
|
77
|
+
```
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: brainstorming
|
|
3
|
+
description: Socratic questioning protocol + user communication. MANDATORY for complex requests, new features, or unclear requirements. Includes progress reporting and error handling.
|
|
4
|
+
allowed-tools: Read, Glob, Grep
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Brainstorming & Communication Protocol
|
|
8
|
+
|
|
9
|
+
> **MANDATORY:** Use for complex/vague requests, new features, updates.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## π SOCRATIC GATE (ENFORCEMENT)
|
|
14
|
+
|
|
15
|
+
### When to Trigger
|
|
16
|
+
|
|
17
|
+
| Pattern | Action |
|
|
18
|
+
|---------|--------|
|
|
19
|
+
| "Build/Create/Make [thing]" without details | π ASK 3 questions |
|
|
20
|
+
| Complex feature or architecture | π Clarify before implementing |
|
|
21
|
+
| Update/change request | π Confirm scope |
|
|
22
|
+
| Vague requirements | π Ask purpose, users, constraints |
|
|
23
|
+
|
|
24
|
+
### π« MANDATORY: 3 Questions Before Implementation
|
|
25
|
+
|
|
26
|
+
1. **STOP** - Do NOT start coding
|
|
27
|
+
2. **ASK** - Minimum 3 questions:
|
|
28
|
+
- π― Purpose: What problem are you solving?
|
|
29
|
+
- π₯ Users: Who will use this?
|
|
30
|
+
- π¦ Scope: Must-have vs nice-to-have?
|
|
31
|
+
3. **WAIT** - Get response before proceeding
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
## π§ Dynamic Question Generation
|
|
36
|
+
|
|
37
|
+
**β NEVER use static templates.** Read `dynamic-questioning.md` for principles.
|
|
38
|
+
|
|
39
|
+
### Core Principles
|
|
40
|
+
|
|
41
|
+
| Principle | Meaning |
|
|
42
|
+
|-----------|---------|
|
|
43
|
+
| **Questions Reveal Consequences** | Each question connects to an architectural decision |
|
|
44
|
+
| **Context Before Content** | Understand greenfield/feature/refactor/debug context first |
|
|
45
|
+
| **Minimum Viable Questions** | Each question must eliminate implementation paths |
|
|
46
|
+
| **Generate Data, Not Assumptions** | Don't guessβask with trade-offs |
|
|
47
|
+
|
|
48
|
+
### Question Generation Process
|
|
49
|
+
|
|
50
|
+
```
|
|
51
|
+
1. Parse request β Extract domain, features, scale indicators
|
|
52
|
+
2. Identify decision points β Blocking vs. deferable
|
|
53
|
+
3. Generate questions β Priority: P0 (blocking) > P1 (high-leverage) > P2 (nice-to-have)
|
|
54
|
+
4. Format with trade-offs β What, Why, Options, Default
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### Question Format (MANDATORY)
|
|
58
|
+
|
|
59
|
+
```markdown
|
|
60
|
+
### [PRIORITY] **[DECISION POINT]**
|
|
61
|
+
|
|
62
|
+
**Question:** [Clear question]
|
|
63
|
+
|
|
64
|
+
**Why This Matters:**
|
|
65
|
+
- [Architectural consequence]
|
|
66
|
+
- [Affects: cost/complexity/timeline/scale]
|
|
67
|
+
|
|
68
|
+
**Options:**
|
|
69
|
+
| Option | Pros | Cons | Best For |
|
|
70
|
+
|--------|------|------|----------|
|
|
71
|
+
| A | [+] | [-] | [Use case] |
|
|
72
|
+
|
|
73
|
+
**If Not Specified:** [Default + rationale]
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
**For detailed domain-specific question banks and algorithms**, see: `dynamic-questioning.md`
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
## Progress Reporting (PRINCIPLE-BASED)
|
|
81
|
+
|
|
82
|
+
**PRINCIPLE:** Transparency builds trust. Status must be visible and actionable.
|
|
83
|
+
|
|
84
|
+
### Status Board Format
|
|
85
|
+
|
|
86
|
+
| Agent | Status | Current Task | Progress |
|
|
87
|
+
|-------|--------|--------------|----------|
|
|
88
|
+
| [Agent Name] | β
πβ³ββ οΈ | [Task description] | [% or count] |
|
|
89
|
+
|
|
90
|
+
### Status Icons
|
|
91
|
+
|
|
92
|
+
| Icon | Meaning | Usage |
|
|
93
|
+
|------|---------|-------|
|
|
94
|
+
| β
| Completed | Task finished successfully |
|
|
95
|
+
| π | Running | Currently executing |
|
|
96
|
+
| β³ | Waiting | Blocked, waiting for dependency |
|
|
97
|
+
| β | Error | Failed, needs attention |
|
|
98
|
+
| β οΈ | Warning | Potential issue, not blocking |
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
|
|
102
|
+
## Error Handling (PRINCIPLE-BASED)
|
|
103
|
+
|
|
104
|
+
**PRINCIPLE:** Errors are opportunities for clear communication.
|
|
105
|
+
|
|
106
|
+
### Error Response Pattern
|
|
107
|
+
|
|
108
|
+
```
|
|
109
|
+
1. Acknowledge the error
|
|
110
|
+
2. Explain what happened (user-friendly)
|
|
111
|
+
3. Offer specific solutions with trade-offs
|
|
112
|
+
4. Ask user to choose or provide alternative
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
### Error Categories
|
|
116
|
+
|
|
117
|
+
| Category | Response Strategy |
|
|
118
|
+
|----------|-------------------|
|
|
119
|
+
| **Port Conflict** | Offer alternative port or close existing |
|
|
120
|
+
| **Dependency Missing** | Auto-install or ask permission |
|
|
121
|
+
| **Build Failure** | Show specific error + suggested fix |
|
|
122
|
+
| **Unclear Error** | Ask for specifics: screenshot, console output |
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
## Completion Message (PRINCIPLE-BASED)
|
|
127
|
+
|
|
128
|
+
**PRINCIPLE:** Celebrate success, guide next steps.
|
|
129
|
+
|
|
130
|
+
### Completion Structure
|
|
131
|
+
|
|
132
|
+
```
|
|
133
|
+
1. Success confirmation (celebrate briefly)
|
|
134
|
+
2. Summary of what was done (concrete)
|
|
135
|
+
3. How to verify/test (actionable)
|
|
136
|
+
4. Next steps suggestion (proactive)
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
---
|
|
140
|
+
|
|
141
|
+
## Communication Principles
|
|
142
|
+
|
|
143
|
+
| Principle | Implementation |
|
|
144
|
+
|-----------|----------------|
|
|
145
|
+
| **Concise** | No unnecessary details, get to point |
|
|
146
|
+
| **Visual** | Use emojis (β
πβ³β) for quick scanning |
|
|
147
|
+
| **Specific** | "~2 minutes" not "wait a bit" |
|
|
148
|
+
| **Alternatives** | Offer multiple paths when stuck |
|
|
149
|
+
| **Proactive** | Suggest next step after completion |
|
|
150
|
+
|
|
151
|
+
---
|
|
152
|
+
|
|
153
|
+
## Anti-Patterns (AVOID)
|
|
154
|
+
|
|
155
|
+
| Anti-Pattern | Why |
|
|
156
|
+
|--------------|-----|
|
|
157
|
+
| Jumping to solutions before understanding | Wastes time on wrong problem |
|
|
158
|
+
| Assuming requirements without asking | Creates wrong output |
|
|
159
|
+
| Over-engineering first version | Delays value delivery |
|
|
160
|
+
| Ignoring constraints | Creates unusable solutions |
|
|
161
|
+
| "I think" phrases | Uncertainty β Ask instead |
|
|
162
|
+
|
|
163
|
+
---
|