@jaguilar87/gaia-ops 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/CHANGELOG.md +315 -0
  2. package/CLAUDE.md +154 -0
  3. package/LICENSE +21 -0
  4. package/README.md +221 -0
  5. package/agents/aws-troubleshooter.md +50 -0
  6. package/agents/claude-architect.md +821 -0
  7. package/agents/devops-developer.md +92 -0
  8. package/agents/gcp-troubleshooter.md +50 -0
  9. package/agents/gitops-operator.md +360 -0
  10. package/agents/terraform-architect.md +289 -0
  11. package/bin/gaia-init.js +620 -0
  12. package/commands/architect.md +97 -0
  13. package/commands/restore-session.md +87 -0
  14. package/commands/save-session.md +88 -0
  15. package/commands/session-status.md +61 -0
  16. package/commands/speckit.add-task.md +144 -0
  17. package/commands/speckit.analyze-task.md +65 -0
  18. package/commands/speckit.implement.md +96 -0
  19. package/commands/speckit.init.md +237 -0
  20. package/commands/speckit.plan.md +88 -0
  21. package/commands/speckit.specify.md +161 -0
  22. package/commands/speckit.tasks.md +188 -0
  23. package/config/AGENTS.md +162 -0
  24. package/config/agent-catalog.md +604 -0
  25. package/config/context-contracts.md +682 -0
  26. package/config/git-standards.md +674 -0
  27. package/config/git_standards.json +69 -0
  28. package/config/orchestration-workflow.md +735 -0
  29. package/hooks/__pycache__/post_tool_use.cpython-312.pyc +0 -0
  30. package/hooks/__pycache__/pre_kubectl_security.cpython-312.pyc +0 -0
  31. package/hooks/__pycache__/pre_tool_use.cpython-312.pyc +0 -0
  32. package/hooks/__pycache__/session_start.cpython-312.pyc +0 -0
  33. package/hooks/__pycache__/subagent_stop.cpython-312.pyc +0 -0
  34. package/hooks/post_tool_use.py +463 -0
  35. package/hooks/pre_kubectl_security.py +205 -0
  36. package/hooks/pre_tool_use.py +530 -0
  37. package/hooks/session_start.py +315 -0
  38. package/hooks/subagent_stop.py +549 -0
  39. package/index.js +92 -0
  40. package/package.json +59 -0
  41. package/speckit/README.en.md +648 -0
  42. package/speckit/README.md +353 -0
  43. package/speckit/governance.md +169 -0
  44. package/speckit/scripts/check-prerequisites.sh +194 -0
  45. package/speckit/scripts/common.sh +126 -0
  46. package/speckit/scripts/create-new-feature.sh +131 -0
  47. package/speckit/scripts/init.sh +42 -0
  48. package/speckit/scripts/setup-plan.sh +95 -0
  49. package/speckit/scripts/update-agent-context.sh +718 -0
  50. package/speckit/templates/adr-template.md +118 -0
  51. package/speckit/templates/agent-file-template.md +23 -0
  52. package/speckit/templates/plan-template.md +233 -0
  53. package/speckit/templates/spec-template.md +116 -0
  54. package/speckit/templates/tasks-template-bkp.md +136 -0
  55. package/speckit/templates/tasks-template.md +345 -0
  56. package/templates/CLAUDE.template.md +170 -0
  57. package/templates/code-examples/approval_gate_workflow.py +141 -0
  58. package/templates/code-examples/clarification_workflow.py +94 -0
  59. package/templates/code-examples/commit_validation.py +86 -0
  60. package/templates/project-context.template.json +126 -0
  61. package/templates/settings.template.json +307 -0
  62. package/tools/__pycache__/agent_router.cpython-312.pyc +0 -0
  63. package/tools/__pycache__/approval_gate.cpython-312.pyc +0 -0
  64. package/tools/__pycache__/clarify_engine.cpython-312.pyc +0 -0
  65. package/tools/__pycache__/clarify_patterns.cpython-312.pyc +0 -0
  66. package/tools/__pycache__/commit_validator.cpython-312.pyc +0 -0
  67. package/tools/__pycache__/context_section_reader.cpython-312.pyc +0 -0
  68. package/tools/__pycache__/routing_dashboard.cpython-312.pyc +0 -0
  69. package/tools/__pycache__/routing_feedback.cpython-312.pyc +0 -0
  70. package/tools/__pycache__/semantic_matcher.cpython-312.pyc +0 -0
  71. package/tools/__pycache__/task_manager.cpython-312.pyc +0 -0
  72. package/tools/agent_capabilities.json +231 -0
  73. package/tools/agent_invoker_helper.py +239 -0
  74. package/tools/agent_router.py +730 -0
  75. package/tools/approval_gate.py +318 -0
  76. package/tools/clarify_engine.py +511 -0
  77. package/tools/clarify_patterns.py +356 -0
  78. package/tools/commit_validator.py +338 -0
  79. package/tools/context_provider.py +181 -0
  80. package/tools/context_section_reader.py +301 -0
  81. package/tools/demo_clarify.py +104 -0
  82. package/tools/generate_embeddings.py +168 -0
  83. package/tools/quicktriage_aws_troubleshooter.sh +45 -0
  84. package/tools/quicktriage_devops_developer.sh +38 -0
  85. package/tools/quicktriage_gcp_troubleshooter.sh +51 -0
  86. package/tools/quicktriage_gitops_operator.sh +47 -0
  87. package/tools/quicktriage_terraform_architect.sh +40 -0
  88. package/tools/semantic_matcher.py +222 -0
  89. package/tools/task_manager.py +547 -0
  90. package/tools/task_manager_README.md +395 -0
  91. package/tools/task_manager_example.py +215 -0
