@musashishao/agent-kit 1.0.0

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 (220) hide show
  1. package/.agent/.shared/ui-ux-pro-max/data/charts.csv +26 -0
  2. package/.agent/.shared/ui-ux-pro-max/data/colors.csv +97 -0
  3. package/.agent/.shared/ui-ux-pro-max/data/icons.csv +101 -0
  4. package/.agent/.shared/ui-ux-pro-max/data/landing.csv +31 -0
  5. package/.agent/.shared/ui-ux-pro-max/data/products.csv +97 -0
  6. package/.agent/.shared/ui-ux-pro-max/data/prompts.csv +24 -0
  7. package/.agent/.shared/ui-ux-pro-max/data/react-performance.csv +45 -0
  8. package/.agent/.shared/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
  9. package/.agent/.shared/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
  10. package/.agent/.shared/ui-ux-pro-max/data/stacks/jetpack-compose.csv +53 -0
  11. package/.agent/.shared/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
  12. package/.agent/.shared/ui-ux-pro-max/data/stacks/nuxt-ui.csv +51 -0
  13. package/.agent/.shared/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
  14. package/.agent/.shared/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
  15. package/.agent/.shared/ui-ux-pro-max/data/stacks/react.csv +54 -0
  16. package/.agent/.shared/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
  17. package/.agent/.shared/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
  18. package/.agent/.shared/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
  19. package/.agent/.shared/ui-ux-pro-max/data/stacks/vue.csv +50 -0
  20. package/.agent/.shared/ui-ux-pro-max/data/styles.csv +59 -0
  21. package/.agent/.shared/ui-ux-pro-max/data/typography.csv +58 -0
  22. package/.agent/.shared/ui-ux-pro-max/data/ui-reasoning.csv +101 -0
  23. package/.agent/.shared/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
  24. package/.agent/.shared/ui-ux-pro-max/data/web-interface.csv +31 -0
  25. package/.agent/.shared/ui-ux-pro-max/scripts/core.py +258 -0
  26. package/.agent/.shared/ui-ux-pro-max/scripts/design_system.py +487 -0
  27. package/.agent/.shared/ui-ux-pro-max/scripts/search.py +76 -0
  28. package/.agent/ARCHITECTURE.md +225 -0
  29. package/.agent/CONTEXT.md +229 -0
  30. package/.agent/FEATURE_ROADMAP.md +435 -0
  31. package/.agent/PROMPT_TEMPLATES.md +261 -0
  32. package/.agent/agents/backend-specialist.md +263 -0
  33. package/.agent/agents/database-architect.md +226 -0
  34. package/.agent/agents/debugger.md +225 -0
  35. package/.agent/agents/devops-engineer.md +242 -0
  36. package/.agent/agents/documentation-writer.md +104 -0
  37. package/.agent/agents/explorer-agent.md +73 -0
  38. package/.agent/agents/frontend-specialist.md +556 -0
  39. package/.agent/agents/game-developer.md +162 -0
  40. package/.agent/agents/mobile-developer.md +377 -0
  41. package/.agent/agents/orchestrator.md +416 -0
  42. package/.agent/agents/penetration-tester.md +188 -0
  43. package/.agent/agents/performance-optimizer.md +187 -0
  44. package/.agent/agents/project-planner.md +403 -0
  45. package/.agent/agents/security-auditor.md +170 -0
  46. package/.agent/agents/seo-specialist.md +111 -0
  47. package/.agent/agents/test-engineer.md +158 -0
  48. package/.agent/rules/GEMINI.md +251 -0
  49. package/.agent/skills/api-patterns/SKILL.md +81 -0
  50. package/.agent/skills/api-patterns/api-style.md +42 -0
  51. package/.agent/skills/api-patterns/auth.md +24 -0
  52. package/.agent/skills/api-patterns/documentation.md +26 -0
  53. package/.agent/skills/api-patterns/graphql.md +41 -0
  54. package/.agent/skills/api-patterns/rate-limiting.md +31 -0
  55. package/.agent/skills/api-patterns/response.md +37 -0
  56. package/.agent/skills/api-patterns/rest.md +40 -0
  57. package/.agent/skills/api-patterns/scripts/api_validator.py +211 -0
  58. package/.agent/skills/api-patterns/security-testing.md +122 -0
  59. package/.agent/skills/api-patterns/trpc.md +41 -0
  60. package/.agent/skills/api-patterns/versioning.md +22 -0
  61. package/.agent/skills/app-builder/SKILL.md +75 -0
  62. package/.agent/skills/app-builder/agent-coordination.md +71 -0
  63. package/.agent/skills/app-builder/feature-building.md +53 -0
  64. package/.agent/skills/app-builder/project-detection.md +34 -0
  65. package/.agent/skills/app-builder/scaffolding.md +118 -0
  66. package/.agent/skills/app-builder/tech-stack.md +40 -0
  67. package/.agent/skills/app-builder/templates/SKILL.md +39 -0
  68. package/.agent/skills/app-builder/templates/astro-static/TEMPLATE.md +76 -0
  69. package/.agent/skills/app-builder/templates/chrome-extension/TEMPLATE.md +92 -0
  70. package/.agent/skills/app-builder/templates/cli-tool/TEMPLATE.md +88 -0
  71. package/.agent/skills/app-builder/templates/electron-desktop/TEMPLATE.md +88 -0
  72. package/.agent/skills/app-builder/templates/express-api/TEMPLATE.md +83 -0
  73. package/.agent/skills/app-builder/templates/flutter-app/TEMPLATE.md +90 -0
  74. package/.agent/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +90 -0
  75. package/.agent/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +82 -0
  76. package/.agent/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +100 -0
  77. package/.agent/skills/app-builder/templates/nextjs-static/TEMPLATE.md +106 -0
  78. package/.agent/skills/app-builder/templates/nuxt-app/TEMPLATE.md +101 -0
  79. package/.agent/skills/app-builder/templates/python-fastapi/TEMPLATE.md +83 -0
  80. package/.agent/skills/app-builder/templates/react-native-app/TEMPLATE.md +93 -0
  81. package/.agent/skills/architecture/SKILL.md +55 -0
  82. package/.agent/skills/architecture/context-discovery.md +43 -0
  83. package/.agent/skills/architecture/examples.md +94 -0
  84. package/.agent/skills/architecture/pattern-selection.md +68 -0
  85. package/.agent/skills/architecture/patterns-reference.md +50 -0
  86. package/.agent/skills/architecture/trade-off-analysis.md +77 -0
  87. package/.agent/skills/bash-linux/SKILL.md +199 -0
  88. package/.agent/skills/behavioral-modes/SKILL.md +242 -0
  89. package/.agent/skills/brainstorming/SKILL.md +163 -0
  90. package/.agent/skills/brainstorming/dynamic-questioning.md +350 -0
  91. package/.agent/skills/clean-code/SKILL.md +201 -0
  92. package/.agent/skills/code-review-checklist/SKILL.md +109 -0
  93. package/.agent/skills/database-design/SKILL.md +52 -0
  94. package/.agent/skills/database-design/database-selection.md +43 -0
  95. package/.agent/skills/database-design/indexing.md +39 -0
  96. package/.agent/skills/database-design/migrations.md +48 -0
  97. package/.agent/skills/database-design/optimization.md +36 -0
  98. package/.agent/skills/database-design/orm-selection.md +30 -0
  99. package/.agent/skills/database-design/schema-design.md +56 -0
  100. package/.agent/skills/database-design/scripts/schema_validator.py +172 -0
  101. package/.agent/skills/deployment-procedures/SKILL.md +241 -0
  102. package/.agent/skills/doc.md +177 -0
  103. package/.agent/skills/docker-expert/SKILL.md +409 -0
  104. package/.agent/skills/documentation-templates/SKILL.md +194 -0
  105. package/.agent/skills/frontend-design/SKILL.md +396 -0
  106. package/.agent/skills/frontend-design/animation-guide.md +331 -0
  107. package/.agent/skills/frontend-design/color-system.md +311 -0
  108. package/.agent/skills/frontend-design/decision-trees.md +418 -0
  109. package/.agent/skills/frontend-design/motion-graphics.md +306 -0
  110. package/.agent/skills/frontend-design/scripts/accessibility_checker.py +183 -0
  111. package/.agent/skills/frontend-design/scripts/ux_audit.py +722 -0
  112. package/.agent/skills/frontend-design/typography-system.md +345 -0
  113. package/.agent/skills/frontend-design/ux-psychology.md +541 -0
  114. package/.agent/skills/frontend-design/visual-effects.md +383 -0
  115. package/.agent/skills/game-development/2d-games/SKILL.md +119 -0
  116. package/.agent/skills/game-development/3d-games/SKILL.md +135 -0
  117. package/.agent/skills/game-development/SKILL.md +167 -0
  118. package/.agent/skills/game-development/game-art/SKILL.md +185 -0
  119. package/.agent/skills/game-development/game-audio/SKILL.md +190 -0
  120. package/.agent/skills/game-development/game-design/SKILL.md +129 -0
  121. package/.agent/skills/game-development/mobile-games/SKILL.md +108 -0
  122. package/.agent/skills/game-development/multiplayer/SKILL.md +132 -0
  123. package/.agent/skills/game-development/pc-games/SKILL.md +144 -0
  124. package/.agent/skills/game-development/vr-ar/SKILL.md +123 -0
  125. package/.agent/skills/game-development/web-games/SKILL.md +150 -0
  126. package/.agent/skills/geo-fundamentals/SKILL.md +156 -0
  127. package/.agent/skills/geo-fundamentals/scripts/geo_checker.py +289 -0
  128. package/.agent/skills/i18n-localization/SKILL.md +154 -0
  129. package/.agent/skills/i18n-localization/scripts/i18n_checker.py +241 -0
  130. package/.agent/skills/lint-and-validate/SKILL.md +45 -0
  131. package/.agent/skills/lint-and-validate/scripts/lint_runner.py +172 -0
  132. package/.agent/skills/lint-and-validate/scripts/type_coverage.py +173 -0
  133. package/.agent/skills/mcp-builder/SKILL.md +176 -0
  134. package/.agent/skills/mobile-design/SKILL.md +394 -0
  135. package/.agent/skills/mobile-design/decision-trees.md +516 -0
  136. package/.agent/skills/mobile-design/mobile-backend.md +491 -0
  137. package/.agent/skills/mobile-design/mobile-color-system.md +420 -0
  138. package/.agent/skills/mobile-design/mobile-debugging.md +122 -0
  139. package/.agent/skills/mobile-design/mobile-design-thinking.md +357 -0
  140. package/.agent/skills/mobile-design/mobile-navigation.md +458 -0
  141. package/.agent/skills/mobile-design/mobile-performance.md +767 -0
  142. package/.agent/skills/mobile-design/mobile-testing.md +356 -0
  143. package/.agent/skills/mobile-design/mobile-typography.md +433 -0
  144. package/.agent/skills/mobile-design/platform-android.md +666 -0
  145. package/.agent/skills/mobile-design/platform-ios.md +561 -0
  146. package/.agent/skills/mobile-design/scripts/mobile_audit.py +670 -0
  147. package/.agent/skills/mobile-design/touch-psychology.md +537 -0
  148. package/.agent/skills/nestjs-expert/SKILL.md +552 -0
  149. package/.agent/skills/nextjs-best-practices/SKILL.md +203 -0
  150. package/.agent/skills/nodejs-best-practices/SKILL.md +333 -0
  151. package/.agent/skills/parallel-agents/SKILL.md +175 -0
  152. package/.agent/skills/performance-profiling/SKILL.md +143 -0
  153. package/.agent/skills/performance-profiling/scripts/lighthouse_audit.py +76 -0
  154. package/.agent/skills/plan-writing/SKILL.md +152 -0
  155. package/.agent/skills/powershell-windows/SKILL.md +167 -0
  156. package/.agent/skills/prisma-expert/SKILL.md +355 -0
  157. package/.agent/skills/python-patterns/SKILL.md +441 -0
  158. package/.agent/skills/react-patterns/SKILL.md +198 -0
  159. package/.agent/skills/red-team-tactics/SKILL.md +199 -0
  160. package/.agent/skills/seo-fundamentals/SKILL.md +129 -0
  161. package/.agent/skills/seo-fundamentals/scripts/seo_checker.py +219 -0
  162. package/.agent/skills/server-management/SKILL.md +161 -0
  163. package/.agent/skills/systematic-debugging/SKILL.md +109 -0
  164. package/.agent/skills/tailwind-patterns/SKILL.md +269 -0
  165. package/.agent/skills/tdd-workflow/SKILL.md +149 -0
  166. package/.agent/skills/testing-patterns/SKILL.md +178 -0
  167. package/.agent/skills/testing-patterns/scripts/test_runner.py +219 -0
  168. package/.agent/skills/typescript-expert/SKILL.md +429 -0
  169. package/.agent/skills/typescript-expert/references/tsconfig-strict.json +92 -0
  170. package/.agent/skills/typescript-expert/references/typescript-cheatsheet.md +383 -0
  171. package/.agent/skills/typescript-expert/references/utility-types.ts +335 -0
  172. package/.agent/skills/typescript-expert/scripts/ts_diagnostic.py +203 -0
  173. package/.agent/skills/ui-ux-pro-max/SKILL.md +351 -0
  174. package/.agent/skills/ui-ux-pro-max/data/charts.csv +26 -0
  175. package/.agent/skills/ui-ux-pro-max/data/colors.csv +97 -0
  176. package/.agent/skills/ui-ux-pro-max/data/icons.csv +101 -0
  177. package/.agent/skills/ui-ux-pro-max/data/landing.csv +31 -0
  178. package/.agent/skills/ui-ux-pro-max/data/products.csv +97 -0
  179. package/.agent/skills/ui-ux-pro-max/data/prompts.csv +24 -0
  180. package/.agent/skills/ui-ux-pro-max/data/react-performance.csv +45 -0
  181. package/.agent/skills/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
  182. package/.agent/skills/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
  183. package/.agent/skills/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
  184. package/.agent/skills/ui-ux-pro-max/data/stacks/nuxt-ui.csv +51 -0
  185. package/.agent/skills/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
  186. package/.agent/skills/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
  187. package/.agent/skills/ui-ux-pro-max/data/stacks/react.csv +54 -0
  188. package/.agent/skills/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
  189. package/.agent/skills/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
  190. package/.agent/skills/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
  191. package/.agent/skills/ui-ux-pro-max/data/stacks/vue.csv +50 -0
  192. package/.agent/skills/ui-ux-pro-max/data/styles.csv +59 -0
  193. package/.agent/skills/ui-ux-pro-max/data/typography.csv +58 -0
  194. package/.agent/skills/ui-ux-pro-max/data/ui-reasoning.csv +101 -0
  195. package/.agent/skills/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
  196. package/.agent/skills/ui-ux-pro-max/data/web-interface.csv +31 -0
  197. package/.agent/skills/ui-ux-pro-max/scripts/core.py +257 -0
  198. package/.agent/skills/ui-ux-pro-max/scripts/design_system.py +487 -0
  199. package/.agent/skills/ui-ux-pro-max/scripts/search.py +76 -0
  200. package/.agent/skills/vulnerability-scanner/SKILL.md +276 -0
  201. package/.agent/skills/vulnerability-scanner/checklists.md +121 -0
  202. package/.agent/skills/vulnerability-scanner/scripts/security_scan.py +458 -0
  203. package/.agent/skills/webapp-testing/SKILL.md +187 -0
  204. package/.agent/skills/webapp-testing/scripts/playwright_runner.py +173 -0
  205. package/.agent/workflows/brainstorm.md +113 -0
  206. package/.agent/workflows/create.md +59 -0
  207. package/.agent/workflows/debug.md +103 -0
  208. package/.agent/workflows/deploy.md +176 -0
  209. package/.agent/workflows/enhance.md +63 -0
  210. package/.agent/workflows/orchestrate.md +237 -0
  211. package/.agent/workflows/plan.md +89 -0
  212. package/.agent/workflows/preview.md +80 -0
  213. package/.agent/workflows/status.md +86 -0
  214. package/.agent/workflows/test.md +144 -0
  215. package/.agent/workflows/ui-ux-pro-max.md +231 -0
  216. package/LICENSE +21 -0
  217. package/README.md +101 -0
  218. package/bin/cli.js +235 -0
  219. package/index.js +1 -0
  220. package/package.json +43 -0
