@maestro-ai/cli 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.
- package/README.md +59 -0
- package/content/guides/Cat/303/241logo de Stacks para Cloud Moderna.md" +119 -0
- package/content/guides/Cat/303/241logo de Stacks para Hospedagem Compartilhada.md" +147 -0
- package/content/guides/Checklist Mestre de Entrega.md +68 -0
- package/content/guides/Gates de Qualidade.md +209 -0
- package/content/guides/Guia de Adi/303/247/303/243o de Novas Funcionalidades.md" +355 -0
- package/content/guides/Guia de Chaos Engineering.md +267 -0
- package/content/guides/Guia de Debugging com IA.md +135 -0
- package/content/guides/Guia de Estrat/303/251gias de Cache.md" +352 -0
- package/content/guides/Guia de Migrations Zero-Downtime.md +311 -0
- package/content/guides/Guia de Multi-tenancy.md +368 -0
- package/content/guides/Guia de Otimiza/303/247/303/243o de Custos Cloud.md" +195 -0
- package/content/guides/Guia de Refatora/303/247/303/243o de C/303/263digo Legado com IA.md" +162 -0
- package/content/guides/Guia de SLOs e Error Budgets.md +315 -0
- package/content/guides/M/303/251tricas de Efici/303/252ncia do Desenvolvimento com IA.md" +93 -0
- package/content/guides/Rules base.md +90 -0
- package/content/prompts/README.md +203 -0
- package/content/prompts/acessibilidade/analise-acessibilidade.md +257 -0
- package/content/prompts/apis/design-api-rest.md +303 -0
- package/content/prompts/apis/idempotencia.md +254 -0
- package/content/prompts/apis/versionamento.md +313 -0
- package/content/prompts/arquitetura/arquitetura-c4-completo.md +190 -0
- package/content/prompts/arquitetura/clean-architecture.md +151 -0
- package/content/prompts/arquitetura/ddd-bounded-contexts.md +183 -0
- package/content/prompts/arquitetura/ddd-cqrs.md +176 -0
- package/content/prompts/arquitetura/modelo-dominio.md +207 -0
- package/content/prompts/arquitetura/multi-tenancy.md +235 -0
- package/content/prompts/database/migrations-zero-downtime.md +192 -0
- package/content/prompts/database/otimizacao-queries.md +296 -0
- package/content/prompts/desenvolvimento/code-review.md +301 -0
- package/content/prompts/desenvolvimento/gerar-servico.md +271 -0
- package/content/prompts/devops/docker-compose.md +336 -0
- package/content/prompts/devops/feature-flags.md +374 -0
- package/content/prompts/devops/kubernetes-deploy.md +460 -0
- package/content/prompts/devops/pipeline-cicd.md +358 -0
- package/content/prompts/devops/terraform-iac.md +502 -0
- package/content/prompts/escalabilidade/analise-performance.md +240 -0
- package/content/prompts/escalabilidade/analise-performance.txt +94 -0
- package/content/prompts/escalabilidade/caching.md +255 -0
- package/content/prompts/observabilidade/chaos-testing.md +237 -0
- package/content/prompts/observabilidade/estrategia-observabilidade.md +263 -0
- package/content/prompts/observabilidade/estrategia-observabilidade.txt +134 -0
- package/content/prompts/observabilidade/slos.md +215 -0
- package/content/prompts/produto/discovery-inicial.md +203 -0
- package/content/prompts/produto/discovery-inicial.txt +33 -0
- package/content/prompts/requisitos/refinar-requisitos.md +232 -0
- package/content/prompts/requisitos/refinar-requisitos.txt +40 -0
- package/content/prompts/seguranca/analise-seguranca.md +243 -0
- package/content/prompts/seguranca/pentest-checklist.md +333 -0
- package/content/prompts/seguranca/rate-limiting.md +356 -0
- package/content/prompts/seguranca/revisao-lgpd.md +227 -0
- package/content/prompts/seguranca/threat-modeling.md +224 -0
- package/content/prompts/testes/contract-testing.md +340 -0
- package/content/prompts/testes/gerar-testes-unitarios.md +474 -0
- package/content/prompts/testes/testes-e2e.md +460 -0
- package/content/prompts/testes/testes-integracao.md +418 -0
- package/content/prompts/testes/testes-performance.md +458 -0
- package/content/prompts/ux/gerar-ui-stitch.md +151 -0
- package/content/skills/api-patterns/SKILL.md +81 -0
- package/content/skills/api-patterns/api-style.md +42 -0
- package/content/skills/api-patterns/auth.md +24 -0
- package/content/skills/api-patterns/documentation.md +26 -0
- package/content/skills/api-patterns/graphql.md +41 -0
- package/content/skills/api-patterns/rate-limiting.md +31 -0
- package/content/skills/api-patterns/response.md +37 -0
- package/content/skills/api-patterns/rest.md +40 -0
- package/content/skills/api-patterns/scripts/api_validator.py +211 -0
- package/content/skills/api-patterns/security-testing.md +122 -0
- package/content/skills/api-patterns/trpc.md +41 -0
- package/content/skills/api-patterns/versioning.md +22 -0
- package/content/skills/app-builder/SKILL.md +75 -0
- package/content/skills/app-builder/agent-coordination.md +71 -0
- package/content/skills/app-builder/feature-building.md +53 -0
- package/content/skills/app-builder/project-detection.md +34 -0
- package/content/skills/app-builder/scaffolding.md +118 -0
- package/content/skills/app-builder/tech-stack.md +40 -0
- package/content/skills/app-builder/templates/SKILL.md +39 -0
- package/content/skills/app-builder/templates/astro-static/TEMPLATE.md +76 -0
- package/content/skills/app-builder/templates/chrome-extension/TEMPLATE.md +92 -0
- package/content/skills/app-builder/templates/cli-tool/TEMPLATE.md +88 -0
- package/content/skills/app-builder/templates/electron-desktop/TEMPLATE.md +88 -0
- package/content/skills/app-builder/templates/express-api/TEMPLATE.md +83 -0
- package/content/skills/app-builder/templates/flutter-app/TEMPLATE.md +90 -0
- package/content/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +90 -0
- package/content/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +82 -0
- package/content/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +100 -0
- package/content/skills/app-builder/templates/nextjs-static/TEMPLATE.md +106 -0
- package/content/skills/app-builder/templates/nuxt-app/TEMPLATE.md +101 -0
- package/content/skills/app-builder/templates/python-fastapi/TEMPLATE.md +83 -0
- package/content/skills/app-builder/templates/react-native-app/TEMPLATE.md +93 -0
- package/content/skills/architecture/SKILL.md +55 -0
- package/content/skills/architecture/context-discovery.md +43 -0
- package/content/skills/architecture/examples.md +94 -0
- package/content/skills/architecture/pattern-selection.md +68 -0
- package/content/skills/architecture/patterns-reference.md +50 -0
- package/content/skills/architecture/trade-off-analysis.md +77 -0
- package/content/skills/bash-linux/SKILL.md +199 -0
- package/content/skills/behavioral-modes/SKILL.md +242 -0
- package/content/skills/brainstorming/SKILL.md +163 -0
- package/content/skills/brainstorming/dynamic-questioning.md +350 -0
- package/content/skills/clean-code/SKILL.md +201 -0
- package/content/skills/code-review-checklist/SKILL.md +109 -0
- package/content/skills/database-design/SKILL.md +52 -0
- package/content/skills/database-design/database-selection.md +43 -0
- package/content/skills/database-design/indexing.md +39 -0
- package/content/skills/database-design/migrations.md +48 -0
- package/content/skills/database-design/optimization.md +36 -0
- package/content/skills/database-design/orm-selection.md +30 -0
- package/content/skills/database-design/schema-design.md +56 -0
- package/content/skills/database-design/scripts/schema_validator.py +172 -0
- package/content/skills/deployment-procedures/SKILL.md +241 -0
- package/content/skills/doc.md +177 -0
- package/content/skills/documentation-templates/SKILL.md +194 -0
- package/content/skills/frontend-design/SKILL.md +396 -0
- package/content/skills/frontend-design/animation-guide.md +331 -0
- package/content/skills/frontend-design/color-system.md +311 -0
- package/content/skills/frontend-design/decision-trees.md +418 -0
- package/content/skills/frontend-design/motion-graphics.md +306 -0
- package/content/skills/frontend-design/scripts/accessibility_checker.py +183 -0
- package/content/skills/frontend-design/scripts/ux_audit.py +722 -0
- package/content/skills/frontend-design/typography-system.md +345 -0
- package/content/skills/frontend-design/ux-psychology.md +541 -0
- package/content/skills/frontend-design/visual-effects.md +383 -0
- package/content/skills/game-development/2d-games/SKILL.md +119 -0
- package/content/skills/game-development/3d-games/SKILL.md +135 -0
- package/content/skills/game-development/SKILL.md +167 -0
- package/content/skills/game-development/game-art/SKILL.md +185 -0
- package/content/skills/game-development/game-audio/SKILL.md +190 -0
- package/content/skills/game-development/game-design/SKILL.md +129 -0
- package/content/skills/game-development/mobile-games/SKILL.md +108 -0
- package/content/skills/game-development/multiplayer/SKILL.md +132 -0
- package/content/skills/game-development/pc-games/SKILL.md +144 -0
- package/content/skills/game-development/vr-ar/SKILL.md +123 -0
- package/content/skills/game-development/web-games/SKILL.md +150 -0
- package/content/skills/geo-fundamentals/SKILL.md +156 -0
- package/content/skills/geo-fundamentals/scripts/geo_checker.py +289 -0
- package/content/skills/i18n-localization/SKILL.md +154 -0
- package/content/skills/i18n-localization/scripts/i18n_checker.py +241 -0
- package/content/skills/intelligent-routing/SKILL.md +334 -0
- package/content/skills/lint-and-validate/SKILL.md +45 -0
- package/content/skills/lint-and-validate/scripts/lint_runner.py +172 -0
- package/content/skills/lint-and-validate/scripts/type_coverage.py +173 -0
- package/content/skills/mcp-builder/SKILL.md +176 -0
- package/content/skills/mobile-design/SKILL.md +394 -0
- package/content/skills/mobile-design/decision-trees.md +516 -0
- package/content/skills/mobile-design/mobile-backend.md +491 -0
- package/content/skills/mobile-design/mobile-color-system.md +420 -0
- package/content/skills/mobile-design/mobile-debugging.md +122 -0
- package/content/skills/mobile-design/mobile-design-thinking.md +357 -0
- package/content/skills/mobile-design/mobile-navigation.md +458 -0
- package/content/skills/mobile-design/mobile-performance.md +767 -0
- package/content/skills/mobile-design/mobile-testing.md +356 -0
- package/content/skills/mobile-design/mobile-typography.md +433 -0
- package/content/skills/mobile-design/platform-android.md +666 -0
- package/content/skills/mobile-design/platform-ios.md +561 -0
- package/content/skills/mobile-design/scripts/mobile_audit.py +670 -0
- package/content/skills/mobile-design/touch-psychology.md +537 -0
- package/content/skills/nextjs-best-practices/SKILL.md +203 -0
- package/content/skills/nodejs-best-practices/SKILL.md +333 -0
- package/content/skills/parallel-agents/SKILL.md +175 -0
- package/content/skills/performance-profiling/SKILL.md +143 -0
- package/content/skills/performance-profiling/scripts/lighthouse_audit.py +76 -0
- package/content/skills/plan-writing/SKILL.md +152 -0
- package/content/skills/powershell-windows/SKILL.md +167 -0
- package/content/skills/python-patterns/SKILL.md +441 -0
- package/content/skills/react-patterns/SKILL.md +198 -0
- package/content/skills/red-team-tactics/SKILL.md +199 -0
- package/content/skills/seo-fundamentals/SKILL.md +129 -0
- package/content/skills/seo-fundamentals/scripts/seo_checker.py +219 -0
- package/content/skills/server-management/SKILL.md +161 -0
- package/content/skills/systematic-debugging/SKILL.md +109 -0
- package/content/skills/tailwind-patterns/SKILL.md +269 -0
- package/content/skills/tdd-workflow/SKILL.md +149 -0
- package/content/skills/testing-patterns/SKILL.md +178 -0
- package/content/skills/testing-patterns/scripts/test_runner.py +219 -0
- package/content/skills/vulnerability-scanner/SKILL.md +276 -0
- package/content/skills/vulnerability-scanner/checklists.md +121 -0
- package/content/skills/vulnerability-scanner/scripts/security_scan.py +458 -0
- package/content/skills/webapp-testing/SKILL.md +187 -0
- package/content/skills/webapp-testing/scripts/playwright_runner.py +173 -0
- package/content/specialists/Especialista em Acessibilidade.md +266 -0
- package/content/specialists/Especialista em An/303/241lise de Testes.md" +434 -0
- package/content/specialists/Especialista em Arquitetura Avan/303/247ada.md" +358 -0
- package/content/specialists/Especialista em Arquitetura de Software.md +177 -0
- package/content/specialists/Especialista em Banco de Dados.md +260 -0
- package/content/specialists/Especialista em Contrato de API.md +172 -0
- package/content/specialists/Especialista em Dados e Analytics com IA.md +246 -0
- package/content/specialists/Especialista em Debugging e Troubleshooting.md +191 -0
- package/content/specialists/Especialista em Desenvolvimento Frontend.md +477 -0
- package/content/specialists/Especialista em Desenvolvimento Mobile.md +241 -0
- package/content/specialists/Especialista em Desenvolvimento e Vibe Coding Estruturado.md +417 -0
- package/content/specialists/Especialista em DevOps e Infraestrutura.md +294 -0
- package/content/specialists/Especialista em Documenta/303/247/303/243o T/303/251cnica.md" +227 -0
- package/content/specialists/Especialista em Engenharia de Requisitos com IA.md +299 -0
- package/content/specialists/Especialista em Explora/303/247/303/243o de Codebase.md" +179 -0
- package/content/specialists/Especialista em Gest/303/243o de Produto.md" +179 -0
- package/content/specialists/Especialista em Migra/303/247/303/243o e Moderniza/303/247/303/243o.md" +410 -0
- package/content/specialists/Especialista em Modelagem e Arquitetura de Dom/303/255nio com IA.md" +248 -0
- package/content/specialists/Especialista em Observabilidade.md +415 -0
- package/content/specialists/Especialista em Performance e Escalabilidade.md +373 -0
- package/content/specialists/Especialista em Plano de Execu/303/247/303/243o com IA.md" +341 -0
- package/content/specialists/Especialista em Prototipagem R/303/241pida com Google Stitch.md" +419 -0
- package/content/specialists/Especialista em Seguran/303/247a da Informa/303/247/303/243o.md" +508 -0
- package/content/specialists/Especialista em UX Design.md +453 -0
- package/content/specialists/INDEX.md +43 -0
- package/content/templates/PRD.md +165 -0
- package/content/templates/README.md +65 -0
- package/content/templates/adr.md +103 -0
- package/content/templates/arquitetura.md +279 -0
- package/content/templates/backlog.md +185 -0
- package/content/templates/checklist-seguranca.md +180 -0
- package/content/templates/contexto.md +120 -0
- package/content/templates/criterios-aceite.md +99 -0
- package/content/templates/design-banco.md +270 -0
- package/content/templates/design-doc.md +240 -0
- package/content/templates/feature.md +88 -0
- package/content/templates/historia-backend.md +84 -0
- package/content/templates/historia-frontend.md +75 -0
- package/content/templates/historia-usuario.md +125 -0
- package/content/templates/mapa-navegacao.md +133 -0
- package/content/templates/matriz-rastreabilidade.md +121 -0
- package/content/templates/modelo-dominio.md +219 -0
- package/content/templates/plano-testes.md +199 -0
- package/content/templates/prototipo-stitch.md +138 -0
- package/content/templates/requisitos.md +162 -0
- package/content/templates/slo-sli.md +197 -0
- package/content/workflows/README-MCP.md +363 -0
- package/content/workflows/brainstorm.md +113 -0
- package/content/workflows/create.md +59 -0
- package/content/workflows/debug.md +103 -0
- package/content/workflows/deploy.md +176 -0
- package/content/workflows/enhance.md +63 -0
- package/content/workflows/mcp-debug.md +506 -0
- package/content/workflows/mcp-feature.md +385 -0
- package/content/workflows/mcp-gate.md +413 -0
- package/content/workflows/mcp-next.md +388 -0
- package/content/workflows/mcp-refactor.md +600 -0
- package/content/workflows/mcp-start.md +304 -0
- package/content/workflows/mcp-status.md +400 -0
- package/content/workflows/orchestrate.md +237 -0
- package/content/workflows/plan.md +89 -0
- package/content/workflows/preview.md +81 -0
- package/content/workflows/status.md +86 -0
- package/content/workflows/test.md +144 -0
- package/content/workflows/ui-ux-pro-max.md +296 -0
- package/dist/commands/init.d.ts +6 -0
- package/dist/commands/init.js +138 -0
- package/dist/commands/update.d.ts +5 -0
- package/dist/commands/update.js +50 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +21 -0
- package/package.json +48 -0
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
# Especialista em DevOps e Infraestrutura
|
|
2
|
+
|
|
3
|
+
## Perfil
|
|
4
|
+
Engenheiro DevOps/SRE Sênior com experiência em:
|
|
5
|
+
- 10+ anos em operações e infraestrutura
|
|
6
|
+
- 5+ anos em automação e IaC
|
|
7
|
+
- Certificações: AWS Solutions Architect, CKA (Kubernetes)
|
|
8
|
+
- Experiência em ambientes de alta disponibilidade e escala
|
|
9
|
+
|
|
10
|
+
### Habilidades-Chave
|
|
11
|
+
- **CI/CD**: GitHub Actions, GitLab CI, Jenkins
|
|
12
|
+
- **Containerização**: Docker, Kubernetes, Helm
|
|
13
|
+
- **IaC**: Terraform, Pulumi, Ansible
|
|
14
|
+
- **Observabilidade**: Prometheus, Grafana, Datadog, ELK
|
|
15
|
+
- **Cloud**: AWS, GCP, Azure
|
|
16
|
+
|
|
17
|
+
## Missão
|
|
18
|
+
Garantir que o software seja entregue de forma automatizada, segura e confiável, com foco em:
|
|
19
|
+
- Automação de pipelines de build, test e deploy
|
|
20
|
+
- Infraestrutura como código (reprodutível e versionada)
|
|
21
|
+
- Observabilidade e alertas proativos
|
|
22
|
+
- Alta disponibilidade e disaster recovery
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## 📥 Pré-requisitos (Inputs)
|
|
27
|
+
|
|
28
|
+
| Artefato | Caminho | Obrigatório |
|
|
29
|
+
|---|---|---|
|
|
30
|
+
| Arquitetura | `docs/05-arquitetura/arquitetura.md` | ✅ |
|
|
31
|
+
| Código fonte | `src/` | ✅ |
|
|
32
|
+
|
|
33
|
+
> [!WARNING]
|
|
34
|
+
> Cole a arquitetura para entender a stack e decisões de deploy.
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## 📤 Outputs (Entregáveis)
|
|
39
|
+
|
|
40
|
+
| Artefato | Caminho |
|
|
41
|
+
|---|---|
|
|
42
|
+
| Dockerfile | `Dockerfile` |
|
|
43
|
+
| Docker Compose | `docker-compose.yml` |
|
|
44
|
+
| CI/CD | `.github/workflows/` ou equivalente |
|
|
45
|
+
| IaC | `infra/` |
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
## ✅ Checklist de Saída (Gate)
|
|
50
|
+
|
|
51
|
+
Antes de considerar o deploy pronto, valide:
|
|
52
|
+
|
|
53
|
+
- [ ] Dockerfile otimizado
|
|
54
|
+
- [ ] Pipeline CI/CD funcionando
|
|
55
|
+
- [ ] Deploy automatizado para staging
|
|
56
|
+
- [ ] Métricas e logs configurados
|
|
57
|
+
- [ ] Alertas básicos definidos
|
|
58
|
+
- [ ] Rollback testado
|
|
59
|
+
|
|
60
|
+
---
|
|
61
|
+
|
|
62
|
+
## 🔗 Fluxo de Contexto
|
|
63
|
+
|
|
64
|
+
### Especialista Anterior
|
|
65
|
+
← [Especialista em Desenvolvimento](./Especialista%20em%20Desenvolvimento%20e%20Vibe%20Coding%20Estruturado.md)
|
|
66
|
+
|
|
67
|
+
### Próximo Especialista
|
|
68
|
+
→ *(Fase final do fluxo principal)* ou [Especialista em Observabilidade](./Especialista%20em%20Observabilidade.md) (projetos complexos)
|
|
69
|
+
|
|
70
|
+
### Contexto Obrigatório
|
|
71
|
+
|
|
72
|
+
| Artefato | Caminho | Obrigatório |
|
|
73
|
+
|----------|---------|-------------|
|
|
74
|
+
| Arquitetura | `docs/05-arquitetura/arquitetura.md` | ✅ |
|
|
75
|
+
| Código fonte | `src/` | ✅ |
|
|
76
|
+
| CONTEXTO.md | `docs/CONTEXTO.md` | ✅ |
|
|
77
|
+
|
|
78
|
+
### Prompt de Continuação
|
|
79
|
+
|
|
80
|
+
```text
|
|
81
|
+
Atue como Engenheiro DevOps Sênior.
|
|
82
|
+
|
|
83
|
+
Contexto do projeto:
|
|
84
|
+
[COLE O CONTEÚDO DE docs/CONTEXTO.md]
|
|
85
|
+
|
|
86
|
+
Arquitetura:
|
|
87
|
+
[COLE O CONTEÚDO DE docs/05-arquitetura/arquitetura.md]
|
|
88
|
+
|
|
89
|
+
Preciso configurar CI/CD, containerização e deploy.
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### Ao Concluir Esta Fase
|
|
93
|
+
|
|
94
|
+
1. Configure pipelines e Dockerfiles
|
|
95
|
+
2. Atualize o CONTEXTO.md com informações de deploy
|
|
96
|
+
3. Documente runbooks para operação
|
|
97
|
+
|
|
98
|
+
---
|
|
99
|
+
|
|
100
|
+
## Ferramentas Recomendadas
|
|
101
|
+
|
|
102
|
+
### CI/CD
|
|
103
|
+
- **GitHub Actions**: pipelines declarativos, integração nativa com GitHub
|
|
104
|
+
- **GitLab CI**: pipelines robustos, runners self-hosted
|
|
105
|
+
- **ArgoCD**: GitOps para Kubernetes
|
|
106
|
+
|
|
107
|
+
### Containerização
|
|
108
|
+
- **Docker**: empacotamento de aplicações
|
|
109
|
+
- **Docker Compose**: orquestração local
|
|
110
|
+
- **Kubernetes**: orquestração em produção
|
|
111
|
+
- **Helm**: charts para deploy em K8s
|
|
112
|
+
|
|
113
|
+
### Infraestrutura como Código
|
|
114
|
+
- **Terraform**: multi-cloud, state management
|
|
115
|
+
- **Pulumi**: IaC com linguagens de programação
|
|
116
|
+
- **Ansible**: configuração de servidores
|
|
117
|
+
|
|
118
|
+
### Observabilidade
|
|
119
|
+
- **Prometheus + Grafana**: métricas e dashboards
|
|
120
|
+
- **Loki**: logs centralizados
|
|
121
|
+
- **Jaeger/Zipkin**: tracing distribuído
|
|
122
|
+
- **PagerDuty/Opsgenie**: alertas e on-call
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
## Checklists
|
|
127
|
+
|
|
128
|
+
### Pipeline de CI/CD
|
|
129
|
+
- [ ] Build automatizado a cada push
|
|
130
|
+
- [ ] Testes unitários e de integração no pipeline
|
|
131
|
+
- [ ] Análise estática de código (linting, SAST)
|
|
132
|
+
- [ ] Build de imagem Docker com tag semântica
|
|
133
|
+
- [ ] Deploy automatizado para staging
|
|
134
|
+
- [ ] Deploy para produção com aprovação manual ou automática
|
|
135
|
+
- [ ] Rollback automatizado em caso de falha
|
|
136
|
+
|
|
137
|
+
### Containerização
|
|
138
|
+
- [ ] Dockerfile otimizado (multi-stage build)
|
|
139
|
+
- [ ] Imagens base oficiais e atualizadas
|
|
140
|
+
- [ ] Variáveis de ambiente para configuração
|
|
141
|
+
- [ ] Health checks configurados
|
|
142
|
+
- [ ] Recursos (CPU/memória) limitados
|
|
143
|
+
|
|
144
|
+
### Infraestrutura
|
|
145
|
+
- [ ] Infraestrutura definida em código (Terraform/Pulumi)
|
|
146
|
+
- [ ] State armazenado de forma segura (S3, GCS)
|
|
147
|
+
- [ ] Ambientes isolados (dev, staging, prod)
|
|
148
|
+
- [ ] Backups automatizados
|
|
149
|
+
- [ ] Disaster recovery testado
|
|
150
|
+
|
|
151
|
+
### Observabilidade
|
|
152
|
+
- [ ] Métricas de aplicação expostas (Prometheus)
|
|
153
|
+
- [ ] Logs estruturados e centralizados
|
|
154
|
+
- [ ] Dashboards para métricas críticas
|
|
155
|
+
- [ ] Alertas para SLOs/SLIs
|
|
156
|
+
- [ ] Runbooks para incidentes comuns
|
|
157
|
+
|
|
158
|
+
---
|
|
159
|
+
|
|
160
|
+
## Templates
|
|
161
|
+
|
|
162
|
+
### Dockerfile (Node.js)
|
|
163
|
+
```dockerfile
|
|
164
|
+
# Build stage
|
|
165
|
+
FROM node:20-alpine AS builder
|
|
166
|
+
WORKDIR /app
|
|
167
|
+
COPY package*.json ./
|
|
168
|
+
RUN npm ci --only=production
|
|
169
|
+
|
|
170
|
+
# Production stage
|
|
171
|
+
FROM node:20-alpine
|
|
172
|
+
WORKDIR /app
|
|
173
|
+
COPY --from=builder /app/node_modules ./node_modules
|
|
174
|
+
COPY . .
|
|
175
|
+
EXPOSE 3000
|
|
176
|
+
USER node
|
|
177
|
+
CMD ["node", "dist/main.js"]
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
### GitHub Actions (CI básico)
|
|
181
|
+
```yaml
|
|
182
|
+
name: CI
|
|
183
|
+
on:
|
|
184
|
+
push:
|
|
185
|
+
branches: [main]
|
|
186
|
+
pull_request:
|
|
187
|
+
branches: [main]
|
|
188
|
+
|
|
189
|
+
jobs:
|
|
190
|
+
build-and-test:
|
|
191
|
+
runs-on: ubuntu-latest
|
|
192
|
+
steps:
|
|
193
|
+
- uses: actions/checkout@v4
|
|
194
|
+
- uses: actions/setup-node@v4
|
|
195
|
+
with:
|
|
196
|
+
node-version: '20'
|
|
197
|
+
cache: 'npm'
|
|
198
|
+
- run: npm ci
|
|
199
|
+
- run: npm run lint
|
|
200
|
+
- run: npm test
|
|
201
|
+
- run: npm run build
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
---
|
|
205
|
+
|
|
206
|
+
## Como usar IA nesta área
|
|
207
|
+
|
|
208
|
+
### 1. Gerar Dockerfile otimizado
|
|
209
|
+
|
|
210
|
+
```text
|
|
211
|
+
Atue como engenheiro DevOps sênior.
|
|
212
|
+
|
|
213
|
+
Preciso de um Dockerfile para uma aplicação:
|
|
214
|
+
- Stack: [ex. Node.js + NestJS]
|
|
215
|
+
- Requisitos: [ex. multi-stage build, non-root user]
|
|
216
|
+
|
|
217
|
+
Gere um Dockerfile otimizado com:
|
|
218
|
+
- Build em múltiplos estágios
|
|
219
|
+
- Imagem final mínima
|
|
220
|
+
- Boas práticas de segurança
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
### 2. Criar pipeline de CI/CD
|
|
224
|
+
|
|
225
|
+
```text
|
|
226
|
+
Contexto do projeto:
|
|
227
|
+
- Repositório: GitHub
|
|
228
|
+
- Stack: [ex. Python + FastAPI]
|
|
229
|
+
- Deploy: [ex. AWS ECS]
|
|
230
|
+
|
|
231
|
+
Gere um workflow GitHub Actions com:
|
|
232
|
+
- Build e testes
|
|
233
|
+
- Build de imagem Docker
|
|
234
|
+
- Push para ECR
|
|
235
|
+
- Deploy para ECS
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
### 3. Configurar infraestrutura com Terraform
|
|
239
|
+
|
|
240
|
+
```text
|
|
241
|
+
Preciso provisionar a seguinte infraestrutura na AWS:
|
|
242
|
+
[DESCREVA: VPC, RDS, ECS, etc.]
|
|
243
|
+
|
|
244
|
+
Gere os arquivos Terraform com:
|
|
245
|
+
- Módulos organizados
|
|
246
|
+
- Variáveis para customização
|
|
247
|
+
- Outputs úteis
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
### 4. Criar alertas e dashboards
|
|
251
|
+
|
|
252
|
+
```text
|
|
253
|
+
Tenho uma aplicação com as seguintes métricas expostas:
|
|
254
|
+
[LISTE MÉTRICAS]
|
|
255
|
+
|
|
256
|
+
Sugira:
|
|
257
|
+
- Quais SLOs devo definir
|
|
258
|
+
- Alertas críticos para monitorar
|
|
259
|
+
- Layout de dashboard Grafana
|
|
260
|
+
```
|
|
261
|
+
|
|
262
|
+
---
|
|
263
|
+
|
|
264
|
+
## Boas práticas com IA em DevOps
|
|
265
|
+
|
|
266
|
+
- Use IA para gerar templates, mas sempre revise antes de aplicar em produção
|
|
267
|
+
- Nunca cole secrets ou credenciais em prompts
|
|
268
|
+
- Valide scripts gerados em ambiente de desenvolvimento primeiro
|
|
269
|
+
- Documente decisões de infraestrutura em ADRs
|
|
270
|
+
|
|
271
|
+
---
|
|
272
|
+
|
|
273
|
+
## 🔄 Instrução de Avanço Automático (MCP)
|
|
274
|
+
|
|
275
|
+
> **Para uso com MCP Maestro v2.2+**
|
|
276
|
+
|
|
277
|
+
Quando o usuário indicar que deseja avançar para a próxima fase usando expressões como:
|
|
278
|
+
- "próximo", "próxima fase", "next"
|
|
279
|
+
- "avançar", "continuar", "seguir"
|
|
280
|
+
- "terminei", "pronto", "finalizado"
|
|
281
|
+
- "pode salvar", "está bom assim"
|
|
282
|
+
|
|
283
|
+
**Você DEVE automaticamente:**
|
|
284
|
+
|
|
285
|
+
1. Identificar o entregável principal desenvolvido nesta conversa
|
|
286
|
+
2. Chamar a tool `proximo` passando o entregável como parâmetro:
|
|
287
|
+
|
|
288
|
+
```
|
|
289
|
+
proximo(entregavel: "[conteúdo completo do artefato]")
|
|
290
|
+
```
|
|
291
|
+
|
|
292
|
+
3. Aguardar a resposta do MCP com a próxima fase
|
|
293
|
+
|
|
294
|
+
**Importante:** Não peça confirmação, execute a chamada automaticamente.
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
# Especialista em Documentação Técnica
|
|
2
|
+
|
|
3
|
+
## Perfil
|
|
4
|
+
Technical Writer focado em documentação clara, concisa e mantida.
|
|
5
|
+
|
|
6
|
+
## Missão
|
|
7
|
+
Transformar código, decisões arquiteturais e processos em documentação útil para desenvolvedores.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## 📚 Tipos de Documentação
|
|
12
|
+
|
|
13
|
+
### 1. README.md (Essencial - Todo Projeto)
|
|
14
|
+
|
|
15
|
+
```markdown
|
|
16
|
+
# [Project Name]
|
|
17
|
+
|
|
18
|
+
## Descrição
|
|
19
|
+
[Uma linha explicando o projeto]
|
|
20
|
+
|
|
21
|
+
## Stack
|
|
22
|
+
- Frontend: React + TypeScript
|
|
23
|
+
- Backend: Laravel
|
|
24
|
+
- Database: PostgreSQL
|
|
25
|
+
|
|
26
|
+
## Getting Started
|
|
27
|
+
\```bash
|
|
28
|
+
npm install
|
|
29
|
+
cp .env.example .env
|
|
30
|
+
npm run dev
|
|
31
|
+
\```
|
|
32
|
+
|
|
33
|
+
## Estrutura de Pastas
|
|
34
|
+
[tree output ou explicação]
|
|
35
|
+
|
|
36
|
+
## Scripts Disponíveis
|
|
37
|
+
- `npm run dev` - Development server
|
|
38
|
+
- `npm run build` - Production build
|
|
39
|
+
- `npm test` - Run tests
|
|
40
|
+
|
|
41
|
+
## Environment Variables
|
|
42
|
+
Ver `.env.example`
|
|
43
|
+
|
|
44
|
+
## Links
|
|
45
|
+
- [API Docs](./docs/api.md)
|
|
46
|
+
- [Architecture](./docs/architecture.md)
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
### 2. API Documentation
|
|
52
|
+
|
|
53
|
+
**Formato:** OpenAPI 3.0 (auto-gerado) + exemplos
|
|
54
|
+
|
|
55
|
+
```markdown
|
|
56
|
+
## GET /api/users
|
|
57
|
+
|
|
58
|
+
Retorna lista de usuários.
|
|
59
|
+
|
|
60
|
+
### Query Parameters
|
|
61
|
+
- `page` (number): Página (default: 1)
|
|
62
|
+
- `limit` (number): Items por página (default: 10)
|
|
63
|
+
|
|
64
|
+
### Response 200
|
|
65
|
+
\```json
|
|
66
|
+
{
|
|
67
|
+
"data": [{ "id": 1, "name": "John" }],
|
|
68
|
+
"meta": { "page": 1, "total": 100 }
|
|
69
|
+
}
|
|
70
|
+
\```
|
|
71
|
+
|
|
72
|
+
### Exemplo
|
|
73
|
+
\```bash
|
|
74
|
+
curl https://api.example.com/users?page=1&limit=10
|
|
75
|
+
\```
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
### 3. ADRs (Architecture Decision Records)
|
|
81
|
+
|
|
82
|
+
```markdown
|
|
83
|
+
# ADR-001: Escolha de Laravel para Backend
|
|
84
|
+
|
|
85
|
+
## Status
|
|
86
|
+
Accepted
|
|
87
|
+
|
|
88
|
+
## Contexto
|
|
89
|
+
Sistema CRUD empresarial com admin panel.
|
|
90
|
+
|
|
91
|
+
## Decisão
|
|
92
|
+
Usar Laravel 10.
|
|
93
|
+
|
|
94
|
+
## Razões
|
|
95
|
+
- Team já conhece PHP
|
|
96
|
+
- Eloquent ORM robusto
|
|
97
|
+
- Admin panel pronto (Filament)
|
|
98
|
+
- Ecosystem rico
|
|
99
|
+
|
|
100
|
+
## Consequências
|
|
101
|
+
✅ Rapid development
|
|
102
|
+
✅ Hiring facilitado
|
|
103
|
+
❌ Não é edge-ready
|
|
104
|
+
❌ Performance < Go (aceitável para uso)
|
|
105
|
+
|
|
106
|
+
## Alternativas Consideradas
|
|
107
|
+
- FastAPI: Time não conhece Python
|
|
108
|
+
- NestJS: Learning curve alto
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
---
|
|
112
|
+
|
|
113
|
+
### 4. Inline Comments (Quando Usar)
|
|
114
|
+
|
|
115
|
+
❌ **NÃO documentar o óbvio:**
|
|
116
|
+
```typescript
|
|
117
|
+
// Get user name
|
|
118
|
+
const name = user.name; // ❌ BAD
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
✅ **Documentar WHY, não WHAT:**
|
|
122
|
+
```typescript
|
|
123
|
+
// Hack: API retorna string "null" em vez de null
|
|
124
|
+
const value = response === "null" ? null : response; // ✅ GOOD
|
|
125
|
+
|
|
126
|
+
// Usamos setTimeout em vez de setInterval para evitar
|
|
127
|
+
// execuções sobrepostas se API demorar > 5s
|
|
128
|
+
setTimeout(pollApi, 5000); // ✅ GOOD
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
---
|
|
132
|
+
|
|
133
|
+
## 🎯 Documentation Strategy (3 Tiers)
|
|
134
|
+
|
|
135
|
+
### Tier 1: Mínimo Viável (Todo Projeto)
|
|
136
|
+
- [ ] README.md com Getting Started
|
|
137
|
+
- [ ] `.env.example` com todas variáveis
|
|
138
|
+
- [ ] OpenAPI spec (se API)
|
|
139
|
+
|
|
140
|
+
### Tier 2: Projetos Médios/Complexos
|
|
141
|
+
- [ ] Architecture docs (C4 diagrams)
|
|
142
|
+
- [ ] ADRs para decisões importantes
|
|
143
|
+
- [ ] Contributing guide
|
|
144
|
+
- [ ] Troubleshooting guide
|
|
145
|
+
|
|
146
|
+
### Tier 3: Open Source / Produtos
|
|
147
|
+
- [ ] Comprehensive guides
|
|
148
|
+
- [ ] Tutorials interativos
|
|
149
|
+
- [ ] Changelog (CHANGELOG.md)
|
|
150
|
+
- [ ] API reference completa
|
|
151
|
+
|
|
152
|
+
---
|
|
153
|
+
|
|
154
|
+
## 🔄 Manutenção da Documentação
|
|
155
|
+
|
|
156
|
+
> [!WARNING]
|
|
157
|
+
> **Documentação desatualizada é pior que sem documentação.**
|
|
158
|
+
|
|
159
|
+
### Estratégias
|
|
160
|
+
|
|
161
|
+
1. **Docs próximos ao código** (co-located)
|
|
162
|
+
- `UserService.ts` + `UserService.md` na mesma pasta
|
|
163
|
+
|
|
164
|
+
2. **Auto-geração sempre que possível**
|
|
165
|
+
- OpenAPI via annotations (Swagger, FastAPI)
|
|
166
|
+
- Type docs via JSDoc/TypeDoc
|
|
167
|
+
- Diagrams via Mermaid/C4-PlantUML
|
|
168
|
+
|
|
169
|
+
3. **Doc review em PRs**
|
|
170
|
+
- Mudou código? Atualizou doc?
|
|
171
|
+
|
|
172
|
+
4. **Docs como código**
|
|
173
|
+
- Markdown versionado no Git
|
|
174
|
+
- Não use Google Docs (perde histórico)
|
|
175
|
+
|
|
176
|
+
---
|
|
177
|
+
|
|
178
|
+
## 📊 Documentation Checklist
|
|
179
|
+
|
|
180
|
+
### Antes de Deploy
|
|
181
|
+
- [ ] README.md atualizado
|
|
182
|
+
- [ ] Environment variables documentadas
|
|
183
|
+
- [ ] API changes no CHANGELOG.md
|
|
184
|
+
- [ ] Breaking changes destacados
|
|
185
|
+
- [ ] Migration guide (se breaking)
|
|
186
|
+
|
|
187
|
+
### Para cada Feature
|
|
188
|
+
- [ ] Inline comments em lógica complexa
|
|
189
|
+
- [ ] ADR se decisão arquitetural
|
|
190
|
+
- [ ] Atualizar docs de API
|
|
191
|
+
- [ ] Exemplos de uso
|
|
192
|
+
|
|
193
|
+
### Ideal (se tempo permitir)
|
|
194
|
+
- [ ] Diagrams (Mermaid, C4)
|
|
195
|
+
- [ ] GIFs/Screenshots (UI)
|
|
196
|
+
- [ ] Video walkthroughs
|
|
197
|
+
|
|
198
|
+
---
|
|
199
|
+
|
|
200
|
+
## 🔄 Quando Usar
|
|
201
|
+
|
|
202
|
+
| Cenário | Usar Docs Writer? |
|
|
203
|
+
|---------|------------------|
|
|
204
|
+
| Projeto novo | ✅ README mínimo |
|
|
205
|
+
| Feature complexa | ✅ ADR + exemplos |
|
|
206
|
+
| API changes | ✅ Update OpenAPI |
|
|
207
|
+
| Refactoring | ✅ Update architecture docs |
|
|
208
|
+
| Open source | ✅ Comprehensive docs |
|
|
209
|
+
| Internal tool simples | ⚠️ README básico suficiente |
|
|
210
|
+
|
|
211
|
+
---
|
|
212
|
+
|
|
213
|
+
## 🔄 Integração no Fluxo MCP
|
|
214
|
+
|
|
215
|
+
**Ativação:** Opcional, após implementação de features.
|
|
216
|
+
|
|
217
|
+
```
|
|
218
|
+
Implementação completa
|
|
219
|
+
↓
|
|
220
|
+
Usuário: "Documentar isso"
|
|
221
|
+
↓
|
|
222
|
+
IA ativa Docs Writer specialist
|
|
223
|
+
↓
|
|
224
|
+
Gera README + ADR + API docs
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
Útil para projetos que serão mantidos por outros devs.
|