antigravity-ai-kit 2.1.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agent/README.md +4 -4
- package/.agent/agents/README.md +16 -12
- package/.agent/agents/architect.md +1 -0
- package/.agent/agents/backend-specialist.md +11 -0
- package/.agent/agents/code-reviewer.md +1 -0
- package/.agent/agents/database-architect.md +11 -0
- package/.agent/agents/devops-engineer.md +11 -0
- package/.agent/agents/e2e-runner.md +1 -0
- package/.agent/agents/explorer-agent.md +11 -0
- package/.agent/agents/frontend-specialist.md +11 -0
- package/.agent/agents/mobile-developer.md +11 -0
- package/.agent/agents/performance-optimizer.md +11 -0
- package/.agent/agents/planner.md +1 -0
- package/.agent/agents/refactor-cleaner.md +1 -0
- package/.agent/agents/reliability-engineer.md +11 -0
- package/.agent/agents/security-reviewer.md +1 -0
- package/.agent/agents/sprint-orchestrator.md +10 -0
- package/.agent/agents/tdd-guide.md +1 -0
- package/.agent/commands/code-review.md +1 -0
- package/.agent/commands/debug.md +1 -0
- package/.agent/commands/deploy.md +1 -0
- package/.agent/commands/help.md +252 -31
- package/.agent/commands/plan.md +1 -0
- package/.agent/commands/status.md +1 -0
- package/.agent/commands/tdd.md +1 -0
- package/.agent/contexts/brainstorm.md +26 -0
- package/.agent/contexts/debug.md +28 -0
- package/.agent/contexts/implement.md +29 -0
- package/.agent/contexts/review.md +27 -0
- package/.agent/contexts/ship.md +28 -0
- package/.agent/engine/identity.json +13 -0
- package/.agent/engine/loading-rules.json +23 -1
- package/.agent/engine/marketplace-index.json +29 -0
- package/.agent/engine/reliability-config.json +14 -0
- package/.agent/engine/sdlc-map.json +44 -0
- package/.agent/engine/workflow-state.json +28 -2
- package/.agent/hooks/hooks.json +27 -25
- package/.agent/manifest.json +12 -4
- package/.agent/rules.md +2 -1
- package/.agent/skills/README.md +10 -5
- package/.agent/skills/i18n-localization/SKILL.md +191 -0
- package/.agent/skills/mcp-integration/SKILL.md +224 -0
- package/.agent/skills/parallel-agents/SKILL.md +1 -1
- package/.agent/skills/shell-conventions/SKILL.md +92 -0
- package/.agent/skills/ui-ux-pro-max/SKILL.md +557 -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/react-performance.csv +45 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/astro.csv +54 -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/jetpack-compose.csv +53 -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 +68 -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 +253 -0
- package/.agent/skills/ui-ux-pro-max/scripts/design_system.py +1067 -0
- package/.agent/skills/ui-ux-pro-max/scripts/search.py +114 -0
- package/.agent/templates/adr-template.md +32 -0
- package/.agent/templates/bug-report.md +37 -0
- package/.agent/templates/feature-request.md +32 -0
- package/.agent/workflows/README.md +92 -78
- package/.agent/workflows/brainstorm.md +154 -100
- package/.agent/workflows/create.md +142 -75
- package/.agent/workflows/debug.md +157 -98
- package/.agent/workflows/deploy.md +195 -144
- package/.agent/workflows/enhance.md +157 -65
- package/.agent/workflows/orchestrate.md +171 -114
- package/.agent/workflows/plan.md +147 -72
- package/.agent/workflows/preview.md +140 -83
- package/.agent/workflows/quality-gate.md +196 -0
- package/.agent/workflows/retrospective.md +197 -0
- package/.agent/workflows/review.md +188 -0
- package/.agent/workflows/status.md +142 -91
- package/.agent/workflows/test.md +168 -95
- package/.agent/workflows/ui-ux-pro-max.md +181 -127
- package/README.md +215 -78
- package/bin/ag-kit.js +344 -10
- package/lib/agent-registry.js +214 -0
- package/lib/agent-reputation.js +351 -0
- package/lib/cli-commands.js +235 -0
- package/lib/conflict-detector.js +245 -0
- package/lib/engineering-manager.js +354 -0
- package/lib/error-budget.js +294 -0
- package/lib/hook-system.js +252 -0
- package/lib/identity.js +245 -0
- package/lib/loading-engine.js +208 -0
- package/lib/marketplace.js +298 -0
- package/lib/plugin-system.js +604 -0
- package/lib/security-scanner.js +309 -0
- package/lib/self-healing.js +434 -0
- package/lib/session-manager.js +261 -0
- package/lib/skill-sandbox.js +244 -0
- package/lib/task-governance.js +523 -0
- package/lib/task-model.js +317 -0
- package/lib/updater.js +201 -0
- package/lib/verify.js +240 -0
- package/lib/workflow-engine.js +353 -0
- package/lib/workflow-persistence.js +160 -0
- package/package.json +7 -3
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
"""
|
|
4
|
+
UI/UX Pro Max Search - BM25 search engine for UI/UX style guides
|
|
5
|
+
Usage: python search.py "<query>" [--domain <domain>] [--stack <stack>] [--max-results 3]
|
|
6
|
+
python search.py "<query>" --design-system [-p "Project Name"]
|
|
7
|
+
python search.py "<query>" --design-system --persist [-p "Project Name"] [--page "dashboard"]
|
|
8
|
+
|
|
9
|
+
Domains: style, prompt, color, chart, landing, product, ux, typography
|
|
10
|
+
Stacks: html-tailwind, react, nextjs
|
|
11
|
+
|
|
12
|
+
Persistence (Master + Overrides pattern):
|
|
13
|
+
--persist Save design system to design-system/MASTER.md
|
|
14
|
+
--page Also create a page-specific override file in design-system/pages/
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
import argparse
|
|
18
|
+
import sys
|
|
19
|
+
import io
|
|
20
|
+
from core import CSV_CONFIG, AVAILABLE_STACKS, MAX_RESULTS, search, search_stack
|
|
21
|
+
from design_system import generate_design_system, persist_design_system
|
|
22
|
+
|
|
23
|
+
# Force UTF-8 for stdout/stderr to handle emojis on Windows (cp1252 default)
|
|
24
|
+
if sys.stdout.encoding and sys.stdout.encoding.lower() != 'utf-8':
|
|
25
|
+
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
|
|
26
|
+
if sys.stderr.encoding and sys.stderr.encoding.lower() != 'utf-8':
|
|
27
|
+
sys.stderr = io.TextIOWrapper(sys.stderr.buffer, encoding='utf-8')
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def format_output(result):
|
|
31
|
+
"""Format results for Claude consumption (token-optimized)"""
|
|
32
|
+
if "error" in result:
|
|
33
|
+
return f"Error: {result['error']}"
|
|
34
|
+
|
|
35
|
+
output = []
|
|
36
|
+
if result.get("stack"):
|
|
37
|
+
output.append(f"## UI Pro Max Stack Guidelines")
|
|
38
|
+
output.append(f"**Stack:** {result['stack']} | **Query:** {result['query']}")
|
|
39
|
+
else:
|
|
40
|
+
output.append(f"## UI Pro Max Search Results")
|
|
41
|
+
output.append(f"**Domain:** {result['domain']} | **Query:** {result['query']}")
|
|
42
|
+
output.append(f"**Source:** {result['file']} | **Found:** {result['count']} results\n")
|
|
43
|
+
|
|
44
|
+
for i, row in enumerate(result['results'], 1):
|
|
45
|
+
output.append(f"### Result {i}")
|
|
46
|
+
for key, value in row.items():
|
|
47
|
+
value_str = str(value)
|
|
48
|
+
if len(value_str) > 300:
|
|
49
|
+
value_str = value_str[:300] + "..."
|
|
50
|
+
output.append(f"- **{key}:** {value_str}")
|
|
51
|
+
output.append("")
|
|
52
|
+
|
|
53
|
+
return "\n".join(output)
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
if __name__ == "__main__":
|
|
57
|
+
parser = argparse.ArgumentParser(description="UI Pro Max Search")
|
|
58
|
+
parser.add_argument("query", help="Search query")
|
|
59
|
+
parser.add_argument("--domain", "-d", choices=list(CSV_CONFIG.keys()), help="Search domain")
|
|
60
|
+
parser.add_argument("--stack", "-s", choices=AVAILABLE_STACKS, help="Stack-specific search (html-tailwind, react, nextjs)")
|
|
61
|
+
parser.add_argument("--max-results", "-n", type=int, default=MAX_RESULTS, help="Max results (default: 3)")
|
|
62
|
+
parser.add_argument("--json", action="store_true", help="Output as JSON")
|
|
63
|
+
# Design system generation
|
|
64
|
+
parser.add_argument("--design-system", "-ds", action="store_true", help="Generate complete design system recommendation")
|
|
65
|
+
parser.add_argument("--project-name", "-p", type=str, default=None, help="Project name for design system output")
|
|
66
|
+
parser.add_argument("--format", "-f", choices=["ascii", "markdown"], default="ascii", help="Output format for design system")
|
|
67
|
+
# Persistence (Master + Overrides pattern)
|
|
68
|
+
parser.add_argument("--persist", action="store_true", help="Save design system to design-system/MASTER.md (creates hierarchical structure)")
|
|
69
|
+
parser.add_argument("--page", type=str, default=None, help="Create page-specific override file in design-system/pages/")
|
|
70
|
+
parser.add_argument("--output-dir", "-o", type=str, default=None, help="Output directory for persisted files (default: current directory)")
|
|
71
|
+
|
|
72
|
+
args = parser.parse_args()
|
|
73
|
+
|
|
74
|
+
# Design system takes priority
|
|
75
|
+
if args.design_system:
|
|
76
|
+
result = generate_design_system(
|
|
77
|
+
args.query,
|
|
78
|
+
args.project_name,
|
|
79
|
+
args.format,
|
|
80
|
+
persist=args.persist,
|
|
81
|
+
page=args.page,
|
|
82
|
+
output_dir=args.output_dir
|
|
83
|
+
)
|
|
84
|
+
print(result)
|
|
85
|
+
|
|
86
|
+
# Print persistence confirmation
|
|
87
|
+
if args.persist:
|
|
88
|
+
project_slug = args.project_name.lower().replace(' ', '-') if args.project_name else "default"
|
|
89
|
+
print("\n" + "=" * 60)
|
|
90
|
+
print(f"✅ Design system persisted to design-system/{project_slug}/")
|
|
91
|
+
print(f" 📄 design-system/{project_slug}/MASTER.md (Global Source of Truth)")
|
|
92
|
+
if args.page:
|
|
93
|
+
page_filename = args.page.lower().replace(' ', '-')
|
|
94
|
+
print(f" 📄 design-system/{project_slug}/pages/{page_filename}.md (Page Overrides)")
|
|
95
|
+
print("")
|
|
96
|
+
print(f"📖 Usage: When building a page, check design-system/{project_slug}/pages/[page].md first.")
|
|
97
|
+
print(f" If exists, its rules override MASTER.md. Otherwise, use MASTER.md.")
|
|
98
|
+
print("=" * 60)
|
|
99
|
+
# Stack search
|
|
100
|
+
elif args.stack:
|
|
101
|
+
result = search_stack(args.query, args.stack, args.max_results)
|
|
102
|
+
if args.json:
|
|
103
|
+
import json
|
|
104
|
+
print(json.dumps(result, indent=2, ensure_ascii=False))
|
|
105
|
+
else:
|
|
106
|
+
print(format_output(result))
|
|
107
|
+
# Domain search
|
|
108
|
+
else:
|
|
109
|
+
result = search(args.query, args.domain, args.max_results)
|
|
110
|
+
if args.json:
|
|
111
|
+
import json
|
|
112
|
+
print(json.dumps(result, indent=2, ensure_ascii=False))
|
|
113
|
+
else:
|
|
114
|
+
print(format_output(result))
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# ADR Template
|
|
2
|
+
|
|
3
|
+
Use this template for all Architecture Decision Records.
|
|
4
|
+
|
|
5
|
+
## ADR-NNN: [Decision Title]
|
|
6
|
+
|
|
7
|
+
### Status
|
|
8
|
+
|
|
9
|
+
**[Proposed / Accepted / Deprecated / Superseded]** — [Date]
|
|
10
|
+
|
|
11
|
+
### Context
|
|
12
|
+
|
|
13
|
+
[What is the issue that we're seeing that is motivating this decision or change?]
|
|
14
|
+
|
|
15
|
+
### Decision
|
|
16
|
+
|
|
17
|
+
[What is the change that we're proposing and/or doing?]
|
|
18
|
+
|
|
19
|
+
### Consequences
|
|
20
|
+
|
|
21
|
+
#### Positive
|
|
22
|
+
- [Benefit 1]
|
|
23
|
+
- [Benefit 2]
|
|
24
|
+
|
|
25
|
+
#### Negative
|
|
26
|
+
- [Trade-off 1]
|
|
27
|
+
- [Trade-off 2]
|
|
28
|
+
|
|
29
|
+
### Alternatives Considered
|
|
30
|
+
|
|
31
|
+
1. **[Alternative 1]** — [Why rejected]
|
|
32
|
+
2. **[Alternative 2]** — [Why rejected]
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Bug Report Template
|
|
2
|
+
|
|
3
|
+
## Description
|
|
4
|
+
|
|
5
|
+
[Clear description of the bug]
|
|
6
|
+
|
|
7
|
+
## Steps to Reproduce
|
|
8
|
+
|
|
9
|
+
1. [Step 1]
|
|
10
|
+
2. [Step 2]
|
|
11
|
+
3. [Step 3]
|
|
12
|
+
|
|
13
|
+
## Expected Behavior
|
|
14
|
+
|
|
15
|
+
[What should happen]
|
|
16
|
+
|
|
17
|
+
## Actual Behavior
|
|
18
|
+
|
|
19
|
+
[What actually happens]
|
|
20
|
+
|
|
21
|
+
## Environment
|
|
22
|
+
|
|
23
|
+
- **OS**: [e.g., Windows 11, macOS 15, Ubuntu 24.04]
|
|
24
|
+
- **Node.js**: [e.g., 20.x]
|
|
25
|
+
- **Antigravity AI Kit version**: [e.g., 2.1.0]
|
|
26
|
+
- **IDE**: [e.g., VS Code 1.95, Cursor 0.45]
|
|
27
|
+
|
|
28
|
+
## Screenshots / Logs
|
|
29
|
+
|
|
30
|
+
[Attach any relevant screenshots or error logs]
|
|
31
|
+
|
|
32
|
+
## Severity
|
|
33
|
+
|
|
34
|
+
- [ ] Critical (system unusable)
|
|
35
|
+
- [ ] High (major feature broken)
|
|
36
|
+
- [ ] Medium (workaround exists)
|
|
37
|
+
- [ ] Low (cosmetic issue)
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Feature Request Template
|
|
2
|
+
|
|
3
|
+
## Feature Description
|
|
4
|
+
|
|
5
|
+
[Clear, concise description of the desired feature]
|
|
6
|
+
|
|
7
|
+
## Problem Statement
|
|
8
|
+
|
|
9
|
+
[What problem does this feature solve? Why is it needed?]
|
|
10
|
+
|
|
11
|
+
## Proposed Solution
|
|
12
|
+
|
|
13
|
+
[High-level description of how this could be implemented]
|
|
14
|
+
|
|
15
|
+
## Acceptance Criteria
|
|
16
|
+
|
|
17
|
+
- [ ] [Criterion 1]
|
|
18
|
+
- [ ] [Criterion 2]
|
|
19
|
+
- [ ] [Criterion 3]
|
|
20
|
+
|
|
21
|
+
## Technical Considerations
|
|
22
|
+
|
|
23
|
+
- **Complexity**: [Low / Medium / High]
|
|
24
|
+
- **Breaking Changes**: [Yes / No]
|
|
25
|
+
- **Dependencies**: [List any new dependencies needed]
|
|
26
|
+
|
|
27
|
+
## Priority
|
|
28
|
+
|
|
29
|
+
- [ ] Critical (blocks production)
|
|
30
|
+
- [ ] High (needed this sprint)
|
|
31
|
+
- [ ] Medium (next sprint)
|
|
32
|
+
- [ ] Low (backlog)
|
|
@@ -1,78 +1,92 @@
|
|
|
1
|
-
# Antigravity AI Kit — Workflows
|
|
2
|
-
|
|
3
|
-
> **Purpose**: Process templates for common development tasks
|
|
4
|
-
> **Count**:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
|
20
|
-
|
|
|
21
|
-
| **
|
|
22
|
-
| **
|
|
23
|
-
| **
|
|
24
|
-
| **
|
|
25
|
-
| **
|
|
26
|
-
| **
|
|
27
|
-
| **
|
|
28
|
-
| **
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
---
|
|
56
|
-
|
|
57
|
-
##
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
1
|
+
# Antigravity AI Kit — Workflows
|
|
2
|
+
|
|
3
|
+
> **Purpose**: Process templates for common development tasks
|
|
4
|
+
> **Count**: 14 Workflows
|
|
5
|
+
> **Standard**: Enterprise Workflow Standard (EWS) v1.0
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Overview
|
|
10
|
+
|
|
11
|
+
Workflows are structured process templates that guide you through complex tasks. Each workflow follows the EWS v1.0 standard with 11 mandatory sections including trigger/lifecycle definition, critical rules, argument parsing, governance alerts, and completion criteria.
|
|
12
|
+
|
|
13
|
+
Invoke them using slash commands (e.g., `/brainstorm authentication system`).
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## Available Workflows
|
|
18
|
+
|
|
19
|
+
| Workflow | Command | Lifecycle | Description |
|
|
20
|
+
| :---------------- | :--------------- | :------------ | :----------------------------------------------- |
|
|
21
|
+
| **brainstorm** | `/brainstorm` | Discover | Creative ideation and option exploration |
|
|
22
|
+
| **quality-gate** | `/quality-gate` | Discover | Pre-task market research, gap analysis, ethics |
|
|
23
|
+
| **plan** | `/plan` | Plan | Structured implementation planning |
|
|
24
|
+
| **create** | `/create` | Build | Scaffold new features, components, or modules |
|
|
25
|
+
| **enhance** | `/enhance` | Build | Iterative feature development on existing code |
|
|
26
|
+
| **preview** | `/preview` | Build | Local development server management |
|
|
27
|
+
| **ui-ux-pro-max** | `/ui-ux-pro-max` | Build | Premium UI/UX design and implementation |
|
|
28
|
+
| **test** | `/test` | Verify | Systematic test writing and execution |
|
|
29
|
+
| **review** | `/review` | Verify | Sequential quality gate pipeline |
|
|
30
|
+
| **deploy** | `/deploy` | Ship | Production deployment with pre-flight checks |
|
|
31
|
+
| **debug** | `/debug` | Reactive | Systematic problem investigation |
|
|
32
|
+
| **orchestrate** | `/orchestrate` | Reactive | Multi-agent coordination for complex tasks |
|
|
33
|
+
| **retrospective** | `/retrospective` | Evaluate | Tier-1 quality audit against market standards |
|
|
34
|
+
| **status** | `/status` | Cross-cutting | Project status overview and health check |
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## SDLC Lifecycle Map
|
|
39
|
+
|
|
40
|
+
```
|
|
41
|
+
Discover ──► Plan ──► Build ──► Verify ──► Ship ──► Evaluate
|
|
42
|
+
│ │ │ │ │ │
|
|
43
|
+
▼ ▼ ▼ ▼ ▼ ▼
|
|
44
|
+
/brainstorm /plan /create /test /deploy /retrospective
|
|
45
|
+
/quality-gate /enhance /review
|
|
46
|
+
/preview
|
|
47
|
+
/ui-ux-pro-max
|
|
48
|
+
|
|
49
|
+
Reactive (any phase) Cross-cutting (any phase)
|
|
50
|
+
──────────────────── ────────────────────────
|
|
51
|
+
/debug /status
|
|
52
|
+
/orchestrate
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## EWS v1.0 Standard
|
|
58
|
+
|
|
59
|
+
Every workflow conforms to the Enterprise Workflow Standard v1.0 with these sections:
|
|
60
|
+
|
|
61
|
+
| # | Section | Purpose |
|
|
62
|
+
| :- | :------------------- | :----------------------------------------------- |
|
|
63
|
+
| 1 | Frontmatter | `description` and `version` fields |
|
|
64
|
+
| 2 | Trigger / Lifecycle | When and where in SDLC this workflow runs |
|
|
65
|
+
| 3 | Governance Alert | Risk-appropriate alert (NOTE/IMPORTANT/CAUTION) |
|
|
66
|
+
| 4 | Critical Rules | Non-negotiable behavioral constraints |
|
|
67
|
+
| 5 | Argument Parsing | Sub-commands and argument table |
|
|
68
|
+
| 6 | Steps | Ordered steps with `// turbo` annotations |
|
|
69
|
+
| 7 | Output Template | Structured output format |
|
|
70
|
+
| 8 | Governance Footer | PROHIBITED / REQUIRED behavioral contracts |
|
|
71
|
+
| 9 | Completion Criteria | Checklist of done criteria |
|
|
72
|
+
| 10 | Related Resources | Links to skills, agents, and related workflows |
|
|
73
|
+
| 11 | Scope Filter | When applicable: commit-type filtering table |
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
## Turbo Annotation Policy
|
|
78
|
+
|
|
79
|
+
Steps annotated with `// turbo` can be auto-executed without user confirmation:
|
|
80
|
+
|
|
81
|
+
- **Allowed**: Read-only steps (analysis, detection, research, diagnostics)
|
|
82
|
+
- **Prohibited**: State-mutating steps (server start, deployment, code generation)
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
## Creating Custom Workflows
|
|
87
|
+
|
|
88
|
+
1. Create `workflows/my-workflow.md`
|
|
89
|
+
2. Add frontmatter with `description` and `version` fields
|
|
90
|
+
3. Follow the EWS v1.0 template (11 sections)
|
|
91
|
+
4. Map to an SDLC lifecycle phase
|
|
92
|
+
5. Link to relevant skills and agents in Related Resources
|
|
@@ -1,100 +1,154 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Structured brainstorming. Explore options before committing to implementation.
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
---
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
1
|
+
---
|
|
2
|
+
description: Structured brainstorming. Explore options before committing to implementation.
|
|
3
|
+
version: 2.1.0
|
|
4
|
+
sdlc-phase: discover
|
|
5
|
+
skills: [brainstorming]
|
|
6
|
+
commit-types: [docs]
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# /brainstorm — Structured Idea Exploration
|
|
10
|
+
|
|
11
|
+
> **Trigger**: `/brainstorm [topic]`
|
|
12
|
+
> **Lifecycle**: Discover — before `/quality-gate` or `/plan`
|
|
13
|
+
|
|
14
|
+
> [!NOTE]
|
|
15
|
+
> This is an exploratory workflow. It produces ideas, not code. All options should be evidence-based.
|
|
16
|
+
|
|
17
|
+
> [!TIP]
|
|
18
|
+
> This workflow leverages the **brainstorming** skill. Read `.agent/skills/brainstorming/SKILL.md` for extended guidance.
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## Critical Rules
|
|
23
|
+
|
|
24
|
+
1. **No code** — produce ideas, diagrams, and analysis only
|
|
25
|
+
2. **Minimum 3 options** — always present at least 3 approaches
|
|
26
|
+
3. **Evidence-based** — support recommendations with reasoning, tradeoffs, and data
|
|
27
|
+
4. **Socratic exploration** — ask clarifying questions before generating options
|
|
28
|
+
5. **Honest tradeoffs** — never hide complexity or risk to make an option look better
|
|
29
|
+
6. **Defer to user** — present options and recommend, but the user decides
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## Argument Parsing
|
|
34
|
+
|
|
35
|
+
| Command | Action |
|
|
36
|
+
| :---------------------- | :----------------------------------------------- |
|
|
37
|
+
| `/brainstorm` | Prompt for topic, then run full exploration |
|
|
38
|
+
| `/brainstorm [topic]` | Explore the specified topic directly |
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
## Steps
|
|
43
|
+
|
|
44
|
+
// turbo
|
|
45
|
+
1. **Gather Context**
|
|
46
|
+
- What problem are we solving?
|
|
47
|
+
- Who is the target user?
|
|
48
|
+
- What constraints exist (time, budget, tech stack)?
|
|
49
|
+
- What has already been tried or ruled out?
|
|
50
|
+
|
|
51
|
+
// turbo
|
|
52
|
+
2. **Research & Analyze**
|
|
53
|
+
- Survey existing patterns and solutions in the codebase
|
|
54
|
+
- Identify industry best practices for the problem domain
|
|
55
|
+
- Note relevant constraints from the project architecture
|
|
56
|
+
|
|
57
|
+
3. **Generate Options**
|
|
58
|
+
- Provide at least 3 distinct approaches
|
|
59
|
+
- Each with pros, cons, effort estimate, and risk level
|
|
60
|
+
- Consider unconventional or hybrid solutions
|
|
61
|
+
|
|
62
|
+
4. **Compare & Recommend**
|
|
63
|
+
- Summarize tradeoffs in a comparison table
|
|
64
|
+
- Give a clear recommendation with reasoning
|
|
65
|
+
- Ask the user which direction to explore further
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
## Output Template
|
|
70
|
+
|
|
71
|
+
```markdown
|
|
72
|
+
## 🧠 Brainstorm: [Topic]
|
|
73
|
+
|
|
74
|
+
### Context
|
|
75
|
+
|
|
76
|
+
[Brief problem statement and constraints]
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
### Option A: [Name]
|
|
81
|
+
|
|
82
|
+
[Description]
|
|
83
|
+
|
|
84
|
+
✅ **Pros:** [benefits]
|
|
85
|
+
❌ **Cons:** [drawbacks]
|
|
86
|
+
📊 **Effort:** Low | Medium | High
|
|
87
|
+
⚠️ **Risk:** Low | Medium | High
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
91
|
+
### Option B: [Name]
|
|
92
|
+
|
|
93
|
+
[Similar format]
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
### Option C: [Name]
|
|
98
|
+
|
|
99
|
+
[Similar format]
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
### Comparison Matrix
|
|
104
|
+
|
|
105
|
+
| Criteria | Option A | Option B | Option C |
|
|
106
|
+
| :----------- | :------- | :------- | :------- |
|
|
107
|
+
| Effort | | | |
|
|
108
|
+
| Risk | | | |
|
|
109
|
+
| Scalability | | | |
|
|
110
|
+
| Maintainability | | | |
|
|
111
|
+
|
|
112
|
+
---
|
|
113
|
+
|
|
114
|
+
## 💡 Recommendation
|
|
115
|
+
|
|
116
|
+
**Option [X]** because [reasoning].
|
|
117
|
+
|
|
118
|
+
After selection: proceed to `/quality-gate` for validation or `/plan` for implementation planning.
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
---
|
|
122
|
+
|
|
123
|
+
## Governance
|
|
124
|
+
|
|
125
|
+
**PROHIBITED:**
|
|
126
|
+
- Writing implementation code during brainstorming
|
|
127
|
+
- Presenting fewer than 3 options
|
|
128
|
+
- Hiding complexity or risk to bias the recommendation
|
|
129
|
+
- Skipping failed steps · proceeding without resolution
|
|
130
|
+
|
|
131
|
+
**REQUIRED:**
|
|
132
|
+
- Clarifying questions before generating options
|
|
133
|
+
- Evidence-based reasoning for all recommendations
|
|
134
|
+
- Comparison matrix for structured decision-making
|
|
135
|
+
- User confirmation before proceeding to next workflow
|
|
136
|
+
|
|
137
|
+
---
|
|
138
|
+
|
|
139
|
+
## Completion Criteria
|
|
140
|
+
|
|
141
|
+
- [ ] Problem statement and constraints are clearly documented
|
|
142
|
+
- [ ] At least 3 distinct options are presented with pros/cons
|
|
143
|
+
- [ ] Comparison matrix is included
|
|
144
|
+
- [ ] Recommendation is given with reasoning
|
|
145
|
+
- [ ] User has selected a direction
|
|
146
|
+
- [ ] After selection: proceed to `/quality-gate` for validation or `/plan` for planning
|
|
147
|
+
|
|
148
|
+
---
|
|
149
|
+
|
|
150
|
+
## Related Resources
|
|
151
|
+
|
|
152
|
+
- **Next**: `/quality-gate` (validate selected approach) · `/plan` (create implementation plan)
|
|
153
|
+
- **Skill**: `.agent/skills/brainstorming/SKILL.md`
|
|
154
|
+
- **Mode**: Activates BRAINSTORM behavioral mode (see `.agent/skills/behavioral-modes/SKILL.md`)
|