@ggailabs/cli-context 0.5.6 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (282) hide show
  1. package/README.md +25 -181
  2. package/dist/.context/docs/GENESIS_SYSTEM_PROMPT.md +62 -0
  3. package/dist/.context/eng/agents/architect.md +15 -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_reviewer.md +313 -0
  7. package/dist/.context/eng/agents/devops_specialist.md +718 -0
  8. package/dist/.context/eng/agents/frontend_specialist.md +1027 -0
  9. package/dist/.context/eng/agents/qa_specialist.md +1234 -0
  10. package/dist/.context/eng/agents/security_reviewer.md +382 -0
  11. package/dist/.context/eng/agents/ui_specialist.md +16 -0
  12. package/dist/.context/eng/docs/AGENT_HANDOFF_PROMPT.md +44 -0
  13. package/dist/.context/eng/docs/GENESIS_DESIGN_SYSTEM.md +15 -0
  14. package/dist/.context/eng/docs/GG_METHODOLOGY.md +48 -0
  15. package/dist/.context/eng/docs/OPERATIONS_LOG.md +30 -0
  16. package/dist/.context/eng/docs/PROJECT_MAP.md +35 -0
  17. package/dist/.context/eng/docs/standards/devops.md +0 -0
  18. package/dist/.context/eng/docs/standards/frontend.md +0 -0
  19. package/dist/.context/eng/docs/standards/typescript.md +12 -0
  20. package/dist/.context/eng/skills/agent_logging.md +18 -0
  21. package/dist/.context/eng/skills/brainstorming.md +227 -0
  22. package/dist/.context/eng/skills/exploring_codebase.md +1217 -0
  23. package/dist/.context/eng/skills/patterns/compliance_check.md +246 -0
  24. package/dist/.context/eng/skills/patterns/coverage_table.md +401 -0
  25. package/dist/.context/eng/skills/patterns/exit_criteria.md +31 -0
  26. package/dist/.context/eng/skills/patterns/failure_recovery.md +74 -0
  27. package/dist/.context/eng/skills/patterns/quality_gate.md +295 -0
  28. package/dist/.context/eng/skills/patterns/standards_workflow.md +391 -0
  29. package/dist/.context/eng/skills/patterns/state_tracking.md +30 -0
  30. package/dist/.context/eng/skills/patterns/task_tracking.md +38 -0
  31. package/dist/.context/eng/skills/previce.md +45 -0
  32. package/dist/.context/eng/skills/tdd.md +421 -0
  33. package/dist/.context/eng/skills/writing_plans.md +105 -0
  34. package/dist/.context/plans/.gitkeep +0 -0
  35. package/dist/.context/pt-br/agents/architect.md +69 -0
  36. package/dist/.context/pt-br/agents/backend_typescript.md +1000 -0
  37. package/dist/.context/pt-br/agents/bug_hunter.md +49 -0
  38. package/dist/.context/pt-br/agents/code_reviewer.md +313 -0
  39. package/dist/.context/pt-br/agents/devops_specialist.md +718 -0
  40. package/dist/.context/pt-br/agents/frontend_specialist.md +1027 -0
  41. package/dist/.context/pt-br/agents/qa_specialist.md +1234 -0
  42. package/dist/.context/pt-br/agents/security_reviewer.md +382 -0
  43. package/dist/.context/pt-br/agents/ui_specialist.md +55 -0
  44. package/dist/.context/pt-br/docs/AGENT_HANDOFF_PROMPT.md +44 -0
  45. package/dist/.context/pt-br/docs/GENESIS_DESIGN_SYSTEM.md +88 -0
  46. package/dist/.context/pt-br/docs/GG_METHODOLOGY.md +48 -0
  47. package/dist/.context/pt-br/docs/OPERATIONS_LOG.md +30 -0
  48. package/dist/.context/pt-br/docs/PROJECT_MAP.md +37 -0
  49. package/dist/.context/pt-br/docs/standards/devops.md +707 -0
  50. package/dist/.context/pt-br/docs/standards/frontend.md +748 -0
  51. package/dist/.context/pt-br/docs/standards/typescript.md +1150 -0
  52. package/dist/.context/pt-br/skills/agent_logging.md +36 -0
  53. package/dist/.context/pt-br/skills/brainstorming.md +227 -0
  54. package/dist/.context/pt-br/skills/exploring_codebase.md +1217 -0
  55. package/dist/.context/pt-br/skills/patterns/compliance_check.md +246 -0
  56. package/dist/.context/pt-br/skills/patterns/coverage_table.md +401 -0
  57. package/dist/.context/pt-br/skills/patterns/exit_criteria.md +31 -0
  58. package/dist/.context/pt-br/skills/patterns/failure_recovery.md +74 -0
  59. package/dist/.context/pt-br/skills/patterns/quality_gate.md +295 -0
  60. package/dist/.context/pt-br/skills/patterns/standards_workflow.md +391 -0
  61. package/dist/.context/pt-br/skills/patterns/state_tracking.md +30 -0
  62. package/dist/.context/pt-br/skills/patterns/task_tracking.md +38 -0
  63. package/dist/.context/pt-br/skills/previce.md +45 -0
  64. package/dist/.context/pt-br/skills/tdd.md +421 -0
  65. package/dist/.context/pt-br/skills/writing_plans.md +105 -0
  66. package/dist/.context/workflow/.gitkeep +0 -0
  67. package/dist/commands/init.js +140 -0
  68. package/dist/commands/monitor.js +34 -0
  69. package/dist/index.js +20 -568
  70. package/dist/services/monitor-service.js +340 -0
  71. package/dist/services/scaffolder.js +164 -0
  72. package/package.json +16 -58
  73. package/LICENSE +0 -21
  74. package/dist/generators/agents/agentConfig.d.ts +0 -4
  75. package/dist/generators/agents/agentConfig.d.ts.map +0 -1
  76. package/dist/generators/agents/agentConfig.js +0 -180
  77. package/dist/generators/agents/agentConfig.js.map +0 -1
  78. package/dist/generators/agents/agentGenerator.d.ts +0 -9
  79. package/dist/generators/agents/agentGenerator.d.ts.map +0 -1
  80. package/dist/generators/agents/agentGenerator.js +0 -97
  81. package/dist/generators/agents/agentGenerator.js.map +0 -1
  82. package/dist/generators/agents/agentTypes.d.ts +0 -4
  83. package/dist/generators/agents/agentTypes.d.ts.map +0 -1
  84. package/dist/generators/agents/agentTypes.js +0 -25
  85. package/dist/generators/agents/agentTypes.js.map +0 -1
  86. package/dist/generators/agents/index.d.ts +0 -4
  87. package/dist/generators/agents/index.d.ts.map +0 -1
  88. package/dist/generators/agents/index.js +0 -12
  89. package/dist/generators/agents/index.js.map +0 -1
  90. package/dist/generators/agents/templates/index.d.ts +0 -4
  91. package/dist/generators/agents/templates/index.d.ts.map +0 -1
  92. package/dist/generators/agents/templates/index.js +0 -8
  93. package/dist/generators/agents/templates/index.js.map +0 -1
  94. package/dist/generators/agents/templates/indexTemplate.d.ts +0 -3
  95. package/dist/generators/agents/templates/indexTemplate.d.ts.map +0 -1
  96. package/dist/generators/agents/templates/indexTemplate.js +0 -36
  97. package/dist/generators/agents/templates/indexTemplate.js.map +0 -1
  98. package/dist/generators/agents/templates/playbookTemplate.d.ts +0 -4
  99. package/dist/generators/agents/templates/playbookTemplate.d.ts.map +0 -1
  100. package/dist/generators/agents/templates/playbookTemplate.js +0 -99
  101. package/dist/generators/agents/templates/playbookTemplate.js.map +0 -1
  102. package/dist/generators/agents/templates/types.d.ts +0 -14
  103. package/dist/generators/agents/templates/types.d.ts.map +0 -1
  104. package/dist/generators/agents/templates/types.js +0 -3
  105. package/dist/generators/agents/templates/types.js.map +0 -1
  106. package/dist/generators/documentation/documentationGenerator.d.ts +0 -15
  107. package/dist/generators/documentation/documentationGenerator.d.ts.map +0 -1
  108. package/dist/generators/documentation/documentationGenerator.js +0 -188
  109. package/dist/generators/documentation/documentationGenerator.js.map +0 -1
  110. package/dist/generators/documentation/guideRegistry.d.ts +0 -6
  111. package/dist/generators/documentation/guideRegistry.d.ts.map +0 -1
  112. package/dist/generators/documentation/guideRegistry.js +0 -82
  113. package/dist/generators/documentation/guideRegistry.js.map +0 -1
  114. package/dist/generators/documentation/index.d.ts +0 -2
  115. package/dist/generators/documentation/index.d.ts.map +0 -1
  116. package/dist/generators/documentation/index.js +0 -6
  117. package/dist/generators/documentation/index.js.map +0 -1
  118. package/dist/generators/documentation/templates/apiReferenceTemplate.d.ts +0 -2
  119. package/dist/generators/documentation/templates/apiReferenceTemplate.d.ts.map +0 -1
  120. package/dist/generators/documentation/templates/apiReferenceTemplate.js +0 -490
  121. package/dist/generators/documentation/templates/apiReferenceTemplate.js.map +0 -1
  122. package/dist/generators/documentation/templates/architectureTemplate.d.ts +0 -3
  123. package/dist/generators/documentation/templates/architectureTemplate.d.ts.map +0 -1
  124. package/dist/generators/documentation/templates/architectureTemplate.js +0 -66
  125. package/dist/generators/documentation/templates/architectureTemplate.js.map +0 -1
  126. package/dist/generators/documentation/templates/common.d.ts +0 -7
  127. package/dist/generators/documentation/templates/common.d.ts.map +0 -1
  128. package/dist/generators/documentation/templates/common.js +0 -58
  129. package/dist/generators/documentation/templates/common.js.map +0 -1
  130. package/dist/generators/documentation/templates/dataFlowTemplate.d.ts +0 -3
  131. package/dist/generators/documentation/templates/dataFlowTemplate.d.ts.map +0 -1
  132. package/dist/generators/documentation/templates/dataFlowTemplate.js +0 -40
  133. package/dist/generators/documentation/templates/dataFlowTemplate.js.map +0 -1
  134. package/dist/generators/documentation/templates/developmentWorkflowTemplate.d.ts +0 -2
  135. package/dist/generators/documentation/templates/developmentWorkflowTemplate.d.ts.map +0 -1
  136. package/dist/generators/documentation/templates/developmentWorkflowTemplate.js +0 -44
  137. package/dist/generators/documentation/templates/developmentWorkflowTemplate.js.map +0 -1
  138. package/dist/generators/documentation/templates/glossaryTemplate.d.ts +0 -3
  139. package/dist/generators/documentation/templates/glossaryTemplate.d.ts.map +0 -1
  140. package/dist/generators/documentation/templates/glossaryTemplate.js +0 -41
  141. package/dist/generators/documentation/templates/glossaryTemplate.js.map +0 -1
  142. package/dist/generators/documentation/templates/index.d.ts +0 -15
  143. package/dist/generators/documentation/templates/index.d.ts.map +0 -1
  144. package/dist/generators/documentation/templates/index.js +0 -30
  145. package/dist/generators/documentation/templates/index.js.map +0 -1
  146. package/dist/generators/documentation/templates/indexTemplate.d.ts +0 -3
  147. package/dist/generators/documentation/templates/indexTemplate.d.ts.map +0 -1
  148. package/dist/generators/documentation/templates/indexTemplate.js +0 -42
  149. package/dist/generators/documentation/templates/indexTemplate.js.map +0 -1
  150. package/dist/generators/documentation/templates/migrationTemplate.d.ts +0 -2
  151. package/dist/generators/documentation/templates/migrationTemplate.d.ts.map +0 -1
  152. package/dist/generators/documentation/templates/migrationTemplate.js +0 -422
  153. package/dist/generators/documentation/templates/migrationTemplate.js.map +0 -1
  154. package/dist/generators/documentation/templates/onboardingTemplate.d.ts +0 -2
  155. package/dist/generators/documentation/templates/onboardingTemplate.d.ts.map +0 -1
  156. package/dist/generators/documentation/templates/onboardingTemplate.js +0 -431
  157. package/dist/generators/documentation/templates/onboardingTemplate.js.map +0 -1
  158. package/dist/generators/documentation/templates/projectOverviewTemplate.d.ts +0 -3
  159. package/dist/generators/documentation/templates/projectOverviewTemplate.d.ts.map +0 -1
  160. package/dist/generators/documentation/templates/projectOverviewTemplate.js +0 -65
  161. package/dist/generators/documentation/templates/projectOverviewTemplate.js.map +0 -1
  162. package/dist/generators/documentation/templates/securityTemplate.d.ts +0 -2
  163. package/dist/generators/documentation/templates/securityTemplate.d.ts.map +0 -1
  164. package/dist/generators/documentation/templates/securityTemplate.js +0 -39
  165. package/dist/generators/documentation/templates/securityTemplate.js.map +0 -1
  166. package/dist/generators/documentation/templates/testingTemplate.d.ts +0 -2
  167. package/dist/generators/documentation/templates/testingTemplate.d.ts.map +0 -1
  168. package/dist/generators/documentation/templates/testingTemplate.js +0 -45
  169. package/dist/generators/documentation/templates/testingTemplate.js.map +0 -1
  170. package/dist/generators/documentation/templates/toolingTemplate.d.ts +0 -2
  171. package/dist/generators/documentation/templates/toolingTemplate.d.ts.map +0 -1
  172. package/dist/generators/documentation/templates/toolingTemplate.js +0 -42
  173. package/dist/generators/documentation/templates/toolingTemplate.js.map +0 -1
  174. package/dist/generators/documentation/templates/troubleshootingTemplate.d.ts +0 -2
  175. package/dist/generators/documentation/templates/troubleshootingTemplate.d.ts.map +0 -1
  176. package/dist/generators/documentation/templates/troubleshootingTemplate.js +0 -292
  177. package/dist/generators/documentation/templates/troubleshootingTemplate.js.map +0 -1
  178. package/dist/generators/documentation/templates/types.d.ts +0 -23
  179. package/dist/generators/documentation/templates/types.d.ts.map +0 -1
  180. package/dist/generators/documentation/templates/types.js +0 -3
  181. package/dist/generators/documentation/templates/types.js.map +0 -1
  182. package/dist/generators/plans/index.d.ts +0 -2
  183. package/dist/generators/plans/index.d.ts.map +0 -1
  184. package/dist/generators/plans/index.js +0 -6
  185. package/dist/generators/plans/index.js.map +0 -1
  186. package/dist/generators/plans/planGenerator.d.ts +0 -22
  187. package/dist/generators/plans/planGenerator.d.ts.map +0 -1
  188. package/dist/generators/plans/planGenerator.js +0 -109
  189. package/dist/generators/plans/planGenerator.js.map +0 -1
  190. package/dist/generators/plans/templates/indexTemplate.d.ts +0 -3
  191. package/dist/generators/plans/templates/indexTemplate.d.ts.map +0 -1
  192. package/dist/generators/plans/templates/indexTemplate.js +0 -37
  193. package/dist/generators/plans/templates/indexTemplate.js.map +0 -1
  194. package/dist/generators/plans/templates/planTemplate.d.ts +0 -3
  195. package/dist/generators/plans/templates/planTemplate.d.ts.map +0 -1
  196. package/dist/generators/plans/templates/planTemplate.js +0 -166
  197. package/dist/generators/plans/templates/planTemplate.js.map +0 -1
  198. package/dist/generators/plans/templates/types.d.ts +0 -19
  199. package/dist/generators/plans/templates/types.d.ts.map +0 -1
  200. package/dist/generators/plans/templates/types.js +0 -3
  201. package/dist/generators/plans/templates/types.js.map +0 -1
  202. package/dist/generators/shared/contextGenerator.d.ts +0 -7
  203. package/dist/generators/shared/contextGenerator.d.ts.map +0 -1
  204. package/dist/generators/shared/contextGenerator.js +0 -13
  205. package/dist/generators/shared/contextGenerator.js.map +0 -1
  206. package/dist/generators/shared/directoryTemplateHelpers.d.ts +0 -2
  207. package/dist/generators/shared/directoryTemplateHelpers.d.ts.map +0 -1
  208. package/dist/generators/shared/directoryTemplateHelpers.js +0 -12
  209. package/dist/generators/shared/directoryTemplateHelpers.js.map +0 -1
  210. package/dist/generators/shared/generatorUtils.d.ts +0 -16
  211. package/dist/generators/shared/generatorUtils.d.ts.map +0 -1
  212. package/dist/generators/shared/generatorUtils.js +0 -119
  213. package/dist/generators/shared/generatorUtils.js.map +0 -1
  214. package/dist/generators/shared/index.d.ts +0 -4
  215. package/dist/generators/shared/index.d.ts.map +0 -1
  216. package/dist/generators/shared/index.js +0 -10
  217. package/dist/generators/shared/index.js.map +0 -1
  218. package/dist/index.d.ts +0 -9
  219. package/dist/index.d.ts.map +0 -1
  220. package/dist/index.js.map +0 -1
  221. package/dist/prompts/defaults.d.ts +0 -3
  222. package/dist/prompts/defaults.d.ts.map +0 -1
  223. package/dist/prompts/defaults.js +0 -95
  224. package/dist/prompts/defaults.js.map +0 -1
  225. package/dist/services/baseLLMClient.d.ts +0 -12
  226. package/dist/services/baseLLMClient.d.ts.map +0 -1
  227. package/dist/services/baseLLMClient.js +0 -80
  228. package/dist/services/baseLLMClient.js.map +0 -1
  229. package/dist/services/fill/fillService.d.ts +0 -46
  230. package/dist/services/fill/fillService.d.ts.map +0 -1
  231. package/dist/services/fill/fillService.js +0 -254
  232. package/dist/services/fill/fillService.js.map +0 -1
  233. package/dist/services/init/initService.d.ts +0 -37
  234. package/dist/services/init/initService.d.ts.map +0 -1
  235. package/dist/services/init/initService.js +0 -167
  236. package/dist/services/init/initService.js.map +0 -1
  237. package/dist/services/llmClientFactory.d.ts +0 -8
  238. package/dist/services/llmClientFactory.d.ts.map +0 -1
  239. package/dist/services/llmClientFactory.js +0 -23
  240. package/dist/services/llmClientFactory.js.map +0 -1
  241. package/dist/services/openRouterClient.d.ts +0 -9
  242. package/dist/services/openRouterClient.d.ts.map +0 -1
  243. package/dist/services/openRouterClient.js +0 -49
  244. package/dist/services/openRouterClient.js.map +0 -1
  245. package/dist/services/plan/planService.d.ts +0 -57
  246. package/dist/services/plan/planService.d.ts.map +0 -1
  247. package/dist/services/plan/planService.js +0 -334
  248. package/dist/services/plan/planService.js.map +0 -1
  249. package/dist/services/shared/llmConfig.d.ts +0 -22
  250. package/dist/services/shared/llmConfig.d.ts.map +0 -1
  251. package/dist/services/shared/llmConfig.js +0 -38
  252. package/dist/services/shared/llmConfig.js.map +0 -1
  253. package/dist/types.d.ts +0 -65
  254. package/dist/types.d.ts.map +0 -1
  255. package/dist/types.js +0 -3
  256. package/dist/types.js.map +0 -1
  257. package/dist/utils/cliUI.d.ts +0 -27
  258. package/dist/utils/cliUI.d.ts.map +0 -1
  259. package/dist/utils/cliUI.js +0 -252
  260. package/dist/utils/cliUI.js.map +0 -1
  261. package/dist/utils/fileMapper.d.ts +0 -11
  262. package/dist/utils/fileMapper.d.ts.map +0 -1
  263. package/dist/utils/fileMapper.js +0 -146
  264. package/dist/utils/fileMapper.js.map +0 -1
  265. package/dist/utils/gitService.d.ts +0 -50
  266. package/dist/utils/gitService.d.ts.map +0 -1
  267. package/dist/utils/gitService.js +0 -470
  268. package/dist/utils/gitService.js.map +0 -1
  269. package/dist/utils/i18n.d.ts +0 -171
  270. package/dist/utils/i18n.d.ts.map +0 -1
  271. package/dist/utils/i18n.js +0 -381
  272. package/dist/utils/i18n.js.map +0 -1
  273. package/dist/utils/promptLoader.d.ts +0 -12
  274. package/dist/utils/promptLoader.d.ts.map +0 -1
  275. package/dist/utils/promptLoader.js +0 -81
  276. package/dist/utils/promptLoader.js.map +0 -1
  277. package/dist/utils/versionChecker.d.ts +0 -15
  278. package/dist/utils/versionChecker.d.ts.map +0 -1
  279. package/dist/utils/versionChecker.js +0 -49
  280. package/dist/utils/versionChecker.js.map +0 -1
  281. package/prompts/update_plan_prompt.md +0 -41
  282. package/prompts/update_scaffold_prompt.md +0 -47
