sinapse-ai 7.7.11 → 8.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/.claude/CLAUDE.md +10 -10
  2. package/.claude/rules/agent-authority.md +7 -7
  3. package/.claude/rules/agent-memory-imports.md +3 -1
  4. package/.claude/rules/coderabbit-integration.md +1 -0
  5. package/.claude/rules/mandatory-delegation.md +10 -10
  6. package/.claude/rules/mcp-usage.md +1 -1
  7. package/.claude/rules/security-data-protection.md +2 -2
  8. package/.claude/rules/security-scanning.md +10 -0
  9. package/.claude/rules/tool-response-filtering.md +1 -0
  10. package/.sinapse-ai/data/entity-registry.yaml +826 -880
  11. package/.sinapse-ai/data/registry-update-log.jsonl +36 -0
  12. package/.sinapse-ai/data/rls-security-patterns.md +384 -0
  13. package/.sinapse-ai/data/sinapse-kb.md +1 -1
  14. package/.sinapse-ai/development/agents/analyst.md +2 -2
  15. package/.sinapse-ai/development/agents/product-lead/MEMORY.md +1 -1
  16. package/.sinapse-ai/development/agents/product-lead.md +4 -4
  17. package/.sinapse-ai/development/agents/project-lead.md +2 -2
  18. package/.sinapse-ai/development/agents/sprint-lead.md +3 -3
  19. package/.sinapse-ai/development/tasks/analyze-project-structure.md +3 -3
  20. package/.sinapse-ai/development/tasks/create-service.md +1 -1
  21. package/.sinapse-ai/development/tasks/create-worktree.md +1 -1
  22. package/.sinapse-ai/development/tasks/environment-bootstrap.md +1 -1
  23. package/.sinapse-ai/development/tasks/execute-epic-plan.md +5 -5
  24. package/.sinapse-ai/development/tasks/extract-patterns.md +1 -1
  25. package/.sinapse-ai/development/tasks/ids-governor.md +1 -1
  26. package/.sinapse-ai/development/tasks/init-project-status.md +1 -1
  27. package/.sinapse-ai/development/tasks/list-worktrees.md +1 -1
  28. package/.sinapse-ai/development/tasks/next.md +1 -1
  29. package/.sinapse-ai/development/tasks/patterns.md +1 -1
  30. package/.sinapse-ai/development/tasks/plan-create-context.md +1 -1
  31. package/.sinapse-ai/development/tasks/plan-create-implementation.md +1 -1
  32. package/.sinapse-ai/development/tasks/plan-execute-subtask.md +1 -1
  33. package/.sinapse-ai/development/tasks/qa-fix-issues.md +1 -1
  34. package/.sinapse-ai/development/tasks/remove-worktree.md +1 -1
  35. package/.sinapse-ai/development/tasks/setup-github.md +1 -1
  36. package/.sinapse-ai/development/tasks/setup-llm-routing.md +1 -1
  37. package/.sinapse-ai/development/tasks/setup-mcp-docker.md +1 -1
  38. package/.sinapse-ai/development/tasks/spec-assess-complexity.md +1 -1
  39. package/.sinapse-ai/development/tasks/spec-critique.md +1 -1
  40. package/.sinapse-ai/development/tasks/spec-gather-requirements.md +1 -1
  41. package/.sinapse-ai/development/tasks/spec-research-dependencies.md +1 -1
  42. package/.sinapse-ai/development/tasks/spec-write-spec.md +1 -1
  43. package/.sinapse-ai/development/tasks/story-checkpoint.md +1 -1
  44. package/.sinapse-ai/development/tasks/update-sinapse.md +1 -1
  45. package/.sinapse-ai/development/tasks/validate-tech-preset.md +1 -1
  46. package/.sinapse-ai/development/tasks/verify-subtask.md +1 -1
  47. package/.sinapse-ai/infrastructure/scripts/validate-codex-delegation.js +1 -1
  48. package/.sinapse-ai/install-manifest.yaml +78 -74
  49. package/README.md +341 -215
  50. package/bin/utils/staged-secret-scan.js +5 -0
  51. package/docs/architecture-overview.md +239 -0
  52. package/docs/community.md +2 -2
  53. package/docs/feature-process.md +162 -0
  54. package/docs/getting-started.md +115 -231
  55. package/docs/guides/agent-reference.md +203 -0
  56. package/docs/guides/{MEMORY-INTEGRATION.md → memory-integration.md} +2 -2
  57. package/docs/guides/{MEMORY-INTELLIGENCE-SYSTEM.md → memory-intelligence-system.md} +3 -3
  58. package/docs/guides/workflows-overview.md +282 -0
  59. package/docs/guiding-principles.md +188 -0
  60. package/docs/legal/license-clarification.md +120 -15
  61. package/docs/legal/privacy.md +93 -80
  62. package/docs/legal/terms.md +90 -103
  63. package/docs/{ORQX-PLAN.md → orqx-plan.md} +15 -15
  64. package/docs/pt/FEATURE_PROCESS.md +2 -2
  65. package/docs/pt/GUIDING-PRINCIPLES.md +2 -2
  66. package/docs/pt/community.md +2 -2
  67. package/docs/pt/roadmap.md +2 -2
  68. package/docs/pt/security.md +215 -79
  69. package/docs/roadmap.md +2 -2
  70. package/docs/security/{PR_SECURITY_CHECKLIST.md → pr-security-checklist.md} +1 -1
  71. package/docs/security.md +215 -79
  72. package/package.json +1 -1
  73. package/packages/installer/src/manifest-signature.js +194 -0
  74. package/squads/claude-code-mastery/agents/config-engineer.md +7 -7
  75. package/squads/claude-code-mastery/agents/hooks-architect.md +4 -4
  76. package/squads/claude-code-mastery/agents/mcp-integrator.md +6 -6
  77. package/squads/claude-code-mastery/agents/project-integrator.md +8 -8
  78. package/squads/claude-code-mastery/agents/roadmap-sentinel.md +7 -7
  79. package/squads/claude-code-mastery/agents/skill-craftsman.md +10 -10
  80. package/squads/claude-code-mastery/agents/swarm-orqx.md +4 -4
  81. package/squads/squad-brand/agents/brand-creative-engineer.md +1 -1
  82. package/squads/squad-brand/agents/brand-motion-vfx.md +1 -1
  83. package/squads/squad-brand/agents/brand-sonic-designer.md +1 -1
  84. package/squads/squad-brand/agents/brand-system-architect.md +2 -2
  85. package/docs/FEATURE_PROCESS.md +0 -93
  86. package/docs/GUIDING-PRINCIPLES.md +0 -95
  87. /package/docs/{CHANGELOG.md → changelog.md} +0 -0
  88. /package/docs/guides/{IDS-CONCEITOS-EXPLICADOS.md → ids-conceitos-explicados.md} +0 -0
  89. /package/docs/guides/{MEMORY-SYSTEM.md → memory-system.md} +0 -0
  90. /package/docs/security/{MANIFEST_SIGNING.md → manifest-signing.md} +0 -0
  91. /package/docs/{SQUAD-COMMANDS-REFERENCE.md → squad-commands-reference.md} +0 -0
