@jaguilar87/gaia-ops 2.1.0 → 2.2.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.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,133 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ---
9
9
 
10
+ ## [2.2.1] - 2025-11-10
11
+
12
+ ### Fixed - Documentation Consistency
13
+ - **README.md & README.en.md:**
14
+ - Updated version numbers from 2.1.0 → 2.2.0
15
+ - Corrected package structure (hooks/, templates/, commands/)
16
+ - Fixed hooks/ listing: now shows actual Python files (pre_tool_use.py, post_tool_use.py, etc.) instead of non-existent pre-commit
17
+ - Fixed templates/ listing: removed non-existent code-examples/, listed actual files (CLAUDE.template.md, settings.template.json)
18
+ - Added context-contracts.gcp.json and context-contracts.aws.json to config/ section
19
+ - Removed CLAUDE.md and AGENTS.md from package root (only templates exist)
20
+ - Added speckit/ directory to structure
21
+
22
+ - **config/AGENTS.md:**
23
+ - Updated all references: `.claude/docs/` → `.claude/config/`
24
+ - Fixed quick links and support documentation paths
25
+
26
+ - **config/agent-catalog.md:**
27
+ - Updated all 5 context contract references: `.claude/docs/` → `.claude/config/`
28
+
29
+ - **index.js:**
30
+ - Deprecated `getDocPath()` function with console warning
31
+ - Function now redirects to `config/` directory instead of non-existent `docs/`
32
+ - Added JSDoc @deprecated annotation
33
+
34
+ - **README.en.md (Documentation section):**
35
+ - Removed broken reference to `./CLAUDE.md` (file not in package)
36
+ - Fixed all documentation links: `./docs/` → `./config/`
37
+ - Updated to match actual config/ directory structure
38
+
39
+ - **speckit/README.en.md:**
40
+ - Removed 3 non-existent commands: speckit.clarify, speckit.analyze-plan, speckit.constitution
41
+ - Updated command count: 9 → 7 actual commands
42
+ - Removed references to non-existent tasks-richer.py tool
43
+ - Removed entire sections for non-existent templates (data-model-template.md, contracts-template.md)
44
+ - Updated tool files list with actual tools (task_manager.py, clarify_engine.py, context_provider.py)
45
+ - Fixed all code examples to use only existing commands
46
+
47
+ - **tools/context_provider.py:**
48
+ - Added auto-detection for project-context.json location
49
+ - Honors GAIA_CONTEXT_PATH environment variable
50
+ - Falls back through common locations (.claude/project-context.json, .claude/project-context/project-context.json)
51
+ - Fixes agent routing failures when project-context.json is in non-legacy location
52
+
53
+ - **package.json:**
54
+ - Fixed `npm test` script (was calling non-existent pytest tests)
55
+ - Now echoes informative message about fixture availability
56
+
57
+ - **Agent Branding Unification:**
58
+ - Renamed `agents/claude-architect.md` → `agents/gaia.md` (aligns with gaia-ops package name)
59
+ - Renamed `commands/gaina.md` → `commands/gaia.md` (unified as `/gaia` command)
60
+ - Updated all references in README.md, README.en.md, and agents/gaia.md
61
+ - Complete branding consistency: package name, agent name, and command name all use "gaia"
62
+
63
+ ### Benefits
64
+ - ✅ **Accurate documentation:** All paths and structures match actual package contents
65
+ - ✅ **No broken links:** References point to existing files
66
+ - ✅ **Clear API:** Deprecated functions clearly marked
67
+ - ✅ **User trust:** Documentation matches reality
68
+ - ✅ **npm test passes:** No false failures
69
+
70
+ ---
71
+
72
+ ## [2.2.0] - 2025-11-10
73
+
74
+ ### Added - Unified Settings Template & Auto-Installation
75
+ - **NEW:** Created unified `templates/settings.template.json` (214 lines)
76
+ - Merged functionality from `settings.json` + `settings.local.json`
77
+ - Includes all hooks (PreToolUse, PostToolUse, SubagentStop)
78
+ - Complete permissions (75+ allow, 9 deny, 27 ask entries)
79
+ - Full security tier definitions (T0-T3)
80
+ - Environment configuration
81
+
82
+ - **Auto-Installation:** `gaia-init.js` now automatically generates `.claude/settings.json`
83
+ - Added `generateSettingsJson()` function
84
+ - Integrated into installation workflow (Step 6.5)
85
+ - Projects get complete settings from day 1
86
+
87
+ ### Removed - Dead Code Elimination
88
+ - **CLAUDE.md** from package root (only template exists now)
89
+ - **templates/code-examples/** (321 lines - never imported or executed)
90
+ - `commit_validation.py`
91
+ - `clarification_workflow.py`
92
+ - `approval_gate_workflow.py`
93
+ - **templates/project-context.template.json** (126 lines - unused, installer generates programmatically)
94
+ - **templates/project-context.template.aws.json** (128 lines - never used)
95
+ - **package.json:** Removed `CLAUDE.md` from files array
96
+
97
+ ### Changed - Package Consistency
98
+ - **templates/CLAUDE.template.md:**
99
+ - Updated all references: `.claude/docs/` → `.claude/config/`
100
+ - Updated package name: `@aaxis/claude-agents` → `@jaguilar87/gaia-ops`
101
+ - Removed code-examples reference (no longer exists)
102
+
103
+ - **README.en.md:**
104
+ - Updated API examples to use `@jaguilar87/gaia-ops`
105
+ - Changed `getDocPath()` → `getConfigPath()` (correct function)
106
+
107
+ - **index.js:**
108
+ - Updated header and JSDoc comments with new package name
109
+ - Updated example usage
110
+
111
+ - **agents/gaia.md:**
112
+ - Updated system paths to reflect gaia-ops package structure
113
+ - Clarified symlink architecture and layout
114
+
115
+ ### Improved - Package Quality
116
+ - **Reduced template bloat by 57%:** 882 lines → 378 lines (504 lines removed)
117
+ - **Single source of truth:** One settings template instead of scattered config
118
+ - **Cleaner architecture:** Only actual templates remain in `templates/`
119
+ - **Better defaults:** Projects start with complete, production-ready settings
120
+
121
+ ### Benefits
122
+ - ✅ **Unified configuration:** Everything in one settings.json file
123
+ - ✅ **Automatic setup:** No manual settings configuration needed
124
+ - ✅ **Smaller package:** 57% reduction in template code
125
+ - ✅ **Flexibility maintained:** Users can still create `settings.local.json` for overrides
126
+ - ✅ **Package consistency:** All references use correct package name
127
+
128
+ ### Final Template Structure
129
+ ```
130
+ templates/
131
+ ├── CLAUDE.template.md (164 lines) - Orchestrator instructions
132
+ └── settings.template.json (214 lines) - Complete Claude Code settings
133
+ ```
134
+
135
+ ---
136
+
10
137
  ## [2.1.0] - 2025-11-10
11
138
 
12
139
  ### Added - Provider-Specific Context Contracts
package/README.en.md CHANGED
@@ -14,8 +14,9 @@ Multi-agent orchestration system for Claude Code - DevOps automation toolkit.
14
14
 
15
15
  ### Features
16
16
 
17
- - **6 specialist agents** (terraform-architect, gitops-operator, gcp-troubleshooter, aws-troubleshooter, devops-developer, claude-architect)
18
- - **3 meta-agents** (Explore, Plan, claude-architect)
17
+ - **Multi-cloud support** - Works with GCP, AWS, and ready for Azure
18
+ - **6 specialist agents** (terraform-architect, gitops-operator, gcp-troubleshooter, aws-troubleshooter, devops-developer, Gaia)
19
+ - **3 meta-agents** (Explore, Plan, Gaia)
19
20
  - **Clarification engine** for ambiguity detection
20
21
  - **Approval gates** for T3 operations (terraform apply, kubectl apply, etc.)
21
22
  - **Git commit validation** with Conventional Commits
@@ -90,7 +91,7 @@ node_modules/@jaguilar87/gaia-ops/
90
91
  │ ├── gcp-troubleshooter.md
91
92
  │ ├── aws-troubleshooter.md
92
93
  │ ├── devops-developer.md
93
- │ └── claude-architect.md
94
+ │ └── gaia.md
94
95
  ├── tools/ # Orchestration tools
95
96
  │ ├── context_provider.py
96
97
  │ ├── agent_router.py
@@ -98,28 +99,35 @@ node_modules/@jaguilar87/gaia-ops/
98
99
  │ ├── approval_gate.py
99
100
  │ ├── commit_validator.py
100
101
  │ └── task_manager.py
101
- ├── hooks/ # Git hooks
102
- └── pre-commit
102
+ ├── hooks/ # Claude Code hooks (Python)
103
+ ├── pre_tool_use.py
104
+ │ ├── post_tool_use.py
105
+ │ ├── subagent_stop.py
106
+ │ ├── session_start.py
107
+ │ └── pre_kubectl_security.py
103
108
  ├── commands/ # Slash commands
104
- │ ├── architect.md
105
- └── speckit.*.md
109
+ │ ├── gaia.md
110
+ ├── save-session.md
111
+ │ ├── restore-session.md
112
+ │ ├── session-status.md
113
+ │ └── speckit.*.md (7 commands)
106
114
  ├── config/ # Configuration & documentation
107
115
  │ ├── AGENTS.md
108
116
  │ ├── orchestration-workflow.md
109
117
  │ ├── git-standards.md
110
118
  │ ├── context-contracts.md
119
+ │ ├── context-contracts.gcp.json
120
+ │ ├── context-contracts.aws.json
111
121
  │ ├── agent-catalog.md
112
122
  │ └── git_standards.json
113
- ├── templates/ # Code templates
123
+ ├── templates/ # Installation templates
114
124
  │ ├── CLAUDE.template.md
115
- │ └── code-examples/
116
- ├── commit_validation.py
117
- ├── clarification_workflow.py
118
- └── approval_gate_workflow.py
119
- ├── config/ # Configuration
120
- │ └── git_standards.json
121
- ├── CLAUDE.md # Core orchestrator instructions
122
- ├── AGENTS.md # System overview
125
+ │ └── settings.template.json
126
+ ├── speckit/ # Spec-Kit methodology
127
+ ├── README.md
128
+ ├── templates/
129
+ ├── scripts/
130
+ │ └── governance.md
123
131
  ├── CHANGELOG.md # Version history
124
132
  ├── package.json
125
133
  └── index.js # Helper functions
@@ -160,17 +168,17 @@ If you need to programmatically access paths in the package:
160
168
  import {
161
169
  getAgentPath,
162
170
  getToolPath,
163
- getDocPath
164
- } from '@aaxis/claude-agents';
171
+ getConfigPath
172
+ } from '@jaguilar87/gaia-ops';
165
173
 
166
174
  const agentPath = getAgentPath('gitops-operator');
167
- // → /path/to/node_modules/@aaxis/claude-agents/agents/gitops-operator.md
175
+ // → /path/to/node_modules/@jaguilar87/gaia-ops/agents/gitops-operator.md
168
176
 
169
177
  const toolPath = getToolPath('context_provider.py');
170
- // → /path/to/node_modules/@aaxis/claude-agents/tools/context_provider.py
178
+ // → /path/to/node_modules/@jaguilar87/gaia-ops/tools/context_provider.py
171
179
 
172
- const docPath = getDocPath('orchestration-workflow.md');
173
- // → /path/to/node_modules/@aaxis/claude-agents/docs/orchestration-workflow.md
180
+ const configPath = getConfigPath('orchestration-workflow.md');
181
+ // → /path/to/node_modules/@jaguilar87/gaia-ops/config/orchestration-workflow.md
174
182
  ```
175
183
 
176
184
  ## Versioning
@@ -181,18 +189,17 @@ This package follows [Semantic Versioning](https://semver.org/):
181
189
  - **MINOR:** New features, agents, or improvements
182
190
  - **PATCH:** Bug fixes, clarifications, typos
183
191
 
184
- Current version: **2.1.0**
192
+ Current version: **2.2.0**
185
193
 
186
194
  See [CHANGELOG.md](./CHANGELOG.md) for version history.
187
195
 
188
196
  ## Documentation
189
197
 
190
- - **Core Instructions:** [CLAUDE.md](./CLAUDE.md) (154 lines)
191
- - **System Overview:** [AGENTS.md](./AGENTS.md) (95 lines)
192
- - **Orchestration Workflow:** [docs/orchestration-workflow.md](./docs/orchestration-workflow.md) (735 lines)
193
- - **Git Standards:** [docs/git-standards.md](./docs/git-standards.md) (682 lines)
194
- - **Context Contracts:** [docs/context-contracts.md](./docs/context-contracts.md) (673 lines)
195
- - **Agent Catalog:** [docs/agent-catalog.md](./docs/agent-catalog.md) (603 lines)
198
+ - **System Overview:** [config/AGENTS.md](./config/AGENTS.md) (95 lines)
199
+ - **Orchestration Workflow:** [config/orchestration-workflow.md](./config/orchestration-workflow.md) (735 lines)
200
+ - **Git Standards:** [config/git-standards.md](./config/git-standards.md) (682 lines)
201
+ - **Context Contracts:** [config/context-contracts.md](./config/context-contracts.md) (673 lines)
202
+ - **Agent Catalog:** [config/agent-catalog.md](./config/agent-catalog.md) (603 lines)
196
203
 
197
204
  ## Requirements
198
205
 
package/README.md CHANGED
@@ -14,8 +14,9 @@ Sistema de orquestación multi-agente para Claude Code - Toolkit de automatizaci
14
14
 
15
15
  ### Características
16
16
 
17
- - **6 agentes especialistas** (terraform-architect, gitops-operator, gcp-troubleshooter, aws-troubleshooter, devops-developer, claude-architect)
18
- - **3 meta-agentes** (Explore, Plan, claude-architect)
17
+ - **Soporte multi-cloud** - Funciona con GCP, AWS, y listo para Azure
18
+ - **6 agentes especialistas** (terraform-architect, gitops-operator, gcp-troubleshooter, aws-troubleshooter, devops-developer, Gaia)
19
+ - **3 meta-agentes** (Explore, Plan, Gaia)
19
20
  - **Motor de clarificación** para detección de ambigüedades
20
21
  - **Puertas de aprobación** para operaciones T3 (terraform apply, kubectl apply, etc.)
21
22
  - **Validación de commits Git** con Conventional Commits
@@ -90,7 +91,7 @@ node_modules/@jaguilar87/gaia-ops/
90
91
  │ ├── gcp-troubleshooter.md
91
92
  │ ├── aws-troubleshooter.md
92
93
  │ ├── devops-developer.md
93
- │ └── claude-architect.md
94
+ │ └── gaia.md
94
95
  ├── tools/ # Herramientas de orquestación
95
96
  │ ├── context_provider.py
96
97
  │ ├── agent_router.py
@@ -98,28 +99,35 @@ node_modules/@jaguilar87/gaia-ops/
98
99
  │ ├── approval_gate.py
99
100
  │ ├── commit_validator.py
100
101
  │ └── task_manager.py
101
- ├── hooks/ # Git hooks
102
- └── pre-commit
102
+ ├── hooks/ # Hooks de Claude Code (Python)
103
+ ├── pre_tool_use.py
104
+ │ ├── post_tool_use.py
105
+ │ ├── subagent_stop.py
106
+ │ ├── session_start.py
107
+ │ └── pre_kubectl_security.py
103
108
  ├── commands/ # Comandos slash
104
- │ ├── architect.md
105
- └── speckit.*.md
109
+ │ ├── gaia.md
110
+ ├── save-session.md
111
+ │ ├── restore-session.md
112
+ │ ├── session-status.md
113
+ │ └── speckit.*.md (7 comandos)
106
114
  ├── config/ # Configuración y documentación
107
115
  │ ├── AGENTS.md
108
116
  │ ├── orchestration-workflow.md
109
117
  │ ├── git-standards.md
110
118
  │ ├── context-contracts.md
119
+ │ ├── context-contracts.gcp.json
120
+ │ ├── context-contracts.aws.json
111
121
  │ ├── agent-catalog.md
112
122
  │ └── git_standards.json
113
- ├── templates/ # Plantillas de código
123
+ ├── templates/ # Templates de instalación
114
124
  │ ├── CLAUDE.template.md
115
- │ └── code-examples/
116
- ├── commit_validation.py
117
- ├── clarification_workflow.py
118
- └── approval_gate_workflow.py
119
- ├── config/ # Configuración
120
- │ └── git_standards.json
121
- ├── CLAUDE.md # Instrucciones del orquestador principal
122
- ├── AGENTS.md # Vista general del sistema
125
+ │ └── settings.template.json
126
+ ├── speckit/ # Metodología Spec-Kit
127
+ ├── README.md
128
+ ├── templates/
129
+ ├── scripts/
130
+ │ └── governance.md
123
131
  ├── CHANGELOG.md # Historial de versiones
124
132
  ├── package.json
125
133
  └── index.js # Funciones auxiliares
@@ -181,7 +189,7 @@ Este paquete sigue [Versionamiento Semántico](https://semver.org/):
181
189
  - **MINOR:** Nuevas características, agentes o mejoras
182
190
  - **PATCH:** Correcciones de bugs, clarificaciones, errores tipográficos
183
191
 
184
- Versión actual: **1.0.3**
192
+ Versión actual: **2.2.0**
185
193
 
186
194
  Ver [CHANGELOG.md](./CHANGELOG.md) para el historial de versiones.
187
195
 
@@ -1,11 +1,11 @@
1
1
  ---
2
- name: claude-architect
3
- description: A meta-agent specialized in analyzing, diagnosing, and optimizing the intelligent agent orchestration system itself. It understands the system architecture, analyzes logs/metrics, researches best practices, and proposes improvements.
2
+ name: gaia
3
+ description: Gaia is the meta-agent for the gaia-ops ecosystem—its purpose is to understand, document, and continuously optimize every component of the orchestrator, agents, commands, templates, sample stacks, and documentation that ship in this package and the consuming projects that symlink to it.
4
4
  tools: Read, Glob, Grep, Bash, Task, WebSearch, Python
5
5
  model: inherit
6
6
  ---
7
7
 
8
- You are a senior system architect and AI agent systems specialist. Your unique purpose is to **analyze and optimize the intelligent agent orchestration system itself** - acting as a meta-layer that understands how the orchestrator, agents, router, context provider, and all system components work together.
8
+ You are Gaia, the senior system architect and AI agent systems specialist for the gaia-ops stack. Your unique purpose is to **analyze and optimize Gaia’s intelligent agent orchestration system end-to-end**—acting as a meta-layer that understands how the orchestrator, agents, commands, router, context provider, Spec-Kit assets, and all system components work together across repositories (package root, downstream project `.claude/`, ops symlinks).
9
9
 
10
10
  ## ⚡ QUICK START - Read This First
11
11
 
@@ -15,16 +15,16 @@ You are a senior system architect and AI agent systems specialist. Your unique p
15
15
  2. **Locate & Read:** You know where EVERYTHING lives. Read only what you need for THIS request.
16
16
  3. **Analyze & Respond:** Provide comprehensive answer with evidence, examples, and actionable recommendations.
17
17
 
18
- **Where Everything Lives (You Know This By Heart):**
19
- - 🏗️ System: `/home/jaguilar/aaxis/rnd/repositories/.claude/`
20
- - 📋 Orchestrator: `CLAUDE.md` (workflow logic)
21
- - 🤖 Agents: `.claude/agents/` (5 specialists + you)
22
- - 🛠️ Tools: `.claude/tools/` (routing, context, validation)
23
- - 📊 Logs: `.claude/logs/` (JSONL audit trail)
24
- - Tests: `.claude/tests/` (55+ tests)
25
- - 🎯 Spec-Kit: `.claude/commands/speckit.*` (7 commands)
26
- - 💾 Sessions: `.claude/session/` (active + bundles)
27
- - 🔗 Multi-repo: `ops/` (symlinks: claude-rnd, claude-vtr)
18
+ **Where Everything Lives (Package + Symlink Layout):**
19
+ - 🏗️ Package root: `/home/jaguilar/aaxis/rnd/repositories/gaia-ops/` → mirrors `node_modules/@jaguilar87/gaia-ops/` when installed
20
+ - 📋 Orchestrator: `CLAUDE.md` at the package root (templated into consuming repos)
21
+ - 🤖 Agents: `agents/*.md` (6 specialists: terraform-architect, gitops-operator, gcp-troubleshooter, aws-troubleshooter, devops-developer, gaia)
22
+ - 🛠️ Tools: `tools/` (context_provider.py, agent_router.py, clarify_engine.py, approval_gate.py, commit_validator.py, task_manager.py)
23
+ - 📚 Config docs: `config/` (AGENTS, orchestration-workflow, git-standards, context-contracts, agent-catalog)
24
+ - 🗂️ Commands: `commands/*.md` (`/gaia`, `/save-session`, `/session-status`, `/speckit.*`)
25
+ - 🎯 Spec-Kit assets: `speckit/README*.md`, `speckit/templates/`, `speckit/scripts/`, `speckit/governance.md`, `speckit/decisions/`
26
+ - 🔧 Reference stacks: `terraform/`, `gitops/`, `app-services/` illustrate how agents interact with user IaC/App repos
27
+ - 💾 Project data: consuming repos host `.claude/project-context.json`, `.claude/logs/`, `.claude/tests/`, while `ops/` carries shared symlink helpers
28
28
 
29
29
  **Your Superpowers:**
30
30
  - ✅ You understand the ENTIRE system (no one else does)
@@ -65,43 +65,51 @@ You have intrinsic knowledge of the system's structure. You know EXACTLY where t
65
65
  ### Core System Files (Always Available)
66
66
 
67
67
  ```
68
- Agent System Structure:
69
- ├── CLAUDE.md # Master orchestrator logic (715 lines)
70
- ├── .claude/
71
- │ ├── project-context.json # Project SSOT (varies by project)
72
- │ ├── settings.json # System configuration
73
- │ ├── agents/ # 5 specialized agents
74
- ├── gitops-operator.md (340 lines)
75
- ├── terraform-architect.md (270 lines)
76
- │ ├── gcp-troubleshooter.md (305 lines)
77
- │ │ ├── aws-troubleshooter.md (289 lines)
78
- │ └── devops-developer.md (89 lines)
79
- │ ├── tools/ # System intelligence
80
- ├── agent_router.py # Semantic routing (92.7% accuracy target)
81
- ├── context_provider.py # Deterministic context generation
82
- ├── context_section_reader.py # Selective context loading
83
- │ ├── semantic_matcher.py # Fallback routing
84
- │ │ ├── agent_invoker_helper.py # Agent invocation utilities
85
- │ │ ├── tasks-richer.py # Task enrichment
86
- │ │ └── generate_embeddings.py # Embedding generation
87
- ├── hooks/ # Security & audit layer
88
- │ │ ├── pre_tool_use.py # Pre-execution validation
89
- │ │ ├── post_tool_use.py # Post-execution audit
90
- │ │ └── subagent_stop.py # Agent completion capture
91
- ├── commands/ # 13 slash commands
92
- ├── session/ # Session management
93
- │ │ ├── active/context.json # Live session state
94
- │ │ ├── bundles/ # Historical snapshots
95
- │ │ └── scripts/ # Session tools
96
- │ ├── tests/ # Test suite (55+ tests)
97
- │ │ ├── test_semantic_routing.py # Routing accuracy tests
98
- │ │ ├── test_all_functionality.py # Core system tests
99
- │ │ └── test_ssot_policies.py # SSOT validation
100
- │ ├── logs/ # Audit trail (JSONL format)
101
- │ └── schemas/ # JSON schemas
102
- └── improvement-ideas.md # System improvement backlog
68
+ gaia-ops/ (mirrors node_modules/@jaguilar87/gaia-ops/ and symlinks into project .claude/)
69
+ ├── CLAUDE.md # Master orchestrator logic + workflow (≈150 lines here, expanded in config/)
70
+ ├── agents/ # 6 specialized agent prompts
71
+ │ ├── terraform-architect.md
72
+ │ ├── gitops-operator.md
73
+ │ ├── gcp-troubleshooter.md
74
+ │ ├── aws-troubleshooter.md
75
+ │ ├── devops-developer.md
76
+ └── gaia.md (this file)
77
+ ├── tools/ # System intelligence + automation
78
+ ├── context_provider.py # Deterministic context generation
79
+ │ ├── agent_router.py # Semantic routing (92.7% target accuracy)
80
+ │ ├── clarify_engine.py # Ambiguity detection
81
+ │ ├── approval_gate.py # Tiered approval logic
82
+ │ ├── commit_validator.py # Conventional commits enforcement
83
+ └── task_manager.py # Large-plan chunking
84
+ ├── hooks/ # Git + security hooks
85
+ ├── commands/ # User-facing slash commands (architect/save-session/speckit.*)
86
+ ├── config/ # Documentation bundle (AGENTS/orchestration-workflow/git-standards/context-contracts/agent-catalog)
87
+ ├── speckit/ # Spec-Kit 2.0 framework (README*.md, governance.md, decisions/, templates/, scripts/)
88
+ ├── app-services/ # Sample application services for reference
89
+ ├── gitops/ # Reference GitOps manifests
90
+ ├── terraform/ # Reference Terraform stacks
91
+ ├── templates/ # CLAUDE + code templates
92
+ ├── tests/ # Test suite (55+ cases referenced in README)
93
+ ├── CHANGELOG.md # Version history (Semantic Versioning)
94
+ └── package.json / index.js # NPM package metadata + helper exports
103
95
  ```
104
96
 
97
+ When `npx @jaguilar87/gaia-ops init` (or `gaia-init` after a global install) runs in a consuming project it:
98
+ 1. Detects GitOps/Terraform/AppServices paths and installs Claude Code if needed.
99
+ 2. Creates `.claude/` and symlinks `agents/`, `tools/`, `hooks/`, `commands/`, `templates/`, and `config/` back to this package.
100
+ 3. Generates `CLAUDE.md`, links `AGENTS.md`, and seeds `.claude/project-context.json` (project SSOT). Project-owned items such as `.claude/logs/`, `.claude/tests/`, and session data remain local.
101
+
102
+ ### Installation & Project Layout (from README.md / README.en.md)
103
+ - Quick start: `npx @jaguilar87/gaia-ops init` (or `npm install -g @jaguilar87/gaia-ops && gaia-init`) bootstraps everything; manual installs `npm install @jaguilar87/gaia-ops` + symlink commands from README.
104
+ - Resulting structure: `your-project/.claude/{agents,tools,hooks,commands,templates,config}` → symlinked to this package under `node_modules/@jaguilar87/gaia-ops/`, while `logs/`, `tests/`, and `project-context.json` stay project-specific.
105
+ - Reference directories `gitops/`, `terraform/`, and `app-services/` inside the package illustrate how specialized agents should reason about user IaC/App codebases.
106
+
107
+ ### Spec-Kit 2.0 Workflow Snapshot (from speckit/README*.md)
108
+ - `speckit/` hosts bilingual docs, governance (`speckit/governance.md`), immutable ADRs (`speckit/decisions/ADR-*.md`), templates, and scripts backing `/speckit.*` commands.
109
+ - Core flow: `/speckit.init` → `/speckit.specify` → `/speckit.plan` → `/speckit.tasks` → `/speckit.implement`, each auto-injecting project-context data, clarification, validation, and risk analysis (T2/T3 gates) directly into specs/plan/tasks artifacts.
110
+ - Helper commands: `/speckit.add-task` adds enriched tasks mid-implementation, `/speckit.analyze-task` deep-dives high-risk tasks, and `/save-session` captures context bundles for portability.
111
+ - Spec-Kit 2.0 removes standalone enrichers (`tasks-richer.py`), performs inline validation, and relies on `.claude/project-context.json` for deterministic context so the architect agent can reason about idea → spec → plan → tasks → implementation continuity.
112
+
105
113
  ### Key System Metrics (What to Track)
106
114
 
107
115
  - **Routing Accuracy:** Target 92.7% (from tests)
@@ -818,4 +826,3 @@ python3 -m pytest .claude/tests/ --cov=.claude/tools --cov-report=term
818
826
  ---
819
827
 
820
828
  **Remember:** You are not just analyzing files - you are understanding a living, evolving system. Your insights drive its continuous improvement.
821
-
package/bin/gaia-init.js CHANGED
@@ -603,6 +603,29 @@ async function createClaudeDirectory() {
603
603
  }
604
604
  }
605
605
 
606
+ /**
607
+ * Generate settings.json from template
608
+ */
609
+ async function generateSettingsJson() {
610
+ const spinner = ora('Generating .claude/settings.json...').start();
611
+
612
+ try {
613
+ const settingsPath = join(CWD, '.claude', 'settings.json');
614
+ const templatePath = getTemplatePath('settings.template.json');
615
+
616
+ // Read template
617
+ const template = await fs.readFile(templatePath, 'utf-8');
618
+
619
+ // Write settings.json (no placeholders to replace)
620
+ await fs.writeFile(settingsPath, template, 'utf-8');
621
+
622
+ spinner.succeed('.claude/settings.json generated');
623
+ } catch (error) {
624
+ spinner.fail('Failed to generate settings.json');
625
+ throw error;
626
+ }
627
+ }
628
+
606
629
  /**
607
630
  * Generate CLAUDE.md from template
608
631
  */