package/README.md CHANGED
@@ -1,195 +1,39 @@
1
- # @ggailabs/cli-context
1
+ # 💎 @ggailabs/cli-context (Zenith v6.1)
2
2
 
3
- [![npm version](https://badge.fury.io/js/@ggailabs%2fcli-context.svg)](https://www.npmjs.com/package/@ggailabs/cli-context)
4
- [![CI](https://github.com/ggailabs/ggailabs-context/actions/workflows/ci.yml/badge.svg)](https://github.com/ggailabs/ggailabs-context/actions/workflows/ci.yml)
5
- [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
3
+ > **Genesis Grid AI Framework CLI** - The definitive universal orchestrator for AI-assisted development.
6
4
 
7
- A lightweight CLI that scaffolds living documentation and AI-agent playbooks for any repository—no LLMs or API keys required. The generated structure gives teams a consistent starting point for knowledge sharing while keeping everything under version control.
8
-
9
- ## ⚙️ Requirements
10
-
11
- - Node.js 20+ (we currently test on 20, 22, 23, and 24)
12
-
13
- ## ✨ What You Get
14
-
15
- - 📚 `docs/` folder with a documentation index plus ready-to-edit guides (overview, architecture, workflow, testing)
16
- - 🤖 `agents/` folder containing playbooks for common engineering agents and a handy index
17
- - 🔁 Repeatable scaffolding that you can re-run as the project evolves
18
- - 🧭 Repository-aware templates that highlight top-level directories for quick orientation
19
- - 🧠 AI-ready front matter and `agent-update` markers so assistants know exactly what to refresh
20
-
21
- ## 📦 Installation
22
-
23
- Use `npx` to run the CLI without installing globally:
24
-
25
- ```bash
26
- npx @ggailabs/cli-context
27
- ```
28
-
29
- Or add it to your dev dependencies:
30
-
31
- ```bash
32
- npm install --save-dev @ggailabs/cli-context
33
- ```
5
+ Orchestrate your codebase documentation, AI agent prompts, and development workflows under the rigor of the **Zenith Protocol v6.1**.
34
6
 
35
7
  ## 🚀 Quick Start
36
8
 
37
- ```bash
38
- # Launch the interactive wizard
39
- npx @ggailabs/cli-context
40
-
41
-
42
- # Scaffold docs and agents into ./.context
43
- npx @ggailabs/cli-context init ./my-repo
44
-
45
- # Only generate docs
46
- npx @ggailabs/cli-context init ./my-repo docs
47
-
48
- # Only generate agent playbooks, with a custom output directory
49
- npx @ggailabs/cli-context init ./my-repo agents --output ./knowledge-base
50
-
51
- # Fill docs and agents with the repo context (preview the first 3 updates)
52
- npx @ggailabs/cli-context fill ./my-repo --output ./.context --limit 3
53
-
54
- # Draft a collaboration plan seeded with agent and doc touchpoints
55
- npx @ggailabs/cli-context plan release-readiness --output ./.context
56
-
57
- # Let the LLM enrich an existing plan with the latest context
58
- npx @ggailabs/cli-context plan release-readiness --output ./.context --fill --dry-run
59
- ```
60
-
61
- > ℹ️ The CLI pings npm for fresh releases at startup. Set `AI_CONTEXT_DISABLE_UPDATE_CHECK=true` to skip the check.
62
-
63
- After running the command, inspect the generated structure:
64
-
65
- ```
66
- .context/
67
- ├── agents/
68
- │ ├── README.md
69
- │ ├── code-reviewer.md
70
- │ └── ...
71
- └── docs/
72
- ├── README.md
73
- ├── architecture.md
74
- └── ...
75
- ```
76
-
77
- Customize the Markdown files to reflect your project’s specifics and commit them alongside the code.
78
-
79
- ## 🧠 Guided Updates for AI Assistants
80
-
81
- Need help filling in the scaffold? Use [`prompts/update_scaffold_prompt.md`](./prompts/update_scaffold_prompt.md) as the canonical instruction set for any LLM or CLI agent. It walks through:
82
-
83
- - Gathering repository context and locating `agent-update`/`agent-fill` markers.
84
- - Updating documentation sections while satisfying the YAML front matter criteria.
85
- - Aligning agent playbooks with the refreshed docs and recording evidence for maintainers.
86
-
87
- Share that prompt verbatim with your assistant to keep updates consistent across teams.
88
-
89
- ### Available Doc Guides & Agent Types
90
-
91
- The scaffold includes the following guides and playbooks out of the box:
92
-
93
- - Docs: `project-overview`, `architecture`, `development-workflow`, `testing-strategy`, `glossary`, `data-flow`, `security`, `tooling`
94
- - Agents: `code-reviewer`, `bug-fixer`, `feature-developer`, `refactoring-specialist`, `test-writer`, `documentation-writer`, `performance-optimizer`, `security-auditor`, `backend-specialist`, `frontend-specialist`, `architect-specialist`
95
-
96
- ### AI Marker Reference
97
-
98
- - `<!-- agent-update:start:section-id --> … <!-- agent-update:end -->` wrap the sections that AI assistants should rewrite with up-to-date project knowledge.
99
- - `<!-- agent-fill:slot-id --> … <!-- /agent-fill -->` highlight inline placeholders that must be replaced with concrete details before removing the wrapper.
100
- - `<!-- agent-readonly:context -->` flags guidance that should remain as-is; treat the adjacent content as instructions rather than editable prose.
101
-
102
- When contributing, focus edits inside `agent-update` regions or `agent-fill` placeholders and leave `agent-readonly` guidance untouched unless you have explicit maintainer approval.
103
-
104
- ## 🛠 Commands
105
-
106
- ### `init`
107
- Scaffold documentation and/or agent playbooks.
108
-
109
- ```
110
- Usage: ggailabs-cli-context init <repo-path> [type]
111
-
112
- Arguments:
113
- repo-path Path to the repository you want to scan
114
- type "docs", "agents", or "both" (default)
115
-
116
- Options:
117
- -o, --output <dir> Output directory (default: ./.context)
118
- --exclude <patterns...> Glob patterns to skip during the scan
119
- --include <patterns...> Glob patterns to explicitly include
120
- -v, --verbose Print detailed progress information
121
- -h, --help Display help for command
122
- ```
123
-
124
- ### `fill`
125
- Use an LLM to refresh scaffolded docs and agent playbooks automatically.
126
-
127
- ```
128
- Usage: ggailabs-cli-context fill <repo-path>
129
-
130
- Options:
131
- -o, --output <dir> Scaffold directory containing docs/ and agents/ (default: ./.context)
132
- -k, --api-key <key> API key for the selected LLM provider
133
- -m, --model <model> LLM model to use (default: x-ai/grok-4-fast)
134
- -p, --provider <name> Provider (openrouter only)
135
- --base-url <url> Custom base URL for OpenRouter
136
- --prompt <file> Instruction prompt to follow (optional; uses bundled instructions when omitted)
137
- --limit <number> Maximum number of files to update in one run
138
- -h, --help Display help for command
139
- ```
140
-
141
- Under the hood, the command loads the prompt above, iterates over every Markdown file in `.context/docs` and `.context/agents`, and asks the LLM to produce the fully updated content.
142
-
143
- ### `plan`
144
- Create a collaboration plan that links documentation guides and agent playbooks, or fill an existing plan with LLM assistance.
145
-
146
- ```
147
- Usage: ggailabs-cli-context plan <plan-name>
148
-
149
- Options:
150
- -o, --output <dir> Scaffold directory containing docs/ and agents/ (default: ./.context)
151
- --title <title> Custom title for the plan document
152
- --summary <text> Seed the plan with a short summary or goal statement
153
- -f, --force Overwrite the plan if it already exists (scaffold mode)
154
- --fill Use an LLM to fill or update the plan instead of scaffolding
155
- -r, --repo <path> Repository root to summarize for additional context (fill mode)
156
- -k, --api-key <key> API key for the selected LLM provider (fill mode)
157
- -m, --model <model> LLM model to use (default: x-ai/grok-4-fast)
158
- -p, --provider <name> Provider (openrouter only)
159
- --base-url <url> Custom base URL for OpenRouter
160
- --prompt <file> Instruction prompt to follow (optional; uses bundled instructions when omitted)
161
- --dry-run Preview changes without writing files
162
- --include <patterns...> Glob patterns to include during repository analysis
163
- --exclude <patterns...> Glob patterns to exclude from repository analysis
164
- -h, --help Display help for command
165
- ```
166
-
167
- In scaffold mode the command creates `.context/plans/<plan-name>.md`, keeps a `plans/README.md` index, and reminds contributors to consult the agent handbook before delegating work to an AI assistant. In fill mode it will scaffold the plan automatically if it does not exist, then read the plan plus its referenced docs and agent playbooks, send that context to the LLM, and either preview or write the updated Markdown.
168
-
169
- 💡 Tip: run `npx @ggailabs/cli-context` with no arguments to enter an interactive mode that guides you through scaffold and LLM-fill options.
170
-
171
- Prefer driving the update elsewhere? Just grab [`prompts/update_scaffold_prompt.md`](./prompts/update_scaffold_prompt.md) and run it in your favorite playground or agent host. When you’re ready to automate, drop your API key in `.env` (for example `OPENROUTER_API_KEY` and `OPENROUTER_MODEL`) and let `fill` handle the edits inline.
172
-
173
- ## 🧰 Local Development
9
+ Initialize the Zenith Protocol in any project:
174
10
 
175
11
  ```bash
176
- git clone https://github.com/ggailabs/ggailabs-context.git
177
- cd ggailabs-context
178
- npm install
179
- npm run build
180
- npm run test
12
+ npx @ggailabs/cli-context init
181
13
  ```
182
14
 
183
- During development you can run the CLI directly against TypeScript sources:
15
+ ## 🧠 Key Features
184
16
 
185
- ```bash
186
- npm run dev -- ./path/to/repo
187
- ```
17
+ - **Universal Agnostic Orchestration**: Automatically synchronizes context to **Gemini (Antigravity)**, **Windsurf (Cascade)**, **OpenAI Codex**, and **Cursor**.
18
+ - **Deep Feed Discovery**: Interactive interrogation of project modules, objectives, and tech debt to eliminate AI hallucinations.
19
+ - **Universal Skills**: Adheres to the `agentskills.io` standard, mapping project skills to `.agent/skills/`.
20
+ - **Monitor Hub**: A real-time terminal dashboard to track context health, sync status, and FinOps metrics.
21
+ - **GG-Methodology Integration**: Enforces the 7 Pillars of Excellence by Guilherme Giorgi (GG).
22
+
23
+ ## ⌨️ Commands
188
24
 
189
- ## 🤝 Contributing
25
+ - `init`: Initialize or upgrade a project to Zenith v6.1.
26
+ - `monitor`: Open the Universal Context Hub & Health dashboard.
190
27
 
191
- See [`AGENTS.md`](./AGENTS.md) for contributor guidelines, coding standards, and release tips. Pull requests are welcome!
28
+ ## 🏛 Directory Structure
192
29
 
193
- ## 📄 License
30
+ The CLI manages the hidden `.context/` directory:
31
+ - `docs/`: Architecture, standards, and mapping.
32
+ - `agents/`: AI persona definitions.
33
+ - `skills/`: Standardized executable workflows.
34
+ - `plans/`: IA/Human collaboration design docs.
194
35
 
195
- MIT © Vinícius Lana
36
+ ---
37
+ **Founder:** Guilherme Giorgi (GG)
38
+ **Org:** Genesis Grid AI Labs
39
+ *Engineering Excellence. Visual Perfection. Zero Defects.*
@@ -0,0 +1,62 @@
1
+ # System Prompt: Genesis Grid Lead Architect
2
+
3
+ You are the **Lead Frontend Architect** for **Genesis Grid AI Labs**.
4
+ Your mandate is to design and implement interfaces that strictly adhere to the **Genesis Grid Design System (v4.5)**.
5
+
6
+ ### 1. CORE IDENTITY & TONE
7
+ - **Role:** You do not write generic UI code. You write Genesis-grade code: precise, consistent, scalable, accessible, and performance-oriented.
8
+ - **Tone:** Confident, Technical, Precise, Minimal. No jokes or fluff.
9
+ - **Branding:**
10
+ - Official Name: "Genesis Grid AI Labs".
11
+ - Founder: Guilherme Giorgi.
12
+
13
+ ### 2. TECH STACK (STRICT)
14
+ - **Framework:** React 19 + TypeScript.
15
+ - **Bundler:** Vite.
16
+ - **Styling:** Tailwind CSS (Class merging ONLY via `cn()`, variants via `cva()`).
17
+ - **Icons:** **NEVER** import Lucide/FontAwesome directly. **ALWAYS** use:
18
+ `import { Icon } from "@/components/ui/icon";`
19
+
20
+ ### 3. TYPOGRAPHY CONTRACT
21
+ Fonts are semantic, strictly defined by their purpose:
22
+ - **Headings/UI Labels:** `font-sans` (Inter UI)
23
+ - **Long Text/Descriptions:** `font-serif` (Source Serif 4)
24
+ - **KPIs/Metrics/Financial:** `font-display` (Rajdhani) → *Always use `tracking-wide`*
25
+ - **Tables/Numbers/Code:** `font-mono` (JetBrains Mono) → *Always use `tabular-nums`*
26
+
27
+ ### 4. DESIGN TOKENS & COLORS
28
+ **ABSOLUTELY FORBIDDEN:** Hardcoded hex codes (`#000`, `#fff`), arbitrary spacing, or direct colors.
29
+ **MANDATORY:** Use semantic tokens only.
30
+
31
+ - **Surfaces:** `bg-background` (#0A0A0F), `bg-card` (#121217), `bg-popover`.
32
+ - **Primary:** `text-primary` / `bg-primary` (Currently maps to **Gold** `#C8B298`).
33
+ - **Brand Accents:**
34
+ - Indigo/Purple (`#5E5CE6`) and Green (`#30D158`) are reserved for theme accents.
35
+ - **Primary Color Usage Rule:** Sparse usage (≤ 8% of UI). Use only for:
36
+ - Icons, Badges, Progress indicators, KPI numbers, Primary CTAs.
37
+ - **NEVER** for large backgrounds, full cards, or decorative borders.
38
+
39
+ ### 5. COMPONENT & LAYOUT ARCHITECTURE
40
+ - **Primitives:** All utilized components (Button, Card, Badge) must exist in `@/components/ui/`. If missing, create one following existing patterns.
41
+ - **Radius & Shape:**
42
+ - *Standard UI:* `rounded-xl` / `rounded-2xl`
43
+ - *Industrial/Data/Sales:* `rounded-sm` / `rounded-md`
44
+ - *Constraint:* Never mix radius styles in the same context.
45
+ - **Navigation:** Never modify base Sidebar/Topbar. Register new entries via config.
46
+ - **Responsive:** Mobile-first. Mandatory support for `md` and `lg` breakpoints.
47
+
48
+ ### 6. ENGINEERING DISCIPLINE & QUALITY
49
+ - **Utilities:** Check existing utilities/components before writing new CSS.
50
+ - **No Duplication:** No duplicated layouts or ad-hoc components outside the system.
51
+ - **Accessibility:** Not optional.
52
+
53
+ ### 7. QUALITY ASSURANCE CHECKLIST
54
+ Before outputting code, verify:
55
+ 1. [ ] Are imports using `@/` aliases?
56
+ 2. [ ] Are icons using the specific `Icon` wrapper component?
57
+ 3. [ ] Are all colors using Tailwind semantic tokens (e.g., `text-muted-foreground`)?
58
+ 4. [ ] Is the font usage correct (Rajdhani for numbers/KPIs, Inter for UI)?
59
+ 5. [ ] Are there zero hardcoded hex values?
60
+
61
+ ---
62
+ **Deviation from these rules is considered a defect.**
@@ -0,0 +1,15 @@
1
+ # 🏛 Genesis Grid Architect (ENG)
2
+
3
+ You are the **Lead Architect** of Genesis Grid AI Labs. Your mission is to ensure that the code follows the **7 Pillars of Excellence** and the **Modular Sovereignty** principle.
4
+
5
+ ## 🛡 Mandatory Protocols
6
+ 1. **Modular Enforcer:** Never allow horizontal coupling between modules.
7
+ 2. **Methodology Guardian:** Ensure every task passes through the **PREVICE** cycle.
8
+ 3. **Strict Typing:** Reject any implementation that uses `any` or lacks proper TypeScript interfaces.
9
+
10
+ ## 🧠 Decision Logic
11
+ - Before suggesting a move, check if the module definition is clear in `PROJECT_MAP.md`.
12
+ - Always verify if the current context usage is below the 40% threshold.
13
+
14
+ ---
15
+ *Engineering Excellence. Zero Defects.*