@@ -1,311 +1,195 @@
1
- # Getting Started with SINAPSE
1
+ # Comecando com SINAPSE-AI
2
2
 
3
- > **EN** | [PT](./pt/getting-started.md) | [ES](./es/getting-started.md)
3
+ > Guia de onboarding profissional. Objetivo: **first-value em 10 minutos**.
4
4
 
5
5
  ---
6
6
 
7
- Welcome to SINAPSE. This guide is optimized for first-value in 10 minutes.
7
+ ## Criterio de Sucesso
8
8
 
9
- ## Table of Contents
9
+ Voce atingiu o "first-value" quando estas 3 condicoes forem verdadeiras:
10
10
 
11
- 1. [10-Minute Quick Path](#10-minute-quick-path)
12
- 2. [Installation](#installation)
13
- 3. [Your First Project](#your-first-project)
14
- 4. [Basic Commands](#basic-commands)
15
- 5. [IDE Compatibility](#ide-compatibility)
16
- 6. [Brownfield: Existing Projects](#brownfield-existing-projects)
17
- 7. [Advanced Path](#advanced-path)
18
- 8. [Troubleshooting](#troubleshooting)
19
- 9. [Next Steps](#next-steps)
11
+ 1. Um agente SINAPSE foi ativado
12
+ 2. O greeting completo foi exibido
13
+ 3. Um comando util foi executado (`*help` ou equivalente)
20
14
 
21
- ## 10-Minute Quick Path
15
+ **Regra:** complete as 3 condicoes em ate 10 minutos.
22
16
 
23
- Use this exact flow if you are new:
24
-
25
- ### Step 1: Install SINAPSE
26
-
27
- ```bash
28
- # New project
29
- npx sinapse-ai init my-first-project
30
- cd my-first-project
31
-
32
- # Existing project
33
- # cd existing-project
34
- # npx sinapse-ai install
35
- ```
36
-
37
- ### Step 2: Pick your IDE activation path
38
-
39
- - Claude Code: `/agent-name`
40
- - Gemini CLI: `/sinapse-menu` then `/sinapse-<agent>`
41
- - Codex CLI: `/skills` then `sinapse-<agent-id>`
42
- - Cursor/Copilot: follow constraints in `docs/ide-integration.md`
43
-
44
- ### Step 3: Validate first value
17
+ ---
45
18
 
46
- First value is achieved when all 3 conditions are true:
47
- 1. You activate one SINAPSE agent.
48
- 2. You receive a valid greeting/activation response.
49
- 3. You run one starter command (`*help` or equivalent) and get useful output.
19
+ ## Pre-requisitos
50
20
 
51
- PASS rule: complete all 3 conditions in <= 10 minutes.
21
+ | Requisito | Versao Minima | Recomendado |
22
+ |-----------|---------------|-------------|
23
+ | Node.js | >= 18.0.0 | v20+ |
24
+ | npm | >= 9.0.0 | Ultima estavel |
25
+ | Claude Code CLI | Ultima versao | — |
26
+ | Git | Qualquer | Ultima estavel |
52
27
 
53
- ## Installation
28
+ > **Codex CLI** tambem e suportado. Veja [IDE Integration](./ide-integration.md) para outras opcoes.
54
29
 
55
- ### Prerequisites
30
+ ---
56
31
 
57
- - **Node.js** version 18.0.0 or higher (v20+ recommended)
58
- - **npm** version 9.0.0 or higher
59
- - **Git** (optional, but recommended)
32
+ ## Instalacao (3 minutos)
60
33
 
61
- ### Quick Installation
34
+ ### Projeto Novo
62
35
 
63
36
  ```bash
64
- # Create a new project
65
- npx sinapse-ai init my-first-project
66
-
67
- # Navigate to your project
68
- cd my-first-project
69
-
70
- # Start using SINAPSE agents in your IDE
71
- # (see Step 2 above for IDE-specific activation)
37
+ npx sinapse-ai init meu-projeto
38
+ cd meu-projeto
72
39
  ```
73
40
 
74
- ### Installation Options
41
+ ### Projeto Existente
75
42
 
76
43
  ```bash
77
- # 1. Create new project with custom template
78
- npx sinapse-ai init my-project --template enterprise
79
-
80
- # 2. Install in existing project
81
- cd existing-project
44
+ cd meu-projeto-existente
82
45
  npx sinapse-ai install
83
-
84
- # 3. Force installation in non-empty directory
85
- npx sinapse-ai init my-project --force
86
-
87
- # 4. Skip dependency installation (manual install later)
88
- npx sinapse-ai init my-project --skip-install
89
46
  ```
90
47
 
91
- ## Your First Project
48
+ O wizard interativo vai configurar:
49
+ - **Idioma** (PT/EN)
50
+ - **LLM provider** (Claude, Gemini, Codex)
51
+ - **Squads** para instalar (escolha quais dominios ativar)
92
52
 
93
- ### Project Structure
53
+ A instalacao e **nao-destrutiva** — seus arquivos existentes nao sao sobrescritos.
94
54
 
95
- After installation, your project will include:
96
-
97
- ```
98
- my-first-project/
99
- ├── .sinapse-ai/ # SINAPSE framework core
100
- │ ├── core/ # Orchestration, memory, config
101
- │ ├── data/ # Knowledge base, entity registry
102
- │ ├── development/ # Agents, tasks, templates, scripts
103
- │ └── infrastructure/ # CI/CD templates, validation scripts
104
- ├── .claude/ # Claude Code integration (if enabled)
105
- ├── .codex/ # Codex CLI integration (if enabled)
106
- ├── .gemini/ # Gemini CLI integration (if enabled)
107
- ├── docs/ # Documentation
108
- │ └── stories/ # Development stories
109
- ├── packages/ # Shared packages
110
- ├── tests/ # Test suites
111
- └── package.json # Project dependencies
112
- ```
113
-
114
- ### Configuration
55
+ ---
115
56
 
116
- SINAPSE configuration lives in `.sinapse-ai/core/config/`. The installer handles initial setup. To verify your installation:
57
+ ## Verificacao (1 minuto)
117
58
 
118
59
  ```bash
119
60
  npx sinapse-ai doctor
120
61
  ```
121
62
 
122
- ## Basic Commands
123
-
124
- ### Agent Activation
125
-
126
- SINAPSE agents are activated through your IDE. Once activated, agents respond to commands prefixed with `*`:
63
+ Todos os checks devem passar (verde). Se houver warnings, execute:
127
64
 
128
65
  ```bash
129
- # Universal commands (work in any agent)
130
- *help # Show available commands for this agent
131
- *guide # Show detailed usage guide
132
- *session-info # Display current session details
133
- *exit # Exit agent mode
134
-
135
- # Agent-specific examples
136
- @developer *help # Developer agent commands
137
- @quality-gate *review STORY-42 # QA agent reviews a story
138
- @project-lead *create-epic # PM agent creates an epic
139
- @sprint-lead *draft # Scrum Master drafts a story
66
+ npx sinapse-ai doctor --fix
140
67
  ```
141
68
 
142
- ### Available Agents
69
+ ---
143
70
 
144
- | Agent | Name | Focus |
145
- | --- | --- | --- |
146
- | `@dev` | Dex | Code implementation, bug fixes, refactoring |
147
- | `@qa` | Quinn | Testing, quality gates, code review |
148
- | `@architect` | Aria | System design, technical decisions |
149
- | `@pm` | Bob | PRDs, strategy, roadmap |
150
- | `@po` | Pax | Backlog, story validation, prioritization |
151
- | `@sm` | River | Story creation, sprint planning |
152
- | `@analyst` | Alex | Research, competitive analysis |
153
- | `@data-engineer` | Dara | Database design, migrations |
154
- | `@ux-design-expert` | Uma | UI/UX design, accessibility |
155
- | `@devops` | Gage | Git operations, CI/CD, deployments |
71
+ ## Primeiro Agente (3 minutos)
156
72
 
157
- ### Typical Workflow
73
+ No Claude Code, digite:
158
74
 
159
75
  ```
160
- 1. @project-lead creates a PRD → *create-epic
161
- 2. @sprint-lead drafts stories → *draft
162
- 3. @product-lead validates stories → *validate-story-draft
163
- 4. @developer implements → (works from story file)
164
- 5. @quality-gate reviews → *review STORY-ID
165
- 6. @devops pushes → *push (only agent with push authority)
166
- 7. @product-lead closes story → *close-story STORY-ID
76
+ @developer
167
77
  ```
168
78
 
169
- ## IDE Compatibility
170
-
171
- Not all IDEs support SINAPSE features equally. See the full comparison at [`docs/ide-integration.md`](./ide-integration.md).
172
-
173
- Summary:
174
-
175
- | IDE/CLI | Overall Status | How to Activate |
176
- | --- | --- | --- |
177
- | Claude Code | Works | `/agent-name` commands |
178
- | Gemini CLI | Works | `/sinapse-menu` then `/sinapse-<agent>` |
179
- | Codex CLI | Limited | `/skills` then `sinapse-<agent-id>` |
180
- | Cursor | Limited | `@agent` + synced rules |
181
- | GitHub Copilot | Limited | chat modes + repo instructions |
182
-
183
-
184
- - **Works**: fully recommended for new users.
185
- - **Limited**: usable with documented workarounds.
79
+ O agente **Pixel** vai se apresentar com greeting completo, mostrando seu papel, comandos disponiveis e o estado do projeto.
186
80
 
187
- ## Brownfield: Existing Projects
81
+ ### Comandos Essenciais
188
82
 
189
- Already have a codebase? SINAPSE handles brownfield projects with a dedicated workflow.
83
+ | Comando | O que faz |
84
+ |---------|-----------|
85
+ | `*help` | Lista todos os comandos do agente ativo |
86
+ | `*guide` | Guia detalhado de uso |
87
+ | `*session-info` | Informacoes da sessao atual |
88
+ | `*exit` | Sair do modo agente |
190
89
 
191
- ### Quick Brownfield Setup
192
-
193
- ```bash
194
- # Navigate to your existing project
195
- cd my-existing-project
90
+ ---
196
91
 
197
- # Install SINAPSE (non-destructive, preserves your config)
198
- npx sinapse-ai install
92
+ ## Primeiro Workflow (3 minutos)
199
93
 
200
- # Run doctor to verify compatibility
201
- npx sinapse-ai doctor
94
+ ```
95
+ @sprint-lead
96
+ *draft
202
97
  ```
203
98
 
204
- ### What Happens on First Run
205
-
206
- When you first activate an SINAPSE agent in an existing project:
207
-
208
- 1. **Detection**: SINAPSE detects code but no SINAPSE docs
209
- 2. **Offer**: "I can analyze your codebase. This takes 4-8 hours."
210
- 3. **Discovery**: Multi-agent technical debt assessment (optional)
211
- 4. **Output**: System architecture docs + technical debt report
212
-
213
- ### Brownfield Workflow Options
214
-
215
- | Your Situation | Recommended Workflow |
216
- |----------------|---------------------|
217
- | Add major feature to existing project | `@project-lead → *create-doc brownfield-prd` |
218
- | Audit legacy codebase | `brownfield-discovery.yaml` (full workflow) |
219
- | Quick enhancement | `@project-lead → *brownfield-create-epic` |
220
- | Single bug fix | `@project-lead → *brownfield-create-story` |
99
+ O agente **Sync** vai guiar a criacao da sua primeira story de desenvolvimento. Stories sao o ponto de partida de todo trabalho no SINAPSE — elas definem o que sera implementado, com criterios de aceite claros.
221
100
 
222
- ### Safety Guarantees
101
+ ### Fluxo Completo
223
102
 
224
- - **Non-destructive**: SINAPSE creates files, never overwrites existing
225
- - **Rollback**: `git checkout HEAD~1 -- .` restores pre-SINAPSE state
226
- - **Config preservation**: Your `.eslintrc`, `tsconfig.json`, etc. stay intact
103
+ ```
104
+ @sprint-lead *draft --> Cria a story
105
+ @product-lead *validate --> Valida criterios
106
+ @developer --> Implementa
107
+ @quality-gate *review --> Verifica qualidade
108
+ @devops *push --> Envia para o repositorio
109
+ ```
227
110
 
228
- ### Resources
111
+ ---
229
112
 
230
- - **[Working in the Brownfield Guide](.sinapse-ai/working-in-the-brownfield.md)** - Complete brownfield documentation
231
- - **[Compatibility Checklist](.sinapse-ai/development/checklists/brownfield-compatibility-checklist.md)** - Pre/post migration checks
232
- - **[Risk Report Template](.sinapse-ai/product/templates/brownfield-risk-report-tmpl.yaml)** - Phase-by-phase risk assessment
113
+ ## Agentes Disponiveis
114
+
115
+ | Ativacao | Persona | Foco |
116
+ |----------|---------|------|
117
+ | `@developer` | Pixel | Implementacao de codigo, bug fixes, refactoring |
118
+ | `@quality-gate` | Quinn | Testes, quality gates, code review |
119
+ | `@architect` | Aria | Design de sistema, decisoes tecnicas |
120
+ | `@project-lead` | Morgan | PRDs, estrategia, roadmap |
121
+ | `@product-lead` | Pax | Backlog, validacao de stories, priorizacao |
122
+ | `@sprint-lead` | Sync | Criacao de stories, planejamento de sprint |
123
+ | `@analyst` | Alex | Pesquisa, analise competitiva |
124
+ | `@data-engineer` | Dara | Database design, migracoes |
125
+ | `@ux-design-expert` | Uma | UI/UX design, acessibilidade |
126
+ | `@devops` | Gage | Git operations, CI/CD, deploys |
233
127
 
234
128
  ---
235
129
 
236
- ## Advanced Path
237
-
238
- For experienced users who want to go deeper:
130
+ ## Greenfield vs Brownfield
239
131
 
240
- ### Sync and Validation
132
+ | Cenario | Comando | O que acontece |
133
+ |---------|---------|----------------|
134
+ | **Projeto novo** | `npx sinapse-ai init meu-projeto` | Estrutura completa criada do zero |
135
+ | **Projeto existente** | `npx sinapse-ai install` | Installer detecta automaticamente e preserva seus arquivos |
241
136
 
242
- ```bash
243
- # Sync agents to all configured IDEs
244
- npm run sync:ide
137
+ Para projetos existentes, o SINAPSE oferece um workflow de **Brownfield Discovery** que analisa a codebase e gera documentacao de arquitetura e divida tecnica. Ative com:
245
138
 
246
- # Validate cross-IDE parity
247
- npm run validate:parity
248
-
249
- # Run all quality checks
250
- npm run lint && npm run typecheck && npm test
139
+ ```
140
+ @project-lead *brownfield-create-epic
251
141
  ```
252
142
 
253
- ### Documentation-First Development
254
-
255
- All SINAPSE development follows the documentation pipeline automatically. Stories live in `docs/stories/`. Each story contains:
256
- - Acceptance criteria with checkboxes
257
- - Tasks mapped to specific ACs
258
- - CodeRabbit integration for automated review
259
- - Quality gate assignments
260
-
261
- See the [User Guide](./guides/user-guide.md) for the complete workflow.
262
-
263
- ### Squad Expansions
264
-
265
- Squads extend SINAPSE beyond software development into any domain. See [Squads Guide](./guides/squads-guide.md).
143
+ ---
266
144
 
267
145
  ## Troubleshooting
268
146
 
269
- ### Installation Issues
147
+ | Problema | Solucao |
148
+ |----------|---------|
149
+ | `sinapse-ai: command not found` | Execute `npx sinapse-ai install` novamente |
150
+ | Doctor mostra warnings | Execute `npx sinapse-ai doctor --fix` |
151
+ | Agente nao ativa | Verifique se `.sinapse-ai/` existe no projeto |
152
+ | Hooks nao funcionam | Verifique `.claude/settings.json` |
153
+ | Versao do Node incompativel | Atualize para Node.js >= 18 (`node --version`) |
154
+ | Erro no wizard de instalacao | Tente `npx sinapse-ai install --force` |
155
+
156
+ ### Diagnostico Avancado
270
157
 
271
158
  ```bash
272
- # Check Node.js version
273
- node --version # Should be >= 18.0.0
159
+ # Verificar versao do Node
160
+ node --version
274
161
 
275
- # Run diagnostics
162
+ # Verificar instalacao
276
163
  npx sinapse-ai doctor
277
164
 
278
- # Auto-fix common issues
165
+ # Corrigir problemas automaticamente
279
166
  npx sinapse-ai doctor --fix
167
+
168
+ # Informacoes do sistema
169
+ npx sinapse-ai info
280
170
  ```
281
171
 
282
- ### Agent Not Responding
172
+ ---
283
173
 
284
- 1. Verify your IDE is supported (see [IDE Compatibility](#ide-compatibility)).
285
- 2. Run `npm run sync:ide` to refresh agent files.
286
- 3. Restart your IDE/CLI session.
174
+ ## Proximos Passos
287
175
 
288
- ### Sync Issues
176
+ - **Explorar os squads** — `@sinapse-orqx *status` mostra todos os dominios disponiveis
177
+ - **Entender os workflows** — Leia `docs/guides/workflows-overview.md`
178
+ - **Integracao com IDEs** — Veja [IDE Integration](./ide-integration.md) para Claude Code, Gemini CLI, Codex CLI, Cursor e GitHub Copilot
179
+ - **Contribuir** — Leia [CONTRIBUTING.md](../CONTRIBUTING.md)
289
180
 
290
- ```bash
291
- # Preview what would change
292
- npm run sync:ide -- --dry-run
293
-
294
- # Force re-sync
295
- npm run sync:ide
181
+ ---
296
182
 
297
- # Validate after sync
298
- npm run validate:parity
299
- ```
183
+ ## Validacao Final
300
184
 
301
- ## Next Steps
185
+ | Criterio | Status |
186
+ |----------|--------|
187
+ | Agente ativou | PASS / FAIL |
188
+ | Greeting exibiu | PASS / FAIL |
189
+ | `*help` mostrou comandos | PASS / FAIL |
302
190
 
303
- - **[User Guide](./guides/user-guide.md)** - Complete workflow from planning to delivery
304
- - **[IDE Integration](./ide-integration.md)** - Detailed setup per IDE
305
- - **[Architecture](./architecture/ARCHITECTURE-INDEX.md)** - Technical deep dive
306
- - **[Squads Guide](./guides/squads-guide.md)** - Extend SINAPSE to any domain
307
- - **[Troubleshooting](./troubleshooting.md)** - Common issues and solutions
191
+ Se algum criterio falhou, abra uma [issue](https://github.com/caioimori/sinapse-ai/issues/new?template=1-bug-report.yml).
308
192
 
309
193
  ---
310
194
 
311
- _SINAPSE Getting Started Guide v4.2.11_
195
+ _SINAPSE Getting Started Guide v5.0_
@@ -0,0 +1,203 @@
1
+ # Referencia de Agentes
2
+
3
+ > Indice navegavel de todos os agentes do ecossistema SINAPSE-AI.
4
+
5
+ ---
6
+
7
+ ## 12 Agentes Core
8
+
9
+ Os agentes core cobrem o ciclo completo de desenvolvimento de software.
10
+
11
+ | ID | Persona | Papel | Comandos Principais |
12
+ |----|---------|-------|---------------------|
13
+ | `@developer` | Pixel | Implementacao de codigo | `*develop`, `*task`, `*improve-code-quality` |
14
+ | `@quality-gate` | Litmus | Testes e qualidade | `*qa-gate`, `*qa-loop`, `*review` |
15
+ | `@architect` | Stratum | Arquitetura e design tecnico | `*create-doc architecture`, `*assess-complexity` |
16
+ | `@project-lead` | Beacon | Product Management e epics | `*create-epic`, `*execute-epic`, `*spec-pipeline` |
17
+ | `@product-lead` | Axis | Product Owner, stories e backlog | `*validate-story-draft`, `*create-story`, `*backlog` |
18
+ | `@sprint-lead` | Sync | Scrum Master e criacao de stories | `*draft`, `*create-story`, `*sprint-plan` |
19
+ | `@analyst` | Scope | Pesquisa e analise | `*research`, `*analyze`, `*report` |
20
+ | `@data-engineer` | Tensor | Database e engenharia de dados | `*create-migration`, `*schema-design`, `*db-audit` |
21
+ | `@ux-design-expert` | Mosaic | UX/UI design | `*create-wireframe`, `*ux-audit`, `*design-system` |
22
+ | `@devops` | Pipeline | CI/CD, git push (EXCLUSIVO) | `*push`, `*release`, `*setup-ci` |
23
+ | `@sinapse-orqx` | Imperator | Orquestrador principal | `*diagnose`, `*route`, `*orchestrate` |
24
+ | `@squad-creator` | Loom | Criacao de novos squads | `*create-squad`, `*scaffold` |
25
+
26
+ ---
27
+
28
+ ## 18 Squads
29
+
30
+ Squads sao agrupamentos tematicos de agentes especialistas. Cada squad tem um orquestrador (*-orqx) que coordena o trabalho interno.
31
+
32
+ | Squad | Agentes | Dominio | Orquestrador |
33
+ |-------|---------|---------|-------------|
34
+ | squad-animations | Especialistas em motion | Animacoes web, micro-interacoes | @animations-orqx (Kinetic) |
35
+ | squad-brand | Especialistas em marca | Branding, identidade visual | @brand-orqx (Meridian) |
36
+ | squad-claude | Especialistas Claude Code | Mastery de Claude Code | @claude-orqx (Nucleus) |
37
+ | squad-cloning | Especialistas em clonagem | Clonagem cognitiva de personas | @cloning-orqx (Helix) |
38
+ | squad-commercial | Especialistas em vendas | Vendas, CRM, pipeline | @commercial-orqx (Pipeline) |
39
+ | squad-content | Especialistas em conteudo | Editorial, estrategia de conteudo | @content-orqx |
40
+ | squad-copy | Especialistas em copy | Copywriting, persuasao | @copy-orqx (Quill) |
41
+ | squad-council | Conselheiros estrategicos | Conselho estrategico, decisoes | @council-orqx (Zenith) |
42
+ | squad-courses | Especialistas em cursos | Cursos, workshops, educacao | @courses-orqx (Syllabus) |
43
+ | squad-cybersecurity | Especialistas em seguranca | Seguranca, compliance, LGPD | @cyber-orqx (Fortress) |
44
+ | squad-design | Especialistas em design | UX/UI, design system | @design-orqx (Nexus) |
45
+ | squad-finance | Especialistas financeiros | Financeiro, pricing, valuation | @finance-orqx (Ledger) |
46
+ | squad-growth | Especialistas em growth | SEO, analytics, growth hacking | @growth-orqx (Catalyst) |
47
+ | squad-paidmedia | Especialistas em midia paga | Ads, campanhas, ROAS | @paidmedia-orqx (Apex) |
48
+ | squad-product | Especialistas em produto | Roadmap, discovery, metricas | @product-orqx (Vector) |
49
+ | squad-research | Especialistas em pesquisa | Pesquisa, inteligencia competitiva | @research-orqx (Prism) |
50
+ | squad-storytelling | Especialistas em narrativa | Storytelling, pitch, apresentacoes | @storytelling-orqx (Arc) |
51
+ | claude-code-mastery | Especialistas avancados | Tecnicas avancadas de Claude Code | (integrado ao squad-claude) |
52
+
53
+ **Total: 175 agentes** (12 core + 163 em squads)
54
+
55
+ ---
56
+
57
+ ## Como Ativar Agentes
58
+
59
+ ### Metodo 1: Comando direto
60
+
61
+ ```
62
+ @developer
63
+ ```
64
+
65
+ Digite `@` seguido do ID do agente. O SYNAPSE Engine carrega a persona, dependencias e contexto automaticamente.
66
+
67
+ ### Metodo 2: Comando completo
68
+
69
+ ```
70
+ /SINAPSE:agents:developer
71
+ ```
72
+
73
+ Formato completo com namespace. Util em ambientes onde `@` tem outro significado.
74
+
75
+ ### O que acontece na ativacao
76
+
77
+ 1. SYNAPSE Engine detecta o comando
78
+ 2. Pipeline de 8 camadas (L0-L7) carrega contexto
79
+ 3. Greeting personalizado e exibido
80
+ 4. Agente aguarda seu comando (HALT)
81
+
82
+ **O agente NAO executa acoes automaticamente.** Ele apresenta o greeting e espera.
83
+
84
+ ---
85
+
86
+ ## Como Usar Comandos
87
+
88
+ Todos os comandos de agentes usam o prefixo `*`:
89
+
90
+ | Comando | Funcao | Exemplo |
91
+ |---------|--------|---------|
92
+ | `*help` | Lista comandos disponiveis do agente ativo | `*help` |
93
+ | `*create-story` | Cria uma story de desenvolvimento | `*create-story` |
94
+ | `*task {nome}` | Executa uma task especifica | `*task develop-story` |
95
+ | `*exit` | Sai do modo agente atual | `*exit` |
96
+
97
+ ### Exemplos de Uso
98
+
99
+ ```
100
+ @developer --> ativa Pixel (developer)
101
+ *help --> lista comandos do Pixel
102
+ *develop --> inicia desenvolvimento da story
103
+ *task fix-qa-issues --> executa task de correcao de QA
104
+ ```
105
+
106
+ ```
107
+ @quality-gate --> ativa Litmus (QA)
108
+ *qa-gate --> executa quality gate na story
109
+ *qa-loop 8.15 --> inicia loop de QA para story 8.15
110
+ ```
111
+
112
+ ```
113
+ @sprint-lead --> ativa Sync (Scrum Master)
114
+ *draft --> cria rascunho de nova story
115
+ *create-story --> cria story completa
116
+ ```
117
+
118
+ ---
119
+
120
+ ## Protocolo de Handoff entre Agentes
121
+
122
+ Quando voce troca de agente (`@developer` → `@quality-gate`), o SINAPSE executa um protocolo de compactacao:
123
+
124
+ 1. **Agente anterior** gera um artefato de handoff (~379 tokens) com:
125
+ - Story ativa e status
126
+ - Decisoes tomadas
127
+ - Arquivos modificados
128
+ - Blockers ativos
129
+ - Proxima acao sugerida
130
+
131
+ 2. **Agente novo** recebe:
132
+ - Sua propria persona completa
133
+ - Artefato de handoff do agente anterior
134
+ - NAO recebe a persona completa do agente anterior
135
+
136
+ **Resultado:** economia de 33-57% de contexto por troca de agente.
137
+
138
+ Limite: maximo 3 handoffs retidos. O mais antigo e descartado no 4o switch.
139
+
140
+ ---
141
+
142
+ ## Criando Agentes Customizados
143
+
144
+ O SINAPSE permite criar novos squads com agentes especializados usando @squad-creator (Loom):
145
+
146
+ ```
147
+ @squad-creator
148
+ *create-squad
149
+ ```
150
+
151
+ Loom guia voce pelo processo:
152
+
153
+ 1. Define o dominio do squad
154
+ 2. Identifica especialistas necessarios
155
+ 3. Cria a estrutura de arquivos (orquestrador + especialistas)
156
+ 4. Registra no ecossistema
157
+
158
+ **Localizacao dos squads:** `squads/squad-{nome}/`
159
+
160
+ Cada squad segue a mesma estrutura:
161
+ ```
162
+ squads/squad-{nome}/
163
+ squad.yaml # Configuracao do squad
164
+ agents/ # Definicoes dos agentes
165
+ tasks/ # Tasks especificas do dominio
166
+ templates/ # Templates do dominio
167
+ ```
168
+
169
+ ---
170
+
171
+ ## Mapeamento Agente → Codebase
172
+
173
+ Cada agente core tem diretorios primarios de atuacao:
174
+
175
+ | Agente | Diretorios Principais |
176
+ |--------|----------------------|
177
+ | @developer (Pixel) | `packages/`, `.sinapse-ai/core/`, `bin/` |
178
+ | @architect (Stratum) | `docs/architecture/`, system design |
179
+ | @data-engineer (Tensor) | `packages/db/`, migrations, schema |
180
+ | @quality-gate (Litmus) | `tests/`, `*.test.js`, quality gates |
181
+ | @product-lead (Axis) | Stories, epics, requirements |
182
+ | @devops (Pipeline) | `.github/`, CI/CD, git operations |
183
+
184
+ ---
185
+
186
+ ## Autoridade Exclusiva
187
+
188
+ Cada agente tem operacoes que SOMENTE ele pode executar:
189
+
190
+ | Operacao | Agente Exclusivo | Outros Agentes |
191
+ |----------|-----------------|----------------|
192
+ | `git push` | @devops (Pipeline) | BLOQUEADO |
193
+ | Criar PR | @devops (Pipeline) | BLOQUEADO |
194
+ | Criar story | @sprint-lead (Sync) | BLOQUEADO |
195
+ | Validar story | @product-lead (Axis) | BLOQUEADO |
196
+ | Decisoes de arquitetura | @architect (Stratum) | BLOQUEADO |
197
+ | Verdicts de qualidade | @quality-gate (Litmus) | BLOQUEADO |
198
+
199
+ Violacoes de autoridade sao bloqueadas via hooks (Constitution Art. II).
200
+
201
+ ---
202
+
203
+ _Veja tambem: [Workflows Overview](workflows-overview.md) | [Architecture Overview](../architecture-overview.md) | [Guiding Principles](../guiding-principles.md)_
@@ -464,8 +464,8 @@ npm test -- tests/integration/pipeline-memory-integration.test.js --coverage
464
464
 
465
465
  ## Related Documentation
466
466
 
467
- - **[Memory System (Current State)](MEMORY-SYSTEM.md)** - Overview of memory architecture
468
- - **[Memory Intelligence System (Target State)](MEMORY-INTELLIGENCE-SYSTEM.md)** - Full MIS vision
467
+ - **[Memory System (Current State)](memory-system.md)** - Overview of memory architecture
468
+ - **[Memory Intelligence System (Target State)](memory-intelligence-system.md)** - Full MIS vision
469
469
  - **Story MIS-3:** Session Digest (PreCompact Hook) - Memory capture
470
470
  - **Story MIS-4:** Progressive Memory Retrieval - Retrieval API
471
471
  - **Story MIS-6:** Pipeline Integration - This guide
@@ -5,10 +5,10 @@
5
5
  **Autor:** @architect (Aria)
6
6
  **Epic:** [MIS — Memory Intelligence System](../stories/epics/epic-memory-intelligence-system/EPIC-MIS-INDEX.md)
7
7
  **Baseado Em:** [MIS-1 Investigation](../stories/epics/epic-memory-intelligence-system/story-mis-1-investigation.md)
8
- **Documento Atual:** [MEMORY-SYSTEM.md](MEMORY-SYSTEM.md) (estado atual v1.0)
8
+ **Documento Atual:** [memory-system.md](memory-system.md) (estado atual v1.0)
9
9
  **Tags:** memory, intelligence, session-digest, progressive-retrieval, self-learning, attention-routing, core-pro-split
10
10
 
11
- > **NOTA:** Este documento descreve o **estado futuro** do sistema de memoria apos todas as 7 stories do Epic MIS serem implementadas. Para o estado atual, consulte [MEMORY-SYSTEM.md](MEMORY-SYSTEM.md).
11
+ > **NOTA:** Este documento descreve o **estado futuro** do sistema de memoria apos todas as 7 stories do Epic MIS serem implementadas. Para o estado atual, consulte [memory-system.md](memory-system.md).
12
12
 
13
13
  > **ARQUITETURA:** O MIS segue o modelo **Open Core** do SINAPSE. Toda a inteligencia de memoria reside no repositorio privado `sinapse-pro` (submodule `pro/`). O `sinapse-ai` (open source) fornece apenas extension points e funciona 100% sem memoria inteligente — exatamente como hoje.
14
14
 
@@ -1058,7 +1058,7 @@ gantt
1058
1058
 
1059
1059
  | Recurso | Caminho |
1060
1060
  |---------|---------|
1061
- | Estado Atual (v1.0) | [MEMORY-SYSTEM.md](MEMORY-SYSTEM.md) |
1061
+ | Estado Atual (v1.0) | [memory-system.md](memory-system.md) |
1062
1062
  | Epic MIS Index | [EPIC-MIS-INDEX.md](../stories/epics/epic-memory-intelligence-system/EPIC-MIS-INDEX.md) |
1063
1063
  | MIS-1 Investigation | [story-mis-1-investigation.md](../stories/epics/epic-memory-intelligence-system/story-mis-1-investigation.md) |
1064
1064
  | MIS-2 Dead Code Cleanup | [story-mis-2-dead-code-cleanup.md](../stories/epics/epic-memory-intelligence-system/story-mis-2-dead-code-cleanup.md) |