@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.
Potentially problematic release.
This version of @ggailabs/cli-context might be problematic. Click here for more details.
- package/README.md +25 -181
- package/dist/.context/docs/GENESIS_SYSTEM_PROMPT.md +62 -0
- package/dist/.context/eng/agents/architect.md +15 -0
- package/dist/.context/eng/agents/backend_typescript.md +1000 -0
- package/dist/.context/eng/agents/bug_hunter.md +49 -0
- package/dist/.context/eng/agents/code_reviewer.md +313 -0
- package/dist/.context/eng/agents/devops_specialist.md +718 -0
- package/dist/.context/eng/agents/frontend_specialist.md +1027 -0
- package/dist/.context/eng/agents/qa_specialist.md +1234 -0
- package/dist/.context/eng/agents/security_reviewer.md +382 -0
- package/dist/.context/eng/agents/ui_specialist.md +16 -0
- package/dist/.context/eng/docs/AGENT_HANDOFF_PROMPT.md +44 -0
- package/dist/.context/eng/docs/GENESIS_DESIGN_SYSTEM.md +15 -0
- package/dist/.context/eng/docs/GG_METHODOLOGY.md +48 -0
- package/dist/.context/eng/docs/OPERATIONS_LOG.md +30 -0
- package/dist/.context/eng/docs/PROJECT_MAP.md +35 -0
- package/dist/.context/eng/docs/standards/devops.md +0 -0
- package/dist/.context/eng/docs/standards/frontend.md +0 -0
- package/dist/.context/eng/docs/standards/typescript.md +12 -0
- package/dist/.context/eng/skills/agent_logging.md +18 -0
- package/dist/.context/eng/skills/brainstorming.md +227 -0
- package/dist/.context/eng/skills/exploring_codebase.md +1217 -0
- package/dist/.context/eng/skills/patterns/compliance_check.md +246 -0
- package/dist/.context/eng/skills/patterns/coverage_table.md +401 -0
- package/dist/.context/eng/skills/patterns/exit_criteria.md +31 -0
- package/dist/.context/eng/skills/patterns/failure_recovery.md +74 -0
- package/dist/.context/eng/skills/patterns/quality_gate.md +295 -0
- package/dist/.context/eng/skills/patterns/standards_workflow.md +391 -0
- package/dist/.context/eng/skills/patterns/state_tracking.md +30 -0
- package/dist/.context/eng/skills/patterns/task_tracking.md +38 -0
- package/dist/.context/eng/skills/previce.md +45 -0
- package/dist/.context/eng/skills/tdd.md +421 -0
- package/dist/.context/eng/skills/writing_plans.md +105 -0
- package/dist/.context/plans/.gitkeep +0 -0
- package/dist/.context/pt-br/agents/architect.md +69 -0
- package/dist/.context/pt-br/agents/backend_typescript.md +1000 -0
- package/dist/.context/pt-br/agents/bug_hunter.md +49 -0
- package/dist/.context/pt-br/agents/code_reviewer.md +313 -0
- package/dist/.context/pt-br/agents/devops_specialist.md +718 -0
- package/dist/.context/pt-br/agents/frontend_specialist.md +1027 -0
- package/dist/.context/pt-br/agents/qa_specialist.md +1234 -0
- package/dist/.context/pt-br/agents/security_reviewer.md +382 -0
- package/dist/.context/pt-br/agents/ui_specialist.md +55 -0
- package/dist/.context/pt-br/docs/AGENT_HANDOFF_PROMPT.md +44 -0
- package/dist/.context/pt-br/docs/GENESIS_DESIGN_SYSTEM.md +88 -0
- package/dist/.context/pt-br/docs/GG_METHODOLOGY.md +48 -0
- package/dist/.context/pt-br/docs/OPERATIONS_LOG.md +30 -0
- package/dist/.context/pt-br/docs/PROJECT_MAP.md +37 -0
- package/dist/.context/pt-br/docs/standards/devops.md +707 -0
- package/dist/.context/pt-br/docs/standards/frontend.md +748 -0
- package/dist/.context/pt-br/docs/standards/typescript.md +1150 -0
- package/dist/.context/pt-br/skills/agent_logging.md +36 -0
- package/dist/.context/pt-br/skills/brainstorming.md +227 -0
- package/dist/.context/pt-br/skills/exploring_codebase.md +1217 -0
- package/dist/.context/pt-br/skills/patterns/compliance_check.md +246 -0
- package/dist/.context/pt-br/skills/patterns/coverage_table.md +401 -0
- package/dist/.context/pt-br/skills/patterns/exit_criteria.md +31 -0
- package/dist/.context/pt-br/skills/patterns/failure_recovery.md +74 -0
- package/dist/.context/pt-br/skills/patterns/quality_gate.md +295 -0
- package/dist/.context/pt-br/skills/patterns/standards_workflow.md +391 -0
- package/dist/.context/pt-br/skills/patterns/state_tracking.md +30 -0
- package/dist/.context/pt-br/skills/patterns/task_tracking.md +38 -0
- package/dist/.context/pt-br/skills/previce.md +45 -0
- package/dist/.context/pt-br/skills/tdd.md +421 -0
- package/dist/.context/pt-br/skills/writing_plans.md +105 -0
- package/dist/.context/workflow/.gitkeep +0 -0
- package/dist/commands/init.js +140 -0
- package/dist/commands/monitor.js +34 -0
- package/dist/index.js +20 -568
- package/dist/services/monitor-service.js +340 -0
- package/dist/services/scaffolder.js +164 -0
- package/package.json +16 -58
- package/LICENSE +0 -21
- package/dist/generators/agents/agentConfig.d.ts +0 -4
- package/dist/generators/agents/agentConfig.d.ts.map +0 -1
- package/dist/generators/agents/agentConfig.js +0 -180
- package/dist/generators/agents/agentConfig.js.map +0 -1
- package/dist/generators/agents/agentGenerator.d.ts +0 -9
- package/dist/generators/agents/agentGenerator.d.ts.map +0 -1
- package/dist/generators/agents/agentGenerator.js +0 -97
- package/dist/generators/agents/agentGenerator.js.map +0 -1
- package/dist/generators/agents/agentTypes.d.ts +0 -4
- package/dist/generators/agents/agentTypes.d.ts.map +0 -1
- package/dist/generators/agents/agentTypes.js +0 -25
- package/dist/generators/agents/agentTypes.js.map +0 -1
- package/dist/generators/agents/index.d.ts +0 -4
- package/dist/generators/agents/index.d.ts.map +0 -1
- package/dist/generators/agents/index.js +0 -12
- package/dist/generators/agents/index.js.map +0 -1
- package/dist/generators/agents/templates/index.d.ts +0 -4
- package/dist/generators/agents/templates/index.d.ts.map +0 -1
- package/dist/generators/agents/templates/index.js +0 -8
- package/dist/generators/agents/templates/index.js.map +0 -1
- package/dist/generators/agents/templates/indexTemplate.d.ts +0 -3
- package/dist/generators/agents/templates/indexTemplate.d.ts.map +0 -1
- package/dist/generators/agents/templates/indexTemplate.js +0 -36
- package/dist/generators/agents/templates/indexTemplate.js.map +0 -1
- package/dist/generators/agents/templates/playbookTemplate.d.ts +0 -4
- package/dist/generators/agents/templates/playbookTemplate.d.ts.map +0 -1
- package/dist/generators/agents/templates/playbookTemplate.js +0 -99
- package/dist/generators/agents/templates/playbookTemplate.js.map +0 -1
- package/dist/generators/agents/templates/types.d.ts +0 -14
- package/dist/generators/agents/templates/types.d.ts.map +0 -1
- package/dist/generators/agents/templates/types.js +0 -3
- package/dist/generators/agents/templates/types.js.map +0 -1
- package/dist/generators/documentation/documentationGenerator.d.ts +0 -15
- package/dist/generators/documentation/documentationGenerator.d.ts.map +0 -1
- package/dist/generators/documentation/documentationGenerator.js +0 -188
- package/dist/generators/documentation/documentationGenerator.js.map +0 -1
- package/dist/generators/documentation/guideRegistry.d.ts +0 -6
- package/dist/generators/documentation/guideRegistry.d.ts.map +0 -1
- package/dist/generators/documentation/guideRegistry.js +0 -82
- package/dist/generators/documentation/guideRegistry.js.map +0 -1
- package/dist/generators/documentation/index.d.ts +0 -2
- package/dist/generators/documentation/index.d.ts.map +0 -1
- package/dist/generators/documentation/index.js +0 -6
- package/dist/generators/documentation/index.js.map +0 -1
- package/dist/generators/documentation/templates/apiReferenceTemplate.d.ts +0 -2
- package/dist/generators/documentation/templates/apiReferenceTemplate.d.ts.map +0 -1
- package/dist/generators/documentation/templates/apiReferenceTemplate.js +0 -490
- package/dist/generators/documentation/templates/apiReferenceTemplate.js.map +0 -1
- package/dist/generators/documentation/templates/architectureTemplate.d.ts +0 -3
- package/dist/generators/documentation/templates/architectureTemplate.d.ts.map +0 -1
- package/dist/generators/documentation/templates/architectureTemplate.js +0 -66
- package/dist/generators/documentation/templates/architectureTemplate.js.map +0 -1
- package/dist/generators/documentation/templates/common.d.ts +0 -7
- package/dist/generators/documentation/templates/common.d.ts.map +0 -1
- package/dist/generators/documentation/templates/common.js +0 -58
- package/dist/generators/documentation/templates/common.js.map +0 -1
- package/dist/generators/documentation/templates/dataFlowTemplate.d.ts +0 -3
- package/dist/generators/documentation/templates/dataFlowTemplate.d.ts.map +0 -1
- package/dist/generators/documentation/templates/dataFlowTemplate.js +0 -40
- package/dist/generators/documentation/templates/dataFlowTemplate.js.map +0 -1
- package/dist/generators/documentation/templates/developmentWorkflowTemplate.d.ts +0 -2
- package/dist/generators/documentation/templates/developmentWorkflowTemplate.d.ts.map +0 -1
- package/dist/generators/documentation/templates/developmentWorkflowTemplate.js +0 -44
- package/dist/generators/documentation/templates/developmentWorkflowTemplate.js.map +0 -1
- package/dist/generators/documentation/templates/glossaryTemplate.d.ts +0 -3
- package/dist/generators/documentation/templates/glossaryTemplate.d.ts.map +0 -1
- package/dist/generators/documentation/templates/glossaryTemplate.js +0 -41
- package/dist/generators/documentation/templates/glossaryTemplate.js.map +0 -1
- package/dist/generators/documentation/templates/index.d.ts +0 -15
- package/dist/generators/documentation/templates/index.d.ts.map +0 -1
- package/dist/generators/documentation/templates/index.js +0 -30
- package/dist/generators/documentation/templates/index.js.map +0 -1
- package/dist/generators/documentation/templates/indexTemplate.d.ts +0 -3
- package/dist/generators/documentation/templates/indexTemplate.d.ts.map +0 -1
- package/dist/generators/documentation/templates/indexTemplate.js +0 -42
- package/dist/generators/documentation/templates/indexTemplate.js.map +0 -1
- package/dist/generators/documentation/templates/migrationTemplate.d.ts +0 -2
- package/dist/generators/documentation/templates/migrationTemplate.d.ts.map +0 -1
- package/dist/generators/documentation/templates/migrationTemplate.js +0 -422
- package/dist/generators/documentation/templates/migrationTemplate.js.map +0 -1
- package/dist/generators/documentation/templates/onboardingTemplate.d.ts +0 -2
- package/dist/generators/documentation/templates/onboardingTemplate.d.ts.map +0 -1
- package/dist/generators/documentation/templates/onboardingTemplate.js +0 -431
- package/dist/generators/documentation/templates/onboardingTemplate.js.map +0 -1
- package/dist/generators/documentation/templates/projectOverviewTemplate.d.ts +0 -3
- package/dist/generators/documentation/templates/projectOverviewTemplate.d.ts.map +0 -1
- package/dist/generators/documentation/templates/projectOverviewTemplate.js +0 -65
- package/dist/generators/documentation/templates/projectOverviewTemplate.js.map +0 -1
- package/dist/generators/documentation/templates/securityTemplate.d.ts +0 -2
- package/dist/generators/documentation/templates/securityTemplate.d.ts.map +0 -1
- package/dist/generators/documentation/templates/securityTemplate.js +0 -39
- package/dist/generators/documentation/templates/securityTemplate.js.map +0 -1
- package/dist/generators/documentation/templates/testingTemplate.d.ts +0 -2
- package/dist/generators/documentation/templates/testingTemplate.d.ts.map +0 -1
- package/dist/generators/documentation/templates/testingTemplate.js +0 -45
- package/dist/generators/documentation/templates/testingTemplate.js.map +0 -1
- package/dist/generators/documentation/templates/toolingTemplate.d.ts +0 -2
- package/dist/generators/documentation/templates/toolingTemplate.d.ts.map +0 -1
- package/dist/generators/documentation/templates/toolingTemplate.js +0 -42
- package/dist/generators/documentation/templates/toolingTemplate.js.map +0 -1
- package/dist/generators/documentation/templates/troubleshootingTemplate.d.ts +0 -2
- package/dist/generators/documentation/templates/troubleshootingTemplate.d.ts.map +0 -1
- package/dist/generators/documentation/templates/troubleshootingTemplate.js +0 -292
- package/dist/generators/documentation/templates/troubleshootingTemplate.js.map +0 -1
- package/dist/generators/documentation/templates/types.d.ts +0 -23
- package/dist/generators/documentation/templates/types.d.ts.map +0 -1
- package/dist/generators/documentation/templates/types.js +0 -3
- package/dist/generators/documentation/templates/types.js.map +0 -1
- package/dist/generators/plans/index.d.ts +0 -2
- package/dist/generators/plans/index.d.ts.map +0 -1
- package/dist/generators/plans/index.js +0 -6
- package/dist/generators/plans/index.js.map +0 -1
- package/dist/generators/plans/planGenerator.d.ts +0 -22
- package/dist/generators/plans/planGenerator.d.ts.map +0 -1
- package/dist/generators/plans/planGenerator.js +0 -109
- package/dist/generators/plans/planGenerator.js.map +0 -1
- package/dist/generators/plans/templates/indexTemplate.d.ts +0 -3
- package/dist/generators/plans/templates/indexTemplate.d.ts.map +0 -1
- package/dist/generators/plans/templates/indexTemplate.js +0 -37
- package/dist/generators/plans/templates/indexTemplate.js.map +0 -1
- package/dist/generators/plans/templates/planTemplate.d.ts +0 -3
- package/dist/generators/plans/templates/planTemplate.d.ts.map +0 -1
- package/dist/generators/plans/templates/planTemplate.js +0 -166
- package/dist/generators/plans/templates/planTemplate.js.map +0 -1
- package/dist/generators/plans/templates/types.d.ts +0 -19
- package/dist/generators/plans/templates/types.d.ts.map +0 -1
- package/dist/generators/plans/templates/types.js +0 -3
- package/dist/generators/plans/templates/types.js.map +0 -1
- package/dist/generators/shared/contextGenerator.d.ts +0 -7
- package/dist/generators/shared/contextGenerator.d.ts.map +0 -1
- package/dist/generators/shared/contextGenerator.js +0 -13
- package/dist/generators/shared/contextGenerator.js.map +0 -1
- package/dist/generators/shared/directoryTemplateHelpers.d.ts +0 -2
- package/dist/generators/shared/directoryTemplateHelpers.d.ts.map +0 -1
- package/dist/generators/shared/directoryTemplateHelpers.js +0 -12
- package/dist/generators/shared/directoryTemplateHelpers.js.map +0 -1
- package/dist/generators/shared/generatorUtils.d.ts +0 -16
- package/dist/generators/shared/generatorUtils.d.ts.map +0 -1
- package/dist/generators/shared/generatorUtils.js +0 -119
- package/dist/generators/shared/generatorUtils.js.map +0 -1
- package/dist/generators/shared/index.d.ts +0 -4
- package/dist/generators/shared/index.d.ts.map +0 -1
- package/dist/generators/shared/index.js +0 -10
- package/dist/generators/shared/index.js.map +0 -1
- package/dist/index.d.ts +0 -9
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/prompts/defaults.d.ts +0 -3
- package/dist/prompts/defaults.d.ts.map +0 -1
- package/dist/prompts/defaults.js +0 -95
- package/dist/prompts/defaults.js.map +0 -1
- package/dist/services/baseLLMClient.d.ts +0 -12
- package/dist/services/baseLLMClient.d.ts.map +0 -1
- package/dist/services/baseLLMClient.js +0 -80
- package/dist/services/baseLLMClient.js.map +0 -1
- package/dist/services/fill/fillService.d.ts +0 -46
- package/dist/services/fill/fillService.d.ts.map +0 -1
- package/dist/services/fill/fillService.js +0 -254
- package/dist/services/fill/fillService.js.map +0 -1
- package/dist/services/init/initService.d.ts +0 -37
- package/dist/services/init/initService.d.ts.map +0 -1
- package/dist/services/init/initService.js +0 -167
- package/dist/services/init/initService.js.map +0 -1
- package/dist/services/llmClientFactory.d.ts +0 -8
- package/dist/services/llmClientFactory.d.ts.map +0 -1
- package/dist/services/llmClientFactory.js +0 -23
- package/dist/services/llmClientFactory.js.map +0 -1
- package/dist/services/openRouterClient.d.ts +0 -9
- package/dist/services/openRouterClient.d.ts.map +0 -1
- package/dist/services/openRouterClient.js +0 -49
- package/dist/services/openRouterClient.js.map +0 -1
- package/dist/services/plan/planService.d.ts +0 -57
- package/dist/services/plan/planService.d.ts.map +0 -1
- package/dist/services/plan/planService.js +0 -334
- package/dist/services/plan/planService.js.map +0 -1
- package/dist/services/shared/llmConfig.d.ts +0 -22
- package/dist/services/shared/llmConfig.d.ts.map +0 -1
- package/dist/services/shared/llmConfig.js +0 -38
- package/dist/services/shared/llmConfig.js.map +0 -1
- package/dist/types.d.ts +0 -65
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -3
- package/dist/types.js.map +0 -1
- package/dist/utils/cliUI.d.ts +0 -27
- package/dist/utils/cliUI.d.ts.map +0 -1
- package/dist/utils/cliUI.js +0 -252
- package/dist/utils/cliUI.js.map +0 -1
- package/dist/utils/fileMapper.d.ts +0 -11
- package/dist/utils/fileMapper.d.ts.map +0 -1
- package/dist/utils/fileMapper.js +0 -146
- package/dist/utils/fileMapper.js.map +0 -1
- package/dist/utils/gitService.d.ts +0 -50
- package/dist/utils/gitService.d.ts.map +0 -1
- package/dist/utils/gitService.js +0 -470
- package/dist/utils/gitService.js.map +0 -1
- package/dist/utils/i18n.d.ts +0 -171
- package/dist/utils/i18n.d.ts.map +0 -1
- package/dist/utils/i18n.js +0 -381
- package/dist/utils/i18n.js.map +0 -1
- package/dist/utils/promptLoader.d.ts +0 -12
- package/dist/utils/promptLoader.d.ts.map +0 -1
- package/dist/utils/promptLoader.js +0 -81
- package/dist/utils/promptLoader.js.map +0 -1
- package/dist/utils/versionChecker.d.ts +0 -15
- package/dist/utils/versionChecker.d.ts.map +0 -1
- package/dist/utils/versionChecker.js +0 -49
- package/dist/utils/versionChecker.js.map +0 -1
- package/prompts/update_plan_prompt.md +0 -41
- 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
|
-
|
|
4
|
-
[](https://github.com/ggailabs/ggailabs-context/actions/workflows/ci.yml)
|
|
5
|
-
[](https://opensource.org/licenses/MIT)
|
|
3
|
+
> **Genesis Grid AI Framework CLI** - The definitive universal orchestrator for AI-assisted development.
|
|
6
4
|
|
|
7
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
15
|
+
## 🧠 Key Features
|
|
184
16
|
|
|
185
|
-
|
|
186
|
-
|
|
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
|
-
|
|
25
|
+
- `init`: Initialize or upgrade a project to Zenith v6.1.
|
|
26
|
+
- `monitor`: Open the Universal Context Hub & Health dashboard.
|
|
190
27
|
|
|
191
|
-
|
|
28
|
+
## 🏛 Directory Structure
|
|
192
29
|
|
|
193
|
-
|
|
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
|
-
|
|
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.*
|