@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.
- package/.agent/.shared/ui-ux-pro-max/data/charts.csv +26 -0
- package/.agent/.shared/ui-ux-pro-max/data/colors.csv +97 -0
- package/.agent/.shared/ui-ux-pro-max/data/icons.csv +101 -0
- package/.agent/.shared/ui-ux-pro-max/data/landing.csv +31 -0
- package/.agent/.shared/ui-ux-pro-max/data/products.csv +97 -0
- package/.agent/.shared/ui-ux-pro-max/data/prompts.csv +24 -0
- package/.agent/.shared/ui-ux-pro-max/data/react-performance.csv +45 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/jetpack-compose.csv +53 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/nuxt-ui.csv +51 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/react.csv +54 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/vue.csv +50 -0
- package/.agent/.shared/ui-ux-pro-max/data/styles.csv +59 -0
- package/.agent/.shared/ui-ux-pro-max/data/typography.csv +58 -0
- package/.agent/.shared/ui-ux-pro-max/data/ui-reasoning.csv +101 -0
- package/.agent/.shared/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
- package/.agent/.shared/ui-ux-pro-max/data/web-interface.csv +31 -0
- package/.agent/.shared/ui-ux-pro-max/scripts/core.py +258 -0
- package/.agent/.shared/ui-ux-pro-max/scripts/design_system.py +487 -0
- package/.agent/.shared/ui-ux-pro-max/scripts/search.py +76 -0
- package/.agent/ARCHITECTURE.md +225 -0
- package/.agent/CONTEXT.md +229 -0
- package/.agent/FEATURE_ROADMAP.md +435 -0
- package/.agent/PROMPT_TEMPLATES.md +261 -0
- package/.agent/agents/backend-specialist.md +263 -0
- package/.agent/agents/database-architect.md +226 -0
- package/.agent/agents/debugger.md +225 -0
- package/.agent/agents/devops-engineer.md +242 -0
- package/.agent/agents/documentation-writer.md +104 -0
- package/.agent/agents/explorer-agent.md +73 -0
- package/.agent/agents/frontend-specialist.md +556 -0
- package/.agent/agents/game-developer.md +162 -0
- package/.agent/agents/mobile-developer.md +377 -0
- package/.agent/agents/orchestrator.md +416 -0
- package/.agent/agents/penetration-tester.md +188 -0
- package/.agent/agents/performance-optimizer.md +187 -0
- package/.agent/agents/project-planner.md +403 -0
- package/.agent/agents/security-auditor.md +170 -0
- package/.agent/agents/seo-specialist.md +111 -0
- package/.agent/agents/test-engineer.md +158 -0
- package/.agent/rules/GEMINI.md +251 -0
- package/.agent/skills/api-patterns/SKILL.md +81 -0
- package/.agent/skills/api-patterns/api-style.md +42 -0
- package/.agent/skills/api-patterns/auth.md +24 -0
- package/.agent/skills/api-patterns/documentation.md +26 -0
- package/.agent/skills/api-patterns/graphql.md +41 -0
- package/.agent/skills/api-patterns/rate-limiting.md +31 -0
- package/.agent/skills/api-patterns/response.md +37 -0
- package/.agent/skills/api-patterns/rest.md +40 -0
- package/.agent/skills/api-patterns/scripts/api_validator.py +211 -0
- package/.agent/skills/api-patterns/security-testing.md +122 -0
- package/.agent/skills/api-patterns/trpc.md +41 -0
- package/.agent/skills/api-patterns/versioning.md +22 -0
- package/.agent/skills/app-builder/SKILL.md +75 -0
- package/.agent/skills/app-builder/agent-coordination.md +71 -0
- package/.agent/skills/app-builder/feature-building.md +53 -0
- package/.agent/skills/app-builder/project-detection.md +34 -0
- package/.agent/skills/app-builder/scaffolding.md +118 -0
- package/.agent/skills/app-builder/tech-stack.md +40 -0
- package/.agent/skills/app-builder/templates/SKILL.md +39 -0
- package/.agent/skills/app-builder/templates/astro-static/TEMPLATE.md +76 -0
- package/.agent/skills/app-builder/templates/chrome-extension/TEMPLATE.md +92 -0
- package/.agent/skills/app-builder/templates/cli-tool/TEMPLATE.md +88 -0
- package/.agent/skills/app-builder/templates/electron-desktop/TEMPLATE.md +88 -0
- package/.agent/skills/app-builder/templates/express-api/TEMPLATE.md +83 -0
- package/.agent/skills/app-builder/templates/flutter-app/TEMPLATE.md +90 -0
- package/.agent/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +90 -0
- package/.agent/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +82 -0
- package/.agent/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +100 -0
- package/.agent/skills/app-builder/templates/nextjs-static/TEMPLATE.md +106 -0
- package/.agent/skills/app-builder/templates/nuxt-app/TEMPLATE.md +101 -0
- package/.agent/skills/app-builder/templates/python-fastapi/TEMPLATE.md +83 -0
- package/.agent/skills/app-builder/templates/react-native-app/TEMPLATE.md +93 -0
- package/.agent/skills/architecture/SKILL.md +55 -0
- package/.agent/skills/architecture/context-discovery.md +43 -0
- package/.agent/skills/architecture/examples.md +94 -0
- package/.agent/skills/architecture/pattern-selection.md +68 -0
- package/.agent/skills/architecture/patterns-reference.md +50 -0
- package/.agent/skills/architecture/trade-off-analysis.md +77 -0
- package/.agent/skills/bash-linux/SKILL.md +199 -0
- package/.agent/skills/behavioral-modes/SKILL.md +242 -0
- package/.agent/skills/brainstorming/SKILL.md +163 -0
- package/.agent/skills/brainstorming/dynamic-questioning.md +350 -0
- package/.agent/skills/clean-code/SKILL.md +201 -0
- package/.agent/skills/code-review-checklist/SKILL.md +109 -0
- package/.agent/skills/database-design/SKILL.md +52 -0
- package/.agent/skills/database-design/database-selection.md +43 -0
- package/.agent/skills/database-design/indexing.md +39 -0
- package/.agent/skills/database-design/migrations.md +48 -0
- package/.agent/skills/database-design/optimization.md +36 -0
- package/.agent/skills/database-design/orm-selection.md +30 -0
- package/.agent/skills/database-design/schema-design.md +56 -0
- package/.agent/skills/database-design/scripts/schema_validator.py +172 -0
- package/.agent/skills/deployment-procedures/SKILL.md +241 -0
- package/.agent/skills/doc.md +177 -0
- package/.agent/skills/docker-expert/SKILL.md +409 -0
- package/.agent/skills/documentation-templates/SKILL.md +194 -0
- package/.agent/skills/frontend-design/SKILL.md +396 -0
- package/.agent/skills/frontend-design/animation-guide.md +331 -0
- package/.agent/skills/frontend-design/color-system.md +311 -0
- package/.agent/skills/frontend-design/decision-trees.md +418 -0
- package/.agent/skills/frontend-design/motion-graphics.md +306 -0
- package/.agent/skills/frontend-design/scripts/accessibility_checker.py +183 -0
- package/.agent/skills/frontend-design/scripts/ux_audit.py +722 -0
- package/.agent/skills/frontend-design/typography-system.md +345 -0
- package/.agent/skills/frontend-design/ux-psychology.md +541 -0
- package/.agent/skills/frontend-design/visual-effects.md +383 -0
- package/.agent/skills/game-development/2d-games/SKILL.md +119 -0
- package/.agent/skills/game-development/3d-games/SKILL.md +135 -0
- package/.agent/skills/game-development/SKILL.md +167 -0
- package/.agent/skills/game-development/game-art/SKILL.md +185 -0
- package/.agent/skills/game-development/game-audio/SKILL.md +190 -0
- package/.agent/skills/game-development/game-design/SKILL.md +129 -0
- package/.agent/skills/game-development/mobile-games/SKILL.md +108 -0
- package/.agent/skills/game-development/multiplayer/SKILL.md +132 -0
- package/.agent/skills/game-development/pc-games/SKILL.md +144 -0
- package/.agent/skills/game-development/vr-ar/SKILL.md +123 -0
- package/.agent/skills/game-development/web-games/SKILL.md +150 -0
- package/.agent/skills/geo-fundamentals/SKILL.md +156 -0
- package/.agent/skills/geo-fundamentals/scripts/geo_checker.py +289 -0
- package/.agent/skills/i18n-localization/SKILL.md +154 -0
- package/.agent/skills/i18n-localization/scripts/i18n_checker.py +241 -0
- package/.agent/skills/lint-and-validate/SKILL.md +45 -0
- package/.agent/skills/lint-and-validate/scripts/lint_runner.py +172 -0
- package/.agent/skills/lint-and-validate/scripts/type_coverage.py +173 -0
- package/.agent/skills/mcp-builder/SKILL.md +176 -0
- package/.agent/skills/mobile-design/SKILL.md +394 -0
- package/.agent/skills/mobile-design/decision-trees.md +516 -0
- package/.agent/skills/mobile-design/mobile-backend.md +491 -0
- package/.agent/skills/mobile-design/mobile-color-system.md +420 -0
- package/.agent/skills/mobile-design/mobile-debugging.md +122 -0
- package/.agent/skills/mobile-design/mobile-design-thinking.md +357 -0
- package/.agent/skills/mobile-design/mobile-navigation.md +458 -0
- package/.agent/skills/mobile-design/mobile-performance.md +767 -0
- package/.agent/skills/mobile-design/mobile-testing.md +356 -0
- package/.agent/skills/mobile-design/mobile-typography.md +433 -0
- package/.agent/skills/mobile-design/platform-android.md +666 -0
- package/.agent/skills/mobile-design/platform-ios.md +561 -0
- package/.agent/skills/mobile-design/scripts/mobile_audit.py +670 -0
- package/.agent/skills/mobile-design/touch-psychology.md +537 -0
- package/.agent/skills/nestjs-expert/SKILL.md +552 -0
- package/.agent/skills/nextjs-best-practices/SKILL.md +203 -0
- package/.agent/skills/nodejs-best-practices/SKILL.md +333 -0
- package/.agent/skills/parallel-agents/SKILL.md +175 -0
- package/.agent/skills/performance-profiling/SKILL.md +143 -0
- package/.agent/skills/performance-profiling/scripts/lighthouse_audit.py +76 -0
- package/.agent/skills/plan-writing/SKILL.md +152 -0
- package/.agent/skills/powershell-windows/SKILL.md +167 -0
- package/.agent/skills/prisma-expert/SKILL.md +355 -0
- package/.agent/skills/python-patterns/SKILL.md +441 -0
- package/.agent/skills/react-patterns/SKILL.md +198 -0
- package/.agent/skills/red-team-tactics/SKILL.md +199 -0
- package/.agent/skills/seo-fundamentals/SKILL.md +129 -0
- package/.agent/skills/seo-fundamentals/scripts/seo_checker.py +219 -0
- package/.agent/skills/server-management/SKILL.md +161 -0
- package/.agent/skills/systematic-debugging/SKILL.md +109 -0
- package/.agent/skills/tailwind-patterns/SKILL.md +269 -0
- package/.agent/skills/tdd-workflow/SKILL.md +149 -0
- package/.agent/skills/testing-patterns/SKILL.md +178 -0
- package/.agent/skills/testing-patterns/scripts/test_runner.py +219 -0
- package/.agent/skills/typescript-expert/SKILL.md +429 -0
- package/.agent/skills/typescript-expert/references/tsconfig-strict.json +92 -0
- package/.agent/skills/typescript-expert/references/typescript-cheatsheet.md +383 -0
- package/.agent/skills/typescript-expert/references/utility-types.ts +335 -0
- package/.agent/skills/typescript-expert/scripts/ts_diagnostic.py +203 -0
- package/.agent/skills/ui-ux-pro-max/SKILL.md +351 -0
- package/.agent/skills/ui-ux-pro-max/data/charts.csv +26 -0
- package/.agent/skills/ui-ux-pro-max/data/colors.csv +97 -0
- package/.agent/skills/ui-ux-pro-max/data/icons.csv +101 -0
- package/.agent/skills/ui-ux-pro-max/data/landing.csv +31 -0
- package/.agent/skills/ui-ux-pro-max/data/products.csv +97 -0
- package/.agent/skills/ui-ux-pro-max/data/prompts.csv +24 -0
- package/.agent/skills/ui-ux-pro-max/data/react-performance.csv +45 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/nuxt-ui.csv +51 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/react.csv +54 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/vue.csv +50 -0
- package/.agent/skills/ui-ux-pro-max/data/styles.csv +59 -0
- package/.agent/skills/ui-ux-pro-max/data/typography.csv +58 -0
- package/.agent/skills/ui-ux-pro-max/data/ui-reasoning.csv +101 -0
- package/.agent/skills/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
- package/.agent/skills/ui-ux-pro-max/data/web-interface.csv +31 -0
- package/.agent/skills/ui-ux-pro-max/scripts/core.py +257 -0
- package/.agent/skills/ui-ux-pro-max/scripts/design_system.py +487 -0
- package/.agent/skills/ui-ux-pro-max/scripts/search.py +76 -0
- package/.agent/skills/vulnerability-scanner/SKILL.md +276 -0
- package/.agent/skills/vulnerability-scanner/checklists.md +121 -0
- package/.agent/skills/vulnerability-scanner/scripts/security_scan.py +458 -0
- package/.agent/skills/webapp-testing/SKILL.md +187 -0
- package/.agent/skills/webapp-testing/scripts/playwright_runner.py +173 -0
- package/.agent/workflows/brainstorm.md +113 -0
- package/.agent/workflows/create.md +59 -0
- package/.agent/workflows/debug.md +103 -0
- package/.agent/workflows/deploy.md +176 -0
- package/.agent/workflows/enhance.md +63 -0
- package/.agent/workflows/orchestrate.md +237 -0
- package/.agent/workflows/plan.md +89 -0
- package/.agent/workflows/preview.md +80 -0
- package/.agent/workflows/status.md +86 -0
- package/.agent/workflows/test.md +144 -0
- package/.agent/workflows/ui-ux-pro-max.md +231 -0
- package/LICENSE +21 -0
- package/README.md +101 -0
- package/bin/cli.js +235 -0
- package/index.js +1 -0
- 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
|
+
---
|