@@ -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,199 @@
1
+ ---
2
+ name: bash-linux
3
+ description: Bash/Linux terminal patterns. Critical commands, piping, error handling, scripting. Use when working on macOS or Linux systems.
4
+ allowed-tools: Read, Write, Edit, Glob, Grep, Bash
5
+ ---
6
+
7
+ # Bash Linux Patterns
8
+
9
+ > Essential patterns for Bash on Linux/macOS.
10
+
11
+ ---
12
+
13
+ ## 1. Operator Syntax
14
+
15
+ ### Chaining Commands
16
+
17
+ | Operator | Meaning | Example |
18
+ |----------|---------|---------|
19
+ | `;` | Run sequentially | `cmd1; cmd2` |
20
+ | `&&` | Run if previous succeeded | `npm install && npm run dev` |
21
+ | `\|\|` | Run if previous failed | `npm test \|\| echo "Tests failed"` |
22
+ | `\|` | Pipe output | `ls \| grep ".js"` |
23
+
24
+ ---
25
+
26
+ ## 2. File Operations
27
+
28
+ ### Essential Commands
29
+
30
+ | Task | Command |
31
+ |------|---------|
32
+ | List all | `ls -la` |
33
+ | Find files | `find . -name "*.js" -type f` |
34
+ | File content | `cat file.txt` |
35
+ | First N lines | `head -n 20 file.txt` |
36
+ | Last N lines | `tail -n 20 file.txt` |
37
+ | Follow log | `tail -f log.txt` |
38
+ | Search in files | `grep -r "pattern" --include="*.js"` |
39
+ | File size | `du -sh *` |
40
+ | Disk usage | `df -h` |
41
+
42
+ ---
43
+
44
+ ## 3. Process Management
45
+
46
+ | Task | Command |
47
+ |------|---------|
48
+ | List processes | `ps aux` |
49
+ | Find by name | `ps aux \| grep node` |
50
+ | Kill by PID | `kill -9 <PID>` |
51
+ | Find port user | `lsof -i :3000` |
52
+ | Kill port | `kill -9 $(lsof -t -i :3000)` |
53
+ | Background | `npm run dev &` |
54
+ | Jobs | `jobs -l` |
55
+ | Bring to front | `fg %1` |
56
+
57
+ ---
58
+
59
+ ## 4. Text Processing
60
+
61
+ ### Core Tools
62
+
63
+ | Tool | Purpose | Example |
64
+ |------|---------|---------|
65
+ | `grep` | Search | `grep -rn "TODO" src/` |
66
+ | `sed` | Replace | `sed -i 's/old/new/g' file.txt` |
67
+ | `awk` | Extract columns | `awk '{print $1}' file.txt` |
68
+ | `cut` | Cut fields | `cut -d',' -f1 data.csv` |
69
+ | `sort` | Sort lines | `sort -u file.txt` |
70
+ | `uniq` | Unique lines | `sort file.txt \| uniq -c` |
71
+ | `wc` | Count | `wc -l file.txt` |
72
+
73
+ ---
74
+
75
+ ## 5. Environment Variables
76
+
77
+ | Task | Command |
78
+ |------|---------|
79
+ | View all | `env` or `printenv` |
80
+ | View one | `echo $PATH` |
81
+ | Set temporary | `export VAR="value"` |
82
+ | Set in script | `VAR="value" command` |
83
+ | Add to PATH | `export PATH="$PATH:/new/path"` |
84
+
85
+ ---
86
+
87
+ ## 6. Network
88
+
89
+ | Task | Command |
90
+ |------|---------|
91
+ | Download | `curl -O https://example.com/file` |
92
+ | API request | `curl -X GET https://api.example.com` |
93
+ | POST JSON | `curl -X POST -H "Content-Type: application/json" -d '{"key":"value"}' URL` |
94
+ | Check port | `nc -zv localhost 3000` |
95
+ | Network info | `ifconfig` or `ip addr` |
96
+
97
+ ---
98
+
99
+ ## 7. Script Template
100
+
101
+ ```bash
102
+ #!/bin/bash
103
+ set -euo pipefail # Exit on error, undefined var, pipe fail
104
+
105
+ # Colors (optional)
106
+ RED='\033[0;31m'
107
+ GREEN='\033[0;32m'
108
+ NC='\033[0m'
109
+
110
+ # Script directory
111
+ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
112
+
113
+ # Functions
114
+ log_info() { echo -e "${GREEN}[INFO]${NC} $1"; }
115
+ log_error() { echo -e "${RED}[ERROR]${NC} $1" >&2; }
116
+
117
+ # Main
118
+ main() {
119
+ log_info "Starting..."
120
+ # Your logic here
121
+ log_info "Done!"
122
+ }
123
+
124
+ main "$@"
125
+ ```
126
+
127
+ ---
128
+
129
+ ## 8. Common Patterns
130
+
131
+ ### Check if command exists
132
+
133
+ ```bash
134
+ if command -v node &> /dev/null; then
135
+ echo "Node is installed"
136
+ fi
137
+ ```
138
+
139
+ ### Default variable value
140
+
141
+ ```bash
142
+ NAME=${1:-"default_value"}
143
+ ```
144
+
145
+ ### Read file line by line
146
+
147
+ ```bash
148
+ while IFS= read -r line; do
149
+ echo "$line"
150
+ done < file.txt
151
+ ```
152
+
153
+ ### Loop over files
154
+
155
+ ```bash
156
+ for file in *.js; do
157
+ echo "Processing $file"
158
+ done
159
+ ```
160
+
161
+ ---
162
+
163
+ ## 9. Differences from PowerShell
164
+
165
+ | Task | PowerShell | Bash |
166
+ |------|------------|------|
167
+ | List files | `Get-ChildItem` | `ls -la` |
168
+ | Find files | `Get-ChildItem -Recurse` | `find . -type f` |
169
+ | Environment | `$env:VAR` | `$VAR` |
170
+ | String concat | `"$a$b"` | `"$a$b"` (same) |
171
+ | Null check | `if ($x)` | `if [ -n "$x" ]` |
172
+ | Pipeline | Object-based | Text-based |
173
+
174
+ ---
175
+
176
+ ## 10. Error Handling
177
+
178
+ ### Set options
179
+
180
+ ```bash
181
+ set -e # Exit on error
182
+ set -u # Exit on undefined variable
183
+ set -o pipefail # Exit on pipe failure
184
+ set -x # Debug: print commands
185
+ ```
186
+
187
+ ### Trap for cleanup
188
+
189
+ ```bash
190
+ cleanup() {
191
+ echo "Cleaning up..."
192
+ rm -f /tmp/tempfile
193
+ }
194
+ trap cleanup EXIT
195
+ ```
196
+
197
+ ---
198
+
199
+ > **Remember:** Bash is text-based. Use `&&` for success chains, `set -e` for safety, and quote your variables!
@@ -0,0 +1,242 @@
1
+ ---
2
+ name: behavioral-modes
3
+ description: AI operational modes (brainstorm, implement, debug, review, teach, ship, orchestrate). Use to adapt behavior based on task type.
4
+ allowed-tools: Read, Glob, Grep
5
+ ---
6
+
7
+ # Behavioral Modes - Adaptive AI Operating Modes
8
+
9
+ ## Purpose
10
+ This skill defines distinct behavioral modes that optimize AI performance for specific tasks. Modes change how the AI approaches problems, communicates, and prioritizes.
11
+
12
+ ---
13
+
14
+ ## Available Modes
15
+
16
+ ### 1. 🧠 BRAINSTORM Mode
17
+
18
+ **When to use:** Early project planning, feature ideation, architecture decisions
19
+
20
+ **Behavior:**
21
+ - Ask clarifying questions before assumptions
22
+ - Offer multiple alternatives (at least 3)
23
+ - Think divergently - explore unconventional solutions
24
+ - No code yet - focus on ideas and options
25
+ - Use visual diagrams (mermaid) to explain concepts
26
+
27
+ **Output style:**
28
+ ```
29
+ "Let's explore this together. Here are some approaches:
30
+
31
+ Option A: [description]
32
+ βœ… Pros: ...
33
+ ❌ Cons: ...
34
+
35
+ Option B: [description]
36
+ βœ… Pros: ...
37
+ ❌ Cons: ...
38
+
39
+ What resonates with you? Or should we explore a different direction?"
40
+ ```
41
+
42
+ ---
43
+
44
+ ### 2. ⚑ IMPLEMENT Mode
45
+
46
+ **When to use:** Writing code, building features, executing plans
47
+
48
+ **Behavior:**
49
+ - **CRITICAL: Use `clean-code` skill standards** - concise, direct, no verbose explanations
50
+ - Fast execution - minimize questions
51
+ - Use established patterns and best practices
52
+ - Write complete, production-ready code
53
+ - Include error handling and edge cases
54
+ - **NO tutorial-style explanations** - just code
55
+ - **NO unnecessary comments** - let code self-document
56
+ - **NO over-engineering** - solve the problem directly
57
+ - **NO RUSHING** - Quality > Speed. Read ALL references before coding.
58
+
59
+ **Output style:**
60
+ ```
61
+ [Code block]
62
+
63
+ [Brief summary, max 1-2 sentences]
64
+ ```
65
+
66
+ **NOT:**
67
+ ```
68
+ "Building [feature]...
69
+
70
+ βœ“ Created [file1]
71
+ βœ“ Created [file2]
72
+ βœ“ Updated [file3]
73
+
74
+ [long explanation]
75
+
76
+ Run `npm run dev` to test."
77
+ ```
78
+
79
+ ---
80
+
81
+ ### 3. πŸ” DEBUG Mode
82
+
83
+ **When to use:** Fixing bugs, troubleshooting errors, investigating issues
84
+
85
+ **Behavior:**
86
+ - Ask for error messages and reproduction steps
87
+ - Think systematically - check logs, trace data flow
88
+ - Form hypothesis β†’ test β†’ verify
89
+ - Explain the root cause, not just the fix
90
+ - Prevent future occurrences
91
+
92
+ **Output style:**
93
+ ```
94
+ "Investigating...
95
+
96
+ πŸ” Symptom: [what's happening]
97
+ 🎯 Root cause: [why it's happening]
98
+ βœ… Fix: [the solution]
99
+ πŸ›‘οΈ Prevention: [how to avoid in future]
100
+ ```
101
+
102
+ ---
103
+
104
+ ### 4. πŸ“‹ REVIEW Mode
105
+
106
+ **When to use:** Code review, architecture review, security audit
107
+
108
+ **Behavior:**
109
+ - Be thorough but constructive
110
+ - Categorize by severity (Critical/High/Medium/Low)
111
+ - Explain the "why" behind suggestions
112
+ - Offer improved code examples
113
+ - Acknowledge what's done well
114
+
115
+ **Output style:**
116
+ ```
117
+ ## Code Review: [file/feature]
118
+
119
+ ### πŸ”΄ Critical
120
+ - [issue with explanation]
121
+
122
+ ### 🟠 Improvements
123
+ - [suggestion with example]
124
+
125
+ ### 🟒 Good
126
+ - [positive observation]
127
+ ```
128
+
129
+ ---
130
+
131
+ ### 5. πŸ“š TEACH Mode
132
+
133
+ **When to use:** Explaining concepts, documentation, onboarding
134
+
135
+ **Behavior:**
136
+ - Explain from fundamentals
137
+ - Use analogies and examples
138
+ - Progress from simple to complex
139
+ - Include practical exercises
140
+ - Check understanding
141
+
142
+ **Output style:**
143
+ ```
144
+ ## Understanding [Concept]
145
+
146
+ ### What is it?
147
+ [Simple explanation with analogy]
148
+
149
+ ### How it works
150
+ [Technical explanation with diagram]
151
+
152
+ ### Example
153
+ [Code example with comments]
154
+
155
+ ### Try it yourself
156
+ [Exercise or task]
157
+ ```
158
+
159
+ ---
160
+
161
+ ### 6. πŸš€ SHIP Mode
162
+
163
+ **When to use:** Production deployment, final polish, release preparation
164
+
165
+ **Behavior:**
166
+ - Focus on stability over features
167
+ - Check for missing error handling
168
+ - Verify environment configs
169
+ - Run all tests
170
+ - Create deployment checklist
171
+
172
+ **Output style:**
173
+ ```
174
+ ## Pre-Ship Checklist
175
+
176
+ ### βœ… Code Quality
177
+ - [ ] No TypeScript errors
178
+ - [ ] ESLint passing
179
+ - [ ] All tests passing
180
+
181
+ ### βœ… Security
182
+ - [ ] No exposed secrets
183
+ - [ ] Input validation complete
184
+
185
+ ### βœ… Performance
186
+ - [ ] Bundle size acceptable
187
+ - [ ] No console.logs
188
+
189
+ ### πŸš€ Ready to deploy
190
+ ```
191
+
192
+ ---
193
+
194
+ ## Mode Detection
195
+
196
+ The AI should automatically detect the appropriate mode based on:
197
+
198
+ | Trigger | Mode |
199
+ |---------|------|
200
+ | "what if", "ideas", "options" | BRAINSTORM |
201
+ | "build", "create", "add" | IMPLEMENT |
202
+ | "not working", "error", "bug" | DEBUG |
203
+ | "review", "check", "audit" | REVIEW |
204
+ | "explain", "how does", "learn" | TEACH |
205
+ | "deploy", "release", "production" | SHIP |
206
+
207
+ ---
208
+
209
+ ## Multi-Agent Collaboration Patterns (2025)
210
+
211
+ Modern architectures optimized for agent-to-agent collaboration:
212
+
213
+ ### 1. πŸ”­ EXPLORE Mode
214
+ **Role:** Discovery and Analysis (Explorer Agent)
215
+ **Behavior:** Socratic questioning, deep-dive code reading, dependency mapping.
216
+ **Output:** `discovery-report.json`, architectural visualization.
217
+
218
+ ### 2. πŸ—ΊοΈ PLAN-EXECUTE-CRITIC (PEC)
219
+ Cyclic mode transitions for high-complexity tasks:
220
+ 1. **Planner:** Decomposes the task into atomic steps (`task.md`).
221
+ 2. **Executor:** Performs the actual coding (`IMPLEMENT`).
222
+ 3. **Critic:** Reviews the code, performs security and performance checks (`REVIEW`).
223
+
224
+ ### 3. 🧠 MENTAL MODEL SYNC
225
+ Behavior for creating and loading "Mental Model" summaries to preserve context between sessions.
226
+
227
+ ---
228
+
229
+ ## Combining Modes
230
+
231
+ ---
232
+
233
+ ## Manual Mode Switching
234
+
235
+ Users can explicitly request a mode:
236
+
237
+ ```
238
+ /brainstorm new feature ideas
239
+ /implement the user profile page
240
+ /debug why login fails
241
+ /review this pull request
242
+ ```
@@ -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
+ ---