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.
Files changed (150) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +214 -0
  3. package/agents/.agents +105 -0
  4. package/agents/backend-specialist/agent.yaml +21 -0
  5. package/agents/backend-specialist/prompt.md +255 -0
  6. package/agents/code-archaeologist/agent.yaml +13 -0
  7. package/agents/code-archaeologist/prompt.md +98 -0
  8. package/agents/database-architect/agent.yaml +13 -0
  9. package/agents/database-architect/prompt.md +218 -0
  10. package/agents/debugger/agent.yaml +7 -0
  11. package/agents/debugger/prompt.md +219 -0
  12. package/agents/devops-engineer/agent.yaml +16 -0
  13. package/agents/devops-engineer/prompt.md +234 -0
  14. package/agents/documentation-writer/agent.yaml +13 -0
  15. package/agents/documentation-writer/prompt.md +96 -0
  16. package/agents/explorer-agent/agent.yaml +16 -0
  17. package/agents/explorer-agent/prompt.md +65 -0
  18. package/agents/frontend-specialist/agent.yaml +17 -0
  19. package/agents/frontend-specialist/prompt.md +585 -0
  20. package/agents/orchestrator/agent.yaml +21 -0
  21. package/agents/orchestrator/prompt.md +408 -0
  22. package/agents/penetration-tester/agent.yaml +15 -0
  23. package/agents/penetration-tester/prompt.md +180 -0
  24. package/agents/performance-optimizer/agent.yaml +13 -0
  25. package/agents/performance-optimizer/prompt.md +179 -0
  26. package/agents/product-manager/agent.yaml +12 -0
  27. package/agents/product-manager/prompt.md +104 -0
  28. package/agents/product-owner/agent.yaml +12 -0
  29. package/agents/product-owner/prompt.md +87 -0
  30. package/agents/project-planner/agent.yaml +13 -0
  31. package/agents/project-planner/prompt.md +397 -0
  32. package/agents/qa-automation-engineer/agent.yaml +16 -0
  33. package/agents/qa-automation-engineer/prompt.md +95 -0
  34. package/agents/security-auditor/agent.yaml +15 -0
  35. package/agents/security-auditor/prompt.md +162 -0
  36. package/agents/seo-specialist/agent.yaml +13 -0
  37. package/agents/seo-specialist/prompt.md +103 -0
  38. package/agents/test-engineer/agent.yaml +17 -0
  39. package/agents/test-engineer/prompt.md +150 -0
  40. package/bin/commands/help.js +19 -0
  41. package/bin/commands/init.js +125 -0
  42. package/bin/commands/list.js +40 -0
  43. package/bin/index.js +44 -0
  44. package/bin/utils/logger.js +32 -0
  45. package/bin/utils/scaffold.js +114 -0
  46. package/configs/mcp_config.json +24 -0
  47. package/configs/model.yaml +20 -0
  48. package/configs/runtime.yaml +22 -0
  49. package/package.json +56 -0
  50. package/prompts/planning.md +31 -0
  51. package/prompts/reflection.md +21 -0
  52. package/prompts/system.md +24 -0
  53. package/rules/GEMINI.md +273 -0
  54. package/skills/api-patterns/SKILL.md +81 -0
  55. package/skills/api-patterns/api-style.md +42 -0
  56. package/skills/api-patterns/auth.md +24 -0
  57. package/skills/api-patterns/documentation.md +26 -0
  58. package/skills/api-patterns/graphql.md +41 -0
  59. package/skills/api-patterns/rate-limiting.md +31 -0
  60. package/skills/api-patterns/response.md +37 -0
  61. package/skills/api-patterns/rest.md +40 -0
  62. package/skills/api-patterns/scripts/api_validator.py +211 -0
  63. package/skills/api-patterns/security-testing.md +122 -0
  64. package/skills/api-patterns/skill.yaml +3 -0
  65. package/skills/api-patterns/trpc.md +41 -0
  66. package/skills/api-patterns/versioning.md +22 -0
  67. package/skills/architecture/SKILL.md +55 -0
  68. package/skills/architecture/context-discovery.md +43 -0
  69. package/skills/architecture/examples.md +94 -0
  70. package/skills/architecture/pattern-selection.md +68 -0
  71. package/skills/architecture/patterns-reference.md +50 -0
  72. package/skills/architecture/skill.yaml +3 -0
  73. package/skills/architecture/trade-off-analysis.md +77 -0
  74. package/skills/brainstorming/SKILL.md +163 -0
  75. package/skills/brainstorming/dynamic-questioning.md +350 -0
  76. package/skills/brainstorming/skill.yaml +3 -0
  77. package/skills/clean-code/SKILL.md +201 -0
  78. package/skills/clean-code/skill.yaml +3 -0
  79. package/skills/code-review-checklist/SKILL.md +109 -0
  80. package/skills/code-review-checklist/skill.yaml +3 -0
  81. package/skills/database-design/SKILL.md +52 -0
  82. package/skills/database-design/database-selection.md +43 -0
  83. package/skills/database-design/indexing.md +39 -0
  84. package/skills/database-design/migrations.md +48 -0
  85. package/skills/database-design/optimization.md +36 -0
  86. package/skills/database-design/orm-selection.md +30 -0
  87. package/skills/database-design/schema-design.md +56 -0
  88. package/skills/database-design/scripts/schema_validator.py +172 -0
  89. package/skills/database-design/skill.yaml +3 -0
  90. package/skills/frontend-design/SKILL.md +452 -0
  91. package/skills/frontend-design/animation-guide.md +331 -0
  92. package/skills/frontend-design/color-system.md +311 -0
  93. package/skills/frontend-design/decision-trees.md +418 -0
  94. package/skills/frontend-design/motion-graphics.md +306 -0
  95. package/skills/frontend-design/scripts/accessibility_checker.py +183 -0
  96. package/skills/frontend-design/scripts/ux_audit.py +722 -0
  97. package/skills/frontend-design/skill.yaml +3 -0
  98. package/skills/frontend-design/typography-system.md +345 -0
  99. package/skills/frontend-design/ux-psychology.md +1116 -0
  100. package/skills/frontend-design/visual-effects.md +383 -0
  101. package/skills/mcp-builder/SKILL.md +176 -0
  102. package/skills/mcp-builder/skill.yaml +3 -0
  103. package/skills/nextjs-react-expert/1-async-eliminating-waterfalls.md +351 -0
  104. package/skills/nextjs-react-expert/2-bundle-bundle-size-optimization.md +240 -0
  105. package/skills/nextjs-react-expert/3-server-server-side-performance.md +490 -0
  106. package/skills/nextjs-react-expert/4-client-client-side-data-fetching.md +264 -0
  107. package/skills/nextjs-react-expert/5-rerender-re-render-optimization.md +581 -0
  108. package/skills/nextjs-react-expert/6-rendering-rendering-performance.md +432 -0
  109. package/skills/nextjs-react-expert/7-js-javascript-performance.md +684 -0
  110. package/skills/nextjs-react-expert/8-advanced-advanced-patterns.md +150 -0
  111. package/skills/nextjs-react-expert/9-cache-components.md +103 -0
  112. package/skills/nextjs-react-expert/SKILL.md +293 -0
  113. package/skills/nextjs-react-expert/scripts/convert_rules.py +222 -0
  114. package/skills/nextjs-react-expert/scripts/react_performance_checker.py +252 -0
  115. package/skills/nextjs-react-expert/skill.yaml +3 -0
  116. package/skills/nodejs-best-practices/SKILL.md +333 -0
  117. package/skills/nodejs-best-practices/skill.yaml +3 -0
  118. package/skills/parallel-agents/SKILL.md +175 -0
  119. package/skills/parallel-agents/skill.yaml +3 -0
  120. package/skills/powershell-windows/SKILL.md +167 -0
  121. package/skills/powershell-windows/skill.yaml +3 -0
  122. package/skills/python-patterns/SKILL.md +441 -0
  123. package/skills/python-patterns/skill.yaml +3 -0
  124. package/skills/seo-fundamentals/SKILL.md +129 -0
  125. package/skills/seo-fundamentals/scripts/seo_checker.py +219 -0
  126. package/skills/seo-fundamentals/skill.yaml +3 -0
  127. package/skills/systematic-debugging/SKILL.md +109 -0
  128. package/skills/systematic-debugging/skill.yaml +3 -0
  129. package/skills/tdd-workflow/SKILL.md +149 -0
  130. package/skills/tdd-workflow/skill.yaml +3 -0
  131. package/skills/vulnerability-scanner/SKILL.md +276 -0
  132. package/skills/vulnerability-scanner/checklists.md +121 -0
  133. package/skills/vulnerability-scanner/scripts/security_scan.py +458 -0
  134. package/skills/vulnerability-scanner/skill.yaml +3 -0
  135. package/skills/web-design-guidelines/SKILL.md +57 -0
  136. package/skills/web-design-guidelines/skill.yaml +3 -0
  137. package/skills/webapp-testing/SKILL.md +187 -0
  138. package/skills/webapp-testing/scripts/playwright_runner.py +173 -0
  139. package/skills/webapp-testing/skill.yaml +3 -0
  140. package/workflows/brainstorm.md +113 -0
  141. package/workflows/create.md +59 -0
  142. package/workflows/debug.md +103 -0
  143. package/workflows/deploy.md +176 -0
  144. package/workflows/enhance.md +63 -0
  145. package/workflows/orchestrate.md +237 -0
  146. package/workflows/plan.md +89 -0
  147. package/workflows/preview.md +81 -0
  148. package/workflows/status.md +86 -0
  149. package/workflows/test.md +144 -0
  150. package/workflows/ui-ux-pro-max.md +296 -0
