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.
Files changed (114) hide show
  1. package/.agent/README.md +4 -4
  2. package/.agent/agents/README.md +16 -12
  3. package/.agent/agents/architect.md +1 -0
  4. package/.agent/agents/backend-specialist.md +11 -0
  5. package/.agent/agents/code-reviewer.md +1 -0
  6. package/.agent/agents/database-architect.md +11 -0
  7. package/.agent/agents/devops-engineer.md +11 -0
  8. package/.agent/agents/e2e-runner.md +1 -0
  9. package/.agent/agents/explorer-agent.md +11 -0
  10. package/.agent/agents/frontend-specialist.md +11 -0
  11. package/.agent/agents/mobile-developer.md +11 -0
  12. package/.agent/agents/performance-optimizer.md +11 -0
  13. package/.agent/agents/planner.md +1 -0
  14. package/.agent/agents/refactor-cleaner.md +1 -0
  15. package/.agent/agents/reliability-engineer.md +11 -0
  16. package/.agent/agents/security-reviewer.md +1 -0
  17. package/.agent/agents/sprint-orchestrator.md +10 -0
  18. package/.agent/agents/tdd-guide.md +1 -0
  19. package/.agent/commands/code-review.md +1 -0
  20. package/.agent/commands/debug.md +1 -0
  21. package/.agent/commands/deploy.md +1 -0
  22. package/.agent/commands/help.md +252 -31
  23. package/.agent/commands/plan.md +1 -0
  24. package/.agent/commands/status.md +1 -0
  25. package/.agent/commands/tdd.md +1 -0
  26. package/.agent/contexts/brainstorm.md +26 -0
  27. package/.agent/contexts/debug.md +28 -0
  28. package/.agent/contexts/implement.md +29 -0
  29. package/.agent/contexts/review.md +27 -0
  30. package/.agent/contexts/ship.md +28 -0
  31. package/.agent/engine/identity.json +13 -0
  32. package/.agent/engine/loading-rules.json +23 -1
  33. package/.agent/engine/marketplace-index.json +29 -0
  34. package/.agent/engine/reliability-config.json +14 -0
  35. package/.agent/engine/sdlc-map.json +44 -0
  36. package/.agent/engine/workflow-state.json +28 -2
  37. package/.agent/hooks/hooks.json +27 -25
  38. package/.agent/manifest.json +12 -4
  39. package/.agent/rules.md +2 -1
  40. package/.agent/skills/README.md +10 -5
  41. package/.agent/skills/i18n-localization/SKILL.md +191 -0
  42. package/.agent/skills/mcp-integration/SKILL.md +224 -0
  43. package/.agent/skills/parallel-agents/SKILL.md +1 -1
  44. package/.agent/skills/shell-conventions/SKILL.md +92 -0
  45. package/.agent/skills/ui-ux-pro-max/SKILL.md +557 -0
  46. package/.agent/skills/ui-ux-pro-max/data/charts.csv +26 -0
  47. package/.agent/skills/ui-ux-pro-max/data/colors.csv +97 -0
  48. package/.agent/skills/ui-ux-pro-max/data/icons.csv +101 -0
  49. package/.agent/skills/ui-ux-pro-max/data/landing.csv +31 -0
  50. package/.agent/skills/ui-ux-pro-max/data/products.csv +97 -0
  51. package/.agent/skills/ui-ux-pro-max/data/react-performance.csv +45 -0
  52. package/.agent/skills/ui-ux-pro-max/data/stacks/astro.csv +54 -0
  53. package/.agent/skills/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
  54. package/.agent/skills/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
  55. package/.agent/skills/ui-ux-pro-max/data/stacks/jetpack-compose.csv +53 -0
  56. package/.agent/skills/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
  57. package/.agent/skills/ui-ux-pro-max/data/stacks/nuxt-ui.csv +51 -0
  58. package/.agent/skills/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
  59. package/.agent/skills/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
  60. package/.agent/skills/ui-ux-pro-max/data/stacks/react.csv +54 -0
  61. package/.agent/skills/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
  62. package/.agent/skills/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
  63. package/.agent/skills/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
  64. package/.agent/skills/ui-ux-pro-max/data/stacks/vue.csv +50 -0
  65. package/.agent/skills/ui-ux-pro-max/data/styles.csv +68 -0
  66. package/.agent/skills/ui-ux-pro-max/data/typography.csv +58 -0
  67. package/.agent/skills/ui-ux-pro-max/data/ui-reasoning.csv +101 -0
  68. package/.agent/skills/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
  69. package/.agent/skills/ui-ux-pro-max/data/web-interface.csv +31 -0
  70. package/.agent/skills/ui-ux-pro-max/scripts/core.py +253 -0
  71. package/.agent/skills/ui-ux-pro-max/scripts/design_system.py +1067 -0
  72. package/.agent/skills/ui-ux-pro-max/scripts/search.py +114 -0
  73. package/.agent/templates/adr-template.md +32 -0
  74. package/.agent/templates/bug-report.md +37 -0
  75. package/.agent/templates/feature-request.md +32 -0
  76. package/.agent/workflows/README.md +92 -78
  77. package/.agent/workflows/brainstorm.md +154 -100
  78. package/.agent/workflows/create.md +142 -75
  79. package/.agent/workflows/debug.md +157 -98
  80. package/.agent/workflows/deploy.md +195 -144
  81. package/.agent/workflows/enhance.md +157 -65
  82. package/.agent/workflows/orchestrate.md +171 -114
  83. package/.agent/workflows/plan.md +147 -72
  84. package/.agent/workflows/preview.md +140 -83
  85. package/.agent/workflows/quality-gate.md +196 -0
  86. package/.agent/workflows/retrospective.md +197 -0
  87. package/.agent/workflows/review.md +188 -0
  88. package/.agent/workflows/status.md +142 -91
  89. package/.agent/workflows/test.md +168 -95
  90. package/.agent/workflows/ui-ux-pro-max.md +181 -127
  91. package/README.md +215 -78
  92. package/bin/ag-kit.js +344 -10
  93. package/lib/agent-registry.js +214 -0
  94. package/lib/agent-reputation.js +351 -0
  95. package/lib/cli-commands.js +235 -0
  96. package/lib/conflict-detector.js +245 -0
  97. package/lib/engineering-manager.js +354 -0
  98. package/lib/error-budget.js +294 -0
  99. package/lib/hook-system.js +252 -0
  100. package/lib/identity.js +245 -0
  101. package/lib/loading-engine.js +208 -0
  102. package/lib/marketplace.js +298 -0
  103. package/lib/plugin-system.js +604 -0
  104. package/lib/security-scanner.js +309 -0
  105. package/lib/self-healing.js +434 -0
  106. package/lib/session-manager.js +261 -0
  107. package/lib/skill-sandbox.js +244 -0
  108. package/lib/task-governance.js +523 -0
  109. package/lib/task-model.js +317 -0
  110. package/lib/updater.js +201 -0
  111. package/lib/verify.js +240 -0
  112. package/lib/workflow-engine.js +353 -0
  113. package/lib/workflow-persistence.js +160 -0
  114. package/package.json +7 -3