@@ -1000,6 +1023,9 @@ async function main() {
1000
1023
  // Step 6: Create .claude/ directory with symlinks
1001
1024
  await createClaudeDirectory();
1002
1025
 
1026
+ // Step 6.5: Generate settings.json
1027
+ await generateSettingsJson();
1028
+
1003
1029
  // Step 7: Generate CLAUDE.md
1004
1030
  await generateClaudeMd(config);
1005
1031
 
@@ -1,13 +1,13 @@
1
1
  ---
2
- description: Invoke claude-architect to analyze system architecture, diagnose issues, or propose improvements
2
+ description: Invoke Gaia to analyze system architecture, diagnose issues, or propose improvements
3
3
  scope: project
4
4
  ---
5
5
 
6
- You are invoking the **claude-architect** meta-agent to analyze the agent orchestration system itself.
6
+ You are invoking **Gaia**, the gaia-ops meta-agent that analyzes the agent orchestration system itself.
7
7
 
8
8
  ## Context: System Expert Agent
9
9
 
10
- claude-architect is a specialized agent that understands:
10
+ Gaia is a specialized agent that understands:
11
11
  - The entire agent system architecture (.claude/, CLAUDE.md, agents, tools, hooks)
12
12
  - Spec-Kit workflows (specify, plan, tasks, implement, add-task, analyze-task)
13
13
  - Session management (save, restore, bundles)
@@ -18,7 +18,7 @@ claude-architect is a specialized agent that understands:
18
18
 
19
19
  ## Your Task
20
20
 
21
- Invoke the claude-architect agent with the user's request. The agent will proactively read system files, analyze logs, research best practices, and provide comprehensive analysis with actionable recommendations.
21
+ Invoke Gaia with the user's request. The agent will proactively read system files, analyze logs, research best practices, and provide comprehensive analysis with actionable recommendations tied to gaia-ops.
22
22
 
23
23
  **IMPORTANT:** Pass the user's exact question/request to the agent. Examples:
24
24
  - "Analiza este log y dime qué pasó"
@@ -29,11 +29,11 @@ Invoke the claude-architect agent with the user's request. The agent will proact
29
29
 
30
30
  ## Invocation
31
31
 
32
- Use the Task tool to invoke claude-architect with this structure:
32
+ Use the Task tool to invoke Gaia with this structure:
33
33
 
34
34
  ```
35
35
  Task(
36
- subagent_type="claude-architect",
36
+ subagent_type="gaia",
37
37
  description="[Brief 3-5 word description]",
38
38
  prompt="""
39
39
  ## System Context (Auto-provided)
package/config/AGENTS.md CHANGED
@@ -8,9 +8,9 @@ See `CLAUDE.md` for complete orchestrator instructions.
8
8
 
9
9
  **Quick links:**
10
10
  - Core principles: `CLAUDE.md` (lines 18-36)
11
- - Workflow: `.claude/docs/orchestration-workflow.md`
12
- - Git standards: `.claude/docs/git-standards.md`
13
- - Agent catalog: `.claude/docs/agent-catalog.md`
11
+ - Workflow: `.claude/config/orchestration-workflow.md`
12
+ - Git standards: `.claude/config/git-standards.md`
13
+ - Agent catalog: `.claude/config/agent-catalog.md`
14
14
 
15
15
  ---
16
16
 
@@ -71,7 +71,7 @@ Claude Code (Orchestrator)
71
71
  ├── gcp-troubleshooter (GCP diagnostics)
72
72
  ├── aws-troubleshooter (AWS diagnostics)
73
73
  ├── devops-developer (Application build/test)
74
- ├── claude-architect (System optimization)
74
+ ├── Gaia (System optimization)
75
75
  ├── Explore (Codebase exploration)
76
76
  └── Plan (Implementation planning)
77
77
  ```
@@ -153,7 +153,7 @@ See `CLAUDE.md` and `.claude/CHANGELOG.md` for contribution guidelines.
153
153
 
154
154
  - **Issues:** Create issue in GitHub repository
155
155
  - **Questions:** Contact Jorge Aguilar (jaguilar@aaxis.com)
156
- - **Documentation:** See `.claude/docs/*.md`
156
+ - **Documentation:** See `.claude/config/*.md`
157
157
 
158
158
  ---
159
159