@@ -0,0 +1,162 @@
1
+ # AGENTS.md
2
+
3
+ This repository uses **CLAUDE.md** as the primary orchestrator instruction file for Claude Code.
4
+
5
+ ## For Claude Code Users
6
+
7
+ See `CLAUDE.md` for complete orchestrator instructions.
8
+
9
+ **Quick links:**
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`
14
+
15
+ ---
16
+
17
+ ## For Other AI Coding Assistants
18
+
19
+ This repository is optimized for Claude Code with a specialized agent swarm. Other AI coding assistants may have limited functionality.
20
+
21
+ ### Cursor
22
+
23
+ If using Cursor, symlink to `.cursor/rules`:
24
+
25
+ ```bash
26
+ mkdir -p .cursor
27
+ ln -s ../CLAUDE.md .cursor/rules
28
+ ```
29
+
30
+ ### Cline
31
+
32
+ If using Cline, symlink to `.clinerules`:
33
+
34
+ ```bash
35
+ ln -s CLAUDE.md .clinerules
36
+ ```
37
+
38
+ ### GitHub Copilot
39
+
40
+ If using GitHub Copilot, symlink to `.github/copilot-instructions.md`:
41
+
42
+ ```bash
43
+ mkdir -p .github
44
+ ln -s ../CLAUDE.md .github/copilot-instructions.md
45
+ ```
46
+
47
+ ---
48
+
49
+ ## Compatibility Notes
50
+
51
+ **Note:** CLAUDE.md is specifically designed for Claude Code's agent orchestration system. Other AI coding assistants may not support:
52
+
53
+ - Agent routing via `Task` tool
54
+ - Context provisioning via `context_provider.py`
55
+ - Approval gates via `AskUserQuestion` tool
56
+ - Clarification engine via `clarify_engine.py`
57
+ - Multi-phase workflows (Planning → Approval → Realization)
58
+
59
+ If you're using a different AI coding assistant, treat CLAUDE.md as general guidance rather than executable instructions.
60
+
61
+ ---
62
+
63
+ ## System Architecture
64
+
65
+ This repository uses a **hierarchical agent system**:
66
+
67
+ ```
68
+ Claude Code (Orchestrator)
69
+ ├── terraform-architect (Infrastructure)
70
+ ├── gitops-operator (Kubernetes/Flux)
71
+ ├── gcp-troubleshooter (GCP diagnostics)
72
+ ├── aws-troubleshooter (AWS diagnostics)
73
+ ├── devops-developer (Application build/test)
74
+ ├── claude-architect (System optimization)
75
+ ├── Explore (Codebase exploration)
76
+ └── Plan (Implementation planning)
77
+ ```
78
+
79
+ **Orchestrator responsibilities:**
80
+ - Route user requests to specialist agents
81
+ - Provision context via `context_provider.py`
82
+ - Enforce approval gates for T3 operations
83
+ - Update system SSOTs (project-context.json, tasks.md)
84
+ - Handle simple operations directly (ad-hoc commits, queries)
85
+
86
+ **Agent responsibilities:**
87
+ - Execute complex workflows (infrastructure changes, deployments)
88
+ - Validate operations (terraform validate, kubectl dry-run)
89
+ - Verify in live environment (kubectl get, gcloud describe)
90
+ - Report status back to orchestrator
91
+
92
+ ---
93
+
94
+ ## Documentation Structure
95
+
96
+ ```
97
+ /home/jaguilar/aaxis/rnd/repositories/
98
+ ├── CLAUDE.md (core orchestrator instructions, 196 lines)
99
+ ├── AGENTS.md (this file, compatibility layer)
100
+ ├── .claude/
101
+ │ ├── CHANGELOG.md (version history)
102
+ │ ├── docs/
103
+ │ │ ├── orchestration-workflow.md (Phase 0-6 details)
104
+ │ │ ├── git-standards.md (commit standards)
105
+ │ │ ├── context-contracts.md (agent context requirements)
106
+ │ │ └── agent-catalog.md (agent capabilities)
107
+ │ ├── agents/ (agent definitions)
108
+ │ ├── tools/ (context_provider.py, agent_router.py, etc.)
109
+ │ ├── logs/ (audit trail, metrics)
110
+ │ └── tests/ (test suite)
111
+ └── .claude/project-context.json (SSOT for infrastructure state)
112
+ ```
113
+
114
+ ---
115
+
116
+ ## Quick Start for New Team Members
117
+
118
+ 1. **Read CLAUDE.md** (5 min) - Understand core principles and workflow
119
+ 2. **Review agent catalog** (10 min) - See available agents and capabilities
120
+ 3. **Check project context** (5 min) - Review `.claude/project-context.json` for current infrastructure state
121
+ 4. **Run sample workflow** (15 min) - Test orchestrator with a simple task
122
+
123
+ **Sample workflow:**
124
+
125
+ ```bash
126
+ # Start Claude Code
127
+ claude-code
128
+
129
+ # Ask orchestrator to route a task
130
+ > "Analiza el estado del cluster GKE"
131
+
132
+ # Orchestrator will:
133
+ # 1. Route to gcp-troubleshooter
134
+ # 2. Provision context via context_provider.py
135
+ # 3. Invoke agent with structured context
136
+ # 4. Return diagnostic report
137
+ ```
138
+
139
+ ---
140
+
141
+ ## Contributing
142
+
143
+ See `CLAUDE.md` and `.claude/CHANGELOG.md` for contribution guidelines.
144
+
145
+ **Key rules:**
146
+ - All commits MUST follow Conventional Commits (enforced by `commit_validator.py`)
147
+ - Changes to infrastructure/deployments require approval gate (Phase 4)
148
+ - Update SSOTs after realization (project-context.json, tasks.md)
149
+
150
+ ---
151
+
152
+ ## Support
153
+
154
+ - **Issues:** Create issue in GitHub repository
155
+ - **Questions:** Contact Jorge Aguilar (jaguilar@aaxis.com)
156
+ - **Documentation:** See `.claude/docs/*.md`
157
+
158
+ ---
159
+
160
+ ## License
161
+
162
+ Internal documentation for Aaxis RnD team. Not for external distribution.