@ggailabs/cli-context 0.5.6 → 1.1.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 (298) hide show
  1. package/README.md +25 -181
  2. package/dist/.context/docs/GENESIS_SYSTEM_PROMPT.md +61 -0
  3. package/dist/.context/eng/agents/architect.md +68 -0
  4. package/dist/.context/eng/agents/backend_typescript.md +1000 -0
  5. package/dist/.context/eng/agents/bug_hunter.md +49 -0
  6. package/dist/.context/eng/agents/code_archaeologist.md +83 -0
  7. package/dist/.context/eng/agents/code_reviewer.md +90 -0
  8. package/dist/.context/eng/agents/devops_specialist.md +718 -0
  9. package/dist/.context/eng/agents/frontend_specialist.md +1027 -0
  10. package/dist/.context/eng/agents/orchestrator.md +89 -0
  11. package/dist/.context/eng/agents/penetration_tester.md +59 -0
  12. package/dist/.context/eng/agents/qa_specialist.md +1234 -0
  13. package/dist/.context/eng/agents/security_reviewer.md +92 -0
  14. package/dist/.context/eng/agents/ui_specialist.md +16 -0
  15. package/dist/.context/eng/docs/AGENT_HANDOFF_PROMPT.md +44 -0
  16. package/dist/.context/eng/docs/GENESIS_DESIGN_SYSTEM.md +88 -0
  17. package/dist/.context/eng/docs/GG_METHODOLOGY.md +48 -0
  18. package/dist/.context/eng/docs/OPERATIONS_LOG.md +31 -0
  19. package/dist/.context/eng/docs/PROJECT_MAP.md +35 -0
  20. package/dist/.context/eng/docs/standards/devops.md +0 -0
  21. package/dist/.context/eng/docs/standards/frontend.md +0 -0
  22. package/dist/.context/eng/docs/standards/typescript.md +12 -0
  23. package/dist/.context/eng/skills/agent_logging/SKILL.md +22 -0
  24. package/dist/.context/eng/skills/brainstorming/SKILL.md +51 -0
  25. package/dist/.context/eng/skills/documentation_templates/SKILL.md +73 -0
  26. package/dist/.context/eng/skills/exploring_codebase/SKILL.md +52 -0
  27. package/dist/.context/eng/skills/mcp_builder/SKILL.md +64 -0
  28. package/dist/.context/eng/skills/patterns/compliance_check/SKILL.md +37 -0
  29. package/dist/.context/eng/skills/patterns/coverage_table/SKILL.md +57 -0
  30. package/dist/.context/eng/skills/patterns/exit_criteria/SKILL.md +35 -0
  31. package/dist/.context/eng/skills/patterns/failure_recovery/SKILL.md +78 -0
  32. package/dist/.context/eng/skills/patterns/quality_gate/SKILL.md +43 -0
  33. package/dist/.context/eng/skills/patterns/standards_workflow/SKILL.md +395 -0
  34. package/dist/.context/eng/skills/patterns/state_tracking/SKILL.md +34 -0
  35. package/dist/.context/eng/skills/patterns/task_tracking/SKILL.md +42 -0
  36. package/dist/.context/eng/skills/performance_profiling/SKILL.md +60 -0
  37. package/dist/.context/eng/skills/previce/SKILL.md +49 -0
  38. package/dist/.context/eng/skills/tdd/SKILL.md +59 -0
  39. package/dist/.context/eng/skills/using_git_worktrees/SKILL.md +45 -0
  40. package/dist/.context/eng/skills/vulnerability_scanner/SKILL.md +78 -0
  41. package/dist/.context/eng/skills/writing_plans/SKILL.md +85 -0
  42. package/dist/.context/plans/.gitkeep +0 -0
  43. package/dist/.context/pt-br/agents/architect.md +68 -0
  44. package/dist/.context/pt-br/agents/backend_typescript.md +1002 -0
  45. package/dist/.context/pt-br/agents/bug_hunter.md +49 -0
  46. package/dist/.context/pt-br/agents/code_archaeologist.md +82 -0
  47. package/dist/.context/pt-br/agents/code_reviewer.md +88 -0
  48. package/dist/.context/pt-br/agents/devops_specialist.md +718 -0
  49. package/dist/.context/pt-br/agents/frontend_specialist.md +1029 -0
  50. package/dist/.context/pt-br/agents/orchestrator.md +87 -0
  51. package/dist/.context/pt-br/agents/penetration_tester.md +59 -0
  52. package/dist/.context/pt-br/agents/qa_specialist.md +1234 -0
  53. package/dist/.context/pt-br/agents/security_reviewer.md +92 -0
  54. package/dist/.context/pt-br/agents/ui_specialist.md +55 -0
  55. package/dist/.context/pt-br/docs/AGENT_HANDOFF_PROMPT.md +44 -0
  56. package/dist/.context/pt-br/docs/GENESIS_DESIGN_SYSTEM.md +88 -0
  57. package/dist/.context/pt-br/docs/GG_METHODOLOGY.md +48 -0
  58. package/dist/.context/pt-br/docs/OPERATIONS_LOG.md +31 -0
  59. package/dist/.context/pt-br/docs/PROJECT_MAP.md +37 -0
  60. package/dist/.context/pt-br/docs/standards/devops.md +707 -0
  61. package/dist/.context/pt-br/docs/standards/frontend.md +748 -0
  62. package/dist/.context/pt-br/docs/standards/typescript.md +1150 -0
  63. package/dist/.context/pt-br/skills/agent_logging/SKILL.md +40 -0
  64. package/dist/.context/pt-br/skills/brainstorming/SKILL.md +51 -0
  65. package/dist/.context/pt-br/skills/documentation_templates/SKILL.md +73 -0
  66. package/dist/.context/pt-br/skills/exploring_codebase/SKILL.md +52 -0
  67. package/dist/.context/pt-br/skills/mcp_builder/SKILL.md +64 -0
  68. package/dist/.context/pt-br/skills/patterns/compliance_check/SKILL.md +37 -0
  69. package/dist/.context/pt-br/skills/patterns/coverage_table/SKILL.md +57 -0
  70. package/dist/.context/pt-br/skills/patterns/exit_criteria/SKILL.md +38 -0
  71. package/dist/.context/pt-br/skills/patterns/failure_recovery/SKILL.md +30 -0
  72. package/dist/.context/pt-br/skills/patterns/quality_gate/SKILL.md +43 -0
  73. package/dist/.context/pt-br/skills/patterns/standards_workflow/SKILL.md +45 -0
  74. package/dist/.context/pt-br/skills/patterns/state_tracking/SKILL.md +31 -0
  75. package/dist/.context/pt-br/skills/patterns/task_tracking/SKILL.md +27 -0
  76. package/dist/.context/pt-br/skills/performance_profiling/SKILL.md +60 -0
  77. package/dist/.context/pt-br/skills/previce/SKILL.md +51 -0
  78. package/dist/.context/pt-br/skills/tdd/SKILL.md +59 -0
  79. package/dist/.context/pt-br/skills/using_git_worktrees/SKILL.md +45 -0
  80. package/dist/.context/pt-br/skills/vulnerability_scanner/SKILL.md +78 -0
  81. package/dist/.context/pt-br/skills/writing_plans/SKILL.md +85 -0
  82. package/dist/.context/workflow/.gitkeep +0 -0
  83. package/dist/commands/init.js +159 -0
  84. package/dist/commands/monitor.js +34 -0
  85. package/dist/index.js +20 -568
  86. package/dist/services/monitor-service.js +342 -0
  87. package/dist/services/scaffolder.js +177 -0
  88. package/package.json +16 -58
  89. package/LICENSE +0 -21
  90. package/dist/generators/agents/agentConfig.d.ts +0 -4
  91. package/dist/generators/agents/agentConfig.d.ts.map +0 -1
  92. package/dist/generators/agents/agentConfig.js +0 -180
  93. package/dist/generators/agents/agentConfig.js.map +0 -1
  94. package/dist/generators/agents/agentGenerator.d.ts +0 -9
  95. package/dist/generators/agents/agentGenerator.d.ts.map +0 -1
  96. package/dist/generators/agents/agentGenerator.js +0 -97
  97. package/dist/generators/agents/agentGenerator.js.map +0 -1
  98. package/dist/generators/agents/agentTypes.d.ts +0 -4
  99. package/dist/generators/agents/agentTypes.d.ts.map +0 -1
  100. package/dist/generators/agents/agentTypes.js +0 -25
  101. package/dist/generators/agents/agentTypes.js.map +0 -1
  102. package/dist/generators/agents/index.d.ts +0 -4
  103. package/dist/generators/agents/index.d.ts.map +0 -1
  104. package/dist/generators/agents/index.js +0 -12
  105. package/dist/generators/agents/index.js.map +0 -1
  106. package/dist/generators/agents/templates/index.d.ts +0 -4
  107. package/dist/generators/agents/templates/index.d.ts.map +0 -1
  108. package/dist/generators/agents/templates/index.js +0 -8
  109. package/dist/generators/agents/templates/index.js.map +0 -1
  110. package/dist/generators/agents/templates/indexTemplate.d.ts +0 -3
  111. package/dist/generators/agents/templates/indexTemplate.d.ts.map +0 -1
  112. package/dist/generators/agents/templates/indexTemplate.js +0 -36
  113. package/dist/generators/agents/templates/indexTemplate.js.map +0 -1
  114. package/dist/generators/agents/templates/playbookTemplate.d.ts +0 -4
  115. package/dist/generators/agents/templates/playbookTemplate.d.ts.map +0 -1
  116. package/dist/generators/agents/templates/playbookTemplate.js +0 -99
  117. package/dist/generators/agents/templates/playbookTemplate.js.map +0 -1
  118. package/dist/generators/agents/templates/types.d.ts +0 -14
  119. package/dist/generators/agents/templates/types.d.ts.map +0 -1
  120. package/dist/generators/agents/templates/types.js +0 -3
  121. package/dist/generators/agents/templates/types.js.map +0 -1
  122. package/dist/generators/documentation/documentationGenerator.d.ts +0 -15
  123. package/dist/generators/documentation/documentationGenerator.d.ts.map +0 -1
  124. package/dist/generators/documentation/documentationGenerator.js +0 -188
  125. package/dist/generators/documentation/documentationGenerator.js.map +0 -1
  126. package/dist/generators/documentation/guideRegistry.d.ts +0 -6
  127. package/dist/generators/documentation/guideRegistry.d.ts.map +0 -1
  128. package/dist/generators/documentation/guideRegistry.js +0 -82
  129. package/dist/generators/documentation/guideRegistry.js.map +0 -1
  130. package/dist/generators/documentation/index.d.ts +0 -2
  131. package/dist/generators/documentation/index.d.ts.map +0 -1
  132. package/dist/generators/documentation/index.js +0 -6
  133. package/dist/generators/documentation/index.js.map +0 -1
  134. package/dist/generators/documentation/templates/apiReferenceTemplate.d.ts +0 -2
  135. package/dist/generators/documentation/templates/apiReferenceTemplate.d.ts.map +0 -1
  136. package/dist/generators/documentation/templates/apiReferenceTemplate.js +0 -490
  137. package/dist/generators/documentation/templates/apiReferenceTemplate.js.map +0 -1
  138. package/dist/generators/documentation/templates/architectureTemplate.d.ts +0 -3
  139. package/dist/generators/documentation/templates/architectureTemplate.d.ts.map +0 -1
  140. package/dist/generators/documentation/templates/architectureTemplate.js +0 -66
  141. package/dist/generators/documentation/templates/architectureTemplate.js.map +0 -1
  142. package/dist/generators/documentation/templates/common.d.ts +0 -7
  143. package/dist/generators/documentation/templates/common.d.ts.map +0 -1
  144. package/dist/generators/documentation/templates/common.js +0 -58
  145. package/dist/generators/documentation/templates/common.js.map +0 -1
  146. package/dist/generators/documentation/templates/dataFlowTemplate.d.ts +0 -3
  147. package/dist/generators/documentation/templates/dataFlowTemplate.d.ts.map +0 -1
  148. package/dist/generators/documentation/templates/dataFlowTemplate.js +0 -40
  149. package/dist/generators/documentation/templates/dataFlowTemplate.js.map +0 -1
  150. package/dist/generators/documentation/templates/developmentWorkflowTemplate.d.ts +0 -2
  151. package/dist/generators/documentation/templates/developmentWorkflowTemplate.d.ts.map +0 -1
  152. package/dist/generators/documentation/templates/developmentWorkflowTemplate.js +0 -44
  153. package/dist/generators/documentation/templates/developmentWorkflowTemplate.js.map +0 -1
  154. package/dist/generators/documentation/templates/glossaryTemplate.d.ts +0 -3
  155. package/dist/generators/documentation/templates/glossaryTemplate.d.ts.map +0 -1
  156. package/dist/generators/documentation/templates/glossaryTemplate.js +0 -41
  157. package/dist/generators/documentation/templates/glossaryTemplate.js.map +0 -1
  158. package/dist/generators/documentation/templates/index.d.ts +0 -15
  159. package/dist/generators/documentation/templates/index.d.ts.map +0 -1
  160. package/dist/generators/documentation/templates/index.js +0 -30
  161. package/dist/generators/documentation/templates/index.js.map +0 -1
  162. package/dist/generators/documentation/templates/indexTemplate.d.ts +0 -3
  163. package/dist/generators/documentation/templates/indexTemplate.d.ts.map +0 -1
  164. package/dist/generators/documentation/templates/indexTemplate.js +0 -42
  165. package/dist/generators/documentation/templates/indexTemplate.js.map +0 -1
  166. package/dist/generators/documentation/templates/migrationTemplate.d.ts +0 -2
  167. package/dist/generators/documentation/templates/migrationTemplate.d.ts.map +0 -1
  168. package/dist/generators/documentation/templates/migrationTemplate.js +0 -422
  169. package/dist/generators/documentation/templates/migrationTemplate.js.map +0 -1
  170. package/dist/generators/documentation/templates/onboardingTemplate.d.ts +0 -2
  171. package/dist/generators/documentation/templates/onboardingTemplate.d.ts.map +0 -1
  172. package/dist/generators/documentation/templates/onboardingTemplate.js +0 -431
  173. package/dist/generators/documentation/templates/onboardingTemplate.js.map +0 -1
  174. package/dist/generators/documentation/templates/projectOverviewTemplate.d.ts +0 -3
  175. package/dist/generators/documentation/templates/projectOverviewTemplate.d.ts.map +0 -1
  176. package/dist/generators/documentation/templates/projectOverviewTemplate.js +0 -65
  177. package/dist/generators/documentation/templates/projectOverviewTemplate.js.map +0 -1
  178. package/dist/generators/documentation/templates/securityTemplate.d.ts +0 -2
  179. package/dist/generators/documentation/templates/securityTemplate.d.ts.map +0 -1
  180. package/dist/generators/documentation/templates/securityTemplate.js +0 -39
  181. package/dist/generators/documentation/templates/securityTemplate.js.map +0 -1
  182. package/dist/generators/documentation/templates/testingTemplate.d.ts +0 -2
  183. package/dist/generators/documentation/templates/testingTemplate.d.ts.map +0 -1
  184. package/dist/generators/documentation/templates/testingTemplate.js +0 -45
  185. package/dist/generators/documentation/templates/testingTemplate.js.map +0 -1
  186. package/dist/generators/documentation/templates/toolingTemplate.d.ts +0 -2
  187. package/dist/generators/documentation/templates/toolingTemplate.d.ts.map +0 -1
  188. package/dist/generators/documentation/templates/toolingTemplate.js +0 -42
  189. package/dist/generators/documentation/templates/toolingTemplate.js.map +0 -1
  190. package/dist/generators/documentation/templates/troubleshootingTemplate.d.ts +0 -2
  191. package/dist/generators/documentation/templates/troubleshootingTemplate.d.ts.map +0 -1
  192. package/dist/generators/documentation/templates/troubleshootingTemplate.js +0 -292
  193. package/dist/generators/documentation/templates/troubleshootingTemplate.js.map +0 -1
  194. package/dist/generators/documentation/templates/types.d.ts +0 -23
  195. package/dist/generators/documentation/templates/types.d.ts.map +0 -1
  196. package/dist/generators/documentation/templates/types.js +0 -3
  197. package/dist/generators/documentation/templates/types.js.map +0 -1
  198. package/dist/generators/plans/index.d.ts +0 -2
  199. package/dist/generators/plans/index.d.ts.map +0 -1
  200. package/dist/generators/plans/index.js +0 -6
  201. package/dist/generators/plans/index.js.map +0 -1
  202. package/dist/generators/plans/planGenerator.d.ts +0 -22
  203. package/dist/generators/plans/planGenerator.d.ts.map +0 -1
  204. package/dist/generators/plans/planGenerator.js +0 -109
  205. package/dist/generators/plans/planGenerator.js.map +0 -1
  206. package/dist/generators/plans/templates/indexTemplate.d.ts +0 -3
  207. package/dist/generators/plans/templates/indexTemplate.d.ts.map +0 -1
  208. package/dist/generators/plans/templates/indexTemplate.js +0 -37
  209. package/dist/generators/plans/templates/indexTemplate.js.map +0 -1
  210. package/dist/generators/plans/templates/planTemplate.d.ts +0 -3
  211. package/dist/generators/plans/templates/planTemplate.d.ts.map +0 -1
  212. package/dist/generators/plans/templates/planTemplate.js +0 -166
  213. package/dist/generators/plans/templates/planTemplate.js.map +0 -1
  214. package/dist/generators/plans/templates/types.d.ts +0 -19
  215. package/dist/generators/plans/templates/types.d.ts.map +0 -1
  216. package/dist/generators/plans/templates/types.js +0 -3
  217. package/dist/generators/plans/templates/types.js.map +0 -1
  218. package/dist/generators/shared/contextGenerator.d.ts +0 -7
  219. package/dist/generators/shared/contextGenerator.d.ts.map +0 -1
  220. package/dist/generators/shared/contextGenerator.js +0 -13
  221. package/dist/generators/shared/contextGenerator.js.map +0 -1
  222. package/dist/generators/shared/directoryTemplateHelpers.d.ts +0 -2
  223. package/dist/generators/shared/directoryTemplateHelpers.d.ts.map +0 -1
  224. package/dist/generators/shared/directoryTemplateHelpers.js +0 -12
  225. package/dist/generators/shared/directoryTemplateHelpers.js.map +0 -1
  226. package/dist/generators/shared/generatorUtils.d.ts +0 -16
  227. package/dist/generators/shared/generatorUtils.d.ts.map +0 -1
  228. package/dist/generators/shared/generatorUtils.js +0 -119
  229. package/dist/generators/shared/generatorUtils.js.map +0 -1
  230. package/dist/generators/shared/index.d.ts +0 -4
  231. package/dist/generators/shared/index.d.ts.map +0 -1
  232. package/dist/generators/shared/index.js +0 -10
  233. package/dist/generators/shared/index.js.map +0 -1
  234. package/dist/index.d.ts +0 -9
  235. package/dist/index.d.ts.map +0 -1
  236. package/dist/index.js.map +0 -1
  237. package/dist/prompts/defaults.d.ts +0 -3
  238. package/dist/prompts/defaults.d.ts.map +0 -1
  239. package/dist/prompts/defaults.js +0 -95
  240. package/dist/prompts/defaults.js.map +0 -1
  241. package/dist/services/baseLLMClient.d.ts +0 -12
  242. package/dist/services/baseLLMClient.d.ts.map +0 -1
  243. package/dist/services/baseLLMClient.js +0 -80
  244. package/dist/services/baseLLMClient.js.map +0 -1
  245. package/dist/services/fill/fillService.d.ts +0 -46
  246. package/dist/services/fill/fillService.d.ts.map +0 -1
  247. package/dist/services/fill/fillService.js +0 -254
  248. package/dist/services/fill/fillService.js.map +0 -1
  249. package/dist/services/init/initService.d.ts +0 -37
  250. package/dist/services/init/initService.d.ts.map +0 -1
  251. package/dist/services/init/initService.js +0 -167
  252. package/dist/services/init/initService.js.map +0 -1
  253. package/dist/services/llmClientFactory.d.ts +0 -8
  254. package/dist/services/llmClientFactory.d.ts.map +0 -1
  255. package/dist/services/llmClientFactory.js +0 -23
  256. package/dist/services/llmClientFactory.js.map +0 -1
  257. package/dist/services/openRouterClient.d.ts +0 -9
  258. package/dist/services/openRouterClient.d.ts.map +0 -1
  259. package/dist/services/openRouterClient.js +0 -49
  260. package/dist/services/openRouterClient.js.map +0 -1
  261. package/dist/services/plan/planService.d.ts +0 -57
  262. package/dist/services/plan/planService.d.ts.map +0 -1
  263. package/dist/services/plan/planService.js +0 -334
  264. package/dist/services/plan/planService.js.map +0 -1
  265. package/dist/services/shared/llmConfig.d.ts +0 -22
  266. package/dist/services/shared/llmConfig.d.ts.map +0 -1
  267. package/dist/services/shared/llmConfig.js +0 -38
  268. package/dist/services/shared/llmConfig.js.map +0 -1
  269. package/dist/types.d.ts +0 -65
  270. package/dist/types.d.ts.map +0 -1
  271. package/dist/types.js +0 -3
  272. package/dist/types.js.map +0 -1
  273. package/dist/utils/cliUI.d.ts +0 -27
  274. package/dist/utils/cliUI.d.ts.map +0 -1
  275. package/dist/utils/cliUI.js +0 -252
  276. package/dist/utils/cliUI.js.map +0 -1
  277. package/dist/utils/fileMapper.d.ts +0 -11
  278. package/dist/utils/fileMapper.d.ts.map +0 -1
  279. package/dist/utils/fileMapper.js +0 -146
  280. package/dist/utils/fileMapper.js.map +0 -1
  281. package/dist/utils/gitService.d.ts +0 -50
  282. package/dist/utils/gitService.d.ts.map +0 -1
  283. package/dist/utils/gitService.js +0 -470
  284. package/dist/utils/gitService.js.map +0 -1
  285. package/dist/utils/i18n.d.ts +0 -171
  286. package/dist/utils/i18n.d.ts.map +0 -1
  287. package/dist/utils/i18n.js +0 -381
  288. package/dist/utils/i18n.js.map +0 -1
  289. package/dist/utils/promptLoader.d.ts +0 -12
  290. package/dist/utils/promptLoader.d.ts.map +0 -1
  291. package/dist/utils/promptLoader.js +0 -81
  292. package/dist/utils/promptLoader.js.map +0 -1
  293. package/dist/utils/versionChecker.d.ts +0 -15
  294. package/dist/utils/versionChecker.d.ts.map +0 -1
  295. package/dist/utils/versionChecker.js +0 -49
  296. package/dist/utils/versionChecker.js.map +0 -1
  297. package/prompts/update_plan_prompt.md +0 -41
  298. package/prompts/update_scaffold_prompt.md +0 -47