@@ -1,75 +1,142 @@
1
- ---
2
- description: Create new features, components, or modules from scratch
3
- ---
4
-
5
- # /create Workflow
6
-
7
- > **Purpose**: Scaffold new features, components, or modules with best practices
8
-
9
- ---
10
-
11
- ## Workflow Steps
12
-
13
- ### 1. Clarify Requirements
14
-
15
- - What type of component/feature?
16
- - What framework/technology?
17
- - Any specific patterns to follow?
18
-
19
- ### 2. Check Existing Patterns
20
-
21
- - Look for similar components in codebase
22
- - Identify established conventions
23
- - Reuse existing utilities and helpers
24
-
25
- ### 3. Scaffold Structure
26
-
27
- ```
28
- feature/
29
- ├── components/ # UI components
30
- ├── hooks/ # Custom hooks
31
- ├── utils/ # Utility functions
32
- ├── types/ # TypeScript types
33
- ├── api/ # API calls
34
- ├── __tests__/ # Tests
35
- └── index.ts # Public exports
36
- ```
37
-
38
- ### 4. Implement Core Logic
39
-
40
- - Follow existing code patterns
41
- - Apply SOLID principles
42
- - Write self-documenting code
43
-
44
- ### 5. Add Tests
45
-
46
- - Unit tests for utilities
47
- - Integration tests for components
48
- - E2E tests for critical flows
49
-
50
- ### 6. Document
51
-
52
- - Add JSDoc comments
53
- - Update README if needed
54
- - Create usage examples
55
-
56
- ---
57
-
58
- ## Checklist
59
-
60
- - [ ] Requirements clarified
61
- - [ ] Existing patterns reviewed
62
- - [ ] Structure scaffolded
63
- - [ ] Core logic implemented
64
- - [ ] Tests written
65
- - [ ] Documentation added
66
-
67
- ---
68
-
69
- ## Examples
70
-
71
- ```
72
- /create React component for user profile card
73
- /create NestJS module for authentication
74
- /create API endpoint for order processing
75
- ```
1
+ ---
2
+ description: Create new features, components, or modules from scratch.
3
+ version: 2.1.0
4
+ sdlc-phase: build
5
+ skills: [app-builder, clean-code]
6
+ commit-types: [feat]
7
+ ---
8
+
9
+ # /create — Scaffold New Features
10
+
11
+ > **Trigger**: `/create [description]`
12
+ > **Lifecycle**: Build — after `/plan` approval
13
+
14
+ > [!IMPORTANT]
15
+ > This workflow creates new code. All scaffolded code MUST follow existing project patterns and conventions. No orphan code — everything must integrate with the existing architecture.
16
+
17
+ > [!TIP]
18
+ > This workflow leverages the **app-builder** skill. Read `.agent/skills/app-builder/SKILL.md` for extended guidance.
19
+
20
+ ---
21
+
22
+ ## Critical Rules
23
+
24
+ 1. **Follow existing patterns** — scan the codebase for conventions before writing anything
25
+ 2. **No orphan code** — every new file must be imported, referenced, or routed
26
+ 3. **Tests required** — every new feature must include appropriate tests
27
+ 4. **Stack-agnostic detection** — auto-detect the project type before scaffolding
28
+ 5. **User approval for major scaffolds** — present the plan before creating >5 files
29
+ 6. **Document public APIs** — add inline documentation for all exported functions/components
30
+
31
+ ---
32
+
33
+ ## Steps
34
+
35
+ // turbo
36
+ 1. **Clarify Requirements**
37
+ - What type of component, feature, or module?
38
+ - What is the acceptance criteria?
39
+ - Any specific patterns, libraries, or constraints?
40
+
41
+ // turbo
42
+ 2. **Detect Project Stack**
43
+ - Auto-detect the project type from config files (`package.json`, `pyproject.toml`, `Cargo.toml`, `go.mod`, etc.)
44
+ - Identify the framework, language, and conventions in use
45
+ - Determine the appropriate scaffold structure
46
+
47
+ // turbo
48
+ 3. **Analyze Existing Patterns**
49
+ - Search for similar components/modules in the codebase
50
+ - Identify naming conventions, file structure, and import patterns
51
+ - Note relevant utilities, helpers, and shared modules to reuse
52
+
53
+ 4. **Present Scaffold Plan**
54
+ - Show the proposed file structure and integration points
55
+ - For major scaffolds (>5 files): present plan and wait for user approval
56
+ - For minor scaffolds: proceed with creation
57
+
58
+ 5. **Implement**
59
+ - Create files following detected project conventions
60
+ - Apply SOLID principles and project-specific patterns
61
+ - Wire up imports, routes, and exports
62
+
63
+ 6. **Add Tests**
64
+ - Unit tests for utilities and business logic
65
+ - Integration tests for component interactions
66
+ - E2E tests for critical user flows (when applicable)
67
+
68
+ 7. **Document**
69
+ - Add inline documentation (JSDoc, docstrings, etc.)
70
+ - Update relevant README or docs if the feature is user-facing
71
+ - Create usage examples if appropriate
72
+
73
+ ---
74
+
75
+ ## Output Template
76
+
77
+ ```markdown
78
+ ## 🏗️ Create: [Feature Name]
79
+
80
+ ### Stack Detected
81
+
82
+ - **Language**: [language]
83
+ - **Framework**: [framework]
84
+ - **Conventions**: [detected patterns]
85
+
86
+ ### Files Created
87
+
88
+ | File | Purpose |
89
+ | :--- | :------ |
90
+ | `path/to/file` | [description] |
91
+
92
+ ### Integration Points
93
+
94
+ - [How new code connects to existing architecture]
95
+
96
+ ### Tests Added
97
+
98
+ - [x] Unit tests: `path/to/tests`
99
+ - [x] Integration tests: `path/to/tests`
100
+
101
+ ### Next Steps
102
+
103
+ After creation: proceed to `/test` for full test suite or `/preview` for visual verification.
104
+ ```
105
+
106
+ ---
107
+
108
+ ## Governance
109
+
110
+ **PROHIBITED:**
111
+ - Creating files without checking existing patterns first
112
+ - Scaffolding framework-specific code in a different-stack project
113
+ - Leaving orphan files not connected to the project
114
+ - Skipping tests for new features
115
+ - Skipping failed steps · proceeding without resolution
116
+
117
+ **REQUIRED:**
118
+ - Stack detection before scaffolding
119
+ - Pattern analysis before implementation
120
+ - User approval for scaffolds creating >5 files
121
+ - Test coverage for all new code
122
+ - Integration with existing project architecture
123
+
124
+ ---
125
+
126
+ ## Completion Criteria
127
+
128
+ - [ ] Project stack is detected and documented
129
+ - [ ] Existing patterns are analyzed and followed
130
+ - [ ] All files are created and integrated (no orphans)
131
+ - [ ] Tests are written and passing
132
+ - [ ] Documentation is added for public APIs
133
+ - [ ] After creation: proceed to `/test` for validation or `/preview` for visual check
134
+
135
+ ---
136
+
137
+ ## Related Resources
138
+
139
+ - **Previous**: `/plan` (implementation plan must exist for major features)
140
+ - **Next**: `/test` (validate new code) · `/preview` (visual verification)
141
+ - **Skill**: `.agent/skills/app-builder/SKILL.md`
142
+ - **Related Skills**: `.agent/skills/clean-code/SKILL.md` · `.agent/skills/architecture/SKILL.md`
@@ -1,98 +1,157 @@
1
- ---
2
- description: Systematic debugging workflow. Activates DEBUG mode for problem investigation.
3
- ---
4
-
5
- # /debug - Systematic Problem Investigation
6
-
7
- $ARGUMENTS
8
-
9
- ---
10
-
11
- ## Purpose
12
-
13
- Activates DEBUG mode for systematic investigation of issues, errors, or unexpected behavior.
14
-
15
- ---
16
-
17
- ## Behavior
18
-
19
- 1. **Gather Information**
20
- - Error message
21
- - Reproduction steps
22
- - Expected vs actual behavior
23
- - Recent changes
24
-
25
- 2. **Form Hypotheses**
26
- - List possible causes
27
- - Order by likelihood
28
-
29
- 3. **Investigate Systematically**
30
- - Test each hypothesis
31
- - Check logs, data flow
32
- - Use elimination method
33
-
34
- 4. **Fix and Prevent**
35
- - Apply fix
36
- - Explain root cause
37
- - Add prevention measures
38
-
39
- ---
40
-
41
- ## Output Format
42
-
43
- ```markdown
44
- ## 🔍 Debug: [Issue]
45
-
46
- ### 1. Symptom
47
-
48
- [What's happening]
49
-
50
- ### 2. Information Gathered
51
-
52
- - Error: `[error message]`
53
- - File: `[filepath]`
54
- - Line: [line number]
55
-
56
- ### 3. Hypotheses
57
-
58
- 1. [Most likely cause]
59
- 2. [Second possibility]
60
- 3. [Less likely cause]
61
-
62
- ### 4. Investigation
63
-
64
- **Testing hypothesis 1:**
65
- [What I checked] [Result]
66
-
67
- ### 5. Root Cause
68
-
69
- 🎯 **[Explanation]**
70
-
71
- ### 6. Fix
72
-
73
- [Code changes]
74
-
75
- ### 7. Prevention
76
-
77
- 🛡️ [How to prevent in future]
78
- ```
79
-
80
- ---
81
-
82
- ## Examples
83
-
84
- ```
85
- /debug login not working
86
- /debug API returns 500
87
- /debug form doesn't submit
88
- /debug data not saving
89
- ```
90
-
91
- ---
92
-
93
- ## Key Principles
94
-
95
- - **Ask before assuming** — get full error context
96
- - **Test hypotheses** — don't guess randomly
97
- - **Explain why** — not just what to fix
98
- - **Prevent recurrence** add tests, validation
1
+ ---
2
+ description: Systematic debugging workflow. Activates DEBUG mode for problem investigation.
3
+ version: 2.1.0
4
+ sdlc-phase: reactive
5
+ skills: [debugging-strategies]
6
+ commit-types: [fix]
7
+ ---
8
+
9
+ # /debug — Systematic Problem Investigation
10
+
11
+ > **Trigger**: `/debug [issue description]`
12
+ > **Lifecycle**: Reactive — any SDLC phase
13
+
14
+ > [!CAUTION]
15
+ > Debugging may involve production systems. Never apply untested fixes to production. Always identify and document the root cause before implementing changes.
16
+
17
+ > [!TIP]
18
+ > This workflow leverages the **debugging-strategies** skill. Read `.agent/skills/debugging-strategies/SKILL.md` for extended guidance.
19
+
20
+ ---
21
+
22
+ ## Critical Rules
23
+
24
+ 1. **Root cause required** — never apply a fix without understanding why the issue occurs
25
+ 2. **No guessing** — form hypotheses, test them systematically, eliminate possibilities
26
+ 3. **Prevention mandatory** — every fix must include measures to prevent recurrence
27
+ 4. **Preserve evidence** — capture error messages, logs, and reproduction steps before changing anything
28
+ 5. **Minimal changes** — fix only what's broken; avoid scope creep during debugging
29
+
30
+ ---
31
+
32
+ ## Argument Parsing
33
+
34
+ | Command | Action |
35
+ | :-------------------------- | :------------------------------------------- |
36
+ | `/debug` | Prompt for issue description |
37
+ | `/debug [issue]` | Investigate the specified issue directly |
38
+
39
+ ---
40
+
41
+ ## Steps
42
+
43
+ // turbo
44
+ 1. **Gather Information**
45
+ - Capture the exact error message, stack trace, or unexpected behavior
46
+ - Document reproduction steps (reliable vs. intermittent)
47
+ - Note expected vs. actual behavior
48
+
49
+ // turbo
50
+ 2. **Environment Diagnostics**
51
+ - Operating system and version
52
+ - Runtime versions (Node.js, Python, etc.)
53
+ - Recent git changes (`git log -5 --oneline`)
54
+ - Relevant environment variables and config
55
+ - Dependency versions (`package.json`, `pyproject.toml`, etc.)
56
+
57
+ // turbo
58
+ 3. **Form Hypotheses**
59
+ - List 3+ possible causes, ordered by likelihood
60
+ - Consider: recent changes, dependency issues, environment differences, data edge cases
61
+
62
+ // turbo
63
+ 4. **Investigate Systematically**
64
+ - Test each hypothesis in order of likelihood
65
+ - Check logs, data flow, network requests, and state
66
+ - Use elimination method — rule out causes definitively
67
+ - Document findings for each hypothesis tested
68
+
69
+ 5. **Apply Fix**
70
+ - Implement the minimal fix that addresses the root cause
71
+ - Verify the fix resolves the original issue
72
+ - Confirm no regressions are introduced
73
+
74
+ 6. **Prevent Recurrence**
75
+ - Add tests that would catch this issue
76
+ - Add validation, error handling, or guardrails as needed
77
+ - Document the root cause for future reference
78
+
79
+ ---
80
+
81
+ ## Output Template
82
+
83
+ ```markdown
84
+ ## 🔍 Debug: [Issue]
85
+
86
+ ### 1. Symptom
87
+
88
+ [What's happening error message, unexpected behavior]
89
+
90
+ ### 2. Environment
91
+
92
+ - **OS**: [os]
93
+ - **Runtime**: [runtime and version]
94
+ - **Recent Changes**: [last 3 commits]
95
+
96
+ ### 3. Hypotheses
97
+
98
+ 1. [Most likely cause] [why]
99
+ 2. ❓ [Second possibility] — [why]
100
+ 3. ❓ [Less likely cause] — [why]
101
+
102
+ ### 4. Investigation
103
+
104
+ **Hypothesis 1:** [What I checked] → [Result: confirmed / eliminated]
105
+ **Hypothesis 2:** [What I checked] → [Result]
106
+
107
+ ### 5. Root Cause
108
+
109
+ 🎯 **[Root cause explanation]**
110
+
111
+ ### 6. Fix Applied
112
+
113
+ [Code changes with explanation]
114
+
115
+ ### 7. Prevention
116
+
117
+ 🛡️ [Tests added, validation added, documentation updated]
118
+
119
+ After fix: proceed to `/test` for regression verification.
120
+ ```
121
+
122
+ ---
123
+
124
+ ## Governance
125
+
126
+ **PROHIBITED:**
127
+ - Applying fixes without identifying the root cause
128
+ - Guessing randomly without structured hypothesis testing
129
+ - Modifying production systems without rollback plan
130
+ - Ignoring prevention measures after a fix
131
+ - Skipping failed steps · proceeding without resolution
132
+
133
+ **REQUIRED:**
134
+ - Evidence-based hypothesis testing
135
+ - Root cause documentation before any fix
136
+ - Prevention measures (tests, validation, guardrails)
137
+ - Regression verification after fix
138
+
139
+ ---
140
+
141
+ ## Completion Criteria
142
+
143
+ - [ ] Error/issue is fully reproduced and documented
144
+ - [ ] Environment diagnostics are captured
145
+ - [ ] Root cause is identified with evidence
146
+ - [ ] Fix is applied and verified
147
+ - [ ] Prevention measures are implemented (tests, validation)
148
+ - [ ] No regressions introduced
149
+ - [ ] After fix: proceed to `/test` for full regression check
150
+
151
+ ---
152
+
153
+ ## Related Resources
154
+
155
+ - **Next**: `/test` (regression verification after fix)
156
+ - **Skill**: `.agent/skills/debugging-strategies/SKILL.md`
157
+ - **Related Skills**: `.agent/skills/testing-patterns/SKILL.md`