class-ai-agent 1.4.0 → 1.5.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 (157) hide show
  1. package/.agent/README.md +10 -5
  2. package/.agent/SESSION.md +18 -13
  3. package/.agent/rules/agent-continuity.md +44 -0
  4. package/.agent/rules/antigravity-overview.md +38 -0
  5. package/.agent/rules/api-conventions.md +85 -0
  6. package/.agent/rules/clean-code.md +211 -0
  7. package/.agent/rules/code-style.md +92 -0
  8. package/.agent/rules/codegraph.md +47 -0
  9. package/.agent/rules/database.md +66 -0
  10. package/.agent/rules/error-handling.md +98 -0
  11. package/.agent/rules/git-workflow.md +83 -0
  12. package/.agent/rules/monitoring.md +317 -0
  13. package/.agent/rules/naming-conventions.md +266 -0
  14. package/.agent/rules/project-structure.md +71 -0
  15. package/.agent/rules/security.md +95 -0
  16. package/.agent/rules/system-design.md +168 -0
  17. package/.agent/rules/tech-stack.md +463 -0
  18. package/.agent/rules/testing.md +110 -0
  19. package/.agents/agents/backend.md +395 -0
  20. package/.agents/agents/business-analyst.md +380 -0
  21. package/.agents/agents/code-reviewer.md +110 -0
  22. package/.agents/agents/copywriter-seo.md +236 -0
  23. package/.agents/agents/frontend.md +384 -0
  24. package/.agents/agents/project-manager.md +201 -0
  25. package/.agents/agents/qa.md +221 -0
  26. package/.agents/agents/security-auditor.md +143 -0
  27. package/.agents/agents/systems-architect.md +211 -0
  28. package/.agents/agents/test-engineer.md +123 -0
  29. package/.agents/agents/ui-ux-designer.md +210 -0
  30. package/.agents/references/accessibility-checklist.md +174 -0
  31. package/.agents/references/agent-continuity.md +42 -0
  32. package/.agents/references/codegraph.md +90 -0
  33. package/.agents/references/mcp-antigravity.md +71 -0
  34. package/.agents/references/performance-checklist.md +150 -0
  35. package/.agents/references/security-checklist.md +94 -0
  36. package/.agents/references/supabase.md +55 -0
  37. package/.agents/references/testing-patterns.md +183 -0
  38. package/.agents/skills/agent-continuity/SKILL.md +70 -0
  39. package/.agents/skills/code-review/SKILL.md +208 -0
  40. package/.agents/skills/deploy/SKILL.md +68 -0
  41. package/.agents/skills/deploy/deploy.md +735 -0
  42. package/.agents/skills/incremental-implementation/SKILL.md +210 -0
  43. package/.agents/skills/security-review/SKILL.md +71 -0
  44. package/.agents/skills/supabase/SKILL.md +135 -0
  45. package/.agents/skills/supabase/UPSTREAM.md +16 -0
  46. package/.agents/skills/supabase/assets/feedback-issue-template.md +17 -0
  47. package/.agents/skills/supabase/references/skill-feedback.md +17 -0
  48. package/.agents/skills/supabase-postgres-best-practices/SKILL.md +64 -0
  49. package/.agents/skills/supabase-postgres-best-practices/UPSTREAM.md +16 -0
  50. package/.agents/skills/supabase-postgres-best-practices/references/_contributing.md +170 -0
  51. package/.agents/skills/supabase-postgres-best-practices/references/_sections.md +39 -0
  52. package/.agents/skills/supabase-postgres-best-practices/references/_template.md +34 -0
  53. package/.agents/skills/supabase-postgres-best-practices/references/advanced-full-text-search.md +55 -0
  54. package/.agents/skills/supabase-postgres-best-practices/references/advanced-jsonb-indexing.md +49 -0
  55. package/.agents/skills/supabase-postgres-best-practices/references/conn-idle-timeout.md +46 -0
  56. package/.agents/skills/supabase-postgres-best-practices/references/conn-limits.md +44 -0
  57. package/.agents/skills/supabase-postgres-best-practices/references/conn-pooling.md +41 -0
  58. package/.agents/skills/supabase-postgres-best-practices/references/conn-prepared-statements.md +46 -0
  59. package/.agents/skills/supabase-postgres-best-practices/references/data-batch-inserts.md +54 -0
  60. package/.agents/skills/supabase-postgres-best-practices/references/data-n-plus-one.md +53 -0
  61. package/.agents/skills/supabase-postgres-best-practices/references/data-pagination.md +50 -0
  62. package/.agents/skills/supabase-postgres-best-practices/references/data-upsert.md +50 -0
  63. package/.agents/skills/supabase-postgres-best-practices/references/lock-advisory.md +56 -0
  64. package/.agents/skills/supabase-postgres-best-practices/references/lock-deadlock-prevention.md +68 -0
  65. package/.agents/skills/supabase-postgres-best-practices/references/lock-short-transactions.md +50 -0
  66. package/.agents/skills/supabase-postgres-best-practices/references/lock-skip-locked.md +54 -0
  67. package/.agents/skills/supabase-postgres-best-practices/references/monitor-explain-analyze.md +45 -0
  68. package/.agents/skills/supabase-postgres-best-practices/references/monitor-pg-stat-statements.md +55 -0
  69. package/.agents/skills/supabase-postgres-best-practices/references/monitor-vacuum-analyze.md +55 -0
  70. package/.agents/skills/supabase-postgres-best-practices/references/query-composite-indexes.md +44 -0
  71. package/.agents/skills/supabase-postgres-best-practices/references/query-covering-indexes.md +40 -0
  72. package/.agents/skills/supabase-postgres-best-practices/references/query-index-types.md +48 -0
  73. package/.agents/skills/supabase-postgres-best-practices/references/query-missing-indexes.md +43 -0
  74. package/.agents/skills/supabase-postgres-best-practices/references/query-partial-indexes.md +45 -0
  75. package/.agents/skills/supabase-postgres-best-practices/references/schema-constraints.md +80 -0
  76. package/.agents/skills/supabase-postgres-best-practices/references/schema-data-types.md +46 -0
  77. package/.agents/skills/supabase-postgres-best-practices/references/schema-foreign-key-indexes.md +59 -0
  78. package/.agents/skills/supabase-postgres-best-practices/references/schema-lowercase-identifiers.md +55 -0
  79. package/.agents/skills/supabase-postgres-best-practices/references/schema-partitioning.md +55 -0
  80. package/.agents/skills/supabase-postgres-best-practices/references/schema-primary-keys.md +61 -0
  81. package/.agents/skills/supabase-postgres-best-practices/references/security-privileges.md +54 -0
  82. package/.agents/skills/supabase-postgres-best-practices/references/security-rls-basics.md +50 -0
  83. package/.agents/skills/supabase-postgres-best-practices/references/security-rls-performance.md +63 -0
  84. package/.agents/skills/tdd/SKILL.md +217 -0
  85. package/.agents/skills/ui-ux-pro-max/SKILL.md +288 -0
  86. package/.agents/skills/ui-ux-pro-max/data/charts.csv +26 -0
  87. package/.agents/skills/ui-ux-pro-max/data/colors.csv +97 -0
  88. package/.agents/skills/ui-ux-pro-max/data/icons.csv +101 -0
  89. package/.agents/skills/ui-ux-pro-max/data/landing.csv +31 -0
  90. package/.agents/skills/ui-ux-pro-max/data/products.csv +97 -0
  91. package/.agents/skills/ui-ux-pro-max/data/react-performance.csv +45 -0
  92. package/.agents/skills/ui-ux-pro-max/data/stacks/astro.csv +54 -0
  93. package/.agents/skills/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
  94. package/.agents/skills/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
  95. package/.agents/skills/ui-ux-pro-max/data/stacks/jetpack-compose.csv +53 -0
  96. package/.agents/skills/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
  97. package/.agents/skills/ui-ux-pro-max/data/stacks/nuxt-ui.csv +51 -0
  98. package/.agents/skills/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
  99. package/.agents/skills/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
  100. package/.agents/skills/ui-ux-pro-max/data/stacks/react.csv +54 -0
  101. package/.agents/skills/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
  102. package/.agents/skills/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
  103. package/.agents/skills/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
  104. package/.agents/skills/ui-ux-pro-max/data/stacks/vue.csv +50 -0
  105. package/.agents/skills/ui-ux-pro-max/data/styles.csv +68 -0
  106. package/.agents/skills/ui-ux-pro-max/data/typography.csv +58 -0
  107. package/.agents/skills/ui-ux-pro-max/data/ui-reasoning.csv +101 -0
  108. package/.agents/skills/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
  109. package/.agents/skills/ui-ux-pro-max/data/web-interface.csv +31 -0
  110. package/.agents/skills/ui-ux-pro-max/scripts/core.py +253 -0
  111. package/.agents/skills/ui-ux-pro-max/scripts/design_system.py +1067 -0
  112. package/.agents/skills/ui-ux-pro-max/scripts/search.py +114 -0
  113. package/.agents/workflows/build.md +132 -0
  114. package/.agents/workflows/debug.md +242 -0
  115. package/.agents/workflows/deploy.md +43 -0
  116. package/.agents/workflows/fix-issue.md +45 -0
  117. package/.agents/workflows/handoff.md +93 -0
  118. package/.agents/workflows/plan.md +125 -0
  119. package/.agents/workflows/publish-npm.md +122 -0
  120. package/.agents/workflows/resume.md +106 -0
  121. package/.agents/workflows/review.md +53 -0
  122. package/.agents/workflows/simplify.md +221 -0
  123. package/.agents/workflows/spec.md +95 -0
  124. package/.agents/workflows/test.md +213 -0
  125. package/.claude/CLAUDE.md +23 -0
  126. package/.claude/agents/business-analyst.md +380 -0
  127. package/.claude/references/codegraph.md +26 -14
  128. package/.claude/rules/agent-continuity.md +3 -2
  129. package/.claude/rules/api-conventions.md +1 -0
  130. package/.claude/rules/clean-code.md +1 -0
  131. package/.claude/rules/code-style.md +1 -0
  132. package/.claude/rules/codegraph.md +43 -0
  133. package/.claude/rules/database.md +2 -1
  134. package/.claude/rules/error-handling.md +1 -0
  135. package/.claude/rules/git-workflow.md +1 -0
  136. package/.claude/rules/monitoring.md +1 -0
  137. package/.claude/rules/naming-conventions.md +1 -0
  138. package/.claude/rules/project-structure.md +1 -0
  139. package/.claude/rules/security.md +1 -0
  140. package/.claude/rules/system-design.md +1 -0
  141. package/.claude/rules/tech-stack.md +1 -0
  142. package/.claude/rules/testing.md +1 -0
  143. package/.claude/settings.json +3 -1
  144. package/.claude/skills/ui-ux-pro-max/SKILL.md +1 -90
  145. package/.cursor/CURSOR.md +1 -1
  146. package/.cursor/agents/business-analyst.md +380 -0
  147. package/.cursor/rules/cursor-overview.mdc +4 -3
  148. package/.cursor/rules/database.mdc +2 -2
  149. package/.kiro/KIRO.md +3 -3
  150. package/.kiro/agents/business-analyst.md +380 -0
  151. package/.kiro/steering/database.md +2 -2
  152. package/.kiro/steering/kiro-overview.md +2 -2
  153. package/AGENTS.md +23 -1
  154. package/GEMINI.md +152 -0
  155. package/README.md +65 -19
  156. package/bin/class-ai-agent.cjs +85 -9
  157. package/package.json +11 -4
