bps-kit 1.3.1 → 1.4.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/.bps-kit.json +2 -2
- package/CHANGELOG.md +27 -0
- package/README.md +2 -1
- package/bin/convert_to_vscode.js +17 -0
- package/package.json +2 -2
- package/templates/agents-template/ARCHITECTURE.md +32 -39
- package/templates/agents-template/agents/debugger.md +2 -0
- package/templates/agents-template/rules/AGENTS.md +81 -0
- package/templates/agents-template/rules/GEMINI.md +7 -26
- package/templates/agents-template/workflows/orchestrate.md +12 -2
- package/templates/agents-template/workflows/setup-brain.md +5 -28
package/.bps-kit.json
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,33 @@ Todas as mudanças notáveis neste projeto serão documentadas neste arqui
|
|
|
5
5
|
O formato é baseado no [Keep a Changelog](https://keepachangelog.com/pt-BR/1.0.0/),
|
|
6
6
|
e este projeto adere ao [Versionamento Semântico](https://semver.org/lang/pt-BR/).
|
|
7
7
|
|
|
8
|
+
## [1.4.1] - 2026-03-11
|
|
9
|
+
### Corrigido
|
|
10
|
+
- **`automation-specialist.md`**: Arquivo faltando em `src/agents/` — criado e sincronizado com `templates/`.
|
|
11
|
+
- **`debugger.md`**: Frontmatter incompleto em `src/` e `templates/` — adicionados campos `tools` e `model: inherit` faltantes.
|
|
12
|
+
- **`frontend-specialist.md`**: Dois skills (`design-md`, `enhance-prompt`) faltando em `src/` — sincronizado com template.
|
|
13
|
+
- **`setup-brain.md`** em `src/`: Passo 6 ainda continha a versão antiga (editava GEMINI.md) — sincronizado com a versão corrigida do template.
|
|
14
|
+
- **`AGENTS.md`**: Coluna "Skills (frontmatter)" corrigida para 20/22 agentes — agora reflete exatamente o frontmatter `skills:` real de cada agente (removido `clean-code` genérico, adicionados skills específicos por domínio).
|
|
15
|
+
- **`orchestrate.md`**: Tabela de agentes listava apenas 16 agentes — atualizada para todos os 22, incluindo `qa-automation-engineer`, `site-builder`, `automation-specialist`, `code-archaeologist`, `product-manager`, `product-owner`. Checklist de domínios expandida com 4 novos domínios.
|
|
16
|
+
- **`ARCHITECTURE.md`**: Corrigidas contagens (20→22 agentes, 12→15 workflows), tabela de agentes atualizada com skills reais, workflows `/automate`, `/build-site` e `/recall` adicionados, Quick Reference atualizado.
|
|
17
|
+
- **`copy_templates.js`**: Adicionado step de cópia do `AGENTS.md` ao pipeline (com fallback de aviso). `NORMAL_SKILLS` expandida com `design-md`, `enhance-prompt`, `react-components` e 7 skills `n8n-*`. `EXTRA_SKILLS` expandida com `stitch-loop`.
|
|
18
|
+
- **`.agents/rules/AGENTS.md`**: Criado como fonte para o pipeline `copy_templates.js`.
|
|
19
|
+
|
|
20
|
+
## [1.4.0] - 2026-03-11
|
|
21
|
+
### Adicionado
|
|
22
|
+
- **AGENTS.md**: Novo arquivo de regras dedicado ao routing de agentes, extraído do `GEMINI.md`. Contém a tabela Keyword→Agent completa com 22 agentes mapeados, regras de boundary enforcement e file type ownership. Distribuído automaticamente em `.agents/rules/AGENTS.md` (Antigravity) e `.github/AGENTS.md` (VS Code Copilot via `--vscode`).
|
|
23
|
+
- **`convert_to_vscode.js`**: Suporte nativo ao `AGENTS.md` — o arquivo é convertido e copiado para `.github/AGENTS.md` com os mesmos path replacements do `GEMINI.md` (skills, vault, agents, scripts, frontmatter trigger).
|
|
24
|
+
|
|
25
|
+
### Corrigido
|
|
26
|
+
- **GEMINI.md**: 5 causas raiz que forçavam `Agent: orchestrator | Skill: none` como default foram eliminadas:
|
|
27
|
+
- `Auto-Selection Protocol` genérico substituído por referência à tabela concreta do `AGENTS.md`.
|
|
28
|
+
- Step 2 do checklist aponta explicitamente para `AGENTS.md` com instrução `NUNCA default orchestrator`.
|
|
29
|
+
- `PRE-FLIGHT OBRIGATÓRIO` reposicionado para pós-roteamento (passos 1-7) com revalidação anti-orchestrator.
|
|
30
|
+
- Step 5 agora carrega skills do frontmatter `skills:` do agente além do Intent Map.
|
|
31
|
+
- Gemini Mode `edit` não mais hardcoded para `orchestrator` — redireciona para Keyword→Agent table.
|
|
32
|
+
- Seção `Core Rule — Skills First` redundante removida (liberando espaço).
|
|
33
|
+
- `GEMINI.md` reduzido de 279 → 182 linhas (−35%) sem perda de informação.
|
|
34
|
+
|
|
8
35
|
## [1.2.0] - 2026-03-09
|
|
9
36
|
### Adicionado
|
|
10
37
|
- Novo template `ARCHITECTURE.md` distribuído junto ao kit, mapeando os 20 agentes com suas skills, skills organizadas por tier (basic/normal/extra), 12 workflows e scripts de validação disponíveis. Referenciado obrigatoriamente pelo `GEMINI.md` no startup da sessão.
|
package/README.md
CHANGED
|
@@ -43,7 +43,8 @@ npx bps-kit@latest --upgrade
|
|
|
43
43
|
Se você adicionou a flag `--vscode`, a arquitetura compilada será organicamente moldada para as regras da nuvem do GitHub (`.github/`):
|
|
44
44
|
- O manifesto base e as Workflows irão habitar o `.github/copilot-instructions.md`.
|
|
45
45
|
- As Skills ativas receberão glob patterns específicos (`applyTo: "**/*"`) protegendo seu ciclo de vida.
|
|
46
|
-
- As
|
|
46
|
+
- As 22 Personas são mapeadas individualmente em `.github/agents/*.agent.md` — com frontmatter Copilot nativo.
|
|
47
|
+
- O manifesto de routing de agentes (Keyword→Agent) é exportado para `.github/AGENTS.md`.
|
|
47
48
|
- A gigantesca Vault contendo +1000 skills inativas será armazenada inteligentemente em isolamento (`.copilot-vault/`), salvando permanentemente seu limite de Chat no VS Code de travar.
|
|
48
49
|
|
|
49
50
|
### 🪄 Autocalibragem de Base de Código (Workflow Analyzer)
|
package/bin/convert_to_vscode.js
CHANGED
|
@@ -26,6 +26,7 @@ async function convertToVsCode(destAgents, destBase) {
|
|
|
26
26
|
content = content.replace(/\.?\/?\.agents\/skills\//g, '.copilot-skills/');
|
|
27
27
|
content = content.replace(/\.?\/?\.agents\/vault\//g, '.copilot-vault/');
|
|
28
28
|
content = content.replace(/\.?\/?\.agents\/rules\/GEMINI\.md/g, '.github/copilot-instructions.md');
|
|
29
|
+
content = content.replace(/\.?\/?\.agents\/rules\/AGENTS\.md/g, '.github/AGENTS.md');
|
|
29
30
|
content = content.replace(/\.?\/?\.agents\/VAULT_INDEX\.md/g, '.github/VAULT_INDEX.md');
|
|
30
31
|
content = content.replace(/\.?\/?\.agents\/ARCHITECTURE\.md/g, '.github/ARCHITECTURE.md');
|
|
31
32
|
content = content.replace(/\.?\/?\.agents\/agents\//g, '.github/agents/');
|
|
@@ -40,6 +41,22 @@ async function convertToVsCode(destAgents, destBase) {
|
|
|
40
41
|
await fs.writeFile(path.join(gitHubDir, 'copilot-instructions.md'), content);
|
|
41
42
|
}
|
|
42
43
|
|
|
44
|
+
// 1.1 Converter AGENTS.md (routing rules) com os mesmos path replacements
|
|
45
|
+
const agentsMdPath = path.join(destAgents, 'rules', 'AGENTS.md');
|
|
46
|
+
if (await fs.pathExists(agentsMdPath)) {
|
|
47
|
+
let content = await fs.readFile(agentsMdPath, 'utf8');
|
|
48
|
+
content = content.replace(/\.?\/?\.agents\/skills\//g, '.copilot-skills/');
|
|
49
|
+
content = content.replace(/\.?\/?\.agents\/vault\//g, '.copilot-vault/');
|
|
50
|
+
content = content.replace(/\.?\/?\.agents\/rules\/GEMINI\.md/g, '.github/copilot-instructions.md');
|
|
51
|
+
content = content.replace(/\.?\/?\.agents\/rules\/AGENTS\.md/g, '.github/AGENTS.md');
|
|
52
|
+
content = content.replace(/\.?\/?\.agents\/VAULT_INDEX\.md/g, '.github/VAULT_INDEX.md');
|
|
53
|
+
content = content.replace(/\.?\/?\.agents\/ARCHITECTURE\.md/g, '.github/ARCHITECTURE.md');
|
|
54
|
+
content = content.replace(/\.?\/?\.agents\/agents\//g, '.github/agents/');
|
|
55
|
+
content = content.replace(/\.?\/?\.agents\/scripts\//g, '.github/scripts/');
|
|
56
|
+
content = content.replace(/trigger:\s*always_on/g, 'applyTo: "**/*"');
|
|
57
|
+
await fs.writeFile(path.join(gitHubDir, 'AGENTS.md'), content);
|
|
58
|
+
}
|
|
59
|
+
|
|
43
60
|
// 2. Mover as skills ativas inteiras (em vez de achatar) para preservar scripts em python embutidos e sub documentações!
|
|
44
61
|
// Importante: NÃO alocamos em .github/skills pois o Copilot engole todos os Markdowns de lá e causa sobrecarga de +60 referências!
|
|
45
62
|
const skillsDest = path.join(destAgents, 'skills');
|
package/package.json
CHANGED
|
@@ -39,28 +39,28 @@ Specialist AI personas for different domains.
|
|
|
39
39
|
|
|
40
40
|
| Agent | Focus | Skills Used |
|
|
41
41
|
| ------------------------ | -------------------------- | -------------------------------------------------------- |
|
|
42
|
-
| `orchestrator` | Multi-agent coordination |
|
|
43
|
-
| `project-planner` | Discovery, task planning |
|
|
44
|
-
| `frontend-specialist` | Web UI/UX | frontend-design,
|
|
45
|
-
| `backend-specialist` | API, business logic | api-patterns, database-design
|
|
46
|
-
| `database-architect` | Schema, SQL | database-design
|
|
42
|
+
| `orchestrator` | Multi-agent coordination | parallel-agents, behavioral-modes, plan-writing, architecture |
|
|
43
|
+
| `project-planner` | Discovery, task planning | app-builder, plan-writing, brainstorming |
|
|
44
|
+
| `frontend-specialist` | Web UI/UX | nextjs-react-expert, tailwind-patterns, frontend-design, design-md, enhance-prompt |
|
|
45
|
+
| `backend-specialist` | API, business logic | nodejs-best-practices, api-patterns, database-design, mcp-builder |
|
|
46
|
+
| `database-architect` | Schema, SQL | database-design |
|
|
47
47
|
| `mobile-developer` | iOS, Android, RN | mobile-design |
|
|
48
|
-
| `game-developer` | Game logic, mechanics |
|
|
49
|
-
| `devops-engineer` | CI/CD, Docker |
|
|
50
|
-
| `security-auditor` | Security compliance | vulnerability-scanner
|
|
51
|
-
| `penetration-tester` | Offensive security | vulnerability-scanner
|
|
52
|
-
| `test-engineer` | Testing strategies | testing-patterns,
|
|
48
|
+
| `game-developer` | Game logic, mechanics | game-development (12 sub-skills) |
|
|
49
|
+
| `devops-engineer` | CI/CD, Docker | deployment-procedures, server-management |
|
|
50
|
+
| `security-auditor` | Security compliance | vulnerability-scanner, red-team-tactics |
|
|
51
|
+
| `penetration-tester` | Offensive security | vulnerability-scanner, red-team-tactics |
|
|
52
|
+
| `test-engineer` | Testing strategies | testing-patterns, tdd-workflow, webapp-testing |
|
|
53
53
|
| `debugger` | Root cause analysis | systematic-debugging |
|
|
54
54
|
| `performance-optimizer` | Speed, Web Vitals | performance-profiling |
|
|
55
|
-
| `seo-specialist` | Ranking, visibility | seo-fundamentals
|
|
56
|
-
| `documentation-writer` | Manuals, docs |
|
|
55
|
+
| `seo-specialist` | Ranking, visibility | seo-fundamentals, geo-fundamentals |
|
|
56
|
+
| `documentation-writer` | Manuals, docs | documentation-templates |
|
|
57
57
|
| `product-manager` | Requirements, user stories | plan-writing, brainstorming |
|
|
58
58
|
| `product-owner` | Strategy, backlog, MVP | plan-writing, brainstorming |
|
|
59
|
-
| `qa-automation-engineer` | E2E testing, CI pipelines | testing-patterns
|
|
60
|
-
| `code-archaeologist` | Legacy code, refactoring |
|
|
61
|
-
| `explorer-agent` | Codebase analysis |
|
|
62
|
-
| `site-builder` | Landing pages, websites | frontend-design,
|
|
63
|
-
| `automation-specialist` | n8n workflow automation | n8n-mcp-tools-expert, n8n-workflow-patterns
|
|
59
|
+
| `qa-automation-engineer` | E2E testing, CI pipelines | webapp-testing, testing-patterns |
|
|
60
|
+
| `code-archaeologist` | Legacy code, refactoring | refactoring-patterns, code-review-checklist |
|
|
61
|
+
| `explorer-agent` | Codebase analysis | architecture, plan-writing, brainstorming |
|
|
62
|
+
| `site-builder` | Landing pages, websites | scroll-experience, tailwind-patterns, frontend-design, design-md, enhance-prompt |
|
|
63
|
+
| `automation-specialist` | n8n workflow automation | n8n-mcp-tools-expert, n8n-workflow-patterns |
|
|
64
64
|
|
|
65
65
|
---
|
|
66
66
|
|
|
@@ -119,13 +119,6 @@ Skills availability depends on the installed profile (`basic`, `normal`, or `ext
|
|
|
119
119
|
| `test-driven-development` | TDD workflow |
|
|
120
120
|
| `testing-patterns` | Jest, Vitest, strategies |
|
|
121
121
|
| `vercel-deployment` | Vercel deploy workflows |
|
|
122
|
-
| `n8n-mcp-tools-expert` | n8n MCP tool selection & usage |
|
|
123
|
-
| `n8n-workflow-patterns` | n8n architectural patterns |
|
|
124
|
-
| `n8n-expression-syntax` | n8n expression `{{$json.*}}` |
|
|
125
|
-
| `n8n-node-configuration` | n8n node operation config |
|
|
126
|
-
| `n8n-validation-expert` | n8n validation error fixing |
|
|
127
|
-
| `n8n-code-javascript` | n8n Code node (JavaScript) |
|
|
128
|
-
| `n8n-code-python` | n8n Code node (Python) |
|
|
129
122
|
|
|
130
123
|
### Extra Profile (adds ~27 more skills)
|
|
131
124
|
|
|
@@ -167,8 +160,9 @@ Slash command procedures. Invoke with `/command`.
|
|
|
167
160
|
|
|
168
161
|
| Command | Description |
|
|
169
162
|
| ---------------- | ------------------------------- |
|
|
163
|
+
| `/automate` | n8n workflow automation builder |
|
|
170
164
|
| `/brainstorm` | Socratic discovery |
|
|
171
|
-
| `/build-site` |
|
|
165
|
+
| `/build-site` | Cinematic landing page builder |
|
|
172
166
|
| `/create` | Create new features |
|
|
173
167
|
| `/debug` | Debug issues |
|
|
174
168
|
| `/deploy` | Deploy application |
|
|
@@ -176,12 +170,11 @@ Slash command procedures. Invoke with `/command`.
|
|
|
176
170
|
| `/orchestrate` | Multi-agent coordination |
|
|
177
171
|
| `/plan` | Task breakdown |
|
|
178
172
|
| `/preview` | Preview changes |
|
|
179
|
-
| `/recall` | Re-anchor AI
|
|
173
|
+
| `/recall` | Re-anchor AI on rules |
|
|
180
174
|
| `/setup-brain` | Initialize agent memory/context |
|
|
181
175
|
| `/status` | Check project status |
|
|
182
176
|
| `/test` | Run tests |
|
|
183
177
|
| `/ui-ux-pro-max` | Full UI/UX design workflow |
|
|
184
|
-
| `/automate` | n8n workflow automation builder |
|
|
185
178
|
|
|
186
179
|
---
|
|
187
180
|
|
|
@@ -225,7 +218,7 @@ Scripts are embedded within skills at `.agents/skills/<skill>/scripts/`:
|
|
|
225
218
|
| ------------------- | ----------------------------- |
|
|
226
219
|
| **Total Agents** | 22 |
|
|
227
220
|
| **Basic Skills** | 11 |
|
|
228
|
-
| **Normal Skills** | ~
|
|
221
|
+
| **Normal Skills** | ~42 |
|
|
229
222
|
| **Extra Skills** | ~69 |
|
|
230
223
|
| **Vault Skills** | 1200+ |
|
|
231
224
|
| **Total Workflows** | 15 |
|
|
@@ -234,15 +227,15 @@ Scripts are embedded within skills at `.agents/skills/<skill>/scripts/`:
|
|
|
234
227
|
|
|
235
228
|
## 🔗 Quick Reference
|
|
236
229
|
|
|
237
|
-
| Need | Agent | Skills
|
|
238
|
-
| -------- | --------------------- |
|
|
239
|
-
| Web App | `frontend-specialist` |
|
|
240
|
-
| API | `backend-specialist` | api-patterns,
|
|
241
|
-
| Mobile | `mobile-developer` | mobile-design
|
|
242
|
-
| Database | `database-architect` | database-design
|
|
243
|
-
| Security | `security-auditor` | vulnerability-scanner
|
|
244
|
-
| Testing | `test-engineer` | testing-patterns,
|
|
245
|
-
| Debug | `debugger` | systematic-debugging
|
|
246
|
-
| Plan | `project-planner` | brainstorming, plan-writing
|
|
247
|
-
| Deploy | `devops-engineer` |
|
|
230
|
+
| Need | Agent | Skills |
|
|
231
|
+
| -------- | --------------------- | ----------------------------------------- |
|
|
232
|
+
| Web App | `frontend-specialist` | nextjs-react-expert, tailwind-patterns, frontend-design |
|
|
233
|
+
| API | `backend-specialist` | api-patterns, nodejs-best-practices |
|
|
234
|
+
| Mobile | `mobile-developer` | mobile-design |
|
|
235
|
+
| Database | `database-architect` | database-design |
|
|
236
|
+
| Security | `security-auditor` | vulnerability-scanner, red-team-tactics |
|
|
237
|
+
| Testing | `test-engineer` | testing-patterns, tdd-workflow |
|
|
238
|
+
| Debug | `debugger` | systematic-debugging |
|
|
239
|
+
| Plan | `project-planner` | brainstorming, plan-writing |
|
|
240
|
+
| Deploy | `devops-engineer` | deployment-procedures, server-management |
|
|
248
241
|
| Automate | `automation-specialist` | n8n-mcp-tools-expert, n8n-workflow-patterns |
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: debugger
|
|
3
3
|
description: Expert in systematic debugging, root cause analysis, and crash investigation. Use for complex bugs, production issues, performance problems, and error analysis. Triggers on bug, error, crash, not working, broken, investigate, fix.
|
|
4
|
+
tools: Read, Grep, Glob, Bash, Edit, Write
|
|
5
|
+
model: inherit
|
|
4
6
|
skills: clean-code, systematic-debugging
|
|
5
7
|
---
|
|
6
8
|
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
---
|
|
2
|
+
trigger: always_on
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# AGENTS.md — Agent Routing & Boundary Rules
|
|
6
|
+
|
|
7
|
+
> Este arquivo define COMO rotear requests para o agente correto e suas regras de fronteira.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## 🔴 REGRA #1: orchestrator NÃO é default
|
|
12
|
+
|
|
13
|
+
> **orchestrator = SOMENTE quando 2+ domínios distintos precisam trabalhar juntos.**
|
|
14
|
+
> Se o request cabe em 1 agente → use esse agente diretamente.
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## 🗺️ Keyword → Agent (primeira correspondência)
|
|
19
|
+
|
|
20
|
+
| Keywords no request | Agent | Skills (frontmatter) |
|
|
21
|
+
|---|---|---|
|
|
22
|
+
| component, react, ui, ux, css, tailwind, frontend, hook, state | `frontend-specialist` | nextjs-react-expert, web-design-guidelines, tailwind-patterns, frontend-design, design-md, enhance-prompt |
|
|
23
|
+
| landing page, site, website, hero, parallax, one-pager | `site-builder` | scroll-experience, tailwind-patterns, react-patterns, frontend-design, design-md, enhance-prompt, react-components |
|
|
24
|
+
| backend, server, api, endpoint, auth, express, fastapi, hono | `backend-specialist` | nodejs-best-practices, api-patterns, database-design, mcp-builder |
|
|
25
|
+
| schema, SQL, migration, prisma, drizzle, database design | `database-architect` | database-design |
|
|
26
|
+
| bug, error, crash, not working, broken, fix, investigate | `debugger` | systematic-debugging |
|
|
27
|
+
| test, testing, coverage, TDD, E2E, jest, vitest | `test-engineer` | testing-patterns, tdd-workflow, webapp-testing, code-review-checklist |
|
|
28
|
+
| mobile, iOS, Android, React Native, Flutter, Expo | `mobile-developer` | mobile-design |
|
|
29
|
+
| security, vulnerability, audit, OWASP | `security-auditor` | vulnerability-scanner, red-team-tactics, api-patterns |
|
|
30
|
+
| pentest, red team, exploit | `penetration-tester` | vulnerability-scanner, red-team-tactics, api-patterns |
|
|
31
|
+
| deploy, CI/CD, Docker, infrastructure, PM2 | `devops-engineer` | deployment-procedures, server-management |
|
|
32
|
+
| performance, speed, Web Vitals, optimize, profiling | `performance-optimizer` | performance-profiling |
|
|
33
|
+
| SEO, meta tags, ranking, sitemap | `seo-specialist` | seo-fundamentals, geo-fundamentals |
|
|
34
|
+
| plan, roadmap, task breakdown, milestones | `project-planner` | app-builder, plan-writing, brainstorming |
|
|
35
|
+
| requirements, user stories, backlog | `product-manager` | plan-writing, brainstorming |
|
|
36
|
+
| MVP, strategy, product vision | `product-owner` | plan-writing, brainstorming |
|
|
37
|
+
| game, unity, godot, phaser, multiplayer | `game-developer` | game-development (12 sub-skills) |
|
|
38
|
+
| n8n, webhook, automation, workflow automation | `automation-specialist` | n8n-mcp-tools-expert, n8n-workflow-patterns, n8n-expression-syntax, n8n-node-configuration, n8n-validation-expert |
|
|
39
|
+
| docs, README, documentation, manual | `documentation-writer` | documentation-templates |
|
|
40
|
+
| legacy code, refactor, tech debt | `code-archaeologist` | refactoring-patterns, code-review-checklist |
|
|
41
|
+
| codebase analysis, map, discovery, explore | `explorer-agent` | architecture, plan-writing, brainstorming, systematic-debugging |
|
|
42
|
+
| E2E automation, CI pipeline, QA pipeline | `qa-automation-engineer` | webapp-testing, testing-patterns, web-design-guidelines |
|
|
43
|
+
| coordinate, orchestrate, 2+ domains simultâneos | `orchestrator` | parallel-agents, behavioral-modes, plan-writing, brainstorming, architecture |
|
|
44
|
+
|
|
45
|
+
### Protocolo de Uso
|
|
46
|
+
|
|
47
|
+
1. **Match keywords** do request na tabela acima (primeira correspondência)
|
|
48
|
+
2. **Ler** `.agents/agents/{agent}.md` → carregar skills do frontmatter `skills:`
|
|
49
|
+
3. **Anunciar**: `🤖 **Applying knowledge of @[agent-name]...**`
|
|
50
|
+
4. **Carregar skills**: Ler cada SKILL.md listada no frontmatter
|
|
51
|
+
5. **Anunciar**: `📖 Using skill: [nome]` — para CADA skill carregada
|
|
52
|
+
6. **Se Agent=orchestrator** → revalidar: o request REALMENTE precisa de 2+ agentes?
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## 🔴 Agent Boundary Enforcement
|
|
57
|
+
|
|
58
|
+
**Cada agente DEVE ficar no seu domínio. Cross-domain = VIOLAÇÃO.**
|
|
59
|
+
|
|
60
|
+
| Agent | ✅ CAN Do | ❌ CANNOT Do |
|
|
61
|
+
|-------|----------|-------------|
|
|
62
|
+
| `frontend-specialist` | Components, UI, styles, hooks | Test files, API routes, DB |
|
|
63
|
+
| `backend-specialist` | API, server logic, DB queries | UI components, styles |
|
|
64
|
+
| `test-engineer` | Test files, mocks, coverage | Production code |
|
|
65
|
+
| `mobile-developer` | RN/Flutter, mobile UX | Web components |
|
|
66
|
+
| `database-architect` | Schema, migrations, queries | UI, API logic |
|
|
67
|
+
| `security-auditor` | Audit, vulnerabilities | Feature code, UI |
|
|
68
|
+
| `devops-engineer` | CI/CD, deployment, infra | Application code |
|
|
69
|
+
| `debugger` | Bug fixes, root cause | New features |
|
|
70
|
+
| `explorer-agent` | Codebase discovery | Write operations |
|
|
71
|
+
|
|
72
|
+
### File Type Ownership
|
|
73
|
+
|
|
74
|
+
| File Pattern | Owner Agent |
|
|
75
|
+
|---|---|
|
|
76
|
+
| `**/*.test.{ts,tsx,js}`, `**/__tests__/**` | `test-engineer` |
|
|
77
|
+
| `**/components/**` | `frontend-specialist` |
|
|
78
|
+
| `**/api/**`, `**/server/**` | `backend-specialist` |
|
|
79
|
+
| `**/prisma/**`, `**/drizzle/**` | `database-architect` |
|
|
80
|
+
|
|
81
|
+
> Se um agente precisa escrever fora do seu domínio → INVOCAR o agente correto para aquele arquivo.
|
|
@@ -18,10 +18,10 @@ trigger: always_on
|
|
|
18
18
|
ANTES de escrever QUALQUER código ou resposta:
|
|
19
19
|
|
|
20
20
|
□ 1. CLASSIFICAR o request (QUESTION / SIMPLE / COMPLEX / DESIGN)
|
|
21
|
-
□ 2. ROTEAR
|
|
21
|
+
□ 2. ROTEAR via AGENTS.md — Keyword→Agent table (NUNCA default orchestrator)
|
|
22
22
|
□ 3. ANUNCIAR: 🤖 **Applying knowledge of `@[agent-name]`...**
|
|
23
23
|
□ 4. LER o arquivo .md do agente (ex: .agents/agents/frontend-specialist.md)
|
|
24
|
-
□ 5.
|
|
24
|
+
□ 5. CARREGAR skills do frontmatter `skills:` do agente (+ Intent Map p/ extras)
|
|
25
25
|
□ 6. LER cada SKILL.md relevante
|
|
26
26
|
□ 7. ANUNCIAR: 📖 Using skill: [nome] — para CADA skill usada
|
|
27
27
|
□ 8. SOCRATIC GATE: Se build/feature → PERGUNTAR mínimo 3 questões estratégicas
|
|
@@ -35,7 +35,7 @@ ANTES de escrever QUALQUER código ou resposta:
|
|
|
35
35
|
- **📖 SKILLS FIRST**: Se não anunciou `📖 Using skill:` → VOLTE e releia este bloco.
|
|
36
36
|
- **⚠️ SEM SKILL**: Se nenhuma skill for relevante, diga: `⚠️ No skill used — responding from base knowledge.`
|
|
37
37
|
- **🛑 NUNCA** pule o Socratic Gate em requests de build/feature/create.
|
|
38
|
-
- **📣 PRE-FLIGHT OBRIGATÓRIO**:
|
|
38
|
+
- **📣 PRE-FLIGHT OBRIGATÓRIO**: Após rotear agente+skill (passos 1-7), confirme: `⚙️ Agent: [nome] | Skill: [nome ou none] | 🇧🇷 PT-BR` — se Agent=orchestrator, revalide: é MESMO multi-domínio?
|
|
39
39
|
- **🆘 /recall TRIGGER**: Se o usuário digitar `/recall` → PARE tudo, releia este arquivo imediatamente, e responda: `✅ Re-ancorado. Agent=[X] | Skill=[X] | PT-BR=SIM` antes de continuar.
|
|
40
40
|
|
|
41
41
|
---
|
|
@@ -69,9 +69,6 @@ Agent activated → Check frontmatter "skills:" → Read SKILL.md (INDEX) → Re
|
|
|
69
69
|
- **Active skills**: in `.agents/skills/` — see `ARCHITECTURE.md` for full list
|
|
70
70
|
- **Vault skills** (~1200+): in `.agents/vault/` — discoverable via index
|
|
71
71
|
|
|
72
|
-
### Core Rule — Skills First
|
|
73
|
-
After invoking any skill, explicitly say: '📖 Using skill: [skill-name]' before proceeding. If no skill was used, say: '⚠️ No skill used — responding from base knowledge.'
|
|
74
|
-
|
|
75
72
|
### Routing Flow
|
|
76
73
|
1. Check if an **active skill** covers the request → use it directly
|
|
77
74
|
2. If not → open `.agents/VAULT_INDEX.md` to find a vault skill
|
|
@@ -121,26 +118,10 @@ After invoking any skill, explicitly say: '📖 Using skill: [skill-name]' befor
|
|
|
121
118
|
|
|
122
119
|
## 🤖 INTELLIGENT AGENT ROUTING (STEP 2 - AUTO)
|
|
123
120
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
2. **Select Agent(s)**: Choose the most appropriate specialist(s).
|
|
127
|
-
3. **Inform User**: State which expertise is being applied.
|
|
128
|
-
4. **Apply**: Generate response using the selected agent's persona and rules.
|
|
129
|
-
|
|
130
|
-
### Response Format (MANDATORY)
|
|
131
|
-
```markdown
|
|
132
|
-
🤖 **Applying knowledge of `@[agent-name]`...**
|
|
133
|
-
[Continue with specialized response]
|
|
134
|
-
```
|
|
135
|
-
|
|
136
|
-
### Agent Routing Checklist (Before ANY code/design)
|
|
121
|
+
> 🔴 **Leia `.agents/rules/AGENTS.md` para a tabela Keyword→Agent completa.**
|
|
122
|
+
> Regra absoluta: orchestrator = SOMENTE multi-domínio (2+ agentes). NUNCA como default.
|
|
137
123
|
|
|
138
|
-
|
|
139
|
-
|------|-------|--------------|
|
|
140
|
-
| 1 | Identified correct agent? | → STOP. Analyze domain first. |
|
|
141
|
-
| 2 | Read agent's `.md` file? | → STOP. Open `.agents/agents/{agent}.md` |
|
|
142
|
-
| 3 | Announced agent? | → STOP. Add announcement. |
|
|
143
|
-
| 4 | Loaded required skills? | → STOP. Check `skills:` field. |
|
|
124
|
+
**Protocolo:** Match keywords → Ler agent `.md` → Carregar skills do frontmatter → Anunciar ambos.
|
|
144
125
|
|
|
145
126
|
---
|
|
146
127
|
|
|
@@ -230,7 +211,7 @@ Before coding, answer: (1) Goal of agent/skill? (2) Principles to apply? (3) How
|
|
|
230
211
|
|---|---|---|
|
|
231
212
|
| **plan** | `project-planner` | 4-phase. NO CODE before Phase 4. |
|
|
232
213
|
| **ask** | - | Focus on understanding. |
|
|
233
|
-
| **edit** |
|
|
214
|
+
| **edit** | Keyword→Agent table | Route especialista. orchestrator só se 2+ domains. |
|
|
234
215
|
|
|
235
216
|
---
|
|
236
217
|
|
|
@@ -82,7 +82,7 @@ Do you approve? (Y/N)
|
|
|
82
82
|
|
|
83
83
|
> ✅ After user approval, invoke multiple agents in PARALLEL.
|
|
84
84
|
|
|
85
|
-
## Available Agents (
|
|
85
|
+
## Available Agents (22 total)
|
|
86
86
|
|
|
87
87
|
| Agent | Domain | Use When |
|
|
88
88
|
|-------|--------|----------|
|
|
@@ -94,6 +94,7 @@ Do you approve? (Y/N)
|
|
|
94
94
|
| `security-auditor` | Security | Vulnerabilities, Auth |
|
|
95
95
|
| `penetration-tester` | Security | Active testing |
|
|
96
96
|
| `test-engineer` | Testing | Unit, E2E, Coverage |
|
|
97
|
+
| `qa-automation-engineer` | QA | CI pipelines, E2E automation |
|
|
97
98
|
| `devops-engineer` | Ops | CI/CD, Docker, Deploy |
|
|
98
99
|
| `mobile-developer` | Mobile | React Native, Flutter |
|
|
99
100
|
| `performance-optimizer` | Speed | Lighthouse, Profiling |
|
|
@@ -101,6 +102,11 @@ Do you approve? (Y/N)
|
|
|
101
102
|
| `documentation-writer` | Docs | README, API docs |
|
|
102
103
|
| `debugger` | Debug | Error analysis |
|
|
103
104
|
| `game-developer` | Games | Unity, Godot |
|
|
105
|
+
| `site-builder` | Sites | Landing pages, cinematic UX |
|
|
106
|
+
| `automation-specialist` | Automation | n8n workflows, webhooks |
|
|
107
|
+
| `code-archaeologist` | Legacy | Refactoring, tech debt |
|
|
108
|
+
| `product-manager` | Product | Requirements, user stories |
|
|
109
|
+
| `product-owner` | Strategy | MVP, backlog, vision |
|
|
104
110
|
| `orchestrator` | Meta | Coordination |
|
|
105
111
|
|
|
106
112
|
---
|
|
@@ -114,12 +120,16 @@ Identify ALL domains this task touches:
|
|
|
114
120
|
□ Backend/API → backend-specialist
|
|
115
121
|
□ Frontend/UI → frontend-specialist
|
|
116
122
|
□ Database → database-architect
|
|
117
|
-
□ Testing → test-engineer
|
|
123
|
+
□ Testing → test-engineer, qa-automation-engineer
|
|
118
124
|
□ DevOps → devops-engineer
|
|
119
125
|
□ Mobile → mobile-developer
|
|
120
126
|
□ Performance → performance-optimizer
|
|
121
127
|
□ SEO → seo-specialist
|
|
122
128
|
□ Planning → project-planner
|
|
129
|
+
□ Sites → site-builder
|
|
130
|
+
□ Automation → automation-specialist
|
|
131
|
+
□ Legacy/Debt → code-archaeologist
|
|
132
|
+
□ Games → game-developer
|
|
123
133
|
```
|
|
124
134
|
|
|
125
135
|
### Step 2: Phase Detection
|
|
@@ -36,35 +36,12 @@ Este workflow permite que eu (o seu agente Antigravity) faça uma varredura comp
|
|
|
36
36
|
- Ativar: copiar de `./.agents/vault/{skill}` → `./.agents/skills/{skill}`
|
|
37
37
|
- Confirme o total final de skills ativas após os movimentos.
|
|
38
38
|
|
|
39
|
-
6. **Atualização
|
|
40
|
-
-
|
|
41
|
-
|
|
42
|
-
- **Antigravity padrão (Cursor/Windsurf)**: Rule File = `.agents/rules/GEMINI.md`
|
|
43
|
-
- Após mover as skills, edite a Rule File atualizando TODOS os trechos que referenciam nomes de skills:
|
|
44
|
-
|
|
45
|
-
**a) `Skill Auto-Routing System` → contagem de active skills:**
|
|
46
|
-
```
|
|
47
|
-
- **Active skills** (~N): in `./.agents/skills/` (ou `./.copilot-skills/` no VS Code)
|
|
48
|
-
```
|
|
49
|
-
Substituir N pelo número real de skills ativas após a otimização.
|
|
50
|
-
|
|
51
|
-
**b) `Intent → Skill Routing Map`:**
|
|
52
|
-
- Remover todas as linhas de intent que apontam para skills que foram movidas para o vault.
|
|
53
|
-
- Adicionar/ajustar entradas baseadas nas novas skills ativas e na stack detectada.
|
|
54
|
-
- Exemplo: se `tailwind-patterns` foi para o vault, remover da linha `UI/component`.
|
|
55
|
-
|
|
56
|
-
**c) `Project Type Routing` (TIER 1):**
|
|
57
|
-
- Atualizar a tabela de agentes/skills para refletir o tipo real de projeto detectado.
|
|
58
|
-
- Adicionar nota `> 🔴 Este projeto é [tipo detectado]. Não usar agentes de [tipos irrelevantes].`
|
|
59
|
-
|
|
60
|
-
**d) `Final Checklist` (TIER 1):**
|
|
61
|
-
- Remover linhas de scripts que dependem de skills agora no vault (ex: `ux_audit.py → frontend-design`).
|
|
62
|
-
- Manter apenas scripts cujas skills dependentes ainda estejam ativas.
|
|
63
|
-
|
|
64
|
-
**e) `QUICK REFERENCE`:**
|
|
65
|
-
- Atualizar `Masters` e `Key Skills` para refletir os agentes/skills relevantes ao projeto.
|
|
39
|
+
6. **Atualização do ARCHITECTURE.md (OBRIGATÓRIO após mover skills)**:
|
|
40
|
+
- Atualize SOMENTE a tabela de skills no `ARCHITECTURE.md` para refletir quais skills estão ativas vs vault.
|
|
41
|
+
- **🔴 NÃO EDITE os arquivos de regras (GEMINI.md, AGENTS.md, copilot-instructions.md).** Esses arquivos contêm routing genérico que funciona para qualquer stack — o Intent Map e a Keyword→Agent table são universais e não devem ser alterados pelo setup-brain.
|
|
66
42
|
|
|
67
43
|
### Critérios de Sucesso
|
|
68
44
|
- **Precisão**: Apenas skills de altíssimo valor agregado (diretamente conectadas com a stack) serão movidas. Não encha o contexto em vão. Você foi programado para manter seu Token footprint baixo.
|
|
69
|
-
-
|
|
45
|
+
- O `ARCHITECTURE.md` deve refletir as skills ativas atualizadas.
|
|
46
|
+
- **🔴 PROIBIDO**: Editar GEMINI.md, AGENTS.md, ou copilot-instructions.md. O routing é genérico por design.
|
|
70
47
|
- Encerre rodando uma mensagem informando o resultado "Cérebro Calibrado e Otimizado para este ecossistema."
|