flyee 0.1.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/LICENSE +21 -0
- package/README.md +134 -0
- package/bin/install.js +357 -0
- package/bridge/bridge.py +1780 -0
- package/bridge/local_tracker.py +722 -0
- package/core/agents/backend-specialist.md +266 -0
- package/core/agents/code-archaeologist.md +106 -0
- package/core/agents/database-architect.md +226 -0
- package/core/agents/debugger.md +225 -0
- package/core/agents/devops-engineer.md +323 -0
- package/core/agents/documentation-writer.md +104 -0
- package/core/agents/explorer-agent.md +73 -0
- package/core/agents/frontend-specialist.md +743 -0
- package/core/agents/game-developer.md +162 -0
- package/core/agents/mobile-developer.md +377 -0
- package/core/agents/orchestrator.md +416 -0
- package/core/agents/penetration-tester.md +188 -0
- package/core/agents/performance-optimizer.md +187 -0
- package/core/agents/product-manager.md +112 -0
- package/core/agents/product-owner.md +95 -0
- package/core/agents/project-planner.md +470 -0
- package/core/agents/qa-automation-engineer.md +103 -0
- package/core/agents/security-auditor.md +170 -0
- package/core/agents/seo-specialist.md +111 -0
- package/core/agents/stitch-designer.md +190 -0
- package/core/agents/tdd-reviewer.md +282 -0
- package/core/agents/test-engineer.md +158 -0
- package/core/scripts/auto_preview.py +148 -0
- package/core/scripts/checklist.py +243 -0
- package/core/scripts/cost_report.py +149 -0
- package/core/scripts/doc-sync-check.py +461 -0
- package/core/scripts/parse_user_stories.py +79 -0
- package/core/scripts/prepare_notion_updates.py +172 -0
- package/core/scripts/print_create_payload.py +18 -0
- package/core/scripts/session_manager.py +120 -0
- package/core/scripts/task_complete.py +127 -0
- package/core/scripts/verify_all.py +327 -0
- package/core/skills/analytics-strategy/SKILL.md +128 -0
- package/core/skills/api-patterns/SKILL.md +81 -0
- package/core/skills/api-patterns/api-style.md +42 -0
- package/core/skills/api-patterns/auth.md +24 -0
- package/core/skills/api-patterns/documentation.md +26 -0
- package/core/skills/api-patterns/graphql.md +41 -0
- package/core/skills/api-patterns/rate-limiting.md +31 -0
- package/core/skills/api-patterns/response.md +37 -0
- package/core/skills/api-patterns/rest.md +40 -0
- package/core/skills/api-patterns/scripts/api_validator.py +211 -0
- package/core/skills/api-patterns/security-testing.md +122 -0
- package/core/skills/api-patterns/trpc.md +41 -0
- package/core/skills/api-patterns/versioning.md +22 -0
- package/core/skills/app-builder/SKILL.md +75 -0
- package/core/skills/app-builder/agent-coordination.md +71 -0
- package/core/skills/app-builder/feature-building.md +53 -0
- package/core/skills/app-builder/project-detection.md +34 -0
- package/core/skills/app-builder/scaffolding.md +118 -0
- package/core/skills/app-builder/tech-stack.md +40 -0
- package/core/skills/app-builder/templates/SKILL.md +39 -0
- package/core/skills/app-builder/templates/astro-static/TEMPLATE.md +76 -0
- package/core/skills/app-builder/templates/chrome-extension/TEMPLATE.md +92 -0
- package/core/skills/app-builder/templates/cli-tool/TEMPLATE.md +88 -0
- package/core/skills/app-builder/templates/electron-desktop/TEMPLATE.md +88 -0
- package/core/skills/app-builder/templates/express-api/TEMPLATE.md +83 -0
- package/core/skills/app-builder/templates/flutter-app/TEMPLATE.md +90 -0
- package/core/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +90 -0
- package/core/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +82 -0
- package/core/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +100 -0
- package/core/skills/app-builder/templates/nextjs-static/TEMPLATE.md +106 -0
- package/core/skills/app-builder/templates/nuxt-app/TEMPLATE.md +101 -0
- package/core/skills/app-builder/templates/python-fastapi/TEMPLATE.md +83 -0
- package/core/skills/app-builder/templates/react-native-app/TEMPLATE.md +93 -0
- package/core/skills/architecture/SKILL.md +55 -0
- package/core/skills/architecture/context-discovery.md +43 -0
- package/core/skills/architecture/examples.md +94 -0
- package/core/skills/architecture/pattern-selection.md +68 -0
- package/core/skills/architecture/patterns-reference.md +50 -0
- package/core/skills/architecture/trade-off-analysis.md +77 -0
- package/core/skills/atomic-design/SKILL.md +282 -0
- package/core/skills/atomic-design/references/classification-guide.md +132 -0
- package/core/skills/atomic-design/references/quality-checklist.md +60 -0
- package/core/skills/atomic-design/references/stacks/stack-blade.md +254 -0
- package/core/skills/atomic-design/references/stacks/stack-nextjs.md +272 -0
- package/core/skills/atomic-design/references/stacks/stack-react.md +239 -0
- package/core/skills/atomic-design/references/stacks/stack-vue.md +224 -0
- package/core/skills/bash-linux/SKILL.md +199 -0
- package/core/skills/behavioral-modes/SKILL.md +242 -0
- package/core/skills/brainstorming/SKILL.md +163 -0
- package/core/skills/brainstorming/dynamic-questioning.md +373 -0
- package/core/skills/checkpointing-patterns/SKILL.md +163 -0
- package/core/skills/clean-code/SKILL.md +201 -0
- package/core/skills/code-review-checklist/SKILL.md +109 -0
- package/core/skills/code-truth-validation/SKILL.md +149 -0
- package/core/skills/component-library-discovery/SKILL.md +154 -0
- package/core/skills/content-strategy/SKILL.md +222 -0
- package/core/skills/context-budget/SKILL.md +155 -0
- package/core/skills/context-gathering-patterns/SKILL.md +278 -0
- package/core/skills/cost-tracking/SKILL.md +206 -0
- package/core/skills/database-design/SKILL.md +52 -0
- package/core/skills/database-design/database-selection.md +43 -0
- package/core/skills/database-design/indexing.md +39 -0
- package/core/skills/database-design/migrations.md +48 -0
- package/core/skills/database-design/optimization.md +36 -0
- package/core/skills/database-design/orm-selection.md +30 -0
- package/core/skills/database-design/schema-design.md +56 -0
- package/core/skills/database-design/scripts/schema_validator.py +172 -0
- package/core/skills/deployment-procedures/SKILL.md +295 -0
- package/core/skills/design-md/README.md +34 -0
- package/core/skills/design-md/SKILL.md +172 -0
- package/core/skills/design-md/examples/DESIGN.md +154 -0
- package/core/skills/design-system-enforcement/SKILL.md +339 -0
- package/core/skills/doc.md +177 -0
- package/core/skills/document-registry/SKILL.md +130 -0
- package/core/skills/documentation-publishing/SKILL.md +174 -0
- package/core/skills/documentation-templates/SKILL.md +194 -0
- package/core/skills/enhance-prompt/README.md +34 -0
- package/core/skills/enhance-prompt/SKILL.md +204 -0
- package/core/skills/enhance-prompt/references/KEYWORDS.md +114 -0
- package/core/skills/frontend-design/SKILL.md +430 -0
- package/core/skills/frontend-design/animation-guide.md +331 -0
- package/core/skills/frontend-design/color-system.md +311 -0
- package/core/skills/frontend-design/decision-trees.md +418 -0
- package/core/skills/frontend-design/motion-graphics.md +306 -0
- package/core/skills/frontend-design/scripts/accessibility_checker.py +183 -0
- package/core/skills/frontend-design/scripts/ux_audit.py +722 -0
- package/core/skills/frontend-design/typography-system.md +345 -0
- package/core/skills/frontend-design/ux-psychology.md +541 -0
- package/core/skills/frontend-design/visual-effects.md +383 -0
- package/core/skills/game-development/2d-games/SKILL.md +119 -0
- package/core/skills/game-development/3d-games/SKILL.md +135 -0
- package/core/skills/game-development/SKILL.md +167 -0
- package/core/skills/game-development/game-art/SKILL.md +185 -0
- package/core/skills/game-development/game-audio/SKILL.md +190 -0
- package/core/skills/game-development/game-design/SKILL.md +129 -0
- package/core/skills/game-development/mobile-games/SKILL.md +108 -0
- package/core/skills/game-development/multiplayer/SKILL.md +132 -0
- package/core/skills/game-development/pc-games/SKILL.md +144 -0
- package/core/skills/game-development/vr-ar/SKILL.md +123 -0
- package/core/skills/game-development/web-games/SKILL.md +150 -0
- package/core/skills/geo-fundamentals/SKILL.md +156 -0
- package/core/skills/geo-fundamentals/scripts/geo_checker.py +289 -0
- package/core/skills/git-workflow/SKILL.md +263 -0
- package/core/skills/history-check-patterns/SKILL.md +125 -0
- package/core/skills/i18n-localization/SKILL.md +154 -0
- package/core/skills/i18n-localization/scripts/i18n_checker.py +241 -0
- package/core/skills/integration-completeness/SKILL.md +219 -0
- package/core/skills/intelligent-routing/SKILL.md +370 -0
- package/core/skills/lint-and-validate/SKILL.md +45 -0
- package/core/skills/lint-and-validate/scripts/lint_runner.py +173 -0
- package/core/skills/lint-and-validate/scripts/type_coverage.py +173 -0
- package/core/skills/local-verification/SKILL.md +195 -0
- package/core/skills/mcp-builder/SKILL.md +176 -0
- package/core/skills/mobile-design/SKILL.md +394 -0
- package/core/skills/mobile-design/decision-trees.md +516 -0
- package/core/skills/mobile-design/mobile-backend.md +491 -0
- package/core/skills/mobile-design/mobile-color-system.md +420 -0
- package/core/skills/mobile-design/mobile-debugging.md +122 -0
- package/core/skills/mobile-design/mobile-design-thinking.md +357 -0
- package/core/skills/mobile-design/mobile-navigation.md +458 -0
- package/core/skills/mobile-design/mobile-performance.md +767 -0
- package/core/skills/mobile-design/mobile-testing.md +356 -0
- package/core/skills/mobile-design/mobile-typography.md +433 -0
- package/core/skills/mobile-design/platform-android.md +666 -0
- package/core/skills/mobile-design/platform-ios.md +561 -0
- package/core/skills/mobile-design/scripts/mobile_audit.py +670 -0
- package/core/skills/mobile-design/touch-psychology.md +537 -0
- package/core/skills/nextjs-react-expert/1-async-eliminating-waterfalls.md +312 -0
- package/core/skills/nextjs-react-expert/2-bundle-bundle-size-optimization.md +240 -0
- package/core/skills/nextjs-react-expert/3-server-server-side-performance.md +490 -0
- package/core/skills/nextjs-react-expert/4-client-client-side-data-fetching.md +264 -0
- package/core/skills/nextjs-react-expert/5-rerender-re-render-optimization.md +581 -0
- package/core/skills/nextjs-react-expert/6-rendering-rendering-performance.md +432 -0
- package/core/skills/nextjs-react-expert/7-js-javascript-performance.md +684 -0
- package/core/skills/nextjs-react-expert/8-advanced-advanced-patterns.md +150 -0
- package/core/skills/nextjs-react-expert/SKILL.md +267 -0
- package/core/skills/nextjs-react-expert/scripts/convert_rules.py +222 -0
- package/core/skills/nextjs-react-expert/scripts/react_performance_checker.py +252 -0
- package/core/skills/nodejs-best-practices/SKILL.md +333 -0
- package/core/skills/notion-task-patterns/SKILL.md +2529 -0
- package/core/skills/page-specifications/SKILL.md +367 -0
- package/core/skills/parallel-agents/SKILL.md +175 -0
- package/core/skills/performance-profiling/SKILL.md +143 -0
- package/core/skills/performance-profiling/scripts/lighthouse_audit.py +76 -0
- package/core/skills/plan-writing/SKILL.md +190 -0
- package/core/skills/powershell-windows/SKILL.md +167 -0
- package/core/skills/project-foundation/SKILL.md +117 -0
- package/core/skills/project-setup/SKILL.md +141 -0
- package/core/skills/project-tracking-patterns/SKILL.md +357 -0
- package/core/skills/project-type-discovery/SKILL.md +239 -0
- package/core/skills/python-patterns/SKILL.md +441 -0
- package/core/skills/qa-test-generation/SKILL.md +156 -0
- package/core/skills/react-components/README.md +36 -0
- package/core/skills/react-components/SKILL.md +47 -0
- package/core/skills/react-components/examples/gold-standard-card.tsx +80 -0
- package/core/skills/react-components/package-lock.json +231 -0
- package/core/skills/react-components/package.json +16 -0
- package/core/skills/react-components/resources/architecture-checklist.md +15 -0
- package/core/skills/react-components/resources/component-template.tsx +37 -0
- package/core/skills/react-components/resources/stitch-api-reference.md +14 -0
- package/core/skills/react-components/resources/style-guide.json +27 -0
- package/core/skills/react-components/scripts/fetch-stitch.sh +30 -0
- package/core/skills/react-components/scripts/validate.js +68 -0
- package/core/skills/red-team-tactics/SKILL.md +199 -0
- package/core/skills/remotion/README.md +105 -0
- package/core/skills/remotion/SKILL.md +393 -0
- package/core/skills/remotion/examples/WalkthroughComposition.tsx +78 -0
- package/core/skills/remotion/examples/screens.json +56 -0
- package/core/skills/remotion/resources/composition-checklist.md +124 -0
- package/core/skills/remotion/resources/screen-slide-template.tsx +123 -0
- package/core/skills/remotion/scripts/download-stitch-asset.sh +38 -0
- package/core/skills/seo-fundamentals/SKILL.md +129 -0
- package/core/skills/seo-fundamentals/scripts/seo_checker.py +219 -0
- package/core/skills/server-management/SKILL.md +161 -0
- package/core/skills/session-resilience/SKILL.md +199 -0
- package/core/skills/shadcn-ui/README.md +248 -0
- package/core/skills/shadcn-ui/SKILL.md +326 -0
- package/core/skills/shadcn-ui/examples/auth-layout.tsx +177 -0
- package/core/skills/shadcn-ui/examples/data-table.tsx +313 -0
- package/core/skills/shadcn-ui/examples/form-pattern.tsx +177 -0
- package/core/skills/shadcn-ui/resources/component-catalog.md +481 -0
- package/core/skills/shadcn-ui/resources/customization-guide.md +516 -0
- package/core/skills/shadcn-ui/resources/migration-guide.md +463 -0
- package/core/skills/shadcn-ui/resources/setup-guide.md +412 -0
- package/core/skills/shadcn-ui/scripts/verify-setup.sh +134 -0
- package/core/skills/state-machine/SKILL.md +264 -0
- package/core/skills/stitch-loop/README.md +54 -0
- package/core/skills/stitch-loop/SKILL.md +203 -0
- package/core/skills/stitch-loop/examples/SITE.md +73 -0
- package/core/skills/stitch-loop/examples/next-prompt.md +25 -0
- package/core/skills/stitch-loop/resources/baton-schema.md +61 -0
- package/core/skills/stitch-loop/resources/site-template.md +104 -0
- package/core/skills/systematic-debugging/SKILL.md +109 -0
- package/core/skills/tailwind-patterns/SKILL.md +284 -0
- package/core/skills/tdd-validation/SKILL.md +243 -0
- package/core/skills/tdd-workflow/SKILL.md +284 -0
- package/core/skills/testing-patterns/SKILL.md +196 -0
- package/core/skills/testing-patterns/scripts/test_runner.py +219 -0
- package/core/skills/ui-ux-discovery/SKILL.md +329 -0
- package/core/skills/ui-validation/SKILL.md +190 -0
- package/core/skills/ui-validation/scripts/ui_antipattern_check.py +317 -0
- package/core/skills/verification-gate/SKILL.md +205 -0
- package/core/skills/vulnerability-scanner/SKILL.md +276 -0
- package/core/skills/vulnerability-scanner/checklists.md +121 -0
- package/core/skills/vulnerability-scanner/scripts/security_scan.py +458 -0
- package/core/skills/web-design-guidelines/SKILL.md +57 -0
- package/core/skills/webapp-testing/SKILL.md +187 -0
- package/core/skills/webapp-testing/scripts/playwright_runner.py +173 -0
- package/core/templates/ARCHITECTURE.template.md +407 -0
- package/core/templates/project-resources.example.json +71 -0
- package/core/workflows/atomic.md +182 -0
- package/core/workflows/brainstorm.md +134 -0
- package/core/workflows/check-task.md +242 -0
- package/core/workflows/copy-collect.md +306 -0
- package/core/workflows/create-agent.md +33 -0
- package/core/workflows/create-skill.md +39 -0
- package/core/workflows/create-workflow.md +33 -0
- package/core/workflows/create.md +92 -0
- package/core/workflows/debug.md +186 -0
- package/core/workflows/demand.md +443 -0
- package/core/workflows/deploy.md +260 -0
- package/core/workflows/discovery.md +267 -0
- package/core/workflows/document.md +272 -0
- package/core/workflows/ds-components.md +296 -0
- package/core/workflows/ds-init.md +58 -0
- package/core/workflows/ds-refactor.md +245 -0
- package/core/workflows/ds-references.md +197 -0
- package/core/workflows/ds-styleguide.md +237 -0
- package/core/workflows/ds-token-diff.md +103 -0
- package/core/workflows/ds-tokens.md +317 -0
- package/core/workflows/ds-validate.md +309 -0
- package/core/workflows/execute.md +483 -0
- package/core/workflows/extract-template.md +278 -0
- package/core/workflows/fix-failed-tests.md +160 -0
- package/core/workflows/init-project.md +386 -0
- package/core/workflows/legacy-project.md +849 -0
- package/core/workflows/log.md +97 -0
- package/core/workflows/new-project.md +610 -0
- package/core/workflows/new-project.md.bak +3292 -0
- package/core/workflows/new-task.md +404 -0
- package/core/workflows/orchestrate.md +237 -0
- package/core/workflows/page-build.md +296 -0
- package/core/workflows/plan.md +89 -0
- package/core/workflows/prd.md +255 -0
- package/core/workflows/preview.md +81 -0
- package/core/workflows/review-page.md +304 -0
- package/core/workflows/status.md +86 -0
- package/core/workflows/stitch.md +226 -0
- package/core/workflows/task-complete.md +473 -0
- package/core/workflows/task-update.md +163 -0
- package/core/workflows/tdd.md +344 -0
- package/core/workflows/test.md +251 -0
- package/core/workflows/ui-ux-pro-max.md +437 -0
- package/core/workflows/ux-mobile-optimize.md +262 -0
- package/core/workflows/ux-mobile-validate.md +297 -0
- package/engine-files/GEMINI.md +69 -0
- package/package.json +47 -0
- package/runtime-adapters/antigravity.js +26 -0
- package/runtime-adapters/claude.js +57 -0
- package/runtime-adapters/codex.js +51 -0
- package/runtime-adapters/copilot.js +51 -0
- package/runtime-adapters/cursor.js +51 -0
- package/runtime-adapters/gemini-cli.js +30 -0
- package/runtime-adapters/opencode.js +51 -0
- package/runtime-adapters/windsurf.js +51 -0
|
@@ -0,0 +1,443 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Levantamento de demanda comercial. Analisa projeto, estima esforço/valor, gera proposta no Flyee. Após aprovação, alimenta /discovery.
|
|
3
|
+
skills: document-registry
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /demand - Levantamento de Demanda Comercial
|
|
7
|
+
|
|
8
|
+
$ARGUMENTS
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## 🎯 PROPÓSITO
|
|
13
|
+
|
|
14
|
+
Workflow para **levantamento de demanda comercial** que:
|
|
15
|
+
1. Analisa projeto existente (se houver)
|
|
16
|
+
2. Estima esforço, tempo e valor
|
|
17
|
+
3. Gera proposta estruturada no Flyee
|
|
18
|
+
4. Após aprovação, alimenta automaticamente o `/discovery`
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
┌────────────┐ ┌────────────┐ ┌────────────┐ ┌────────────┐ ┌────────────┐
|
|
22
|
+
│ ANÁLISE │───▶│ LEVANTAMENTO│───▶│ PROPOSTA │───▶│ APROVAÇÃO │───▶│ /discovery │
|
|
23
|
+
│ (Projeto) │ │ (Esforço) │ │ (Flyee) │ │ (Humana) │ │ (Técnico) │
|
|
24
|
+
└────────────┘ └────────────┘ └────────────┘ └────────────┘ └────────────┘
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## 🔴 FLUXO
|
|
30
|
+
|
|
31
|
+
### Fase 0: PRE-FLIGHT CHECK (Obrigatório)
|
|
32
|
+
|
|
33
|
+
**Trigger:** Início do comando
|
|
34
|
+
|
|
35
|
+
**Ações:**
|
|
36
|
+
1. Buscar database "Propostas Comerciais" no Flyee via MCP
|
|
37
|
+
2. Se **NÃO existir**:
|
|
38
|
+
```
|
|
39
|
+
⚠️ DATABASE NÃO ENCONTRADO
|
|
40
|
+
|
|
41
|
+
Crie manualmente o database "Propostas Comerciais" no Flyee com as propriedades:
|
|
42
|
+
|
|
43
|
+
| Propriedade | Tipo | Opções |
|
|
44
|
+
|-------------|------|--------|
|
|
45
|
+
| Nome | Title | - |
|
|
46
|
+
| Status | Status | Rascunho, Em Análise, Aprovado, Rejeitado |
|
|
47
|
+
| Cliente | Text | - |
|
|
48
|
+
| Prazo Desejado | Date | - |
|
|
49
|
+
| Faixa Investimento | Select | Até 5k, 5k-15k, 15k-50k, 50k+ |
|
|
50
|
+
| Valor Proposta | Number | - |
|
|
51
|
+
| Horas Estimadas | Number | - |
|
|
52
|
+
| Complexidade | Select | Baixa, Média, Alta, Muito Alta |
|
|
53
|
+
| Qtd Features | Number | - |
|
|
54
|
+
| Qtd Telas | Number | - |
|
|
55
|
+
| Stack | Multi-select | - |
|
|
56
|
+
| Risco | Select | Baixo, Médio, Alto |
|
|
57
|
+
| Tipo Projeto | Select | Novo, Evolução, Correção |
|
|
58
|
+
| Link Projeto | URL | - |
|
|
59
|
+
| Responsável | People | - |
|
|
60
|
+
|
|
61
|
+
Após criar, execute /demand novamente.
|
|
62
|
+
```
|
|
63
|
+
3. Se **existir mas faltar propriedades**, listar quais faltam e solicitar criação manual
|
|
64
|
+
4. Se **OK**, prosseguir para Fase 1
|
|
65
|
+
|
|
66
|
+
> ℹ️ **Nota Técnica:** Os scripts de automação (`parse_user_stories.py`, `prepare_tracker_updates.py`) agora são genéricos e exigem argumentos (`--input`, `--database-id`, `--epic`) quando executados manualmente.
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
### Fase 1: COLETA DE INFORMAÇÕES
|
|
71
|
+
|
|
72
|
+
**Trigger:** Pre-flight OK
|
|
73
|
+
|
|
74
|
+
**Agente Lead:** `product-owner`
|
|
75
|
+
|
|
76
|
+
**Perguntas Obrigatórias:**
|
|
77
|
+
|
|
78
|
+
| # | Pergunta | Campo Flyee |
|
|
79
|
+
|---|----------|--------------|
|
|
80
|
+
| 1 | Qual o nome do cliente/projeto? | Cliente |
|
|
81
|
+
| 2 | Qual o tipo de projeto? (Novo/Evolução/Correção) | Tipo Projeto |
|
|
82
|
+
| 3 | Existe código ou documentação existente? (link) | Link Projeto |
|
|
83
|
+
| 4 | Qual o prazo desejado pelo cliente? | Prazo Desejado |
|
|
84
|
+
| 5 | Qual a faixa de investimento disponível? | Faixa Investimento |
|
|
85
|
+
| 6 | Descreva brevemente o que precisa ser feito | (corpo) |
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
### Fase 2: ANÁLISE DO PROJETO (Se houver código/docs existentes)
|
|
90
|
+
|
|
91
|
+
**Trigger:** Link de projeto fornecido OU projeto local identificado
|
|
92
|
+
|
|
93
|
+
**Agentes:**
|
|
94
|
+
|
|
95
|
+
| Agente | Responsabilidade |
|
|
96
|
+
|--------|------------------|
|
|
97
|
+
| `backend-specialist` | Analisar código backend, APIs, banco |
|
|
98
|
+
| `frontend-specialist` | Analisar código frontend, componentes, telas |
|
|
99
|
+
| `security-auditor` | Identificar riscos e débitos técnicos |
|
|
100
|
+
| `orchestrator` | Consolidar análise |
|
|
101
|
+
|
|
102
|
+
**Ações:**
|
|
103
|
+
1. Ler SDD existente (se houver em `docs/design/SDD-*.md`)
|
|
104
|
+
2. Analisar estrutura do projeto:
|
|
105
|
+
- Identificar stack tecnológica
|
|
106
|
+
- Contar telas/páginas existentes
|
|
107
|
+
- Contar endpoints/features
|
|
108
|
+
- Avaliar complexidade do código
|
|
109
|
+
3. Identificar impactos da nova demanda:
|
|
110
|
+
- O que precisa ser criado do zero?
|
|
111
|
+
- O que precisa ser modificado?
|
|
112
|
+
- Quais integrações são afetadas?
|
|
113
|
+
4. Avaliar riscos:
|
|
114
|
+
- Débitos técnicos existentes
|
|
115
|
+
- Dependências desatualizadas
|
|
116
|
+
- Complexidade de integração
|
|
117
|
+
|
|
118
|
+
**Output:** Relatório de análise técnica
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
### Fase 3: ESTIMATIVA DE ESFORÇO
|
|
123
|
+
|
|
124
|
+
**Trigger:** Após análise (ou após Fase 1 se projeto novo)
|
|
125
|
+
|
|
126
|
+
**Agente Lead:** `project-planner`
|
|
127
|
+
|
|
128
|
+
**Skill:** `plan-writing`
|
|
129
|
+
|
|
130
|
+
**Metodologia:**
|
|
131
|
+
|
|
132
|
+
1. **Quebrar em Tasks:**
|
|
133
|
+
- Listar todas as funcionalidades necessárias
|
|
134
|
+
- Agrupar por área (Backend, Frontend, Infra, etc.)
|
|
135
|
+
|
|
136
|
+
2. **Estimar por Task (T-shirt sizing):**
|
|
137
|
+
|
|
138
|
+
| Size | Horas | Descrição |
|
|
139
|
+
|------|-------|-----------|
|
|
140
|
+
| XS | 2h | Ajuste simples, config |
|
|
141
|
+
| S | 4h | Feature pequena, CRUD simples |
|
|
142
|
+
| M | 8h | Feature média, integração |
|
|
143
|
+
| L | 16h | Feature complexa, múltiplos componentes |
|
|
144
|
+
| XL | 32h+ | Epic, requer quebra |
|
|
145
|
+
|
|
146
|
+
3. **Calcular Totais:**
|
|
147
|
+
- Horas totais = Soma de todas as tasks
|
|
148
|
+
- Aplicar fator de risco:
|
|
149
|
+
- Risco Baixo: x1.1
|
|
150
|
+
- Risco Médio: x1.3
|
|
151
|
+
- Risco Alto: x1.5
|
|
152
|
+
|
|
153
|
+
4. **Classificar Complexidade:**
|
|
154
|
+
|
|
155
|
+
| Horas Totais | Complexidade |
|
|
156
|
+
|--------------|--------------|
|
|
157
|
+
| < 20h | Baixa |
|
|
158
|
+
| 20-60h | Média |
|
|
159
|
+
| 60-150h | Alta |
|
|
160
|
+
| > 150h | Muito Alta |
|
|
161
|
+
|
|
162
|
+
---
|
|
163
|
+
|
|
164
|
+
### Fase 4: CÁLCULO DE VALOR
|
|
165
|
+
|
|
166
|
+
**Trigger:** Após estimativa de esforço
|
|
167
|
+
|
|
168
|
+
**Agente Lead:** `orchestrator`
|
|
169
|
+
|
|
170
|
+
**Fórmula Base:**
|
|
171
|
+
|
|
172
|
+
```
|
|
173
|
+
Valor = Horas Estimadas × Valor Hora Base × Fator Complexidade × Fator Urgência
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
**Parâmetros:**
|
|
177
|
+
|
|
178
|
+
| Parâmetro | Valores |
|
|
179
|
+
|-----------|---------|
|
|
180
|
+
| Valor Hora Base | R$ 150 (ajustável) |
|
|
181
|
+
| Fator Complexidade | Baixa: 1.0, Média: 1.2, Alta: 1.4, Muito Alta: 1.6 |
|
|
182
|
+
| Fator Urgência | Normal: 1.0, Urgente (<30d): 1.3, Crítico (<15d): 1.5 |
|
|
183
|
+
|
|
184
|
+
**Output:**
|
|
185
|
+
```
|
|
186
|
+
💰 ESTIMATIVA DE VALOR
|
|
187
|
+
|
|
188
|
+
Horas Base: XX horas
|
|
189
|
+
Fator Risco: x1.X
|
|
190
|
+
Horas Ajustadas: XX horas
|
|
191
|
+
|
|
192
|
+
Valor Base: R$ XX.XXX
|
|
193
|
+
Fator Complexidade: x1.X
|
|
194
|
+
Fator Urgência: x1.X
|
|
195
|
+
|
|
196
|
+
━━━━━━━━━━━━━━━━━━━━━━
|
|
197
|
+
VALOR PROPOSTA: R$ XX.XXX
|
|
198
|
+
━━━━━━━━━━━━━━━━━━━━━━
|
|
199
|
+
|
|
200
|
+
Faixa do Cliente: [comparar com disponível]
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
---
|
|
204
|
+
|
|
205
|
+
### Fase 5: GERAÇÃO DA PROPOSTA NO FLYEE
|
|
206
|
+
|
|
207
|
+
**Trigger:** Após cálculo de valor
|
|
208
|
+
|
|
209
|
+
**Agente:** `orchestrator`
|
|
210
|
+
|
|
211
|
+
**MCP:** `Flyee API`
|
|
212
|
+
|
|
213
|
+
**Ações:**
|
|
214
|
+
|
|
215
|
+
1. Criar página no database "Propostas Comerciais" via `API-post-page`:
|
|
216
|
+
- Preencher todas as propriedades do schema
|
|
217
|
+
- Status inicial: "Rascunho"
|
|
218
|
+
|
|
219
|
+
2. Adicionar conteúdo estruturado via `API-patch-block-children`:
|
|
220
|
+
|
|
221
|
+
```markdown
|
|
222
|
+
## 📌 Contexto do Cliente
|
|
223
|
+
[Resumo do cliente e situação]
|
|
224
|
+
|
|
225
|
+
## 🎯 Problema a Ser Resolvido
|
|
226
|
+
[Descrição do problema/necessidade]
|
|
227
|
+
|
|
228
|
+
## 📦 Funcionalidades Solicitadas
|
|
229
|
+
|
|
230
|
+
### Must-have (MVP)
|
|
231
|
+
- [ ] Feature 1
|
|
232
|
+
- [ ] Feature 2
|
|
233
|
+
|
|
234
|
+
### Nice-to-have (Fase 2)
|
|
235
|
+
- [ ] Feature 3
|
|
236
|
+
|
|
237
|
+
## 📊 Análise Técnica
|
|
238
|
+
|
|
239
|
+
### Stack Identificada
|
|
240
|
+
[Tecnologias]
|
|
241
|
+
|
|
242
|
+
### Impactos no Sistema Existente
|
|
243
|
+
[Descrição de modificações necessárias]
|
|
244
|
+
|
|
245
|
+
### Riscos Identificados
|
|
246
|
+
[Lista de riscos e mitigações]
|
|
247
|
+
|
|
248
|
+
## 📈 Breakdown de Esforço
|
|
249
|
+
|
|
250
|
+
| Área | Features | Horas |
|
|
251
|
+
|------|----------|-------|
|
|
252
|
+
| Backend | X | Xh |
|
|
253
|
+
| Frontend | X | Xh |
|
|
254
|
+
| Infra | X | Xh |
|
|
255
|
+
| **Total** | **X** | **Xh** |
|
|
256
|
+
|
|
257
|
+
## 💰 Composição do Valor
|
|
258
|
+
|
|
259
|
+
| Item | Valor |
|
|
260
|
+
|------|-------|
|
|
261
|
+
| Horas Base | Xh |
|
|
262
|
+
| Fator Risco | xX.X |
|
|
263
|
+
| Horas Ajustadas | Xh |
|
|
264
|
+
| Valor/Hora | R$ XXX |
|
|
265
|
+
| Fator Complexidade | xX.X |
|
|
266
|
+
| Fator Urgência | xX.X |
|
|
267
|
+
| **TOTAL** | **R$ XX.XXX** |
|
|
268
|
+
|
|
269
|
+
## ⏰ Timeline Estimado
|
|
270
|
+
[Prazo de entrega estimado]
|
|
271
|
+
|
|
272
|
+
## ✅ Próximos Passos
|
|
273
|
+
1. Aprovação da proposta
|
|
274
|
+
2. Assinatura do contrato
|
|
275
|
+
3. Início do discovery técnico (/discovery)
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
3. Notificar usuário com link da proposta
|
|
279
|
+
|
|
280
|
+
---
|
|
281
|
+
|
|
282
|
+
### Fase 6: APROVAÇÃO E ENCAMINHAMENTO
|
|
283
|
+
|
|
284
|
+
**Trigger:** Proposta criada no Flyee
|
|
285
|
+
|
|
286
|
+
**Gate:**
|
|
287
|
+
```
|
|
288
|
+
🛑 PROPOSTA GERADA
|
|
289
|
+
|
|
290
|
+
📄 Proposta: [Link Flyee]
|
|
291
|
+
💰 Valor: R$ XX.XXX
|
|
292
|
+
⏰ Prazo: XX dias
|
|
293
|
+
|
|
294
|
+
Envie para o cliente e aguarde aprovação.
|
|
295
|
+
|
|
296
|
+
Quando APROVADO, altere o Status no Tracker para "Aprovado" e execute:
|
|
297
|
+
|
|
298
|
+
/discovery --from-demand "[Nome da Proposta]"
|
|
299
|
+
```
|
|
300
|
+
|
|
301
|
+
---
|
|
302
|
+
|
|
303
|
+
## 📋 SCHEMA FLYEE (Referência)
|
|
304
|
+
|
|
305
|
+
### Propriedades
|
|
306
|
+
|
|
307
|
+
| Propriedade | Tipo | Preenchido por |
|
|
308
|
+
|-------------|------|----------------|
|
|
309
|
+
| Nome | Title | Usuário |
|
|
310
|
+
| Status | Status | Manual |
|
|
311
|
+
| Cliente | Text | Usuário |
|
|
312
|
+
| Prazo Desejado | Date | Usuário |
|
|
313
|
+
| Faixa Investimento | Select | Usuário |
|
|
314
|
+
| Valor Proposta | Number | IA |
|
|
315
|
+
| Horas Estimadas | Number | IA |
|
|
316
|
+
| Complexidade | Select | IA |
|
|
317
|
+
| Qtd Features | Number | IA |
|
|
318
|
+
| Qtd Telas | Number | IA |
|
|
319
|
+
| Stack | Multi-select | IA |
|
|
320
|
+
| Risco | Select | IA |
|
|
321
|
+
| Tipo Projeto | Select | Usuário |
|
|
322
|
+
| Link Projeto | URL | Usuário |
|
|
323
|
+
| Responsável | People | Usuário |
|
|
324
|
+
|
|
325
|
+
---
|
|
326
|
+
|
|
327
|
+
## 🔗 INTEGRAÇÃO COM /discovery
|
|
328
|
+
|
|
329
|
+
Quando executado com `--from-demand`:
|
|
330
|
+
|
|
331
|
+
1. Buscar proposta aprovada no Flyee
|
|
332
|
+
2. Extrair informações já coletadas
|
|
333
|
+
3. Pré-preencher respostas do Brainstorm (Fase 1):
|
|
334
|
+
- Problema → do campo "Problema a Ser Resolvido"
|
|
335
|
+
- MVP → do campo "Must-have"
|
|
336
|
+
- Stack → do campo "Stack"
|
|
337
|
+
- Prazo → do campo "Prazo Desejado"
|
|
338
|
+
4. Pular perguntas já respondidas
|
|
339
|
+
5. Continuar fluxo normal do /discovery
|
|
340
|
+
|
|
341
|
+
---
|
|
342
|
+
|
|
343
|
+
## 🚀 USAGE
|
|
344
|
+
|
|
345
|
+
```bash
|
|
346
|
+
# Levantamento completo
|
|
347
|
+
/demand
|
|
348
|
+
|
|
349
|
+
# Com projeto existente
|
|
350
|
+
/demand --project ./path/to/project
|
|
351
|
+
|
|
352
|
+
# Com SDD existente
|
|
353
|
+
/demand --tdd docs/design/SDD-projeto.md
|
|
354
|
+
```
|
|
355
|
+
|
|
356
|
+
---
|
|
357
|
+
|
|
358
|
+
## 📊 EXEMPLO
|
|
359
|
+
|
|
360
|
+
```
|
|
361
|
+
Usuário: /demand
|
|
362
|
+
|
|
363
|
+
IA: 🧠 Iniciando Levantamento de Demanda...
|
|
364
|
+
|
|
365
|
+
───────────────────────────────────
|
|
366
|
+
✅ PRE-FLIGHT CHECK
|
|
367
|
+
───────────────────────────────────
|
|
368
|
+
Database "Propostas Comerciais" encontrado. ✓
|
|
369
|
+
|
|
370
|
+
───────────────────────────────────
|
|
371
|
+
📋 FASE 1: COLETA
|
|
372
|
+
───────────────────────────────────
|
|
373
|
+
|
|
374
|
+
1️⃣ Qual o nome do cliente/projeto?
|
|
375
|
+
> TaNaVitrine
|
|
376
|
+
|
|
377
|
+
2️⃣ Qual o tipo de projeto?
|
|
378
|
+
> Evolução
|
|
379
|
+
|
|
380
|
+
3️⃣ Existe código ou docs existentes?
|
|
381
|
+
> Sim, c:\mobile-apps\Tanavitrine-refactor
|
|
382
|
+
|
|
383
|
+
4️⃣ Qual o prazo desejado?
|
|
384
|
+
> 60 dias
|
|
385
|
+
|
|
386
|
+
5️⃣ Qual a faixa de investimento?
|
|
387
|
+
> 15k-50k
|
|
388
|
+
|
|
389
|
+
6️⃣ Descreva o que precisa ser feito:
|
|
390
|
+
> Implementar vitrine completa com dashboard...
|
|
391
|
+
|
|
392
|
+
───────────────────────────────────
|
|
393
|
+
🔍 FASE 2: ANÁLISE
|
|
394
|
+
───────────────────────────────────
|
|
395
|
+
|
|
396
|
+
Analisando projeto existente...
|
|
397
|
+
✓ Stack: Next.js, Supabase, React
|
|
398
|
+
✓ Telas existentes: 5
|
|
399
|
+
✓ API endpoints: 12
|
|
400
|
+
✓ SDD encontrado: SDD-tanavitrine-platform.md
|
|
401
|
+
|
|
402
|
+
───────────────────────────────────
|
|
403
|
+
📈 FASE 3: ESTIMATIVA
|
|
404
|
+
───────────────────────────────────
|
|
405
|
+
|
|
406
|
+
| Área | Tasks | Horas |
|
|
407
|
+
|------|-------|-------|
|
|
408
|
+
| Backend | 8 | 45h |
|
|
409
|
+
| Frontend | 12 | 68h |
|
|
410
|
+
| Infra | 3 | 12h |
|
|
411
|
+
| **Total** | 23 | 125h |
|
|
412
|
+
|
|
413
|
+
Fator Risco (Médio): x1.3
|
|
414
|
+
Horas Ajustadas: 162h
|
|
415
|
+
|
|
416
|
+
───────────────────────────────────
|
|
417
|
+
💰 FASE 4: VALOR
|
|
418
|
+
───────────────────────────────────
|
|
419
|
+
|
|
420
|
+
162h × R$ 150 = R$ 24.300
|
|
421
|
+
× Complexidade Alta (1.4) = R$ 34.020
|
|
422
|
+
× Urgência Normal (1.0) = R$ 34.020
|
|
423
|
+
|
|
424
|
+
━━━━━━━━━━━━━━━━━━━━━━
|
|
425
|
+
VALOR PROPOSTA: R$ 34.020
|
|
426
|
+
━━━━━━━━━━━━━━━━━━━━━━
|
|
427
|
+
|
|
428
|
+
✓ Dentro da faixa do cliente (15k-50k)
|
|
429
|
+
|
|
430
|
+
───────────────────────────────────
|
|
431
|
+
📄 FASE 5: FLYEE
|
|
432
|
+
───────────────────────────────────
|
|
433
|
+
|
|
434
|
+
✅ Proposta criada no Flyee!
|
|
435
|
+
🔗 Link: [Proposta TaNaVitrine]
|
|
436
|
+
|
|
437
|
+
───────────────────────────────────
|
|
438
|
+
🛑 AGUARDANDO APROVAÇÃO
|
|
439
|
+
───────────────────────────────────
|
|
440
|
+
|
|
441
|
+
Quando aprovado, execute:
|
|
442
|
+
/discovery --from-demand "Proposta TaNaVitrine"
|
|
443
|
+
```
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Deployment command for production releases. Pre-flight checks and deployment execution.
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /deploy - Production Deployment
|
|
6
|
+
|
|
7
|
+
$ARGUMENTS
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Purpose
|
|
12
|
+
|
|
13
|
+
This command handles production deployment with pre-flight checks, deployment execution, and verification.
|
|
14
|
+
|
|
15
|
+
**Agentes Envolvidos:**
|
|
16
|
+
- `devops-engineer` - Execução do deploy e configuração de infra
|
|
17
|
+
- `security-auditor` - Validação de segurança pré-deploy
|
|
18
|
+
- `test-engineer` - Verificação de testes antes do deploy
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## 🌍 Environment Discovery Gate (OBRIGATÓRIO)
|
|
23
|
+
|
|
24
|
+
> [!CAUTION]
|
|
25
|
+
> **BLOQUEADOR:** ANTES de qualquer deploy, o agente DEVE perguntar sobre ambientes.
|
|
26
|
+
|
|
27
|
+
### Perguntas Obrigatórias
|
|
28
|
+
|
|
29
|
+
**Se ambientes NÃO estão documentados no TDD ou PROJECT-PROGRESS.md:**
|
|
30
|
+
|
|
31
|
+
```markdown
|
|
32
|
+
## 🌍 Definição de Ambientes
|
|
33
|
+
|
|
34
|
+
Preciso entender sua estratégia de ambientes antes do deploy:
|
|
35
|
+
|
|
36
|
+
1. **Quais ambientes você precisa?**
|
|
37
|
+
- [ ] Development (local)
|
|
38
|
+
- [ ] Staging (testes/validação)
|
|
39
|
+
- [ ] Production (usuários finais)
|
|
40
|
+
|
|
41
|
+
2. **Onde será hospedado cada ambiente?**
|
|
42
|
+
- Ex: Vercel, Railway, VPS, Docker, etc.
|
|
43
|
+
|
|
44
|
+
3. **Variáveis de ambiente diferem por ambiente?**
|
|
45
|
+
- Ex: API keys de teste vs produção
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### Tabela de Ambientes Padrão
|
|
49
|
+
|
|
50
|
+
| Ambiente | URL Típica | Propósito |
|
|
51
|
+
|----------|------------|-----------|
|
|
52
|
+
| Development | `localhost:3000` | Desenvolvimento local |
|
|
53
|
+
| Staging | `staging.app.com` | Testes e validação |
|
|
54
|
+
| Production | `app.com` | Usuários finais |
|
|
55
|
+
|
|
56
|
+
### Variáveis por Ambiente (Template)
|
|
57
|
+
|
|
58
|
+
| Variável | Dev | Staging | Prod | Descrição |
|
|
59
|
+
|----------|-----|---------|------|-----------|
|
|
60
|
+
| `DATABASE_URL` | local | staging-db | prod-db | Conexão DB |
|
|
61
|
+
| `API_KEY` | test-key | test-key | prod-key | APIs externas |
|
|
62
|
+
| `DEBUG` | true | true | false | Modo debug |
|
|
63
|
+
|
|
64
|
+
### Gate de Saída
|
|
65
|
+
|
|
66
|
+
```
|
|
67
|
+
[ ] Ambientes definidos (dev/staging/prod ou subset)
|
|
68
|
+
[ ] URLs planejadas para cada ambiente
|
|
69
|
+
[ ] Variáveis de ambiente mapeadas por ambiente
|
|
70
|
+
[ ] Estratégia de deploy documentada
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
> [!TIP]
|
|
74
|
+
> **Projetos simples:** Se o usuário confirmar "só preciso de prod", ok. Mas a pergunta DEVE ser feita.
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## Sub-commands
|
|
79
|
+
|
|
80
|
+
```
|
|
81
|
+
/deploy - Interactive deployment wizard
|
|
82
|
+
/deploy check - Run pre-deployment checks only
|
|
83
|
+
/deploy preview - Deploy to preview/staging
|
|
84
|
+
/deploy production - Deploy to production
|
|
85
|
+
/deploy rollback - Rollback to previous version
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
|
|
90
|
+
## Pre-Deployment Checklist
|
|
91
|
+
|
|
92
|
+
Before any deployment:
|
|
93
|
+
|
|
94
|
+
```markdown
|
|
95
|
+
## 🚀 Pre-Deploy Checklist
|
|
96
|
+
|
|
97
|
+
### Code Quality
|
|
98
|
+
- [ ] No TypeScript errors (`npx tsc --noEmit`)
|
|
99
|
+
- [ ] ESLint passing (`npx eslint .`)
|
|
100
|
+
- [ ] All tests passing (`npm test`)
|
|
101
|
+
|
|
102
|
+
### Security
|
|
103
|
+
- [ ] No hardcoded secrets
|
|
104
|
+
- [ ] Environment variables documented
|
|
105
|
+
- [ ] Dependencies audited (`npm audit`)
|
|
106
|
+
|
|
107
|
+
### Performance
|
|
108
|
+
- [ ] Bundle size acceptable
|
|
109
|
+
- [ ] No console.log statements
|
|
110
|
+
- [ ] Images optimized
|
|
111
|
+
|
|
112
|
+
### Documentation
|
|
113
|
+
- [ ] README updated
|
|
114
|
+
- [ ] CHANGELOG updated
|
|
115
|
+
- [ ] API docs current
|
|
116
|
+
|
|
117
|
+
### Ready to deploy? (y/n)
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
## Deployment Flow
|
|
123
|
+
|
|
124
|
+
```
|
|
125
|
+
┌─────────────────┐
|
|
126
|
+
│ /deploy │
|
|
127
|
+
└────────┬────────┘
|
|
128
|
+
│
|
|
129
|
+
▼
|
|
130
|
+
┌─────────────────┐
|
|
131
|
+
│ Pre-flight │
|
|
132
|
+
│ checks │
|
|
133
|
+
└────────┬────────┘
|
|
134
|
+
│
|
|
135
|
+
Pass? ──No──► Fix issues
|
|
136
|
+
│
|
|
137
|
+
Yes
|
|
138
|
+
│
|
|
139
|
+
▼
|
|
140
|
+
┌─────────────────┐
|
|
141
|
+
│ Build │
|
|
142
|
+
│ application │
|
|
143
|
+
└────────┬────────┘
|
|
144
|
+
│
|
|
145
|
+
▼
|
|
146
|
+
┌─────────────────┐
|
|
147
|
+
│ Deploy to │
|
|
148
|
+
│ platform │
|
|
149
|
+
└────────┬────────┘
|
|
150
|
+
│
|
|
151
|
+
▼
|
|
152
|
+
┌─────────────────┐
|
|
153
|
+
│ Health check │
|
|
154
|
+
│ & verify │
|
|
155
|
+
└────────┬────────┘
|
|
156
|
+
│
|
|
157
|
+
▼
|
|
158
|
+
┌─────────────────┐
|
|
159
|
+
│ ✅ Complete │
|
|
160
|
+
└─────────────────┘
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
---
|
|
164
|
+
|
|
165
|
+
## Output Format
|
|
166
|
+
|
|
167
|
+
### Successful Deploy
|
|
168
|
+
|
|
169
|
+
```markdown
|
|
170
|
+
## 🚀 Deployment Complete
|
|
171
|
+
|
|
172
|
+
### Summary
|
|
173
|
+
- **Version:** v1.2.3
|
|
174
|
+
- **Environment:** production
|
|
175
|
+
- **Duration:** 47 seconds
|
|
176
|
+
- **Platform:** Vercel
|
|
177
|
+
|
|
178
|
+
### URLs
|
|
179
|
+
- 🌐 Production: https://app.example.com
|
|
180
|
+
- 📊 Dashboard: https://vercel.com/project
|
|
181
|
+
|
|
182
|
+
### What Changed
|
|
183
|
+
- Added user profile feature
|
|
184
|
+
- Fixed login bug
|
|
185
|
+
- Updated dependencies
|
|
186
|
+
|
|
187
|
+
### Health Check
|
|
188
|
+
✅ API responding (200 OK)
|
|
189
|
+
✅ Database connected
|
|
190
|
+
✅ All services healthy
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
### Failed Deploy
|
|
194
|
+
|
|
195
|
+
```markdown
|
|
196
|
+
## ❌ Deployment Failed
|
|
197
|
+
|
|
198
|
+
### Error
|
|
199
|
+
Build failed at step: TypeScript compilation
|
|
200
|
+
|
|
201
|
+
### Details
|
|
202
|
+
```
|
|
203
|
+
error TS2345: Argument of type 'string' is not assignable...
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
### Resolution
|
|
207
|
+
1. Fix TypeScript error in `src/services/user.ts:45`
|
|
208
|
+
2. Run `npm run build` locally to verify
|
|
209
|
+
3. Try `/deploy` again
|
|
210
|
+
|
|
211
|
+
### Rollback Available
|
|
212
|
+
Previous version (v1.2.2) is still active.
|
|
213
|
+
Run `/deploy rollback` if needed.
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
### 🔔 FLYEE BRIDGE EMIT (Condicional)
|
|
217
|
+
|
|
218
|
+
> Se `flyee.json` existe E `enabled: true`:
|
|
219
|
+
|
|
220
|
+
**Deploy com sucesso:**
|
|
221
|
+
```bash
|
|
222
|
+
python .agent/flyee-bridge/bridge.py emit "dev.deploy_completed" '{"environment": "{env}", "version": "{version}", "platform": "{platform}", "url": "{url}"}'
|
|
223
|
+
|
|
224
|
+
# Registrar decisão de deploy
|
|
225
|
+
python3 .agent/flyee-bridge/bridge.py --create-decision \
|
|
226
|
+
--decision "Deploy {version} to {env} via {platform}" \
|
|
227
|
+
--category deploy \
|
|
228
|
+
--reason "Release {version} — {changelog summary}" \
|
|
229
|
+
--impact "Environment: {env} — URL: {url}"
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
**Deploy com falha:**
|
|
233
|
+
```bash
|
|
234
|
+
python .agent/flyee-bridge/bridge.py emit "dev.deploy_failed" '{"environment": "{env}", "error": "{error_summary}", "platform": "{platform}"}'
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
> Se bridge não configurado → Pular silenciosamente.
|
|
238
|
+
|
|
239
|
+
---
|
|
240
|
+
|
|
241
|
+
## Platform Support
|
|
242
|
+
|
|
243
|
+
| Platform | Command | Notes |
|
|
244
|
+
|----------|---------|-------|
|
|
245
|
+
| Vercel | `vercel --prod` | Auto-detected for Next.js |
|
|
246
|
+
| Railway | `railway up` | Needs Railway CLI |
|
|
247
|
+
| Fly.io | `fly deploy` | Needs flyctl |
|
|
248
|
+
| Docker | `docker compose up -d` | For self-hosted |
|
|
249
|
+
|
|
250
|
+
---
|
|
251
|
+
|
|
252
|
+
## Examples
|
|
253
|
+
|
|
254
|
+
```
|
|
255
|
+
/deploy
|
|
256
|
+
/deploy check
|
|
257
|
+
/deploy preview
|
|
258
|
+
/deploy production --skip-tests
|
|
259
|
+
/deploy rollback
|
|
260
|
+
```
|