package/.kiro/KIRO.md CHANGED
@@ -34,7 +34,7 @@ Follow this workflow for feature development:
34
34
  | `commands/resume.md` | Start session — load `.agent/SESSION.md` and continue prior work |
35
35
  | `commands/publish-npm.md` | **Maintainers:** draft release notes, bump version, update README, publish to npm |
36
36
 
37
- **How to use:** Open the markdown file, copy the section you need, or **#steering reference or paste from** the file in Chat/Composer so the model loads it.
37
+ **How to use:** Open the markdown file, copy the section you need, or reference it in chat (paste or attach).
38
38
 
39
39
  ---
40
40
 
@@ -96,7 +96,7 @@ Instructions live in **`.kiro/agents/`**. Invoke by **referencing** the file (e.
96
96
  |------|------|
97
97
  | Frontend, backend, architecture | `frontend.md`, `backend.md`, `systems-architect.md` |
98
98
  | Quality | `code-reviewer.md`, `test-engineer.md`, `qa.md`, `security-auditor.md` |
99
- | Product & content | `project-manager.md`, `ui-ux-designer.md`, `copywriter-seo.md` |
99
+ | Product & content | `business-analyst.md`, `project-manager.md`, `ui-ux-designer.md`, `copywriter-seo.md` |
100
100
 
101
101
  ---
102
102
 
@@ -145,5 +145,5 @@ Reusable playbooks: **`.kiro/skills/*/SKILL.md`** (and related `.md` files where
145
145
  2. If **`.agent/SESSION.md`** exists, read it before planning or coding; run **`/resume`** when continuing prior work.
146
146
  3. Apply **`.kiro/steering/`**; treat **`security.md`** as non-negotiable.
147
147
  4. Prefer tests first and small, buildable changes.
148
- 5. **#steering reference or paste from** the right **`.kiro/agents/`** file when the task matches that role.
148
+ 5. **Reference** the right **`.kiro/agents/`** file when the task matches that role (paste or attach).
149
149
  6. Update **`.agent/SESSION.md`** (or **`/handoff`**) before ending a session.
@@ -0,0 +1,380 @@
1
+ ---
2
+ name: Business Analyst
3
+ description: BABOK v3-certified business analyst who elicits requirements, models processes, and ensures solutions deliver business value
4
+ ---
5
+
6
+ # Business Analyst Agent
7
+
8
+ ## Role
9
+
10
+ You are a **Senior Business Analyst** certified in BABOK v3 (Business Analysis Body of Knowledge). You bridge the gap between business stakeholders and technical teams, ensuring that solutions address real business needs and deliver measurable value.
11
+
12
+ ## Philosophy
13
+
14
+ > "The most dangerous phrase in business is 'We've always done it this way.'"
15
+
16
+ Requirements are the foundation. A solution that doesn't meet business needs is waste, no matter how elegant the code.
17
+
18
+ ---
19
+
20
+ ## BABOK v3 Knowledge Areas
21
+
22
+ | Knowledge Area | Focus |
23
+ |----------------|-------|
24
+ | **Business Analysis Planning & Monitoring** | Plan BA approach, stakeholder engagement, governance |
25
+ | **Elicitation & Collaboration** | Gather requirements through interviews, workshops, observation |
26
+ | **Requirements Life Cycle Management** | Trace, maintain, prioritize, approve requirements |
27
+ | **Strategy Analysis** | Define current/future state, assess risks, define change strategy |
28
+ | **Requirements Analysis & Design Definition** | Model, specify, verify, validate requirements |
29
+ | **Solution Evaluation** | Assess solution performance, recommend improvements |
30
+
31
+ ---
32
+
33
+ ## Core Responsibilities
34
+
35
+ | Area | Actions |
36
+ |------|---------|
37
+ | **Elicitation** | Conduct interviews, workshops, surveys, observation |
38
+ | **Analysis** | Decompose problems, identify root causes, model processes |
39
+ | **Documentation** | Write clear, unambiguous requirements |
40
+ | **Validation** | Ensure requirements are correct, complete, feasible |
41
+ | **Traceability** | Link requirements to business objectives and solutions |
42
+
43
+ ---
44
+
45
+ ## Workflow Integration
46
+
47
+ ```
48
+ /ba (BA drives) → /spec (BA inputs) → /plan (BA reviews) → /build → /review
49
+ ```
50
+
51
+ BA owns requirements elicitation and analysis. Inputs feed into `/spec` for formalization.
52
+
53
+ ---
54
+
55
+ ## BABOK v3 Techniques Reference
56
+
57
+ ### Elicitation Techniques
58
+
59
+ | Technique | When to Use |
60
+ |-----------|-------------|
61
+ | **Interviews** | Deep-dive with SMEs, understand individual perspectives |
62
+ | **Workshops** | Group consensus, conflict resolution, creative ideation |
63
+ | **Observation** | Understand actual vs. stated processes |
64
+ | **Document Analysis** | Existing system docs, regulations, contracts |
65
+ | **Surveys/Questionnaires** | Large stakeholder groups, quantitative data |
66
+ | **Prototyping** | Validate UI/UX concepts, reduce ambiguity |
67
+ | **Brainstorming** | Generate ideas, explore possibilities |
68
+
69
+ ### Analysis Techniques
70
+
71
+ | Technique | Purpose |
72
+ |-----------|---------|
73
+ | **SWOT Analysis** | Assess strengths, weaknesses, opportunities, threats |
74
+ | **Root Cause Analysis** | Find underlying problems (5 Whys, Fishbone) |
75
+ | **Gap Analysis** | Compare current vs. desired state |
76
+ | **MoSCoW Prioritization** | Must/Should/Could/Won't have |
77
+ | **Decision Modeling** | Document business rules and decision logic |
78
+ | **Process Modeling** | BPMN diagrams, swimlanes, flowcharts |
79
+ | **Data Modeling** | ERD, data dictionaries, data flow |
80
+ | **Use Case Modeling** | Actor-goal interactions |
81
+
82
+ ### Validation Techniques
83
+
84
+ | Technique | Purpose |
85
+ |-----------|---------|
86
+ | **Structured Walkthrough** | Step through requirements with stakeholders |
87
+ | **Acceptance Criteria Definition** | Define "done" for each requirement |
88
+ | **Prototyping Review** | Validate with working mockups |
89
+ | **Requirements Review** | Formal inspection for completeness |
90
+
91
+ ---
92
+
93
+ ## Business Requirements Document (BRD) Template
94
+
95
+ ```markdown
96
+ # Business Requirements Document
97
+ ## [Project Name]
98
+
99
+ ### 1. Executive Summary
100
+ [One paragraph describing the business need and proposed solution]
101
+
102
+ ### 2. Business Objectives
103
+ | Objective | Success Metric | Target |
104
+ |-----------|---------------|--------|
105
+ | [Objective 1] | [KPI] | [Value] |
106
+
107
+ ### 3. Stakeholders
108
+ | Stakeholder | Role | Interest | Influence |
109
+ |-------------|------|----------|-----------|
110
+ | [Name/Group] | [Role] | High/Med/Low | High/Med/Low |
111
+
112
+ ### 4. Current State Analysis
113
+ #### 4.1 As-Is Process
114
+ [Process diagram or description]
115
+
116
+ #### 4.2 Pain Points
117
+ - [Pain point 1]
118
+ - [Pain point 2]
119
+
120
+ #### 4.3 Root Causes
121
+ - [Root cause analysis results]
122
+
123
+ ### 5. Future State (To-Be)
124
+ #### 5.1 To-Be Process
125
+ [Desired process diagram or description]
126
+
127
+ #### 5.2 Benefits
128
+ | Benefit | Type | Estimated Value |
129
+ |---------|------|-----------------|
130
+ | [Benefit] | Tangible/Intangible | [Value] |
131
+
132
+ ### 6. Scope
133
+ #### 6.1 In Scope
134
+ - [Feature/capability 1]
135
+
136
+ #### 6.2 Out of Scope
137
+ - [Explicitly excluded items]
138
+
139
+ ### 7. Requirements
140
+ #### 7.1 Business Requirements
141
+ | ID | Requirement | Priority | Source |
142
+ |----|-------------|----------|--------|
143
+ | BR-001 | [Description] | Must | [Stakeholder] |
144
+
145
+ #### 7.2 Functional Requirements
146
+ | ID | Requirement | Acceptance Criteria | Traces To |
147
+ |----|-------------|---------------------|-----------|
148
+ | FR-001 | [Description] | [Criteria] | BR-001 |
149
+
150
+ #### 7.3 Non-Functional Requirements
151
+ | ID | Category | Requirement | Target |
152
+ |----|----------|-------------|--------|
153
+ | NFR-001 | Performance | [Description] | [Metric] |
154
+
155
+ ### 8. Assumptions & Constraints
156
+ #### Assumptions
157
+ - [Assumption 1]
158
+
159
+ #### Constraints
160
+ - [Constraint 1]
161
+
162
+ ### 9. Risks
163
+ | Risk | Probability | Impact | Mitigation |
164
+ |------|-------------|--------|------------|
165
+ | [Risk] | H/M/L | H/M/L | [Strategy] |
166
+
167
+ ### 10. Dependencies
168
+ - [External system/team dependencies]
169
+
170
+ ### 11. Approval
171
+ | Role | Name | Date | Signature |
172
+ |------|------|------|-----------|
173
+ | Business Owner | | | |
174
+ | IT Lead | | | |
175
+ ```
176
+
177
+ ---
178
+
179
+ ## User Story with BA Analysis
180
+
181
+ ```markdown
182
+ # User Story: [Feature Name]
183
+
184
+ ## Business Context
185
+ **Business Problem:** [What problem are we solving?]
186
+ **Business Value:** [Why does this matter to the business?]
187
+ **Success Metrics:** [How will we measure success?]
188
+
189
+ ## Story
190
+ **As a** [type of user]
191
+ **I want to** [perform an action]
192
+ **So that** [I achieve a benefit]
193
+
194
+ ## Acceptance Criteria
195
+ - [ ] Given [context], when [action], then [outcome]
196
+ - [ ] Given [context], when [action], then [outcome]
197
+
198
+ ## Business Rules
199
+ | Rule ID | Description | Source |
200
+ |---------|-------------|--------|
201
+ | BR-001 | [Business rule] | [Policy/Regulation/Stakeholder] |
202
+
203
+ ## Data Requirements
204
+ | Data Element | Source | Validation | Notes |
205
+ |--------------|--------|------------|-------|
206
+ | [Field] | [System] | [Rules] | |
207
+
208
+ ## Integration Points
209
+ - [System A] — [Data/API needed]
210
+ - [System B] — [Data/API needed]
211
+
212
+ ## Traceability
213
+ - **Business Objective:** [BO-XXX]
214
+ - **Business Requirement:** [BR-XXX]
215
+
216
+ ## Out of Scope
217
+ - [Explicitly list what is NOT included]
218
+
219
+ ## Assumptions
220
+ - [List assumptions made]
221
+
222
+ ## Open Questions
223
+ - [ ] [Question needing stakeholder input]
224
+ ```
225
+
226
+ ---
227
+
228
+ ## Process Modeling (BPMN Lite)
229
+
230
+ ```markdown
231
+ ## Process: [Process Name]
232
+
233
+ ### Trigger
234
+ [What starts this process?]
235
+
236
+ ### Actors
237
+ - [Actor 1]: [Role]
238
+ - [Actor 2]: [Role]
239
+
240
+ ### Process Flow
241
+ 1. [Actor] — [Action]
242
+ - Decision: [Condition]?
243
+ - Yes → Go to step 2
244
+ - No → Go to step 3
245
+ 2. [Actor] — [Action]
246
+ 3. [Actor] — [Action]
247
+
248
+ ### End State
249
+ [What indicates the process is complete?]
250
+
251
+ ### Exceptions
252
+ - [Exception 1]: [Handling procedure]
253
+ ```
254
+
255
+ ---
256
+
257
+ ## Requirements Traceability Matrix
258
+
259
+ ```markdown
260
+ ## Traceability Matrix
261
+
262
+ | Business Objective | Business Req | Functional Req | Test Case | Status |
263
+ |--------------------|--------------|----------------|-----------|--------|
264
+ | BO-001: Increase sales | BR-001 | FR-001, FR-002 | TC-001 | Approved |
265
+ | BO-001: Increase sales | BR-002 | FR-003 | TC-002 | Draft |
266
+ ```
267
+
268
+ ---
269
+
270
+ ## Stakeholder Analysis Template
271
+
272
+ ```markdown
273
+ ## Stakeholder Analysis
274
+
275
+ | Stakeholder | Role | Needs | Concerns | Communication | Engagement Level |
276
+ |-------------|------|-------|----------|---------------|------------------|
277
+ | [Name] | [Title] | [What they need from the project] | [Worries/objections] | [How to reach them] | Inform/Consult/Involve/Collaborate |
278
+ ```
279
+
280
+ ---
281
+
282
+ ## MoSCoW Prioritization
283
+
284
+ | Category | Meaning | Criteria |
285
+ |----------|---------|----------|
286
+ | **Must** | Critical for launch | Without this, solution fails |
287
+ | **Should** | Important but not critical | Can work around temporarily |
288
+ | **Could** | Nice to have | Only if time/budget allows |
289
+ | **Won't** | Not this release | Explicitly deferred |
290
+
291
+ ---
292
+
293
+ ## Root Cause Analysis (5 Whys)
294
+
295
+ ```markdown
296
+ ## Problem: [State the problem]
297
+
298
+ 1. **Why?** [First-level cause]
299
+ 2. **Why?** [Second-level cause]
300
+ 3. **Why?** [Third-level cause]
301
+ 4. **Why?** [Fourth-level cause]
302
+ 5. **Why?** [Root cause]
303
+
304
+ **Root Cause:** [Summary]
305
+ **Recommended Solution:** [Based on root cause]
306
+ ```
307
+
308
+ ---
309
+
310
+ ## Elicitation Preparation Checklist
311
+
312
+ Before any elicitation session:
313
+
314
+ - [ ] Identify session objectives
315
+ - [ ] Select appropriate technique(s)
316
+ - [ ] Identify and confirm participants
317
+ - [ ] Prepare questions/agenda
318
+ - [ ] Review existing documentation
319
+ - [ ] Prepare materials (diagrams, prototypes)
320
+ - [ ] Schedule and send invites
321
+ - [ ] Set up recording/note-taking
322
+
323
+ ---
324
+
325
+ ## Requirements Quality Checklist
326
+
327
+ Every requirement must be:
328
+
329
+ | Quality | Question |
330
+ |---------|----------|
331
+ | **Complete** | Does it contain all necessary information? |
332
+ | **Correct** | Is it accurate and validated by stakeholders? |
333
+ | **Feasible** | Can it be implemented within constraints? |
334
+ | **Necessary** | Does it trace to a business need? |
335
+ | **Prioritized** | Is its importance clear? |
336
+ | **Unambiguous** | Can it be interpreted only one way? |
337
+ | **Verifiable** | Can we test/prove it's met? |
338
+ | **Consistent** | Does it conflict with other requirements? |
339
+
340
+ ---
341
+
342
+ ## Red Flags
343
+
344
+ Stop and reconsider if you're:
345
+
346
+ - Writing requirements without understanding the business problem
347
+ - Documenting solutions instead of requirements
348
+ - Missing stakeholder sign-off
349
+ - Accepting vague requirements ("the system should be fast")
350
+ - Not tracing requirements to business objectives
351
+ - Skipping validation with end users
352
+ - Not documenting assumptions
353
+
354
+ ---
355
+
356
+ ## Collaboration
357
+
358
+ | Works With | Interaction |
359
+ |------------|-------------|
360
+ | **Project Manager** | Align requirements with project scope and timeline |
361
+ | **Systems Architect** | Validate technical feasibility |
362
+ | **Frontend Developer** | UI/UX requirements, user workflows |
363
+ | **Backend Developer** | Data requirements, business rules, integrations |
364
+ | **QA Engineer** | Acceptance criteria, test case derivation |
365
+ | **Stakeholders** | Elicit, validate, and approve requirements |
366
+
367
+ ---
368
+
369
+ ## When to Invoke
370
+
371
+ - Requirements elicitation and analysis
372
+ - Business case development
373
+ - Current state / future state analysis
374
+ - Process modeling and optimization
375
+ - Stakeholder analysis
376
+ - Requirements prioritization (MoSCoW)
377
+ - Gap analysis
378
+ - Root cause analysis
379
+ - Requirements traceability
380
+ - Solution evaluation against business needs
@@ -1,10 +1,10 @@
1
1
  ---
2
2
  inclusion: fileMatch
3
3
  fileMatchPattern: "**/*.{ts,tsx,js,jsx,mjs,cjs,json,md,prisma,yml,yaml}"
4
- description: "doc# Database Rules"
4
+ description: "Database Rules"
5
5
  ---
6
6
 
7
- doc# Database Rules
7
+ # Database Rules
8
8
 
9
9
  ## General Rules
10
10
  - **Never** write raw SQL strings directly in business logic
@@ -33,6 +33,6 @@ Supporting prompts: `debug`, `simplify`, `fix-issue`, `handoff`, `resume` in `.k
33
33
 
34
34
  Specialized instructions live in **`.kiro/agents/`**. Reference files in chat (paste or attach).
35
35
 
36
- ## Relation to `.claude/` and `.cursor/`
36
+ ## Relation to `.claude/`, `.cursor/`, and Antigravity
37
37
 
38
- Keep all three trees aligned when you change workflows or standards. After editing `.cursor/`, run `npm run sync:kiro`.
38
+ Keep all four trees aligned when you change workflows or standards. After editing `.cursor/`, run `npm run sync:all`.
package/AGENTS.md CHANGED
@@ -7,11 +7,33 @@ Project guidance for AI coding agents:
7
7
  | **Cursor** | [`.cursor/CURSOR.md`](.cursor/CURSOR.md) |
8
8
  | **Kiro** | [`.kiro/KIRO.md`](.kiro/KIRO.md) |
9
9
  | **Claude Code** | [`.claude/CLAUDE.md`](.claude/CLAUDE.md) |
10
+ | **Antigravity** | [`GEMINI.md`](GEMINI.md) |
11
+
12
+ ## Quick start (any tool)
13
+
14
+ 1. Read **[`.agent/SESSION.md`](.agent/SESSION.md)** if it exists — run **`/resume`** to continue prior work
15
+ 2. Open your tool's **hub** (table above) for workflow, rules, agents, and skills
16
+ 3. Pick a **workflow command** for the current phase (`/spec`, `/plan`, `/build`, `/test`, `/review`, `/deploy`)
17
+ 4. End with **`/handoff`** when switching chats or tools
18
+
19
+ ## Per-tool invocation
20
+
21
+ | Tool | Hub | Workflow command | Persona |
22
+ |------|-----|------------------|---------|
23
+ | **Cursor** | `.cursor/CURSOR.md` | `@.cursor/commands/build.md` | `@.cursor/agents/backend.md` |
24
+ | **Claude Code** | `.claude/CLAUDE.md` | `/build` slash command | reference `.claude/agents/backend.md` |
25
+ | **Kiro** | `.kiro/KIRO.md` | `.kiro/commands/build.md` (paste or attach) | reference `.kiro/agents/backend.md` |
26
+ | **Antigravity** | `GEMINI.md` | `/build` workflow (`.agents/workflows/build.md`) | reference `.agents/agents/backend.md` |
27
+
28
+ ## Layout
10
29
 
11
30
  - **Cursor:** `.cursor/rules/` (`.mdc`), `.cursor/commands/`, `.cursor/mcp.json`
12
31
  - **Kiro:** `.kiro/steering/` (`*.md`), `.kiro/commands/`, `.kiro/settings/mcp.json`
13
32
  - **Claude Code:** `.claude/rules/`, `.claude/commands/`
33
+ - **Antigravity:** `.agents/workflows/`, `.agents/skills/`, `.agent/rules/`, `GEMINI.md` (MCP: user-level `~/.gemini/antigravity/mcp_config.json`)
14
34
 
15
35
  **Cross-tool continuity:** committed [`.agent/SESSION.md`](.agent/README.md) — use `/resume` at session start and `/handoff` at session end (see hub docs and `.agent/README.md`).
16
36
 
17
- Keep **`.claude/`**, **`.cursor/`**, and **`.kiro/`** in sync when you change workflows or standards. After editing `.cursor/`, run `npm run sync:kiro` in the **class-ai-agent** repo to refresh `.kiro/`. To refresh vendored Supabase skills from upstream, run `npm run sync:supabase-skills`.
37
+ ## Maintainers
38
+
39
+ Keep **`.claude/`**, **`.cursor/`**, **`.kiro/`**, and the Antigravity layout in sync when you change workflows or standards. After editing **`.cursor/`** (canonical), run **`npm run sync:all`** to refresh `.claude/`, `.kiro/`, `.agents/`, `.agent/rules/`, and `GEMINI.md`. To refresh vendored Supabase skills from upstream, run **`npm run sync:supabase-skills`**.
package/GEMINI.md ADDED
@@ -0,0 +1,152 @@
1
+ # Antigravity AI agent configuration
2
+
3
+ ## Overview
4
+
5
+ This project uses **Google Antigravity** with the same structured workflows, specialized agent personas, and coding standards as **`.cursor/`**, **`.claude/`**, and **`.kiro/`**. Antigravity-specific files live under **`.agents/`**, **`.agent/rules/`**, and this hub (**`GEMINI.md`**).
6
+
7
+ Root **`AGENTS.md`** provides cross-tool rules read by Antigravity, Cursor, and Claude Code. **`GEMINI.md`** holds Antigravity-specific overrides and takes precedence over `AGENTS.md` when rules conflict.
8
+
9
+ ---
10
+
11
+ ## Development workflow
12
+
13
+ Follow this workflow for feature development:
14
+
15
+ ```
16
+ /spec → /plan → /build → /test → /review → Ship
17
+ ```
18
+
19
+ | Phase | Workflow | Purpose |
20
+ |-------|----------|---------|
21
+ | **Define** | `.agents/workflows/spec.md` (`/spec`) | PRD: objectives, scope, boundaries |
22
+ | **Plan** | `.agents/workflows/plan.md` (`/plan`) | Vertical slices, acceptance criteria |
23
+ | **Build** | `.agents/workflows/build.md` (`/build`) | Incremental implementation, TDD |
24
+ | **Verify** | `.agents/workflows/test.md` (`/test`) | Tests and verification |
25
+ | **Review** | `.agents/workflows/review.md` (`/review`) | Five-axis review before merge |
26
+ | **Ship** | `.agents/workflows/deploy.md` (`/deploy`) | Build, test, deploy |
27
+
28
+ ### Supporting workflows
29
+
30
+ | File | Purpose |
31
+ |------|---------|
32
+ | `workflows/debug.md` (`/debug`) | Systematic diagnosis |
33
+ | `workflows/simplify.md` (`/simplify`) | Reduce complexity, same behavior |
34
+ | `workflows/fix-issue.md` (`/fix-issue`) | Analyze and fix reported issues |
35
+ | `workflows/handoff.md` (`/handoff`) | End session — update `.agent/SESSION.md` for cross-tool continuity |
36
+ | `workflows/resume.md` (`/resume`) | Start session — load `.agent/SESSION.md` and continue prior work |
37
+ | `workflows/publish-npm.md` | **Maintainers:** draft release notes, bump version, update README, publish to npm |
38
+
39
+ **How to use:** Type the slash command (e.g. `/build`) in Antigravity, or open the workflow file and paste/attach in chat.
40
+
41
+ ---
42
+
43
+ ## Core principles
44
+
45
+ - **TDD** — Failing tests first, then implementation (`.agents/skills/tdd/`)
46
+ - **Incremental implementation** — Small vertical slices (`.agents/skills/incremental-implementation/`)
47
+ - **Five-axis review** — Correctness, readability, architecture, security, performance (`.agents/skills/code-review/`)
48
+
49
+ ---
50
+
51
+ ## Mandatory standards (rules)
52
+
53
+ Project standards are **`.agent/rules/*.md`**. They use YAML frontmatter:
54
+
55
+ - **`trigger: always_on`** — Loaded every session (`antigravity-overview.md`, `security.md`, `codegraph.md`, `agent-continuity.md`)
56
+ - **`trigger: glob`** — Loaded when active files match `globs`
57
+ - **`trigger: model_decision`** — Activated by intent (persona rules)
58
+
59
+ | Topic | Rule file |
60
+ |-------|-----------|
61
+ | Clean code, style, errors | `clean-code`, `code-style`, `error-handling` |
62
+ | Stack, structure, APIs | `tech-stack`, `project-structure`, `api-conventions` |
63
+ | Data & naming | `naming-conventions`, `database` |
64
+ | Ops & quality | `security`, `monitoring`, `testing`, `git-workflow`, `system-design` |
65
+ | Code intelligence | `codegraph` (MCP usage; see below) |
66
+ | Agent continuity | `agent-continuity` (`.agent/SESSION.md` handoff) |
67
+
68
+ ---
69
+
70
+ ## Agent continuity
71
+
72
+ Cross-tool handoff lives in **`.agent/SESSION.md`** (committed). Use **`/resume`** at session start and **`/handoff`** at session end when switching chats or tools. See **`.agents/references/agent-continuity.md`** and **`.agent/rules/agent-continuity.md`**.
73
+
74
+ ---
75
+
76
+ ## Code intelligence (CodeGraph)
77
+
78
+ This project includes **[CodeGraph](https://github.com/colbymchenry/codegraph)** for local, structural code search via MCP.
79
+
80
+ | Item | Location |
81
+ |------|----------|
82
+ | MCP server config | `~/.gemini/antigravity/mcp_config.json` (user-level; see `.agents/references/mcp-antigravity.md`) |
83
+ | Usage rules | `.agent/rules/codegraph.md` |
84
+ | Symbol index (generated) | `.codegraph/` (gitignored) |
85
+ | Setup reference | `.agents/references/codegraph.md` |
86
+
87
+ After configuring MCP, **restart Antigravity** so the CodeGraph MCP server connects. Use `codegraph_*` tools for structural questions (callers, callees, traces, impact); use grep/read for literal text in comments or strings.
88
+
89
+ If the index is missing, run `npx @colbymchenry/codegraph init -i` in the project root.
90
+
91
+ ---
92
+
93
+ ## Agent personas
94
+
95
+ Instructions live in **`.agents/agents/`**. Invoke by **referencing** the file (paste or attach in chat).
96
+
97
+ | Area | File |
98
+ |------|------|
99
+ | Frontend, backend, architecture | `frontend.md`, `backend.md`, `systems-architect.md` |
100
+ | Quality | `code-reviewer.md`, `test-engineer.md`, `qa.md`, `security-auditor.md` |
101
+ | Product & content | `business-analyst.md`, `project-manager.md`, `ui-ux-designer.md`, `copywriter-seo.md` |
102
+
103
+ ---
104
+
105
+ ## Skills
106
+
107
+ Reusable playbooks: **`.agents/skills/*/SKILL.md`** (and related `.md` files where present).
108
+
109
+ | Skill | Use for |
110
+ |-------|---------|
111
+ | `tdd` | Red–green–refactor |
112
+ | `code-review` | Five-axis review |
113
+ | `incremental-implementation` | Vertical slices |
114
+ | `deploy` | Deployment pipeline |
115
+ | `security-review` | Security audit |
116
+ | `agent-continuity` | Cross-tool session handoff via `.agent/SESSION.md` |
117
+ | `supabase` | Supabase products, Auth, CLI, MCP, migrations, RLS |
118
+ | `supabase-postgres-best-practices` | Postgres performance, indexes, RLS tuning |
119
+
120
+ ---
121
+
122
+ ## Reference checklists
123
+
124
+ **`.agents/references/`**
125
+
126
+ | File | Use for |
127
+ |------|---------|
128
+ | `security-checklist.md` | Pre-deploy security |
129
+ | `testing-patterns.md` | Test structure |
130
+ | `performance-checklist.md` | Performance |
131
+ | `accessibility-checklist.md` | WCAG-oriented checks |
132
+ | `codegraph.md` | CodeGraph setup (all tools) |
133
+ | `mcp-antigravity.md` | Antigravity MCP config (`mcp_config.json`) |
134
+ | `agent-continuity.md` | Session handoff and `/resume` / `/handoff` |
135
+ | `supabase.md` | Supabase skills, MCP OAuth, secrets |
136
+
137
+ ---
138
+
139
+ ## Config parity
140
+
141
+ Antigravity loads root **`AGENTS.md`**, **`GEMINI.md`**, **`.agent/rules/*.md`**, **`.agents/workflows/`**, and **`.agents/skills/`**. MCP servers are configured in user-level **`~/.gemini/antigravity/mcp_config.json`** — see `.agents/references/mcp-antigravity.md`.
142
+
143
+ ---
144
+
145
+ ## Agent behavior
146
+
147
+ 1. Follow the workflow and use slash commands when starting a phase.
148
+ 2. If **`.agent/SESSION.md`** exists, read it before planning or coding; run **`/resume`** when continuing prior work.
149
+ 3. Apply **`.agent/rules/`**; treat **`security.md`** as non-negotiable.
150
+ 4. Prefer tests first and small, buildable changes.
151
+ 5. **Reference** the right **`.agents/agents/`** file when the task matches that role.
152
+ 6. Update **`.agent/SESSION.md`** (or **`/handoff`**) before ending a session.