@@ -0,0 +1,187 @@
1
+ ---
2
+ name: webapp-testing
3
+ description: Web application testing principles. E2E, Playwright, deep audit strategies.
4
+ allowed-tools: Read, Write, Edit, Glob, Grep, Bash
5
+ ---
6
+
7
+ # Web App Testing
8
+
9
+ > Discover and test everything. Leave no route untested.
10
+
11
+ ## 🔧 Runtime Scripts
12
+
13
+ **Execute these for automated browser testing:**
14
+
15
+ | Script | Purpose | Usage |
16
+ |--------|---------|-------|
17
+ | `scripts/playwright_runner.py` | Basic browser test | `python scripts/playwright_runner.py https://example.com` |
18
+ | | With screenshot | `python scripts/playwright_runner.py <url> --screenshot` |
19
+ | | Accessibility check | `python scripts/playwright_runner.py <url> --a11y` |
20
+
21
+ **Requires:** `pip install playwright && playwright inst```all chromium`
22
+
23
+ ---
24
+
25
+ ## 1. Deep Audit Approach
26
+
27
+ ### Discovery First
28
+
29
+ | Target | How to Find |
30
+ |--------|-------------|
31
+ | Routes | Scan app/, pages/, router files |
32
+ | API endpoints | Grep for HTTP methods |
33
+ | Components | Find component directories |
34
+ | Features | Read documentation |
35
+
36
+ ### Systematic Testing
37
+
38
+ 1. **Map** - List all routes/APIs
39
+ 2. **Scan** - Verify they respond
40
+ 3. **Test** - Cover critical paths
41
+
42
+ ---
43
+
44
+ ## 2. Testing Pyramid for Web
45
+
46
+ ````
47
+ /\ E2E (Few)
48
+ / \ Critical user flows
49
+ /----\
50
+ / \ Integration (Some)
51
+ /--------\ API, data flow
52
+ / \
53
+ /------------\ Component (Many)
54
+ Individual UI pieces
55
+ ```
56
+
57
+ ---
58
+
59
+ ## 3. E2E Test Principles
60
+
61
+ ### What to Test
62
+
63
+ | Priority | Tests |
64
+ |----------|-------|
65
+ | 1 | Happy path user flows |
66
+ | 2 | Authentication flows |
67
+ | 3 | Critical business actions |
68
+ | 4 | Error handling |
69
+
70
+ ### E2E Best Practices
71
+
72
+ | Practice | Why |
73
+ |----------|-----|
74
+ | Use data-testid | Stable selectors |
75
+ | Wait for elements | Avoid flaky tests |
76
+ | Clean state | Independent tests |
77
+ | Avoid implementation details | Test user behavior |
78
+
79
+ ---
80
+
81
+ ## 4. Playwright Principles
82
+
83
+ ### Core Concepts
84
+
85
+ | Concept | Use |
86
+ |---------|-----|
87
+ | Page Object Model | Encapsulate page logic |
88
+ | Fixtures | Reusable test setup |
89
+ | Assertions | Built-in auto-wait |
90
+ | Trace Viewer | Debug failures |
91
+
92
+ ### Configuration
93
+
94
+ | Setting | Recommendation |
95
+ |---------|----------------|
96
+ | Retries | 2 on CI |
97
+ | Trace | on-first-retry |
98
+ | Screenshots | on-failure |
99
+ | Video | retain-on-failure |
100
+
101
+ ---
102
+
103
+ ## 5. Visual Testing
104
+
105
+ ### When to Use
106
+
107
+ | Scenario | Value |
108
+ |----------|-------|
109
+ | Design system | High |
110
+ | Marketing pages | High |
111
+ | Component library | Medium |
112
+ | Dynamic content | Lower |
113
+
114
+ ### Strategy
115
+
116
+ - Baseline screenshots
117
+ - Compare on changes
118
+ - Review visual diffs
119
+ - Update intentional changes
120
+
121
+ ---
122
+
123
+ ## 6. API Testing Principles
124
+
125
+ ### Coverage Areas
126
+
127
+ | Area | Tests |
128
+ |------|-------|
129
+ | Status codes | 200, 400, 404, 500 |
130
+ | Response shape | Matches schema |
131
+ | Error messages | User-friendly |
132
+ | Edge cases | Empty, large, special chars |
133
+
134
+ ---
135
+
136
+ ## 7. Test Organization
137
+
138
+ ### File Structure
139
+
140
+ ```
141
+ tests/
142
+ ├── e2e/ # Full user flows
143
+ ├── integration/ # API, data
144
+ ├── component/ # UI units
145
+ └── fixtures/ # Shared data
146
+ ```
147
+
148
+ ### Naming Convention
149
+
150
+ | Pattern | Example |
151
+ |---------|---------|
152
+ | Feature-based | `login.spec.ts` |
153
+ | Descriptive | `user-can-checkout.spec.ts` |
154
+
155
+ ---
156
+
157
+ ## 8. CI Integration
158
+
159
+ ### Pipeline Steps
160
+
161
+ 1. Install dependencies
162
+ 2. Install browsers
163
+ 3. Run tests
164
+ 4. Upload artifacts (traces, screenshots)
165
+
166
+ ### Parallelization
167
+
168
+ | Strategy | Use |
169
+ |----------|-----|
170
+ | Per file | Playwright default |
171
+ | Sharding | Large suites |
172
+ | Workers | Multiple browsers |
173
+
174
+ ---
175
+
176
+ ## 9. Anti-Patterns
177
+
178
+ | ❌ Don't | ✅ Do |
179
+ |----------|-------|
180
+ | Test implementation | Test behavior |
181
+ | Hardcode waits | Use auto-wait |
182
+ | Skip cleanup | Isolate tests |
183
+ | Ignore flaky tests | Fix root cause |
184
+
185
+ ---
186
+
187
+ > **Remember:** E2E tests are expensive. Use them for critical paths only.
@@ -0,0 +1,173 @@
1
+ #!/usr/bin/env python3
2
+ """
3
+ Skill: webapp-testing
4
+ Script: playwright_runner.py
5
+ Purpose: Run basic Playwright browser tests
6
+ Usage: python playwright_runner.py <url> [--screenshot]
7
+ Output: JSON with page info, health status, and optional screenshot path
8
+ Note: Requires playwright (pip install playwright && playwright install chromium)
9
+ Screenshots: Saved to system temp directory (auto-cleaned by OS)
10
+ """
11
+ import sys
12
+ import json
13
+ import os
14
+ import tempfile
15
+ from datetime import datetime
16
+
17
+ # Fix Windows console encoding for Unicode output
18
+ try:
19
+ sys.stdout.reconfigure(encoding='utf-8', errors='replace')
20
+ sys.stderr.reconfigure(encoding='utf-8', errors='replace')
21
+ except AttributeError:
22
+ pass # Python < 3.7
23
+
24
+ try:
25
+ from playwright.sync_api import sync_playwright
26
+ PLAYWRIGHT_AVAILABLE = True
27
+ except ImportError:
28
+ PLAYWRIGHT_AVAILABLE = False
29
+
30
+
31
+ def run_basic_test(url: str, take_screenshot: bool = False) -> dict:
32
+ """Run basic browser test on URL."""
33
+ if not PLAYWRIGHT_AVAILABLE:
34
+ return {
35
+ "error": "Playwright not installed",
36
+ "fix": "pip install playwright && playwright install chromium"
37
+ }
38
+
39
+ result = {
40
+ "url": url,
41
+ "timestamp": datetime.now().isoformat(),
42
+ "status": "pending"
43
+ }
44
+
45
+ try:
46
+ with sync_playwright() as p:
47
+ browser = p.chromium.launch(headless=True)
48
+ context = browser.new_context(
49
+ viewport={"width": 1280, "height": 720},
50
+ user_agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"
51
+ )
52
+ page = context.new_page()
53
+
54
+ # Navigate
55
+ response = page.goto(url, wait_until="networkidle", timeout=30000)
56
+
57
+ # Basic info
58
+ result["page"] = {
59
+ "title": page.title(),
60
+ "url": page.url,
61
+ "status_code": response.status if response else None
62
+ }
63
+
64
+ # Health checks
65
+ result["health"] = {
66
+ "loaded": response.ok if response else False,
67
+ "has_title": bool(page.title()),
68
+ "has_h1": page.locator("h1").count() > 0,
69
+ "has_links": page.locator("a").count() > 0,
70
+ "has_images": page.locator("img").count() > 0
71
+ }
72
+
73
+ # Console errors
74
+ console_errors = []
75
+ page.on("console", lambda msg: console_errors.append(msg.text) if msg.type == "error" else None)
76
+
77
+ # Performance metrics
78
+ result["performance"] = {
79
+ "dom_content_loaded": page.evaluate("window.performance.timing.domContentLoadedEventEnd - window.performance.timing.navigationStart"),
80
+ "load_complete": page.evaluate("window.performance.timing.loadEventEnd - window.performance.timing.navigationStart")
81
+ }
82
+
83
+ # Screenshot - uses system temp directory (cross-platform, auto-cleaned)
84
+ if take_screenshot:
85
+ # Cross-platform: Windows=%TEMP%, Linux/macOS=/tmp
86
+ screenshot_dir = os.path.join(tempfile.gettempdir(), "maestro_screenshots")
87
+ os.makedirs(screenshot_dir, exist_ok=True)
88
+ screenshot_path = os.path.join(screenshot_dir, f"screenshot_{datetime.now().strftime('%Y%m%d_%H%M%S')}.png")
89
+ page.screenshot(path=screenshot_path, full_page=True)
90
+ result["screenshot"] = screenshot_path
91
+ result["screenshot_note"] = "Saved to temp directory (auto-cleaned by OS)"
92
+
93
+ # Element counts
94
+ result["elements"] = {
95
+ "links": page.locator("a").count(),
96
+ "buttons": page.locator("button").count(),
97
+ "inputs": page.locator("input").count(),
98
+ "images": page.locator("img").count(),
99
+ "forms": page.locator("form").count()
100
+ }
101
+
102
+ browser.close()
103
+
104
+ result["status"] = "success" if result["health"]["loaded"] else "failed"
105
+ result["summary"] = "[OK] Page loaded successfully" if result["status"] == "success" else "[X] Page failed to load"
106
+
107
+ except Exception as e:
108
+ result["status"] = "error"
109
+ result["error"] = str(e)
110
+ result["summary"] = f"[X] Error: {str(e)[:100]}"
111
+
112
+ return result
113
+
114
+
115
+ def run_accessibility_check(url: str) -> dict:
116
+ """Run basic accessibility check."""
117
+ if not PLAYWRIGHT_AVAILABLE:
118
+ return {"error": "Playwright not installed"}
119
+
120
+ result = {"url": url, "accessibility": {}}
121
+
122
+ try:
123
+ with sync_playwright() as p:
124
+ browser = p.chromium.launch(headless=True)
125
+ page = browser.new_page()
126
+ page.goto(url, wait_until="networkidle", timeout=30000)
127
+
128
+ # Basic a11y checks
129
+ result["accessibility"] = {
130
+ "images_with_alt": page.locator("img[alt]").count(),
131
+ "images_without_alt": page.locator("img:not([alt])").count(),
132
+ "buttons_with_label": page.locator("button[aria-label], button:has-text('')").count(),
133
+ "links_with_text": page.locator("a:has-text('')").count(),
134
+ "form_labels": page.locator("label").count(),
135
+ "headings": {
136
+ "h1": page.locator("h1").count(),
137
+ "h2": page.locator("h2").count(),
138
+ "h3": page.locator("h3").count()
139
+ }
140
+ }
141
+
142
+ browser.close()
143
+ result["status"] = "success"
144
+
145
+ except Exception as e:
146
+ result["status"] = "error"
147
+ result["error"] = str(e)
148
+
149
+ return result
150
+
151
+
152
+ if __name__ == "__main__":
153
+ if len(sys.argv) < 2:
154
+ print(json.dumps({
155
+ "error": "Usage: python playwright_runner.py <url> [--screenshot] [--a11y]",
156
+ "examples": [
157
+ "python playwright_runner.py https://example.com",
158
+ "python playwright_runner.py https://example.com --screenshot",
159
+ "python playwright_runner.py https://example.com --a11y"
160
+ ]
161
+ }, indent=2))
162
+ sys.exit(1)
163
+
164
+ url = sys.argv[1]
165
+ take_screenshot = "--screenshot" in sys.argv
166
+ check_a11y = "--a11y" in sys.argv
167
+
168
+ if check_a11y:
169
+ result = run_accessibility_check(url)
170
+ else:
171
+ result = run_basic_test(url, take_screenshot)
172
+
173
+ print(json.dumps(result, indent=2))
@@ -0,0 +1,3 @@
1
+ name: webapp-testing
2
+ description: Web application testing principles. E2E, Playwright, deep audit strategies.
3
+ version: "1.0"
@@ -0,0 +1,113 @@
1
+ ---
2
+ description: Structured brainstorming for projects and features. Explores multiple options before implementation.
3
+ ---
4
+
5
+ # /brainstorm - Structured Idea Exploration
6
+
7
+ $ARGUMENTS
8
+
9
+ ---
10
+
11
+ ## Purpose
12
+
13
+ This command activates BRAINSTORM mode for structured idea exploration. Use when you need to explore options before committing to an implementation.
14
+
15
+ ---
16
+
17
+ ## Behavior
18
+
19
+ When `/brainstorm` is triggered:
20
+
21
+ 1. **Understand the goal**
22
+ - What problem are we solving?
23
+ - Who is the user?
24
+ - What constraints exist?
25
+
26
+ 2. **Generate options**
27
+ - Provide at least 3 different approaches
28
+ - Each with pros and cons
29
+ - Consider unconventional solutions
30
+
31
+ 3. **Compare and recommend**
32
+ - Summarize tradeoffs
33
+ - Give a recommendation with reasoning
34
+
35
+ ---
36
+
37
+ ## Output Format
38
+
39
+ ```markdown
40
+ ## 🧠 Brainstorm: [Topic]
41
+
42
+ ### Context
43
+ [Brief problem statement]
44
+
45
+ ---
46
+
47
+ ### Option A: [Name]
48
+ [Description]
49
+
50
+ ✅ **Pros:**
51
+ - [benefit 1]
52
+ - [benefit 2]
53
+
54
+ ❌ **Cons:**
55
+ - [drawback 1]
56
+
57
+ 📊 **Effort:** Low | Medium | High
58
+
59
+ ---
60
+
61
+ ### Option B: [Name]
62
+ [Description]
63
+
64
+ ✅ **Pros:**
65
+ - [benefit 1]
66
+
67
+ ❌ **Cons:**
68
+ - [drawback 1]
69
+ - [drawback 2]
70
+
71
+ 📊 **Effort:** Low | Medium | High
72
+
73
+ ---
74
+
75
+ ### Option C: [Name]
76
+ [Description]
77
+
78
+ ✅ **Pros:**
79
+ - [benefit 1]
80
+
81
+ ❌ **Cons:**
82
+ - [drawback 1]
83
+
84
+ 📊 **Effort:** Low | Medium | High
85
+
86
+ ---
87
+
88
+ ## 💡 Recommendation
89
+
90
+ **Option [X]** because [reasoning].
91
+
92
+ What direction would you like to explore?
93
+ ```
94
+
95
+ ---
96
+
97
+ ## Examples
98
+
99
+ ```
100
+ /brainstorm authentication system
101
+ /brainstorm state management for complex form
102
+ /brainstorm database schema for social app
103
+ /brainstorm caching strategy
104
+ ```
105
+
106
+ ---
107
+
108
+ ## Key Principles
109
+
110
+ - **No code** - this is about ideas, not implementation
111
+ - **Visual when helpful** - use diagrams for architecture
112
+ - **Honest tradeoffs** - don't hide complexity
113
+ - **Defer to user** - present options, let them decide
@@ -0,0 +1,59 @@
1
+ ---
2
+ description: Create new application command. Triggers App Builder skill and starts interactive dialogue with user.
3
+ ---
4
+
5
+ # /create - Create Application
6
+
7
+ $ARGUMENTS
8
+
9
+ ---
10
+
11
+ ## Task
12
+
13
+ This command starts a new application creation process.
14
+
15
+ ### Steps:
16
+
17
+ 1. **Request Analysis**
18
+ - Understand what the user wants
19
+ - If information is missing, use `conversation-manager` skill to ask
20
+
21
+ 2. **Project Planning**
22
+ - Use `project-planner` agent for task breakdown
23
+ - Determine tech stack
24
+ - Plan file structure
25
+ - Create plan file and proceed to building
26
+
27
+ 3. **Application Building (After Approval)**
28
+ - Orchestrate with `app-builder` skill
29
+ - Coordinate expert agents:
30
+ - `database-architect` → Schema
31
+ - `backend-specialist` → API
32
+ - `frontend-specialist` → UI
33
+
34
+ 4. **Preview**
35
+ - Start with `auto_preview.py` when complete
36
+ - Present URL to user
37
+
38
+ ---
39
+
40
+ ## Usage Examples
41
+
42
+ ```
43
+ /create blog site
44
+ /create e-commerce app with product listing and cart
45
+ /create todo app
46
+ /create Instagram clone
47
+ /create crm system with customer management
48
+ ```
49
+
50
+ ---
51
+
52
+ ## Before Starting
53
+
54
+ If request is unclear, ask these questions:
55
+ - What type of application?
56
+ - What are the basic features?
57
+ - Who will use it?
58
+
59
+ Use defaults, add details later.
@@ -0,0 +1,103 @@
1
+ ---
2
+ description: Debugging command. Activates DEBUG mode for systematic problem investigation.
3
+ ---
4
+
5
+ # /debug - Systematic Problem Investigation
6
+
7
+ $ARGUMENTS
8
+
9
+ ---
10
+
11
+ ## Purpose
12
+
13
+ This command activates DEBUG mode for systematic investigation of issues, errors, or unexpected behavior.
14
+
15
+ ---
16
+
17
+ ## Behavior
18
+
19
+ When `/debug` is triggered:
20
+
21
+ 1. **Gather information**
22
+ - Error message
23
+ - Reproduction steps
24
+ - Expected vs actual behavior
25
+ - Recent changes
26
+
27
+ 2. **Form hypotheses**
28
+ - List possible causes
29
+ - Order by likelihood
30
+
31
+ 3. **Investigate systematically**
32
+ - Test each hypothesis
33
+ - Check logs, data flow
34
+ - Use elimination method
35
+
36
+ 4. **Fix and prevent**
37
+ - Apply fix
38
+ - Explain root cause
39
+ - Add prevention measures
40
+
41
+ ---
42
+
43
+ ## Output Format
44
+
45
+ ```markdown
46
+ ## 🔍 Debug: [Issue]
47
+
48
+ ### 1. Symptom
49
+ [What's happening]
50
+
51
+ ### 2. Information Gathered
52
+ - Error: `[error message]`
53
+ - File: `[filepath]`
54
+ - Line: [line number]
55
+
56
+ ### 3. Hypotheses
57
+ 1. ❓ [Most likely cause]
58
+ 2. ❓ [Second possibility]
59
+ 3. ❓ [Less likely cause]
60
+
61
+ ### 4. Investigation
62
+
63
+ **Testing hypothesis 1:**
64
+ [What I checked] → [Result]
65
+
66
+ **Testing hypothesis 2:**
67
+ [What I checked] → [Result]
68
+
69
+ ### 5. Root Cause
70
+ 🎯 **[Explanation of why this happened]**
71
+
72
+ ### 6. Fix
73
+ ```[language]
74
+ // Before
75
+ [broken code]
76
+
77
+ // After
78
+ [fixed code]
79
+ ```
80
+
81
+ ### 7. Prevention
82
+ 🛡️ [How to prevent this in the future]
83
+ ```
84
+
85
+ ---
86
+
87
+ ## Examples
88
+
89
+ ```
90
+ /debug login not working
91
+ /debug API returns 500
92
+ /debug form doesn't submit
93
+ /debug data not saving
94
+ ```
95
+
96
+ ---
97
+
98
+ ## Key Principles
99
+
100
+ - **Ask before assuming** - get full error context
101
+ - **Test hypotheses** - don't guess randomly
102
+ - **Explain why** - not just what to fix
103
+ - **Prevent recurrence** - add tests, validation