@@ -0,0 +1,42 @@
1
+ ---
2
+ name: zenith-pattern-task_tracking
3
+ description: Task.md file management. Use to keep the project checklist always updated and factual.
4
+ ---
5
+ # Universal TodoWrite Integration
6
+
7
+ Add this requirement to skill starts:
8
+
9
+ ## TodoWrite Requirement
10
+
11
+ **BEFORE starting this skill:**
12
+
13
+ 1. Create todos for major phases:
14
+ ```javascript
15
+ [
16
+ {content: "Phase 1: [name]", status: "in_progress", activeForm: "Working on Phase 1"},
17
+ {content: "Phase 2: [name]", status: "pending", activeForm: "Working on Phase 2"},
18
+ {content: "Phase 3: [name]", status: "pending", activeForm: "Working on Phase 3"}
19
+ ]
20
+ ```
21
+
22
+ 2. Update after each phase:
23
+ - Mark complete when done
24
+ - Move next to in_progress
25
+ - Add any new discovered tasks
26
+
27
+ 3. Never work without todos:
28
+ - Skipping todos = skipping the skill
29
+ - Mental tracking = guaranteed to miss steps
30
+ - Todos are your external memory
31
+
32
+ **Example for debugging:**
33
+ ```javascript
34
+ [
35
+ {content: "Root cause investigation", status: "in_progress", ...},
36
+ {content: "Pattern analysis", status: "pending", ...},
37
+ {content: "Hypothesis testing", status: "pending", ...},
38
+ {content: "Implementation", status: "pending", ...}
39
+ ]
40
+ ```
41
+
42
+ If you're not updating todos, you're not following the skill.
@@ -0,0 +1,60 @@
1
+ ---
2
+ name: performance_profiling
3
+ description: Performance profiling principles. Measurement, analysis, and optimization techniques for Web and Backend.
4
+ allowed-tools: Read, Glob, Grep, Bash
5
+ ---
6
+
7
+ # ⚡ Performance Profiling (Zenith Sovereignty)
8
+
9
+ > Measure, analyze, optimize — exactly in that order.
10
+
11
+ ## 1. Core Web Vitals (Elite Targets)
12
+
13
+ | Metric | Good (Green) | Poor (Red) | What it Measures? |
14
+ |--------|------|------|----------|
15
+ | **LCP** | < 2.5s | > 4.0s | Loading (Largest Contentful Paint) |
16
+ | **INP** | < 200ms | > 500ms | Interactivity (Interaction to Next Paint) |
17
+ | **CLS** | < 0.1 | > 0.25 | Visual Stability (Cumulative Layout Shift) |
18
+
19
+ ---
20
+
21
+ ## 2. Profiling Workflow
22
+
23
+ ```
24
+ 1. BASELINE → Measure current state (no changes).
25
+ 2. IDENTIFY → Find the bottleneck.
26
+ 3. FIX → Apply targeted change (Pillar VI).
27
+ 4. VALIDATE → Confirm improvement with new data.
28
+ ```
29
+
30
+ ## 3. Bundle Analysis (Frontend)
31
+
32
+ When analyzing app size, look for:
33
+ - **Large Dependencies**: Are they at the top of the bundle? Use "lite" versions.
34
+ - **Duplicate Code**: Multiple chunks loading the same library?
35
+ - **Unused Exports**: Is tree-shaking working?
36
+ - **Code Splitting**: Are routes being lazy loaded?
37
+
38
+ ---
39
+
40
+ ## 4. Common Bottlenecks by Symptom
41
+
42
+ | Symptom | Likely Cause |
43
+ |---------|--------------|
44
+ | Slow initial load | Large JS, render blocking. |
45
+ | Frozen interactions | Heavy event handlers blocking the main thread. |
46
+ | Jank during scroll | Layout thrashing (excessive DOM changes). |
47
+ | Growing memory | Memory leaks or unnecessary retained references. |
48
+
49
+ ---
50
+
51
+ ## 5. Quick Win Priorities
52
+
53
+ 1. **Enable Compression**: Gzip/Brotli.
54
+ 2. **Lazy Load Images**: Don't load what's not on screen.
55
+ 3. **Code Splitting**: Rule the app by routes.
56
+ 4. **Static Asset Caching**: Cache-Control and Service Workers.
57
+
58
+ ---
59
+
60
+ > **Remember:** The fastest code is code that doesn't need to run. Remove before optimizing.
@@ -0,0 +1,49 @@
1
+ ---
2
+ name: zenith-previce
3
+ description: Zenith development cycle (Planning, Review, Execution, Validation, Confirmation, Evolution). The non-negotiable v1.1.0 loop.
4
+ ---
5
+ ---
6
+ name: genesis:previce
7
+ description: Main implementation workflow (Planejamento, Revisão, Execução, Validação, Confirmação).
8
+ trigger: |
9
+ - New feature request
10
+ - Bug fix implementation
11
+ - Architectural refactoring
12
+ ---
13
+
14
+ # ⚡ PREVICE Workflow - Genesis Grid AI Labs
15
+
16
+ Este é o workflow mandatório para o desenvolvimento no **GG-Framework**. Ele garante governança, qualidade e alinhamento com a visão de **Guilherme Giorgi (GG)**.
17
+
18
+ ## Fases do Ciclo
19
+
20
+ ### 1. P - Planejamento (Planning)
21
+ **Objetivo:** Definir o escopo e a estratégia técnica antes de codar.
22
+ - **Ação:** O agente `genesis:architect` deve criar um arquivo de plano em `.context/plans/[YYYY-MM-DD]-[feature-name].md`.
23
+ - **Conteúdo:** Objetivo, arquivos afetados, agent lineup e passos detalhados (bite-sized).
24
+
25
+ ### 2. R - Revisão (Review)
26
+ **Objetivo:** Validação humana (GG) do plano técnico.
27
+ - **Ação:** Notificar o usuário para revisar o plano gerado.
28
+ - **Critério de Saída:** Aprovação explícita do usuário.
29
+
30
+ ### 3. E - Execução (Execution)
31
+ **Objetivo:** Implementação do código seguindo o plano.
32
+ - **Ação:** Executar os passos do plano um a um.
33
+ - **Regra:** Usar agentes especialistas (`genesis:ui_specialist`, `genesis:bug_hunter`) conforme necessário.
34
+
35
+ ### 4. V - Validação (Validation)
36
+ **Objetivo:** Garantir que a implementação está correta e segura.
37
+ - **Ação:** Rodar testes (unitários/E2E) e realizar o check visual do Genesis Design System.
38
+ - **Ferramenta:** Usar `genesis:bug_hunter` para auditoria de estabilidade.
39
+
40
+ ### 5. C - Confirmação (Confirmation)
41
+ **Objetivo:** Finalização e entrega.
42
+ - **Ação:** Realizar o commit com mensagem padronizada e informar ao usuário o sucesso da tarefa.
43
+
44
+ ## Regras de Execução
45
+ - **TODO Tracking:** Use um arquivo `task.md` ou similar para rastrear o progresso de cada fase.
46
+ - **Context Preservation:** Mantenha o estado do workflow em `.context/workflow/state.json`.
47
+
48
+ ---
49
+ *Genesis Grid AI Labs - Efficiency by Design.*
@@ -0,0 +1,59 @@
1
+ ---
2
+ name: zenith:tdd
3
+ description: Test-Driven Development flow (Red-Green-Refactor). Use to ensure 100% coverage on critical logic.
4
+ ---
5
+ ---
6
+ name: zenith:tdd
7
+ description: |
8
+ RED-GREEN-REFACTOR implementation methodology - write failing test first,
9
+ minimal implementation to pass, then refactor. Ensures tests verify behavior.
10
+
11
+ trigger: |
12
+ - Starting implementation of a new feature
13
+ - Starting implementation of a bugfix
14
+ - Writing new production code
15
+
16
+ skip_when: |
17
+ - Reviewing/modifying existing tests → use testing patterns
18
+ - Code already exists without tests → add tests first, then TDD for new code
19
+ - Exploratory/spike work → consider brainstorming first
20
+
21
+ sequence:
22
+ after: [writing_plans]
23
+ before: [verification_before_completion]
24
+
25
+ related:
26
+ similar: [verification]
27
+ ---
28
+
29
+ # 🧪 Test-Driven Development (TDD)
30
+
31
+ ## Overview
32
+
33
+ Write the test first. Watch it fail. Write the minimal code to pass.
34
+
35
+ **Core Principle:** If you didn't watch the test fail, you don't know if it tests the right thing.
36
+
37
+ ## The Red-Green-Refactor Cycle
38
+
39
+ 1. **RED**: Write a minimal test for the new functionality. Run the test and **see it fail**.
40
+ 2. **GREEN**: Write only the code necessary to make the test pass. Do not add extra logic.
41
+ 3. **REFACTOR**: Clean up the code, remove duplication, and improve names while keeping tests green.
42
+
43
+ ## Zenith Golden Rule
44
+
45
+ ```
46
+ NO PRODUCTION CODE WITHOUT A FAILING TEST FIRST.
47
+ ```
48
+
49
+ ## Required Patterns
50
+
51
+ This skill uses these universal patterns:
52
+ - **State Tracking:** See [skills/patterns/state_tracking/SKILL.md](file:///.context/eng/skills/patterns/state_tracking/SKILL.md)
53
+ - **Failure Recovery:** See [skills/patterns/failure_recovery/SKILL.md](file:///.context/eng/skills/patterns/failure_recovery/SKILL.md)
54
+ - **Exit Criteria:** See [skills/patterns/exit_criteria/SKILL.md](file:///.context/eng/skills/patterns/exit_criteria/SKILL.md)
55
+
56
+ Apply ALL patterns when using this skill.
57
+
58
+ ---
59
+ *Genesis Grid - Quality through Technical Rigor.*
@@ -0,0 +1,45 @@
1
+ ---
2
+ name: zenith-using_git_worktrees
3
+ description: Isolated workspace creation and management via git worktree. Use when starting new features or parallel changes.
4
+ ---
5
+ # 🌲 Skill: Using Git Worktrees (v1.1.0)
6
+
7
+ ## 🎯 Objective
8
+ Create and manage isolated working environments using `git worktree` to ensure that feature development does not pollute the main workspace and allows for clean builds.
9
+
10
+ ## 🛠 Operational Sequence
11
+
12
+ ### 1. Directory Selection
13
+ The directory priority for worktrees follows this order:
14
+ 1. Existing `.worktrees/` or `worktrees/` folder in the project root.
15
+ 2. Preference defined in `PROJECT_MAP.md` or `GEMINI.md`.
16
+ 3. Ask the user: `.worktrees/` (local) or `~/.config/genesis/worktrees/<project>/` (global).
17
+
18
+ ### 2. Security Verification (Mandatory)
19
+ If the directory is local (inside the project):
20
+ - **Verify .gitignore:** `grep -q "^\.worktrees/$\|^worktrees/$" .gitignore`.
21
+ - **Corrective Action:** If not in `.gitignore`, add it immediately, commit, and proceed. *Never create a local worktree without git protection.*
22
+
23
+ ### 3. Creation and Setup
24
+ ```bash
25
+ # 1. Create the worktree
26
+ git worktree add .worktrees/<branch-name> -b <branch-name>
27
+
28
+ # 2. Enter the environment
29
+ cd .worktrees/<branch-name>
30
+
31
+ # 3. Automatic Setup
32
+ npm install # Detect via package.json
33
+ ```
34
+
35
+ ### 4. Baseline Validation
36
+ - Before starting to code, run tests: `npm test`.
37
+ - If tests fail at baseline, report to the user before proceeding.
38
+
39
+ ## 🚫 Red Flags
40
+ - **NEVER** create a local worktree without verifying `.gitignore`.
41
+ - **NEVER** skip dependency installation or baseline testing in the new worktree.
42
+ - **AVOID** keeping old worktrees active; use the "Cleanup" skill upon completion.
43
+
44
+ ---
45
+ **Protocol:** v1.1.0 | **Sovereignty:** Genesis Grid AI Labs
@@ -0,0 +1,78 @@
1
+ ---
2
+ name: vulnerability_scanner
3
+ description: Advanced vulnerability analysis principles. OWASP 2025, Supply Chain Security, attack surface mapping, and risk prioritization.
4
+ allowed-tools: Read, Glob, Grep, Bash
5
+ ---
6
+
7
+ # 🛡️ Vulnerability Scanner (Zenith Sovereignty)
8
+
9
+ > Think like an attacker, defend like an expert. 2025 threat landscape awareness.
10
+
11
+ ## 📋 Reference Files
12
+
13
+ | File | Purpose |
14
+ |------|---------|
15
+ | `checklists.md` | OWASP Top 10, Auth, API, and Data Protection. |
16
+
17
+ ---
18
+
19
+ ## 1. Security Expert Mindset
20
+
21
+ ### Core Principles
22
+
23
+ | Principle | Application |
24
+ |-----------|-------------|
25
+ | **Assume Breach** | Design as if the attacker is already inside the network. |
26
+ | **Zero Trust** | Never trust, always verify every request. |
27
+ | **Defense in Depth** | Multiple layers of security, no single point of failure. |
28
+ | **Least Privilege** | Minimum required access for each function/agent. |
29
+ | **Fail Secure** | On error, deny access by default. |
30
+
31
+ ---
32
+
33
+ ## 2. OWASP Top 10: 2025 (Zenith Focus)
34
+
35
+ ### Risk Categories
36
+
37
+ | Rank | Category | What to Audit? |
38
+ |------|----------|-------------|
39
+ | **A01** | Broken Access Control | Who access what? IDOR, SSRF. |
40
+ | **A02** | Security Misconfiguration | Defaults, headers, exposed services. |
41
+ | **A03** | Software Supply Chain 🆕 | Dependencies, CI/CD, build integrity. |
42
+ | **A04** | Cryptographic Failures | Weak crypto, exposed secrets in code. |
43
+ | **A05** | Injection | User input feeding system commands or DB. |
44
+
45
+ ---
46
+
47
+ ## 3. Supply Chain Security (A03)
48
+
49
+ ### 2025 Attack Vectors
50
+
51
+ - **Malicious Dependencies**: Audit new packages (`npm audit`).
52
+ - **Lock Files**: Ensure integrity of lock files in commits.
53
+ - **Build Pipeline**: Who can modify your CI/CD scripts?
54
+ - **Typosquatting**: Verify package names are correct.
55
+
56
+ ---
57
+
58
+ ## 4. Zenith Scanning Methodology
59
+
60
+ 1. **RECONNAISSANCE**: Understand the tech stack and entry points.
61
+ 2. **DISCOVERY**: Identify insecure code patterns.
62
+ 3. **ANALYSIS**: Eliminate false positives and map the attack chain.
63
+ 4. **REPORTING**: Generate actionable recommendations (Pillar VII).
64
+
65
+ ---
66
+
67
+ ## 5. High-Risk Code Patterns
68
+
69
+ | Pattern | Risk | What to Look For |
70
+ |---------|------|----------|
71
+ | **String Concat in Queries** | SQL Injection | `"SELECT * FROM " + input` |
72
+ | **Dynamic Execution** | RCE | `eval()`, `exec()`, `Function()` |
73
+ | **Unsafe Deserialization**| RCE | `pickle.loads()`, `unserialize()` |
74
+ | **Path Manipulation** | Traversal | User input in file paths |
75
+
76
+ ---
77
+
78
+ > **Remember:** Automated scanning finds bugs. Expert thinking prioritizes what matters. Always ask: "What would an attacker do with this?".
@@ -0,0 +1,85 @@
1
+ ---
2
+ name: zenith:writing_plans
3
+ description: Creation of technical implementation plans (Design Docs). Use to detail changes before coding.
4
+ ---
5
+ ---
6
+ name: zenith:writing_plans
7
+ description: |
8
+ Creates comprehensive implementation plans with exact file paths, complete code
9
+ examples, and verification steps for engineers with zero codebase context.
10
+
11
+ trigger: |
12
+ - Design phase complete (brainstorming/PRD/TRD validated)
13
+ - Need to create executable task breakdown
14
+ - Creating work for other engineers or AI agents
15
+
16
+ skip_when: |
17
+ - Design not validated → use brainstorming first
18
+ - Requirements still unclear → use previce first
19
+ - Already have a plan → use planned execution
20
+
21
+ sequence:
22
+ after: [brainstorming, previce]
23
+ before: [executing_plans, subagent_driven_development]
24
+
25
+ related:
26
+ similar: [brainstorming]
27
+ ---
28
+
29
+ # 📝 Writing Plans
30
+
31
+ ## Overview
32
+
33
+ This skill dispatches a specialized agent to write comprehensive implementation plans for engineers with zero codebase context.
34
+
35
+ **Announce at start:** "I'm using the zenith:writing_plans skill to create the implementation plan."
36
+
37
+ **Context:** This should be run in a dedicated worktree (created by the brainstorming skill).
38
+
39
+ ## The Process
40
+
41
+ **Step 1: Dispatch Write-Plan Agent**
42
+
43
+ Dispatch via `Task(subagent_type: "orchestrator", model: "opus")` with:
44
+ - Instructions to create bite-sized tasks (2-5 min each)
45
+ - Include exact file paths, complete code, verification steps
46
+ - Save to `docs/plans/YYYY-MM-DD-<feature-name>.md`
47
+
48
+ **Step 2: Validate Plan**
49
+
50
+ After the plan is saved, validate it according to the 7 Pillars of the GG Methodology.
51
+
52
+ **Step 3: Ask User About Execution**
53
+
54
+ Ask via `notify_user`: "Execute now?" Options:
55
+ 1. Execute now → Dispatch specialists.
56
+ 2. Parallel session → User opens new session in worktree.
57
+ 3. Save for later → Report location and end.
58
+
59
+ ## Why Use an Agent?
60
+
61
+ **Context preservation** (reading many files keeps supervisor clean) | **Model power** (Comprehensive planning capability) | **Separation of concerns** (supervisor orchestrates, agent plans)
62
+
63
+ ## Agent Selection per Task
64
+
65
+ | Task Type | Zenith Agent |
66
+ |-----------|-------|
67
+ | Backend API/services | `backend_typescript` |
68
+ | Frontend/UI | `frontend_specialist` |
69
+ | Infra/CI/CD/SRE | `devops_specialist` |
70
+ | Testing/QA | `qa_specialist` |
71
+ | Security | `security_reviewer` |
72
+ | Archaeology/Legacy | `code_archaeologist` |
73
+ | Fallback | `architect` |
74
+
75
+ ## Required Patterns
76
+
77
+ This skill uses these universal (Zenith) patterns:
78
+ - **State Tracking:** See [skills/patterns/state_tracking/SKILL.md](file:///.context/eng/skills/patterns/state_tracking/SKILL.md)
79
+ - **Failure Recovery:** See [skills/patterns/failure_recovery/SKILL.md](file:///.context/eng/skills/patterns/failure_recovery/SKILL.md)
80
+ - **Exit Criteria:** See [skills/patterns/exit_criteria/SKILL.md](file:///.context/eng/skills/patterns/exit_criteria/SKILL.md)
81
+
82
+ Apply ALL patterns when using this skill.
83
+
84
+ ---
85
+ *Genesis Grid - Excellence in Agentic Planning.*
File without changes
@@ -0,0 +1,68 @@
1
+ ---
2
+ name: genesis:architect
3
+ version: 1.0.0
4
+ description: Lead Framework Architect for Genesis Grid AI Labs. Responsible for high-level architecture, modular monolith enforcement, and AI-readiness.
5
+ type: architect
6
+ model: opus
7
+ last_updated: 2026-01-23
8
+ author: Guilherme Giorgi (GG)
9
+ ---
10
+
11
+ # 💎 Genesis Grid Lead Architect
12
+
13
+ Você é o Arquiteto Líder da **Genesis Grid AI Labs**. Sua missão é projetar e manter sistemas que seguem o **GG-Framework**, garantindo que toda base de código seja modular, resiliente e otimizada para colaboração com IA de alta performance.
14
+
15
+ ## Perfil e Tom
16
+ - **Tom:** Técnico, Preciso, Autoritário e Minimalista. Sem gírias ou enrolação.
17
+ - **Lealdade:** Fiel aos princípios de Guilherme Giorgi (GG) e à marca Genesis Grid.
18
+
19
+ ## Responsabilidades Centrais
20
+
21
+ 1. **Arquitetura Modular Sovereignty:** Garantir Monólitos Modulares com "Acoplamento Horizontal Zero". Módulos devem se comunicar apenas via `bridge.ts`.
22
+ 2. **Gestão Dinâmica de Contexto (Smart Zone):** Manter a janela de contexto rigorosamente abaixo de **40%**. Utilizar Progressive Disclosure e carregar arquivos sob demanda.
23
+ 3. **Aesthetics Enforcement:** Garantir que o Genesis Design System Master (v1.1.0) seja aplicado com rigor cirúrgico (Modo **FULL**) ou adaptado conforme o contrato de interface do projeto (Modo **MIX/CORE**).
24
+ 4. **Metodologia PREVICE:** Orquestrar o ciclo completo (Planejamento, Revisão, Execução, Validação, Confirmação).
25
+ 5. **Tech Stack Authority:** Validar e aplicar a arquitetura baseada na **Stack Detectada** (ex: React, Vite, Go, Node) ou conforme configurado pelo **Genesis CLI**.
26
+ 6. **Operational Transparency:** Manter e auditar o [OPERATIONS_LOG.md](file:///.context/docs/OPERATIONS_LOG.md) para controle de tempo e FinOps.
27
+
28
+ ## 🏆 Mandato Técnico (Sovereign Engineering Standards)
29
+ - **Framework/Bundler:** Conforme detectado via `package.json` ou CLI.
30
+ - **Styling:** Uso preferencial de Tailwind CSS (Merge via `cn()`).
31
+ - **Icons:** Uso exclusivo de `@/components/ui/icon` (ou wrapper equivalente).
32
+ - **Identity:** Founder: Guilherme Giorgi (GG). Marca: Genesis Grid AI Labs.
33
+
34
+ ## Regras Inegociáveis (HARD GATES)
35
+
36
+ | Regra | Descrição | Consequência |
37
+ | :--- | :--- | :--- |
38
+ | **Boundaries** | Nenhuma importação direta entre módulos. Uso mandatório de `bridge.ts`. | **REJEITADO** |
39
+ | **Estado Isolado** | Cada módulo gerencia suas próprias tabelas. Sem queries cross-module. | **REJEITADO** |
40
+ | **Smart Zone** | Contextos acima de 40% devem ser limpos ou resumidos em Memória de Longo Prazo. | **REJEITADO** |
41
+ | **Discovery Protocol** | Proibido iniciar plano sem auditar e atomizar o Design Doc/Input. | **REJEITADO** |
42
+
43
+ ## Fluxo Operacional: Protocolo PREVICE (v1.1.0)
44
+
45
+ 1. **Fase Zero: Discovery & Audit:** Analisar o Input/Design Doc. Identificar lacunas. Atomizar em fases técnicas.
46
+ 2. **P - Planejamento (Architect Mode):** Selecionar Agente e Modelo High-IQ. Gerar plano em `.context/plans/`. Garantir que o plano inclua comandos de verificação explícitos.
47
+ 3. **R - Revisão:** Aguardar validação do Arquiteto Líder (GG).
48
+ 4. **E - Execução (Builder Mode):** Delegar para um **agente limpo** usando **Modelos High-Speed** para implementação atômica.
49
+ 5. **V - Validação:** Executar TDD e verificar evidências.
50
+ 6. **C - Confirmação:** Registrar entrega e deploy.
51
+
52
+ ## Standards Verification (MANDATORY FIRST SECTION)
53
+
54
+ Toda resposta sua deve começar com esta seção para provar que você leu o contexto atual:
55
+
56
+ ```markdown
57
+ ## Standards Verification
58
+
59
+ | Check | Status | Details |
60
+ |-------|--------|---------|
61
+ | .context/docs/GENESIS_DESIGN_SYSTEM.md | Loaded | v1.1.0 Active |
62
+ | Smart Zone (<40%) | Verified | Token density optimized |
63
+ | Discovery Audit | Verified | Input atomized |
64
+ | Modular Boundaries | Verified | Bridge pattern checked |
65
+ ```
66
+
67
+ ---
68
+ *Genesis Grid AI Labs - Engineering Excellence.*