cfsa-antigravity 2.0.0 → 2.2.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 (116) hide show
  1. package/README.md +14 -0
  2. package/package.json +1 -1
  3. package/template/.agent/instructions/commands.md +8 -32
  4. package/template/.agent/instructions/example.md +21 -0
  5. package/template/.agent/instructions/patterns.md +3 -3
  6. package/template/.agent/instructions/tech-stack.md +71 -23
  7. package/template/.agent/instructions/workflow.md +12 -1
  8. package/template/.agent/rules/completion-checklist.md +6 -0
  9. package/template/.agent/rules/security-first.md +3 -3
  10. package/template/.agent/rules/vertical-slices.md +1 -1
  11. package/template/.agent/skill-library/MANIFEST.md +6 -0
  12. package/template/.agent/skill-library/stack/devops/git-advanced/SKILL.md +972 -0
  13. package/template/.agent/skill-library/stack/devops/git-workflow/SKILL.md +420 -0
  14. package/template/.agent/skills/api-versioning/SKILL.md +44 -298
  15. package/template/.agent/skills/api-versioning/references/typescript.md +157 -0
  16. package/template/.agent/skills/architecture-mapping/SKILL.md +13 -13
  17. package/template/.agent/skills/bootstrap-agents/SKILL.md +151 -152
  18. package/template/.agent/skills/clean-code/SKILL.md +64 -118
  19. package/template/.agent/skills/clean-code/references/typescript.md +126 -0
  20. package/template/.agent/skills/database-schema-design/SKILL.md +93 -317
  21. package/template/.agent/skills/database-schema-design/references/relational.md +228 -0
  22. package/template/.agent/skills/error-handling-patterns/SKILL.md +62 -557
  23. package/template/.agent/skills/error-handling-patterns/references/go.md +162 -0
  24. package/template/.agent/skills/error-handling-patterns/references/python.md +262 -0
  25. package/template/.agent/skills/error-handling-patterns/references/rust.md +112 -0
  26. package/template/.agent/skills/error-handling-patterns/references/typescript.md +178 -0
  27. package/template/.agent/skills/idea-extraction/SKILL.md +322 -224
  28. package/template/.agent/skills/logging-best-practices/SKILL.md +108 -767
  29. package/template/.agent/skills/logging-best-practices/references/go.md +49 -0
  30. package/template/.agent/skills/logging-best-practices/references/python.md +52 -0
  31. package/template/.agent/skills/logging-best-practices/references/typescript.md +215 -0
  32. package/template/.agent/skills/migration-management/SKILL.md +127 -311
  33. package/template/.agent/skills/migration-management/references/relational.md +214 -0
  34. package/template/.agent/skills/parallel-feature-development/SKILL.md +34 -43
  35. package/template/.agent/skills/pipeline-rubrics/references/be-rubric.md +1 -1
  36. package/template/.agent/skills/pipeline-rubrics/references/ia-rubric.md +2 -2
  37. package/template/.agent/skills/pipeline-rubrics/references/scoring.md +1 -1
  38. package/template/.agent/skills/pipeline-rubrics/references/vision-rubric.md +2 -1
  39. package/template/.agent/skills/prd-templates/SKILL.md +23 -6
  40. package/template/.agent/skills/prd-templates/references/be-spec-template.md +2 -2
  41. package/template/.agent/skills/prd-templates/references/decomposition-templates.md +2 -2
  42. package/template/.agent/skills/prd-templates/references/engineering-standards-template.md +2 -0
  43. package/template/.agent/skills/prd-templates/references/fe-spec-template.md +1 -1
  44. package/template/.agent/skills/prd-templates/references/fractal-cx-template.md +58 -0
  45. package/template/.agent/skills/prd-templates/references/fractal-feature-template.md +93 -0
  46. package/template/.agent/skills/prd-templates/references/fractal-node-index-template.md +55 -0
  47. package/template/.agent/skills/prd-templates/references/ideation-crosscut-template.md +26 -47
  48. package/template/.agent/skills/prd-templates/references/ideation-index-template.md +47 -31
  49. package/template/.agent/skills/prd-templates/references/operational-templates.md +1 -1
  50. package/template/.agent/skills/prd-templates/references/placeholder-workflow-mapping.md +50 -21
  51. package/template/.agent/skills/prd-templates/references/skill-loading-protocol.md +32 -0
  52. package/template/.agent/skills/prd-templates/references/slice-completion-gates.md +29 -0
  53. package/template/.agent/skills/prd-templates/references/spec-coverage-sweep.md +3 -3
  54. package/template/.agent/skills/prd-templates/references/tdd-testing-policy.md +39 -0
  55. package/template/.agent/skills/prd-templates/references/vision-template.md +8 -8
  56. package/template/.agent/skills/regex-patterns/SKILL.md +122 -540
  57. package/template/.agent/skills/regex-patterns/references/go.md +44 -0
  58. package/template/.agent/skills/regex-patterns/references/javascript.md +63 -0
  59. package/template/.agent/skills/regex-patterns/references/python.md +77 -0
  60. package/template/.agent/skills/regex-patterns/references/rust.md +43 -0
  61. package/template/.agent/skills/resolve-ambiguity/SKILL.md +1 -1
  62. package/template/.agent/skills/session-continuity/SKILL.md +11 -9
  63. package/template/.agent/skills/session-continuity/protocols/02-progress-generation.md +2 -2
  64. package/template/.agent/skills/session-continuity/protocols/04-pattern-extraction.md +1 -1
  65. package/template/.agent/skills/session-continuity/protocols/05-session-close.md +1 -1
  66. package/template/.agent/skills/session-continuity/protocols/09-parallel-claim.md +1 -1
  67. package/template/.agent/skills/session-continuity/protocols/10-placeholder-verification-gate.md +57 -78
  68. package/template/.agent/skills/session-continuity/protocols/11-parallel-synthesis.md +1 -1
  69. package/template/.agent/skills/spec-writing/SKILL.md +1 -1
  70. package/template/.agent/skills/tdd-workflow/SKILL.md +94 -317
  71. package/template/.agent/skills/tdd-workflow/references/typescript.md +231 -0
  72. package/template/.agent/skills/testing-strategist/SKILL.md +74 -687
  73. package/template/.agent/skills/testing-strategist/references/typescript.md +328 -0
  74. package/template/.agent/skills/workflow-automation/SKILL.md +62 -154
  75. package/template/.agent/skills/workflow-automation/references/inngest.md +88 -0
  76. package/template/.agent/skills/workflow-automation/references/temporal.md +64 -0
  77. package/template/.agent/workflows/bootstrap-agents-fill.md +85 -143
  78. package/template/.agent/workflows/bootstrap-agents-provision.md +90 -107
  79. package/template/.agent/workflows/create-prd-architecture.md +23 -16
  80. package/template/.agent/workflows/create-prd-compile.md +11 -12
  81. package/template/.agent/workflows/create-prd-design-system.md +1 -1
  82. package/template/.agent/workflows/create-prd-security.md +9 -11
  83. package/template/.agent/workflows/create-prd-stack.md +10 -4
  84. package/template/.agent/workflows/create-prd.md +9 -9
  85. package/template/.agent/workflows/decompose-architecture-structure.md +4 -6
  86. package/template/.agent/workflows/decompose-architecture-validate.md +18 -1
  87. package/template/.agent/workflows/decompose-architecture.md +18 -3
  88. package/template/.agent/workflows/evolve-contract.md +11 -11
  89. package/template/.agent/workflows/evolve-feature-classify.md +14 -6
  90. package/template/.agent/workflows/ideate-discover.md +72 -107
  91. package/template/.agent/workflows/ideate-extract.md +84 -63
  92. package/template/.agent/workflows/ideate-validate.md +26 -22
  93. package/template/.agent/workflows/ideate.md +9 -9
  94. package/template/.agent/workflows/implement-slice-setup.md +25 -23
  95. package/template/.agent/workflows/implement-slice-tdd.md +73 -89
  96. package/template/.agent/workflows/implement-slice.md +4 -4
  97. package/template/.agent/workflows/plan-phase-preflight.md +6 -2
  98. package/template/.agent/workflows/plan-phase-write.md +6 -8
  99. package/template/.agent/workflows/remediate-pipeline-assess.md +2 -1
  100. package/template/.agent/workflows/resolve-ambiguity.md +2 -2
  101. package/template/.agent/workflows/update-architecture-map.md +22 -5
  102. package/template/.agent/workflows/validate-phase-quality.md +155 -0
  103. package/template/.agent/workflows/validate-phase-readiness.md +167 -0
  104. package/template/.agent/workflows/validate-phase.md +19 -157
  105. package/template/.agent/workflows/verify-infrastructure.md +10 -10
  106. package/template/.agent/workflows/write-architecture-spec-design.md +23 -14
  107. package/template/.agent/workflows/write-be-spec-classify.md +25 -21
  108. package/template/.agent/workflows/write-be-spec.md +1 -1
  109. package/template/.agent/workflows/write-fe-spec-classify.md +6 -12
  110. package/template/.agent/workflows/write-fe-spec-write.md +1 -1
  111. package/template/AGENTS.md +6 -2
  112. package/template/GEMINI.md +5 -3
  113. package/template/docs/README.md +10 -10
  114. package/template/docs/kit-architecture.md +126 -33
  115. package/template/docs/plans/ideation/README.md +8 -3
  116. package/template/.agent/skills/prd-templates/references/ideation-domain-template.md +0 -55
