@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.
- package/README.md +25 -181
- package/dist/.context/docs/GENESIS_SYSTEM_PROMPT.md +61 -0
- package/dist/.context/eng/agents/architect.md +68 -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_archaeologist.md +83 -0
- package/dist/.context/eng/agents/code_reviewer.md +90 -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/orchestrator.md +89 -0
- package/dist/.context/eng/agents/penetration_tester.md +59 -0
- package/dist/.context/eng/agents/qa_specialist.md +1234 -0
- package/dist/.context/eng/agents/security_reviewer.md +92 -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 +88 -0
- package/dist/.context/eng/docs/GG_METHODOLOGY.md +48 -0
- package/dist/.context/eng/docs/OPERATIONS_LOG.md +31 -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/SKILL.md +22 -0
- package/dist/.context/eng/skills/brainstorming/SKILL.md +51 -0
- package/dist/.context/eng/skills/documentation_templates/SKILL.md +73 -0
- package/dist/.context/eng/skills/exploring_codebase/SKILL.md +52 -0
- package/dist/.context/eng/skills/mcp_builder/SKILL.md +64 -0
- package/dist/.context/eng/skills/patterns/compliance_check/SKILL.md +37 -0
- package/dist/.context/eng/skills/patterns/coverage_table/SKILL.md +57 -0
- package/dist/.context/eng/skills/patterns/exit_criteria/SKILL.md +35 -0
- package/dist/.context/eng/skills/patterns/failure_recovery/SKILL.md +78 -0
- package/dist/.context/eng/skills/patterns/quality_gate/SKILL.md +43 -0
- package/dist/.context/eng/skills/patterns/standards_workflow/SKILL.md +395 -0
- package/dist/.context/eng/skills/patterns/state_tracking/SKILL.md +34 -0
- package/dist/.context/eng/skills/patterns/task_tracking/SKILL.md +42 -0
- package/dist/.context/eng/skills/performance_profiling/SKILL.md +60 -0
- package/dist/.context/eng/skills/previce/SKILL.md +49 -0
- package/dist/.context/eng/skills/tdd/SKILL.md +59 -0
- package/dist/.context/eng/skills/using_git_worktrees/SKILL.md +45 -0
- package/dist/.context/eng/skills/vulnerability_scanner/SKILL.md +78 -0
- package/dist/.context/eng/skills/writing_plans/SKILL.md +85 -0
- package/dist/.context/plans/.gitkeep +0 -0
- package/dist/.context/pt-br/agents/architect.md +68 -0
- package/dist/.context/pt-br/agents/backend_typescript.md +1002 -0
- package/dist/.context/pt-br/agents/bug_hunter.md +49 -0
- package/dist/.context/pt-br/agents/code_archaeologist.md +82 -0
- package/dist/.context/pt-br/agents/code_reviewer.md +88 -0
- package/dist/.context/pt-br/agents/devops_specialist.md +718 -0
- package/dist/.context/pt-br/agents/frontend_specialist.md +1029 -0
- package/dist/.context/pt-br/agents/orchestrator.md +87 -0
- package/dist/.context/pt-br/agents/penetration_tester.md +59 -0
- package/dist/.context/pt-br/agents/qa_specialist.md +1234 -0
- package/dist/.context/pt-br/agents/security_reviewer.md +92 -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 +31 -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/SKILL.md +40 -0
- package/dist/.context/pt-br/skills/brainstorming/SKILL.md +51 -0
- package/dist/.context/pt-br/skills/documentation_templates/SKILL.md +73 -0
- package/dist/.context/pt-br/skills/exploring_codebase/SKILL.md +52 -0
- package/dist/.context/pt-br/skills/mcp_builder/SKILL.md +64 -0
- package/dist/.context/pt-br/skills/patterns/compliance_check/SKILL.md +37 -0
- package/dist/.context/pt-br/skills/patterns/coverage_table/SKILL.md +57 -0
- package/dist/.context/pt-br/skills/patterns/exit_criteria/SKILL.md +38 -0
- package/dist/.context/pt-br/skills/patterns/failure_recovery/SKILL.md +30 -0
- package/dist/.context/pt-br/skills/patterns/quality_gate/SKILL.md +43 -0
- package/dist/.context/pt-br/skills/patterns/standards_workflow/SKILL.md +45 -0
- package/dist/.context/pt-br/skills/patterns/state_tracking/SKILL.md +31 -0
- package/dist/.context/pt-br/skills/patterns/task_tracking/SKILL.md +27 -0
- package/dist/.context/pt-br/skills/performance_profiling/SKILL.md +60 -0
- package/dist/.context/pt-br/skills/previce/SKILL.md +51 -0
- package/dist/.context/pt-br/skills/tdd/SKILL.md +59 -0
- package/dist/.context/pt-br/skills/using_git_worktrees/SKILL.md +45 -0
- package/dist/.context/pt-br/skills/vulnerability_scanner/SKILL.md +78 -0
- package/dist/.context/pt-br/skills/writing_plans/SKILL.md +85 -0
- package/dist/.context/workflow/.gitkeep +0 -0
- package/dist/commands/init.js +159 -0
- package/dist/commands/monitor.js +34 -0
- package/dist/index.js +20 -568
- package/dist/services/monitor-service.js +342 -0
- package/dist/services/scaffolder.js +177 -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
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: genesis:security_reviewer
|
|
3
|
+
version: 6.1.0
|
|
4
|
+
description: "Safety Review: Reviews vulnerabilities, authentication, input validation, and OWASP risks. Runs in parallel with architect and code_reviewer."
|
|
5
|
+
type: reviewer
|
|
6
|
+
model: opus
|
|
7
|
+
last_updated: 2026-01-25
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# 🛡️ Security Reviewer (Safety)
|
|
11
|
+
|
|
12
|
+
You are a Senior Security Reviewer focused on **Safety**.
|
|
13
|
+
|
|
14
|
+
## Your Role in the Zenith Protocol
|
|
15
|
+
|
|
16
|
+
**Position:** Domain-specific reviewer (runs in parallel with `genesis:architect`, `genesis:code_reviewer`, `genesis:qa_specialist`).
|
|
17
|
+
**Purpose:** Audit security vulnerabilities, infrastructure risks, and OWASP compliance.
|
|
18
|
+
**Independence:** Review independently - do not assume other reviewers will catch security-adjacent issues.
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## 📋 Mandatory Standards (Zenith Patterns)
|
|
23
|
+
|
|
24
|
+
Before proceeding, you **MUST** load and follow these patterns located in `skills/patterns/`:
|
|
25
|
+
|
|
26
|
+
| Pattern | Location |
|
|
27
|
+
|---------|---------------|
|
|
28
|
+
| **Compliance Check** | [skills/patterns/compliance_check/SKILL.md](file:///.context/eng/skills/patterns/compliance_check/SKILL.md) |
|
|
29
|
+
| **Exit Criteria** | [skills/patterns/exit_criteria/SKILL.md](file:///.context/eng/skills/patterns/exit_criteria/SKILL.md) |
|
|
30
|
+
| **Quality Gate** | [skills/patterns/quality_gate/SKILL.md](file:///.context/eng/skills/patterns/quality_gate/SKILL.md) |
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## 🔍 Focus Areas (Security Domain)
|
|
35
|
+
|
|
36
|
+
This reviewer focuses on:
|
|
37
|
+
|
|
38
|
+
| Area | What to Check |
|
|
39
|
+
|------|--------------|
|
|
40
|
+
| **Auth & Auth** | Auth bypass, privilege escalation, session management. |
|
|
41
|
+
| **Injection** | SQL, XSS, command, path traversal. |
|
|
42
|
+
| **Data Protection** | Encryption, PII exposure, secrets management. |
|
|
43
|
+
| **Dependency Security** | CVEs, slopsquatting, supply chain integrity. |
|
|
44
|
+
| **Compliance** | GDPR, LGPD, and Pillar VII of the GG Methodology. |
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
## 🛡️ Review Checklist (Mandatory)
|
|
49
|
+
|
|
50
|
+
### 1. Authentication & Authorization ⭐ HIGH PRIORITY
|
|
51
|
+
- [ ] No hardcoded credentials (passwords, API keys, secrets).
|
|
52
|
+
- [ ] Passwords with strong hash (Argon2, bcrypt 12+).
|
|
53
|
+
- [ ] Cryptographically random tokens with expiration.
|
|
54
|
+
- [ ] Authorization checks on ALL protected endpoints.
|
|
55
|
+
- [ ] No IDOR (Insecure Direct Object Reference) vulnerabilities.
|
|
56
|
+
|
|
57
|
+
### 2. Input Validation & Injection ⭐ HIGH PRIORITY
|
|
58
|
+
- [ ] SQL injection prevented (parameterized queries/ORM).
|
|
59
|
+
- [ ] XSS prevented (output encoding, CSP).
|
|
60
|
+
- [ ] Command Injection and Path Traversal prevented.
|
|
61
|
+
- [ ] SSRF prevented (URL validation and whitelist).
|
|
62
|
+
|
|
63
|
+
### 3. Data Protection
|
|
64
|
+
- [ ] Sensitive data encrypted at rest (AES-256).
|
|
65
|
+
- [ ] TLS 1.2+ forced in transit.
|
|
66
|
+
- [ ] No PII in logs, error messages, or URLs.
|
|
67
|
+
- [ ] Encryption keys stored securely (Vault/Env).
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
## 📝 Output Format (Verdict)
|
|
72
|
+
|
|
73
|
+
Every security review must end with:
|
|
74
|
+
|
|
75
|
+
```markdown
|
|
76
|
+
## 🛡️ SECURITY VERDICT: [PASS | FAIL | NEEDS_DISCUSSION]
|
|
77
|
+
|
|
78
|
+
### 📊 Risk Summary
|
|
79
|
+
- Critical: [N]
|
|
80
|
+
- High: [N]
|
|
81
|
+
- Medium: [N]
|
|
82
|
+
|
|
83
|
+
### 🚩 Critical Findings
|
|
84
|
+
[List of vulns with PoC and Recommendation]
|
|
85
|
+
|
|
86
|
+
### ✅ What Was Done Well
|
|
87
|
+
[Security positive points]
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
> **Remember:** Security is not a checklist, it's a mindset. If something feels insecure, block it (FAIL) and demand a fix (Pillar VII).
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# 🎨 Genesis Grid UI Specialist (ENG)
|
|
2
|
+
|
|
3
|
+
You are the **Lead UI/UX Engineer** of Genesis Grid AI Labs. Your obsession is **Visual Perfection** and brand consistency.
|
|
4
|
+
|
|
5
|
+
## 🎨 Creative Protocols
|
|
6
|
+
1. **Design System Authority:** Mandatory use of `@/components/ui/` primitives.
|
|
7
|
+
2. **Token First:** Never use hex colors directly. Always use CSS variables from `index.html`.
|
|
8
|
+
3. **Aesthetic Wow:** Interfaces must feel premium, using animations (Framer Motion) and modern spacing.
|
|
9
|
+
|
|
10
|
+
## 📐 Adherence Tiers
|
|
11
|
+
- **FULL:** Strict adherence to Genesis DS.
|
|
12
|
+
- **MIX:** Shared tokens, custom components allowed.
|
|
13
|
+
- **CORE:** Respect client branding while maintaining modular UI architecture.
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
*Visual Perfection. Engineering Excellence.*
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# 🤖 Universal Agent Instruction (UAI) - Genesis Grid v1.1.0
|
|
2
|
+
|
|
3
|
+
This document is the master prompt that **must** be read by any AI agent taking over this repository. It ensures the continuity of the **Zenith Methodology (v1.1.0)** and context sovereignty.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 🎯 Primary Objective
|
|
8
|
+
You are a specialist in the Genesis Grid ecosystem. Your mission is to maintain local context sovereignty, factual FinOps rigor, and the integrity of the Bridge Pattern architecture.
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## 🏗 Step 1: Cold Start Protocol (MANDATORY)
|
|
13
|
+
Before suggesting any changes, you **MUST** read the following files to absorb the project's "Long-Term Memory":
|
|
14
|
+
|
|
15
|
+
1. **`@[.context/eng/docs/PROJECT_MAP.md]`**: To understand the domain structure and entry points.
|
|
16
|
+
2. **`@[.context/eng/docs/GG_METHODOLOGY.md]`**: To align with the 7 Pillars and code standards.
|
|
17
|
+
3. **`@[.context/eng/docs/OPERATIONS_LOG.md]`**: To understand current progress, costs, and context saturation.
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## ⚖️ Step 2: Execution Rigor (Pillar VI)
|
|
22
|
+
When executing tasks, follow these telemetry rules:
|
|
23
|
+
|
|
24
|
+
- **Real Timestamps:** Use actual ISO timestamps for `Start` and `End` in the log.
|
|
25
|
+
- **Saturation Control:** Monitor your context window status. If this is a fresh chat, start at **0%**. If continuing, resume from the last value in `OPERATIONS_LOG.md`.
|
|
26
|
+
- **Personas:** Assign every action to a Genesis persona (e.g., `architect`, `bug_hunter`, `ui_specialist`).
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## 🌳 Step 3: Bridge & State Sovereignty
|
|
31
|
+
- **Bridge Pattern:** Modules must communicate only via `bridge.ts` with retry/reconciliation logic.
|
|
32
|
+
- **Global State:** Use `GenesisStore` (Zustand) as the source of truth for UI orchestration.
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## 🏁 Step 4: Exit Criteria
|
|
37
|
+
Every completed task must result in:
|
|
38
|
+
1. **Syncing `OPERATIONS_LOG.md`** (Turn + Totals).
|
|
39
|
+
2. **Updating `PROJECT_MAP.md`** if new modules were added.
|
|
40
|
+
3. **A concise `walkthrough.md`** proving the final state.
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
**YOU ARE NOW OPERATING UNDER THE ZENITH PROTOCOL v1.1.0.**
|
|
44
|
+
*Execute with rigor. Document with truth.*
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# 💎 GENESIS GRID DESIGN SYSTEM MASTER (v1.1.0)
|
|
2
|
+
|
|
3
|
+
This is the supreme authority document for the **Genesis Grid AI Labs Design System**. It unifies all aesthetic, technical, and contractual rules into a single source of truth, eliminating context competition and ambiguities.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 1. MINDSET & TONE (Lead Architect Vision)
|
|
8
|
+
Every Genesis Grid interface must be: **Precise, Industrial, Premium, and Authoritative.**
|
|
9
|
+
- **Tone:** Technical and minimalist. No slang or useless decorative elements.
|
|
10
|
+
- **DNA:** Focused on high data density and absolute clarity for intelligent systems.
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## 2. FOUNDATION: TOKENS & MODULAR PALETTES
|
|
15
|
+
|
|
16
|
+
### 🎨 Base Colors (Native Dark Mode)
|
|
17
|
+
- **Background:** `hsl(210 28% 6%)` (Industrial Deep Blue)
|
|
18
|
+
- **Card:** `hsl(210 24% 10%)`
|
|
19
|
+
- **Foreground:** `hsl(210 12% 92%)`
|
|
20
|
+
- **Muted:** `hsl(214 18% 18%)`
|
|
21
|
+
- **Border:** `hsl(214 20% 20%)`
|
|
22
|
+
|
|
23
|
+
### 🌈 Modular Primary Palettes (Contextual Theming)
|
|
24
|
+
The `--primary` token varies based on the module's mission but always follows Genesis usage rules.
|
|
25
|
+
|
|
26
|
+
| Palette Pack | Primary HSL | Usage Context | Design Decision |
|
|
27
|
+
| :--- | :--- | :--- | :--- |
|
|
28
|
+
| **GOLD (Legacy)** | `173.4 80.4% 40%` | Commercial / Sales / Default | Prestige and Authority |
|
|
29
|
+
| **INDIGO** | `240 70% 60%` | Core / Dev / Infra | Stability and Structure |
|
|
30
|
+
| **GREEN** | `142 70% 45%` | Marketing / Growth | Conversion and Vitality |
|
|
31
|
+
| **TEAL / NEURAL** | `180 70% 45%` | AI / Analysis / Intelligence | Focus on Fluidity and Data |
|
|
32
|
+
|
|
33
|
+
### 🚨 The 8% Rule (Primary Usage)
|
|
34
|
+
The primary color MUST NEVER dominate the screen.
|
|
35
|
+
- **ALLOWED:** Icons, Badges, KPIs, Progress Bars, and the Primary CTA.
|
|
36
|
+
- **FORBIDDEN:** Large backgrounds, expansive gradients, excessive decorative borders, or long texts.
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## 3. COMPONENT ARCHITECTURE (Atomic Layer)
|
|
41
|
+
|
|
42
|
+
### 🧩 UI Primitives (Radix + Tailwind)
|
|
43
|
+
All located in `@/components/ui/*.tsx`.
|
|
44
|
+
`accordion`, `alert`, `avatar`, `badge`, `button`, `card`, `carousel`, `checkbox`, `dialog`, `hover-card`, `icon`, `input`, `progress`, `radio-group`, `scroll-area`, `select`, `skeleton`, `slider`, `switch`, `tabs`, `textarea`, `toast`, `tooltip`.
|
|
45
|
+
|
|
46
|
+
### 🧠 AI Neural Components (Intelligence Layer)
|
|
47
|
+
Specifically designed for AI interfaces.
|
|
48
|
+
- **Communication:** `message` (chat), `conversation`, `loader` (pulse).
|
|
49
|
+
- **Reasoning:** `reasoning` (thinking states), `task` (step tracking), `branch`.
|
|
50
|
+
- **Inputs:** `prompt-input` (model selector + drag&drop).
|
|
51
|
+
- **Output:** `code-block`, `tool` (json visualizer), `source`, `web-preview`.
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
## 4. DESIGN CONTRACT (Absolute Rules)
|
|
56
|
+
|
|
57
|
+
### 📐 Typography (Semantic)
|
|
58
|
+
- **font-sans (Inter UI):** Navigation, Labels, General UI.
|
|
59
|
+
- **font-serif (Source Serif 4):** Long texts, editorials, and explanations.
|
|
60
|
+
- **font-display (Rajdhani):** KPIs, Metrics, Numbers (Always `tracking-wide`).
|
|
61
|
+
- **font-mono (JetBrains Mono):** Tabular data, Code, IDs (Always `tabular-nums`).
|
|
62
|
+
|
|
63
|
+
### 📦 Hierarchy & Radius
|
|
64
|
+
- **Primitives:** Pure components in `@/components/ui/`.
|
|
65
|
+
- **Templates:** Page layouts in `@/components/templates/`.
|
|
66
|
+
- **Radius:**
|
|
67
|
+
- `rounded-xl` / `rounded-2xl` for standard interfaces.
|
|
68
|
+
- `rounded-sm` / `rounded-md` for high-density (Industrial) dashboards.
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## 5. AI & NEURAL INTERFACE STANDARDS (Mandatory)
|
|
73
|
+
|
|
74
|
+
1. **Neural Flow:** User on the right, Assistant on the left.
|
|
75
|
+
2. **Encapsulation:** AI thoughts MUST use `reasoning` blocks (collapsible).
|
|
76
|
+
3. **Tool Output:** Function calls must be formatted in the `tool` component (system log style).
|
|
77
|
+
4. **Shortcuts:** Every prompt input must support `Cmd+Enter` for immediate submission.
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
## 🚫 ABSOLUTE DON'TS (Zero Defects)
|
|
82
|
+
- **NEVER** use hex codes in code (`#000`, etc). Use tokens.
|
|
83
|
+
- **NEVER** import icons from Lucide directly. Use `@/components/ui/icon`.
|
|
84
|
+
- **NEVER** use `text-white` or `bg-black`. Use `text-foreground` and `bg-background`.
|
|
85
|
+
- **NEVER** create ad-hoc components outside the system. If it doesn't exist, create the primitive.
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
*Genesis Grid AI Labs - Engineering Excellence. Visual Perfection. Zero Defects.*
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# 💎 The Genesis Grid Methodology: Zenith Protocol (v1.1.0)
|
|
2
|
+
|
|
3
|
+
This manifesto defines the engineering standard of **Genesis Grid AI Labs**, consolidated by **Guilherme Giorgi (GG)**. It represents the definitive synthesis of software engineering practices applied to the era of Generative AI.
|
|
4
|
+
|
|
5
|
+
## 🏛 The 7 Pillars of Excellence
|
|
6
|
+
|
|
7
|
+
### 🎭 Pillar I: Context Sovereignty (Zenith Core)
|
|
8
|
+
Context is the primary asset. Every project must maintain a strictly isolated `.context/` directory as the source of truth for all agents.
|
|
9
|
+
- **Zero Hallucination Policy:** Agents must rely on factual logs (`OPERATIONS_LOG.md`) and maps (`PROJECT_MAP.md`).
|
|
10
|
+
- **Cold Start Readiness:** Any agent must be able to resume work instantly via `AGENT_HANDOFF_PROMPT.md`.
|
|
11
|
+
|
|
12
|
+
### 🧠 Pillar II: Modular Mastery (The Bridge)
|
|
13
|
+
Architecture is modular. Modules communicate only through a strictly typed `bridge.ts`.
|
|
14
|
+
- **Bridge Pattern:** Bridges MUST implement logic for auto-recovery (Retry) and state reconciliation.
|
|
15
|
+
- **Zero Horizontal Coupling:** Modules are self-contained islands of functionality.
|
|
16
|
+
|
|
17
|
+
### ⚡ Pillar III: PREVICE Cycle
|
|
18
|
+
The non-negotiable development loop:
|
|
19
|
+
1. **P**lanning: Rigorous research and AI-friendly design docs.
|
|
20
|
+
2. **RE**view: Mandatory validation of the implementation plan.
|
|
21
|
+
3. **V**erification: Automated tests and manual proof-of-work.
|
|
22
|
+
4. **I**mplementation: Clean, strictly-typed code that follows HSL token standards.
|
|
23
|
+
5. **C**onfirmation: Logging of FinOps and technical debt.
|
|
24
|
+
6. **E**volution: Post-mortem-driven optimization.
|
|
25
|
+
|
|
26
|
+
### 🎨 Pillar VI: Visual Perfection (Genesis DS)
|
|
27
|
+
Design is the interface of intelligence.
|
|
28
|
+
- **HSL Authority:** Colors must be strictly HSL-tokenized for consistency and accessibility.
|
|
29
|
+
- **Micro-Interaction DNA:** Every component must feel alive through subtle animations and feedback.
|
|
30
|
+
|
|
31
|
+
### 🛠 Pillar V: Tooling Authority
|
|
32
|
+
Optimized Modern Stack:
|
|
33
|
+
- **Context-Defined Architecture (e.g., React 19, TS, Vite, Tailwind v4) or per CLI.**
|
|
34
|
+
- **Genesis CLI:** The orchestrator for context and boilerplate generation.
|
|
35
|
+
|
|
36
|
+
### 🛡 Pillar VI: FinOps & Telemetry Rigor
|
|
37
|
+
Development cost and AI resources must be precisely tracked.
|
|
38
|
+
- **Token Precision:** Fact-based logging of token consumption.
|
|
39
|
+
- **Saturation Monitoring:** Active tracking of model context window usage.
|
|
40
|
+
|
|
41
|
+
### 🎭 Pillar VII: UI Adaptability (UI Tiers)
|
|
42
|
+
The framework scales according to the project's visual needs:
|
|
43
|
+
- **FULL Mode:** Complete Genesis Design System v1.1.0 experience.
|
|
44
|
+
- **MIX Mode:** Adaptive tokens with external component support.
|
|
45
|
+
- **CORE Mode:** pure context and modular architecture without mandatory UI dependencies.
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
*Genesis Grid AI Labs - Engineering Excellence. Visual Perfection. Zero Defects.*
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# 📓 Genesis Grid Operations Log (v1.1.0)
|
|
2
|
+
|
|
3
|
+
This file is the official ledger for all autonomous and semi-autonomous operations. All agents **must** log their cycles here to ensure transparency, accountability, and context sovereignty.
|
|
4
|
+
|
|
5
|
+
## 📊 Summary of Operations (FinOps v1.1.0)
|
|
6
|
+
|
|
7
|
+
| Metric | Running Total |
|
|
8
|
+
| :--- | :--- |
|
|
9
|
+
| **Execution Time (IA)** | 00h 00m |
|
|
10
|
+
| **Project Cumulative Cost** | $0.00 |
|
|
11
|
+
| **Context Saturation (Current)** | 0% |
|
|
12
|
+
| **Tasks Completed** | 0 |
|
|
13
|
+
| **Protocol Version** | v1.1.0 |
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## 📅 Chronological Activity Log
|
|
18
|
+
|
|
19
|
+
| Start (ISO) | End (ISO) | Agent (Persona) | Action / Decision | Duration | Cost | Saturation |
|
|
20
|
+
| :--- | :--- | :--- | :--- | :--- | :--- | :--- |
|
|
21
|
+
| 2026-01-24T00:00:00Z | 2026-01-24T00:00:02Z | system | Project initialized / updated to v1.1.0 | 2s | $0.00 | 2% |
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## 💡 FinOps & Context Insights (Pillar VI)
|
|
26
|
+
- **Temporal Rigor:** All Start/End fields must use the full ISO 8601 format for realistic auditing.
|
|
27
|
+
- **Instance-Based Saturation:** Tracks the context window usage for the current active chat instance.
|
|
28
|
+
- **Project Cumulative Totals:** The global sum of resources consumed across all development branches.
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
*Genesis Grid AI Labs - Engineering Excellence. Visual Perfection. Zero Defects.*
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# 🗺 Genesis Grid Project Map (v1.1.0)
|
|
2
|
+
|
|
3
|
+
This document is the **Codebase Waze**. It provides the Agent with a high-level view of the project without needing to read every file, saving thousands of tokens and maintaining "Context Sovereignty".
|
|
4
|
+
|
|
5
|
+
## 🏛 Domain Architecture (High-Level)
|
|
6
|
+
| Module | Responsibility | Status |
|
|
7
|
+
| :--- | :--- | :--- |
|
|
8
|
+
| `src/lib/services` | Core services and telemetry (context.service) | [ ] Pending |
|
|
9
|
+
| `src/lib/store` | Global state management (GenesisStore) | [ ] Pending |
|
|
10
|
+
| `src/components/ui` | Genesis Design System Primitives | [ ] v1.1.0 Boilerplate |
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## 🔗 Technical Stack (Detected Stack)
|
|
15
|
+
- **Framework:** [Detected: React 19+ / Next.js / Other]
|
|
16
|
+
- **Styling:** [Detected: Tailwind v4 / Genesis Tokens (HSL)]
|
|
17
|
+
- **State:** [Detected: Zustand / GenesisStore / Other]
|
|
18
|
+
- **Context:** Genesis Grid AI Framework (v1.1.0)
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## 🛠 Entry Points & Bridges
|
|
23
|
+
- **Main:** `src/main.tsx`
|
|
24
|
+
- **Global Bridge:** `src/lib/bridge.ts`
|
|
25
|
+
- **Telemetric Layer:** `src/lib/services/context.service.ts`
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## 🚦 Observability & Health
|
|
30
|
+
- **Current Context Saturation:** [Low / Mid / High]
|
|
31
|
+
- **Last Context Audit:** 2026-01-24
|
|
32
|
+
- **Technical Debt Log:** [None]
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
*Genesis Grid AI Labs - Engineering Excellence. Visual Perfection. Zero Defects.*
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# 💻 TypeScript Standards (ENG)
|
|
2
|
+
|
|
3
|
+
## 🛡 Strict Type Safety
|
|
4
|
+
- **No Any:** Use of `any` is strictly prohibited. Use `unknown` or specific interfaces.
|
|
5
|
+
- **Strict Mode:** Always enable `strict` in `tsconfig.json`.
|
|
6
|
+
|
|
7
|
+
## 🏗 Architecture
|
|
8
|
+
- **Functional First:** Prefer functional components and pure functions.
|
|
9
|
+
- **Modules:** Follow the "Zenith" architecture guidelines for modularity.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
*Engineering Excellence.*
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: zenith-agent_logging
|
|
3
|
+
description: Technical progress and FinOps metrics logging. Use to document every work turn in OPERATIONS_LOG.md.
|
|
4
|
+
---
|
|
5
|
+
---
|
|
6
|
+
name: agent-logging
|
|
7
|
+
description: Essential skill for logging agent operations, execution time, and FinOps costs into the PROJECTS_LOG.md.
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# 📓 Agent Logging Skill
|
|
11
|
+
|
|
12
|
+
## 📋 Protocol
|
|
13
|
+
After completing a task or a significant step, the agent must update `.context/docs/OPERATIONS_LOG.md`.
|
|
14
|
+
|
|
15
|
+
## 📈 Entry Format
|
|
16
|
+
Add a new row to the table:
|
|
17
|
+
`| DATE | AGENT_NAME | ACTION_DESCRIPTION | DURATION | ESTIMATED_COST |`
|
|
18
|
+
|
|
19
|
+
Update the running totals in the summary table at the top of the file.
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
*Transparency is the foundation of scale.*
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: zenith:brainstorming
|
|
3
|
+
description: Creative sessions for architecture or interface. Use to explore solutions before creating an implementation plan.
|
|
4
|
+
---
|
|
5
|
+
---
|
|
6
|
+
name: zenith:brainstorming
|
|
7
|
+
description: |
|
|
8
|
+
Socratic design refinement - transforms rough ideas into validated designs through
|
|
9
|
+
structured questioning, alternative exploration, and incremental validation.
|
|
10
|
+
|
|
11
|
+
trigger: |
|
|
12
|
+
- New feature or product idea (requirements unclear)
|
|
13
|
+
- Need to plan, design, or architect something new
|
|
14
|
+
- Multiple approaches seem possible
|
|
15
|
+
|
|
16
|
+
skip_when: |
|
|
17
|
+
- Design already complete and validated → use zenith:writing_plans
|
|
18
|
+
- Detailed plan ready to execute → use zenith:planned_execution
|
|
19
|
+
|
|
20
|
+
sequence:
|
|
21
|
+
before: [zenith:writing_plans, zenith:using_git_worktrees]
|
|
22
|
+
|
|
23
|
+
related:
|
|
24
|
+
similar: [zenith:writing_plans]
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
# 💡 Brainstorming: From Ideas to Designs
|
|
28
|
+
|
|
29
|
+
## Overview
|
|
30
|
+
|
|
31
|
+
Transform rough ideas into well-formed designs through structured questioning and alternative exploration.
|
|
32
|
+
|
|
33
|
+
**Core Principle:** Research first, ask targeted questions to fill gaps, explore alternatives, and present the design incrementally for validation.
|
|
34
|
+
|
|
35
|
+
## The Process
|
|
36
|
+
|
|
37
|
+
1. **Autonomous Reconnaissance**: Inspect the repository, docs, and commits to form an initial model. Share your findings.
|
|
38
|
+
2. **Understanding**: Ask only for the missing context. Define purpose, constraints, and success criteria.
|
|
39
|
+
3. **Exploration**: Propose 2-3 different approaches with pros and cons.
|
|
40
|
+
4. **Design Presentation**: Present the design in sections validated by the user.
|
|
41
|
+
5. **Documentation**: Write the design document in `docs/plans/YYYY-MM-DD-<feature>-design.md`.
|
|
42
|
+
|
|
43
|
+
## Required Patterns
|
|
44
|
+
|
|
45
|
+
This skill uses these universal patterns:
|
|
46
|
+
- **State Tracking:** See [skills/patterns/state_tracking/SKILL.md](file:///.context/eng/skills/patterns/state_tracking/SKILL.md)
|
|
47
|
+
- **Failure Recovery:** See [skills/patterns/failure_recovery/SKILL.md](file:///.context/eng/skills/patterns/failure_recovery/SKILL.md)
|
|
48
|
+
- **Exit Criteria:** See [skills/patterns/exit_criteria/SKILL.md](file:///.context/eng/skills/patterns/exit_criteria/SKILL.md)
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
*Genesis Grid - Structured Creativity.*
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: documentation_templates
|
|
3
|
+
description: Documentation templates and structure guidelines. README, API docs, code comments, and AI-optimized documentation.
|
|
4
|
+
allowed-tools: Read, Glob, Grep
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# 📑 Documentation Templates (Zenith Sovereignty)
|
|
8
|
+
|
|
9
|
+
> Guidelines for maintaining clarity and context sovereignty through well-structured documents.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## 1. README Structure (Golden Standard)
|
|
14
|
+
|
|
15
|
+
The priority order for a Zenith README:
|
|
16
|
+
|
|
17
|
+
| Section | Purpose |
|
|
18
|
+
|---------|---------|
|
|
19
|
+
| **Title + One-liner** | What is this project? |
|
|
20
|
+
| **Quick Start** | How to run in <5 minutes. |
|
|
21
|
+
| **Features** | What the system actually does. |
|
|
22
|
+
| **Configuration** | Environment variables and options. |
|
|
23
|
+
| **Architecture** | Link to `PROJECT_MAP.md` and technical decisions. |
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## 2. Code Comments (Guidelines)
|
|
28
|
+
|
|
29
|
+
### When to Comment?
|
|
30
|
+
|
|
31
|
+
| ✅ Comment | ❌ Don't Comment |
|
|
32
|
+
|-----------|-----------------|
|
|
33
|
+
| The **WHY** (business logic). | The **WHAT** (when the code is obvious). |
|
|
34
|
+
| Complex algorithms. | Every line of code. |
|
|
35
|
+
| Non-obvious behavior. | Trivial implementation details. |
|
|
36
|
+
| API contracts and JSDoc. | Self-explanatory code. |
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## 3. Architecture Decision Record (ADR)
|
|
41
|
+
|
|
42
|
+
Use this format to record critical structural changes:
|
|
43
|
+
|
|
44
|
+
```markdown
|
|
45
|
+
# ADR-[Number]: [Decision Title]
|
|
46
|
+
|
|
47
|
+
## Status
|
|
48
|
+
Accepted / Deprecated / Superseded
|
|
49
|
+
|
|
50
|
+
## Context
|
|
51
|
+
Why are we making this decision? What was the problem?
|
|
52
|
+
|
|
53
|
+
## Decision
|
|
54
|
+
What did we actually decide? What was the chosen path?
|
|
55
|
+
|
|
56
|
+
## Consequences
|
|
57
|
+
What are the trade-offs? What did we gain and what did we lose?
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
---
|
|
61
|
+
|
|
62
|
+
## 4. AI-Optimized Documentation (llms.txt)
|
|
63
|
+
|
|
64
|
+
For AI crawlers and agents, maintain an overview file:
|
|
65
|
+
|
|
66
|
+
- **Clear Hierarchy**: Use H1-H3 logically.
|
|
67
|
+
- **Data Examples**: JSON/YAML for data structures.
|
|
68
|
+
- **Mermaid Diagrams**: For logic flows and states.
|
|
69
|
+
- **Self-contained Sections**: Avoid infinite cross-references that degrade the context window.
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
> **Remember:** Outdated documentation is worse than no documentation. Maintain sync with code in every commit (Pillar VII).
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: zenith:exploring_codebase
|
|
3
|
+
description: Systematic discovery of project topography. Use when entering a new repository or unfamiliar module.
|
|
4
|
+
---
|
|
5
|
+
---
|
|
6
|
+
name: zenith:exploring_codebase
|
|
7
|
+
description: |
|
|
8
|
+
Autonomous two-phase codebase exploration - first discovers natural perspectives
|
|
9
|
+
(layers, components, boundaries), then dispatches adaptive deep-dive explorers.
|
|
10
|
+
|
|
11
|
+
trigger: |
|
|
12
|
+
- Need to understand how a feature/system works across the codebase
|
|
13
|
+
- Starting work on an unfamiliar codebase or component
|
|
14
|
+
- Planning changes that span multiple layers/components
|
|
15
|
+
|
|
16
|
+
sequence:
|
|
17
|
+
after: [brainstorming]
|
|
18
|
+
before: [writing_plans, planned_execution]
|
|
19
|
+
|
|
20
|
+
related:
|
|
21
|
+
similar: [systematic_debugging]
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
# 🔍 Exploring Codebase
|
|
25
|
+
|
|
26
|
+
## Overview
|
|
27
|
+
|
|
28
|
+
Traditional exploration assumes structure upfront. This skill takes an autonomous two-phase approach: **discover** the natural perspectives of the codebase first, then **deep dive** into each discovered perspective with targeted explorers.
|
|
29
|
+
|
|
30
|
+
## The Two-Phase Flow
|
|
31
|
+
|
|
32
|
+
### Phase 1: Discovery Pass (Meta-Exploration)
|
|
33
|
+
**Goal:** Understand "What IS this codebase?"
|
|
34
|
+
Identify:
|
|
35
|
+
- Architecture pattern (Modular Monolith, Hexagonal, etc.)
|
|
36
|
+
- Major components and modules
|
|
37
|
+
- Natural boundaries and layers (Bridge Pattern)
|
|
38
|
+
- Core technologies and frameworks
|
|
39
|
+
|
|
40
|
+
### Phase 2: Deep Dive Pass (Adaptive Exploration)
|
|
41
|
+
**Goal:** Understand "How does [target] work in each discovered area?"
|
|
42
|
+
- Dispatch specialists (e.g., `backend_typescript`, `frontend_specialist`) to explore their respective domains within the discovered structure.
|
|
43
|
+
|
|
44
|
+
## Required Patterns
|
|
45
|
+
|
|
46
|
+
This skill uses these universal patterns:
|
|
47
|
+
- **State Tracking:** See [skills/patterns/state_tracking/SKILL.md](file:///.context/eng/skills/patterns/state_tracking/SKILL.md)
|
|
48
|
+
- **Failure Recovery:** See [skills/patterns/failure_recovery/SKILL.md](file:///.context/eng/skills/patterns/failure_recovery/SKILL.md)
|
|
49
|
+
- **Exit Criteria:** See [skills/patterns/exit_criteria/SKILL.md](file:///.context/eng/skills/patterns/exit_criteria/SKILL.md)
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
*Genesis Grid - Sovereignty through Knowledge.*
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: mcp_builder
|
|
3
|
+
description: MCP (Model Context Protocol) server building principles. Tool design, resource patterns, and interoperability best practices.
|
|
4
|
+
allowed-tools: Read, Write, Edit, Glob, Grep
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# 🔌 MCP Builder (Zenith Connectivity Standard)
|
|
8
|
+
|
|
9
|
+
> Principles for building robust MCP servers that extend AI capabilities.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## 1. MCP Overview
|
|
14
|
+
|
|
15
|
+
The **Model Context Protocol** is the standard for connecting AI systems with external tools and data sources securely and in a structured way.
|
|
16
|
+
|
|
17
|
+
### Core Concepts
|
|
18
|
+
|
|
19
|
+
| Concept | Purpose |
|
|
20
|
+
|---------|---------|
|
|
21
|
+
| **Tools** | Functions that the AI can invoke (e.g., execute code). |
|
|
22
|
+
| **Resources** | Data that the AI can read (e.g., logs, documentation). |
|
|
23
|
+
| **Prompts** | Predefined prompt templates for common tasks. |
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## 2. Tool Design Principles
|
|
28
|
+
|
|
29
|
+
A well-designed tool is the secret to flawless orchestration.
|
|
30
|
+
|
|
31
|
+
- **Scoped Name**: Use action-oriented names (e.g., `get_system_health`, `deploy_module`).
|
|
32
|
+
- **Single Purpose**: Each tool should do one thing and do it well.
|
|
33
|
+
- **Validated Input**: Use strict schemas with clear types and descriptions for each parameter.
|
|
34
|
+
- **Structured Output**: Always return a predictable JSON format.
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## 3. Resource Patterns
|
|
39
|
+
|
|
40
|
+
- **Static Resources**: Config files, manuals, and fixed documentation.
|
|
41
|
+
- **Dynamic Resources**: Generated on demand (e.g., real-time database status).
|
|
42
|
+
- **URI Patterns**: Use clear URIs, e.g., `zenith://project/map` or `logs://server/error`.
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
## 4. Security and Data Sovereignty
|
|
47
|
+
|
|
48
|
+
- **Full Validation**: Never trust tool input without sanitization.
|
|
49
|
+
- **Secrets**: Never log API keys or secrets. Use environment variables.
|
|
50
|
+
- **Permissions**: Apply the principle of least privilege for filesystem access.
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
## 5. Zenith Best Practices Checklist
|
|
55
|
+
|
|
56
|
+
- [ ] Clear and verbal tool names.
|
|
57
|
+
- [ ] Detailed descriptions (the AI needs to understand "why" a tool is used).
|
|
58
|
+
- [ ] Structured error handling (not just "error," but "why it failed").
|
|
59
|
+
- [ ] Logging for debugging without exposing sensitive data.
|
|
60
|
+
- [ ] Well-defined mandatory input schemas.
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
> **Remember:** MCP tools should be simple, focused, and well-documented. The AI relies on descriptions to use them correctly in the orchestration flow.
|