@@ -0,0 +1,420 @@
1
+ ---
2
+ name: git-workflow
3
+ description: Essential Git patterns for effective version control, eliminating redundant Git guidance per agent.
4
+ license: Apache-2.0
5
+ compatibility: claude-code
6
+ metadata:
7
+ updated_at: 2025-10-30T17:00:00Z
8
+ tags: [git, version-control, workflow, best-practices]
9
+ progressive_disclosure:
10
+ entry_point:
11
+ summary: "Essential Git patterns for effective version control, eliminating redundant Git guidance per agent."
12
+ when_to_use: "When working with version control, branches, or pull requests."
13
+ quick_start: "1. Review the core concepts below. 2. Apply patterns to your use case. 3. Follow best practices for implementation."
14
+ ---
15
+ # Git Workflow
16
+
17
+ Essential Git patterns for effective version control. Eliminates ~120-150 lines of redundant Git guidance per agent.
18
+
19
+ ## Commit Best Practices
20
+
21
+ ### Conventional Commits Format
22
+
23
+ ```
24
+ <type>(<scope>): <subject>
25
+
26
+ <body>
27
+
28
+ <footer>
29
+ ```
30
+
31
+ **Types:**
32
+ - `feat`: New feature
33
+ - `fix`: Bug fix
34
+ - `docs`: Documentation only
35
+ - `refactor`: Code change that neither fixes bug nor adds feature
36
+ - `perf`: Performance improvement
37
+ - `test`: Adding or updating tests
38
+ - `chore`: Build process, dependencies, tooling
39
+
40
+ **Examples:**
41
+ ```bash
42
+ feat(auth): add OAuth2 authentication
43
+
44
+ Implements OAuth2 flow using Google provider.
45
+ Includes token refresh and validation.
46
+
47
+ Closes #123
48
+
49
+ fix(api): handle null response in user endpoint
50
+
51
+ Previously crashed when user not found.
52
+ Now returns 404 with error message.
53
+
54
+ perf(db): optimize user query with index
55
+
56
+ Reduces query time from 500ms to 50ms.
57
+ ```
58
+
59
+ ### Atomic Commits
60
+
61
+ ```bash
62
+ # Good: Each commit does one thing
63
+ git commit -m "feat: add user authentication"
64
+ git commit -m "test: add auth tests"
65
+ git commit -m "docs: update API docs for auth"
66
+
67
+ # Bad: Multiple unrelated changes
68
+ git commit -m "add auth, fix bugs, update docs"
69
+ ```
70
+
71
+ ## Branching Strategy
72
+
73
+ ### Git Flow (Feature Branches)
74
+
75
+ ```bash
76
+ # Create feature branch from main
77
+ git checkout main
78
+ git pull origin main
79
+ git checkout -b feature/user-authentication
80
+
81
+ # Work on feature with regular commits
82
+ git add src/auth.py
83
+ git commit -m "feat(auth): implement login endpoint"
84
+
85
+ # Keep branch updated with main
86
+ git checkout main
87
+ git pull origin main
88
+ git checkout feature/user-authentication
89
+ git rebase main # Or: git merge main
90
+
91
+ # Push and create PR
92
+ git push -u origin feature/user-authentication
93
+ ```
94
+
95
+ ### Trunk-Based Development
96
+
97
+ ```bash
98
+ # Work directly on main with short-lived branches
99
+ git checkout main
100
+ git pull origin main
101
+ git checkout -b fix/null-pointer
102
+ # Make small change
103
+ git commit -m "fix: handle null in user query"
104
+ git push origin fix/null-pointer
105
+ # Merge immediately via PR
106
+ ```
107
+
108
+ ## Common Workflows
109
+
110
+ ### Updating Branch with Latest Changes
111
+
112
+ ```bash
113
+ # Option 1: Rebase (cleaner history)
114
+ git checkout feature-branch
115
+ git fetch origin
116
+ git rebase origin/main
117
+
118
+ # Resolve conflicts if any
119
+ git add resolved_file.py
120
+ git rebase --continue
121
+
122
+ # Option 2: Merge (preserves history)
123
+ git checkout feature-branch
124
+ git merge origin/main
125
+ ```
126
+
127
+ ### Undoing Changes
128
+
129
+ ```bash
130
+ # Undo last commit (keep changes)
131
+ git reset --soft HEAD~1
132
+
133
+ # Undo last commit (discard changes)
134
+ git reset --hard HEAD~1
135
+
136
+ # Undo changes to specific file
137
+ git checkout -- file.py
138
+
139
+ # Revert a commit (creates new commit)
140
+ git revert abc123
141
+
142
+ # Amend last commit
143
+ git add forgotten_file.py
144
+ git commit --amend --no-edit
145
+ ```
146
+
147
+ ### Stashing Work
148
+
149
+ ```bash
150
+ # Save current work temporarily
151
+ git stash
152
+
153
+ # List stashes
154
+ git stash list
155
+
156
+ # Apply most recent stash
157
+ git stash pop
158
+
159
+ # Apply specific stash
160
+ git stash apply stash@{0}
161
+
162
+ # Create named stash
163
+ git stash save "WIP: authentication feature"
164
+ ```
165
+
166
+ ### Cherry-Picking Commits
167
+
168
+ ```bash
169
+ # Apply specific commit from another branch
170
+ git cherry-pick abc123
171
+
172
+ # Cherry-pick multiple commits
173
+ git cherry-pick abc123 def456
174
+
175
+ # Cherry-pick without committing
176
+ git cherry-pick -n abc123
177
+ ```
178
+
179
+ ## Resolving Conflicts
180
+
181
+ ```bash
182
+ # When conflicts occur during merge/rebase
183
+ # 1. Check conflicted files
184
+ git status
185
+
186
+ # 2. Edit files to resolve conflicts
187
+ # Look for conflict markers:
188
+ <<<<<<< HEAD
189
+ Your changes
190
+ =======
191
+ Their changes
192
+ >>>>>>> branch-name
193
+
194
+ # 3. Mark as resolved
195
+ git add resolved_file.py
196
+
197
+ # 4. Continue operation
198
+ git rebase --continue # or git merge --continue
199
+ ```
200
+
201
+ ## Viewing History
202
+
203
+ ```bash
204
+ # Compact log
205
+ git log --oneline -10
206
+
207
+ # Graphical log
208
+ git log --graph --oneline --all
209
+
210
+ # Commits by author
211
+ git log --author="John Doe"
212
+
213
+ # Commits affecting specific file
214
+ git log -- path/to/file.py
215
+
216
+ # See changes in commit
217
+ git show abc123
218
+
219
+ # Compare branches
220
+ git diff main..feature-branch
221
+ ```
222
+
223
+ ## Branch Management
224
+
225
+ ```bash
226
+ # List branches
227
+ git branch -a # All branches (local + remote)
228
+
229
+ # Delete local branch
230
+ git branch -d feature-branch # Safe delete (merged only)
231
+ git branch -D feature-branch # Force delete
232
+
233
+ # Delete remote branch
234
+ git push origin --delete feature-branch
235
+
236
+ # Rename branch
237
+ git branch -m old-name new-name
238
+
239
+ # Track remote branch
240
+ git checkout --track origin/feature-branch
241
+ ```
242
+
243
+ ## Tags
244
+
245
+ ```bash
246
+ # Create lightweight tag
247
+ git tag v1.0.0
248
+
249
+ # Create annotated tag (recommended)
250
+ git tag -a v1.0.0 -m "Release version 1.0.0"
251
+
252
+ # Push tags to remote
253
+ git push origin v1.0.0
254
+ git push origin --tags # Push all tags
255
+
256
+ # Checkout tag
257
+ git checkout v1.0.0
258
+
259
+ # Delete tag
260
+ git tag -d v1.0.0
261
+ git push origin --delete v1.0.0
262
+ ```
263
+
264
+ ## Advanced Operations
265
+
266
+ ### Interactive Rebase
267
+
268
+ ```bash
269
+ # Edit last 3 commits
270
+ git rebase -i HEAD~3
271
+
272
+ # Options in editor:
273
+ # pick = use commit
274
+ # reword = change commit message
275
+ # edit = stop to amend commit
276
+ # squash = combine with previous commit
277
+ # fixup = like squash but discard message
278
+ # drop = remove commit
279
+ ```
280
+
281
+ ### Bisect (Find Bug Introduction)
282
+
283
+ ```bash
284
+ # Start bisect
285
+ git bisect start
286
+ git bisect bad # Current version has bug
287
+ git bisect good v1.0.0 # This version was good
288
+
289
+ # Git checks out middle commit
290
+ # Test if bug exists
291
+ git bisect bad # if bug exists
292
+ git bisect good # if bug doesn't exist
293
+
294
+ # Git narrows down until finding first bad commit
295
+ git bisect reset # Return to original branch
296
+ ```
297
+
298
+ ### Blame (Find Who Changed Line)
299
+
300
+ ```bash
301
+ # See who last modified each line
302
+ git blame file.py
303
+
304
+ # Ignore whitespace changes
305
+ git blame -w file.py
306
+
307
+ # Show specific line range
308
+ git blame -L 10,20 file.py
309
+ ```
310
+
311
+ ## Git Hooks
312
+
313
+ ```bash
314
+ # Pre-commit hook (runs before commit)
315
+ # .git/hooks/pre-commit
316
+ #!/bin/bash
317
+ npm run lint
318
+ npm test
319
+
320
+ # Pre-push hook (runs before push)
321
+ # .git/hooks/pre-push
322
+ #!/bin/bash
323
+ npm run test:integration
324
+ ```
325
+
326
+ ## Best Practices
327
+
328
+ ### ✅ DO
329
+
330
+ - Commit frequently with atomic changes
331
+ - Write clear, descriptive commit messages
332
+ - Pull before push to avoid conflicts
333
+ - Review changes before committing (`git diff --staged`)
334
+ - Use branches for features and fixes
335
+ - Keep commits small and focused
336
+
337
+ ### ❌ DON'T
338
+
339
+ - Commit sensitive data (use `.gitignore`)
340
+ - Commit generated files (build artifacts, `node_modules`)
341
+ - Force push to shared branches (`git push --force`)
342
+ - Commit work-in-progress to main
343
+ - Include multiple unrelated changes in one commit
344
+ - Rewrite public history
345
+
346
+ ## .gitignore Patterns
347
+
348
+ ```gitignore
349
+ # Dependencies
350
+ node_modules/
351
+ venv/
352
+ __pycache__/
353
+
354
+ # Build outputs
355
+ dist/
356
+ build/
357
+ *.pyc
358
+ *.o
359
+ *.exe
360
+
361
+ # IDE
362
+ .vscode/
363
+ .idea/
364
+ *.swp
365
+
366
+ # Secrets
367
+ .env
368
+ *.key
369
+ *.pem
370
+ secrets.yml
371
+
372
+ # OS
373
+ .DS_Store
374
+ Thumbs.db
375
+
376
+ # Logs
377
+ *.log
378
+ logs/
379
+ ```
380
+
381
+ ## Quick Command Reference
382
+
383
+ ```bash
384
+ # Status and diff
385
+ git status
386
+ git diff
387
+ git diff --staged
388
+
389
+ # Commit
390
+ git add .
391
+ git commit -m "message"
392
+ git push
393
+
394
+ # Branch
395
+ git branch
396
+ git checkout -b branch-name
397
+ git merge branch-name
398
+
399
+ # Update
400
+ git pull
401
+ git fetch
402
+
403
+ # Undo
404
+ git reset HEAD~1
405
+ git checkout -- file
406
+ git revert commit-hash
407
+
408
+ # History
409
+ git log
410
+ git log --oneline
411
+ git show commit-hash
412
+ ```
413
+
414
+ ## Remember
415
+
416
+ - **Commit often** - Small commits are easier to review and revert
417
+ - **Descriptive messages** - Future you will thank present you
418
+ - **Pull before push** - Stay synchronized with team
419
+ - **Use branches** - Keep main stable
420
+ - **Review before commit** - Check what is being committed