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,344 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Workflow completo de SDD (Software Design Document). Cria, valida e transforma SDD em tarefas executáveis. O termo TDD neste workflow refere-se à metodologia Test-Driven Development (RED-GREEN-REFACTOR), não ao documento.
|
|
3
|
+
skills: context-gathering-patterns, document-registry
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /tdd - Software Design Document Workflow
|
|
7
|
+
|
|
8
|
+
> **Nota de nomenclatura:** O comando `/tdd` gera **SDD (Software Design Document)** — documentos de design técnico salvos como `SDD-*.md`.
|
|
9
|
+
> As referências a "TDD" neste workflow referem-se exclusivamente à **metodologia** Test-Driven Development (Phase 5 — RED-GREEN-REFACTOR).
|
|
10
|
+
|
|
11
|
+
$ARGUMENTS
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## 🔴 WORKFLOW OVERVIEW
|
|
16
|
+
|
|
17
|
+
O fluxo TDD segue o padrão **RPI (Research, Plan, Implement)** com validação humana obrigatória.
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
┌──────────────┐ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐
|
|
21
|
+
│ DISCOVERY │───▶│ VALIDATE │───▶│ APPROVE │───▶│ IMPLEMENT │
|
|
22
|
+
│ (IA + Human)│ │ (IA Review) │ │ (Human) │ │ (IA Code) │
|
|
23
|
+
└──────────────┘ └──────────────┘ └──────────────┘ └──────────────┘
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## 🧩 SUBCOMMANDS
|
|
29
|
+
|
|
30
|
+
| Comando | Ação |
|
|
31
|
+
|---------|------|
|
|
32
|
+
| `/tdd new [nome]` | Cria novo SDD a partir do template |
|
|
33
|
+
| `/tdd validate [arquivo]` | Valida completude do SDD |
|
|
34
|
+
| `/tdd breakdown [arquivo]` | Transforma SDD em tarefas |
|
|
35
|
+
| `/tdd status` | Mostra status dos SDDs do projeto |
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## Phase 1: DISCOVERY (`/tdd new`)
|
|
40
|
+
|
|
41
|
+
### Trigger
|
|
42
|
+
```
|
|
43
|
+
/tdd new [nome-da-feature]
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Ações
|
|
47
|
+
1. **Verificar PRD existente** - Buscar `docs/PRD-*.md` relacionado
|
|
48
|
+
2. **Copiar template** de `.agent/templates/sdd-template.md`
|
|
49
|
+
3. **Criar arquivo** em `docs/design/SDD-{nome-da-feature}.md`
|
|
50
|
+
4. **Preencher campo obrigatório:**
|
|
51
|
+
```markdown
|
|
52
|
+
PRD Fonte: docs/PRD-{nome}.md
|
|
53
|
+
```
|
|
54
|
+
5. **Iniciar brainstorming** usando skill `brainstorming`
|
|
55
|
+
6. **Registry:** `document-registry` — criar entry `SDD-{nome}` no INDEX.md com status `draft`
|
|
56
|
+
|
|
57
|
+
### Agentes Envolvidos
|
|
58
|
+
- `project-planner` - Estruturação inicial
|
|
59
|
+
- `product-owner` - Definição de MVP
|
|
60
|
+
|
|
61
|
+
### Socratic Gate (OBRIGATÓRIO)
|
|
62
|
+
Antes de preencher o SDD, perguntar:
|
|
63
|
+
|
|
64
|
+
1. 🎯 **Qual problema estamos resolvendo?** (referência: PRD seção 2.1)
|
|
65
|
+
2. 👥 **Quem são os usuários afetados?** (referência: PRD seção 3)
|
|
66
|
+
3. 📦 **O que é MVP vs. nice-to-have?** (referência: PRD seção 6.1)
|
|
67
|
+
4. ⚠️ **Quais os riscos conhecidos?** (referência: PRD seção 8)
|
|
68
|
+
5. 🔗 **Quais integrações externas são necessárias?**
|
|
69
|
+
|
|
70
|
+
> [!TIP]
|
|
71
|
+
> Se o PRD já foi aprovado, use-o como base para responder as perguntas.
|
|
72
|
+
|
|
73
|
+
### Output Esperado
|
|
74
|
+
```
|
|
75
|
+
[OK] SDD criado: docs/design/SDD-{nome}.md
|
|
76
|
+
[OK] PRD Fonte: docs/PRD-{nome}.md
|
|
77
|
+
[OK] Status: Rascunho
|
|
78
|
+
[OK] INDEX.md entry criada: SDD-{nome} (draft)
|
|
79
|
+
[NEXT] Execute /tdd validate docs/design/SDD-{nome}.md
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
## Phase 2: VALIDATE (`/tdd validate`)
|
|
85
|
+
|
|
86
|
+
### Trigger
|
|
87
|
+
```
|
|
88
|
+
/tdd validate docs/design/SDD-{nome}.md
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### Ações
|
|
92
|
+
1. **Ler TDD** completo
|
|
93
|
+
2. **Verificar completude** usando skill `tdd-validation`
|
|
94
|
+
3. **Reportar gaps** e itens INDEFINIDOS
|
|
95
|
+
|
|
96
|
+
### Agente Envolvido
|
|
97
|
+
- `tdd-reviewer` - Análise de completude
|
|
98
|
+
|
|
99
|
+
### Validações Realizadas
|
|
100
|
+
|
|
101
|
+
| Categoria | Verificação |
|
|
102
|
+
|-----------|-------------|
|
|
103
|
+
| **Estrutura** | Todas as seções obrigatórias existem? |
|
|
104
|
+
| **MVP** | Há itens DEFINIDO suficientes para MVP? |
|
|
105
|
+
| **Bloqueadores** | Há itens INDEFINIDO que bloqueiam? |
|
|
106
|
+
| **Arquitetura** | SDD alinha com ARCHITECTURE.md? |
|
|
107
|
+
| **Riscos** | Riscos identificados têm mitigação? |
|
|
108
|
+
| **Ambientes** ⭐ | Environment Strategy definida (dev/staging/prod)? |
|
|
109
|
+
|
|
110
|
+
### Output Esperado
|
|
111
|
+
```markdown
|
|
112
|
+
## TDD Validation Report
|
|
113
|
+
|
|
114
|
+
### ✅ Seções Completas
|
|
115
|
+
- [x] Contexto e Motivação
|
|
116
|
+
- [x] Glossário
|
|
117
|
+
- [x] Fluxo Técnico
|
|
118
|
+
|
|
119
|
+
### ⚠️ Itens Indefinidos
|
|
120
|
+
- [ ] Tratamento de Erros (Fase 3)
|
|
121
|
+
- [ ] Estratégia de Retry
|
|
122
|
+
|
|
123
|
+
### ❌ Seções Faltando
|
|
124
|
+
- [ ] Webhooks não documentados
|
|
125
|
+
|
|
126
|
+
### 📊 Score: 75% Completo
|
|
127
|
+
|
|
128
|
+
### 🔴 BLOQUEADORES
|
|
129
|
+
1. Definir estratégia de retry antes de implementar
|
|
130
|
+
|
|
131
|
+
### Recomendação
|
|
132
|
+
Resolver bloqueadores antes de aprovar.
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
---
|
|
136
|
+
|
|
137
|
+
## Phase 3: APPROVE (Humano)
|
|
138
|
+
|
|
139
|
+
### Trigger
|
|
140
|
+
Após validação, o **humano** deve:
|
|
141
|
+
|
|
142
|
+
1. **Revisar** o relatório de validação
|
|
143
|
+
2. **Resolver** itens INDEFINIDOS (ou movê-los para futuro)
|
|
144
|
+
3. **Aprovar** marcando o checkbox no TDD:
|
|
145
|
+
```markdown
|
|
146
|
+
- [x] **Aprovado para Implementação**
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
### 🔴 REGRA DE OURO
|
|
150
|
+
> A IA **NÃO** pode prosseguir para implementação sem aprovação humana explícita.
|
|
151
|
+
|
|
152
|
+
---
|
|
153
|
+
|
|
154
|
+
## Phase 4: BREAKDOWN (`/tdd breakdown`)
|
|
155
|
+
|
|
156
|
+
### Trigger
|
|
157
|
+
```
|
|
158
|
+
/tdd breakdown docs/design/SDD-{nome}.md
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
### Pré-condição
|
|
162
|
+
- SDD deve estar marcado como `Aprovado`
|
|
163
|
+
- Nenhum item INDEFINIDO bloqueando MVP
|
|
164
|
+
|
|
165
|
+
### Ações
|
|
166
|
+
1. **Ler SDD aprovado**
|
|
167
|
+
2. **Extrair tarefas** da seção "Detalhamento da Solução"
|
|
168
|
+
3. **Criar plan file** `{feature-name}.md` no root
|
|
169
|
+
4. **Criar tasks no Tracker** usando obrigatoriamente `bridge.py --create-task` e popular body (User Story, ACs)
|
|
170
|
+
5. **Atribuir agentes** a cada tarefa
|
|
171
|
+
6. **Registry:** `document-registry` — atualizar status de `SDD-{nome}` no INDEX.md para `approved`
|
|
172
|
+
|
|
173
|
+
### Agente Envolvido
|
|
174
|
+
- `project-planner` - Quebra em tarefas
|
|
175
|
+
|
|
176
|
+
### Output Esperado
|
|
177
|
+
```markdown
|
|
178
|
+
## Task Breakdown: {Feature Name}
|
|
179
|
+
|
|
180
|
+
**Source of Truth:** docs/design/SDD-{nome}.md
|
|
181
|
+
**Status:** Ready for Implementation
|
|
182
|
+
|
|
183
|
+
### Tasks
|
|
184
|
+
|
|
185
|
+
- [ ] **Task 1: Setup Credenciais** → `devops-engineer`
|
|
186
|
+
- Ref: SDD Fase 1
|
|
187
|
+
- Verify: `.env.example` atualizado
|
|
188
|
+
|
|
189
|
+
- [ ] **Task 2: Criar Entidade** → `backend-specialist`
|
|
190
|
+
- Ref: SDD Fase 2
|
|
191
|
+
- Verify: Endpoint POST funcionando
|
|
192
|
+
|
|
193
|
+
[PARALLELIZABLE]
|
|
194
|
+
- [ ] **Task 3: Frontend Form** → `frontend-specialist`
|
|
195
|
+
- [ ] **Task 4: Testes Unitários** → `test-engineer`
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
#### 🔔 FLYEE BRIDGE: Decision Hook (Condicional)
|
|
199
|
+
|
|
200
|
+
> Se `flyee.json` existe E `enabled: true` — registrar decisões do SDD:
|
|
201
|
+
|
|
202
|
+
```bash
|
|
203
|
+
# Registrar decisão arquitetural do SDD aprovado:
|
|
204
|
+
python3 .agent/flyee-bridge/bridge.py --create-decision \
|
|
205
|
+
--decision "SDD {nome} aprovado: {resumo da arquitetura}" \
|
|
206
|
+
--category architecture \
|
|
207
|
+
--reason "Aprovação do SDD na Phase 3 do /tdd" \
|
|
208
|
+
--impact "Implementação da feature {nome} — {N} tasks criadas"
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
> Se bridge não configurado → Pular silenciosamente.
|
|
212
|
+
|
|
213
|
+
---
|
|
214
|
+
|
|
215
|
+
## Phase 5: TDD METODOLOGIA (Testes Primeiro)
|
|
216
|
+
|
|
217
|
+
> [!IMPORTANT]
|
|
218
|
+
> **Antes de implementar código, escrever testes.**
|
|
219
|
+
> Skill de referência: `tdd-workflow`
|
|
220
|
+
|
|
221
|
+
### Trigger
|
|
222
|
+
Após breakdown aprovado e antes do `/create`:
|
|
223
|
+
```
|
|
224
|
+
/test [task]
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
### Ciclo RED-GREEN-REFACTOR
|
|
228
|
+
|
|
229
|
+
| Fase | Ação | Verificação |
|
|
230
|
+
|------|------|-------------|
|
|
231
|
+
| 🔴 RED | Escrever teste que falha | Teste falha corretamente |
|
|
232
|
+
| 🟢 GREEN | Implementar código mínimo | Teste passa |
|
|
233
|
+
| 🔵 REFACTOR | Melhorar código | Testes continuam passando |
|
|
234
|
+
|
|
235
|
+
### Para CADA Task do Breakdown:
|
|
236
|
+
1. **Escrever testes** baseados nos critérios de aceite do TDD
|
|
237
|
+
2. **Implementar** código mínimo para passar
|
|
238
|
+
3. **Refatorar** mantendo testes verdes
|
|
239
|
+
4. **Verificar cobertura** >= 80%
|
|
240
|
+
|
|
241
|
+
---
|
|
242
|
+
|
|
243
|
+
## Phase 6: IMPLEMENT
|
|
244
|
+
|
|
245
|
+
### Trigger
|
|
246
|
+
Após testes escritos (Phase 5 concluída):
|
|
247
|
+
```
|
|
248
|
+
/create
|
|
249
|
+
```
|
|
250
|
+
ou
|
|
251
|
+
```
|
|
252
|
+
/orchestrate
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
### Regras de Implementação
|
|
256
|
+
|
|
257
|
+
> [!CAUTION]
|
|
258
|
+
> **GATE OBRIGATÓRIO POR TASK:** Seguir skill `context-gathering-patterns` → seção "PROCESSO DE CONTEXT GATHERING"
|
|
259
|
+
> ANTES de implementar cada task. Ler SDD + docs de fluxo + persistir checklist de evidência.
|
|
260
|
+
|
|
261
|
+
1. **Context Gathering** (skill `context-gathering-patterns`) — obrigatório a cada nova task
|
|
262
|
+
2. **Rodar testes** antes de cada commit
|
|
263
|
+
3. **Não inventar** features não documentadas no SDD
|
|
264
|
+
4. **Seguir** exatamente o que está DEFINIDO
|
|
265
|
+
5. **Ignorar** o que está FORA DE ESCOPO
|
|
266
|
+
|
|
267
|
+
### Verificação de Cobertura (GATE)
|
|
268
|
+
|
|
269
|
+
> [!CAUTION]
|
|
270
|
+
> **Cobertura mínima:** 80% antes de considerar task completa.
|
|
271
|
+
|
|
272
|
+
```bash
|
|
273
|
+
/test coverage
|
|
274
|
+
```
|
|
275
|
+
|
|
276
|
+
Se cobertura < 80%:
|
|
277
|
+
1. Identificar áreas não cobertas
|
|
278
|
+
2. Adicionar testes faltantes
|
|
279
|
+
3. Repetir verificação
|
|
280
|
+
|
|
281
|
+
---
|
|
282
|
+
|
|
283
|
+
## 📁 Estrutura de Arquivos
|
|
284
|
+
|
|
285
|
+
```
|
|
286
|
+
projeto/
|
|
287
|
+
├── docs/
|
|
288
|
+
│ ├── INDEX.md # Document Registry
|
|
289
|
+
│ └── design/
|
|
290
|
+
│ ├── SDD-payment-integration.md
|
|
291
|
+
│ └── SDD-user-authentication.md
|
|
292
|
+
├── payment-integration.md # Plan file (após breakdown)
|
|
293
|
+
└── user-authentication.md # Plan file (após breakdown)
|
|
294
|
+
```
|
|
295
|
+
|
|
296
|
+
---
|
|
297
|
+
|
|
298
|
+
## 🔄 Status Lifecycle
|
|
299
|
+
|
|
300
|
+
```
|
|
301
|
+
[Rascunho] → [Em Revisão] → [Aprovado] → [Em Implementação] → [Concluído]
|
|
302
|
+
```
|
|
303
|
+
|
|
304
|
+
| Status | Significado |
|
|
305
|
+
|--------|-------------|
|
|
306
|
+
| Rascunho | Sendo escrito, não validado |
|
|
307
|
+
| Em Revisão | Validação em andamento |
|
|
308
|
+
| Aprovado | Pronto para implementação |
|
|
309
|
+
| Em Implementação | Tasks sendo executadas |
|
|
310
|
+
| Concluído | Todas as tasks finalizadas |
|
|
311
|
+
|
|
312
|
+
---
|
|
313
|
+
|
|
314
|
+
## 🔴 REGRAS CRÍTICAS
|
|
315
|
+
|
|
316
|
+
1. **SDD é Imutável após aprovação** - Não modificar sem nova revisão
|
|
317
|
+
2. **Humano aprova, IA executa** - Nunca auto-aprovar
|
|
318
|
+
3. **INDEFINIDO = BLOQUEADOR** - Resolver antes de implementar
|
|
319
|
+
4. **Uma feature = Um SDD** - Não misturar features
|
|
320
|
+
5. **Environment Strategy obrigatória** - SDD sem separação de ambientes (dev/prod) = BLOQUEADOR ⭐
|
|
321
|
+
|
|
322
|
+
> [!CAUTION]
|
|
323
|
+
> **FALHA QUE GEROU REGRA 5:** SDD aprovado sem seção de Environment Strategy.
|
|
324
|
+
> Resultado: 10 sprints com `.env.local` apontando para Supabase produção.
|
|
325
|
+
> SDD DEVE conter `## Environment Strategy` com: ambientes, serviços por ambiente,
|
|
326
|
+
> arquivos `.env` mapeados, e credenciais separadas por ambiente.
|
|
327
|
+
|
|
328
|
+
---
|
|
329
|
+
|
|
330
|
+
## Usage Examples
|
|
331
|
+
|
|
332
|
+
```bash
|
|
333
|
+
# Criar novo SDD para integração de pagamentos
|
|
334
|
+
/tdd new payment-integration
|
|
335
|
+
|
|
336
|
+
# Validar o SDD criado
|
|
337
|
+
/tdd validate docs/design/SDD-payment-integration.md
|
|
338
|
+
|
|
339
|
+
# Após aprovação humana, quebrar em tarefas
|
|
340
|
+
/tdd breakdown docs/design/SDD-payment-integration.md
|
|
341
|
+
|
|
342
|
+
# Ver status de todos os SDDs
|
|
343
|
+
/tdd status
|
|
344
|
+
```
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Test generation and test running command. Creates and executes tests for code.
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /test - Test Generation and Execution
|
|
6
|
+
|
|
7
|
+
$ARGUMENTS
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Purpose
|
|
12
|
+
|
|
13
|
+
This command generates tests, runs existing tests, or checks test coverage.
|
|
14
|
+
|
|
15
|
+
**Agentes Envolvidos:**
|
|
16
|
+
- `test-engineer` - Geração e execução de testes
|
|
17
|
+
- `backend-specialist` / `frontend-specialist` / `mobile-developer` - Para testes específicos de domínio
|
|
18
|
+
- `debugger` - Para análise de testes falhando
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## Sub-commands
|
|
23
|
+
|
|
24
|
+
```
|
|
25
|
+
/test - Run all tests
|
|
26
|
+
/test [file/feature] - Generate tests for specific target
|
|
27
|
+
/test coverage - Show test coverage report
|
|
28
|
+
/test watch - Run tests in watch mode
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## Behavior
|
|
34
|
+
|
|
35
|
+
### Generate Tests
|
|
36
|
+
|
|
37
|
+
When asked to test a file or feature:
|
|
38
|
+
|
|
39
|
+
1. **Analyze the code**
|
|
40
|
+
- Identify functions and methods
|
|
41
|
+
- Find edge cases
|
|
42
|
+
- Detect dependencies to mock
|
|
43
|
+
|
|
44
|
+
2. **Generate test cases**
|
|
45
|
+
- Happy path tests
|
|
46
|
+
- Error cases
|
|
47
|
+
- Edge cases
|
|
48
|
+
- Integration tests (if needed)
|
|
49
|
+
|
|
50
|
+
3. **Write tests**
|
|
51
|
+
- Use project's test framework (Jest, Vitest, etc.)
|
|
52
|
+
- Follow existing test patterns
|
|
53
|
+
- Mock external dependencies
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## Output Format
|
|
58
|
+
|
|
59
|
+
### For Test Generation
|
|
60
|
+
|
|
61
|
+
```markdown
|
|
62
|
+
## 🧪 Tests: [Target]
|
|
63
|
+
|
|
64
|
+
### Test Plan
|
|
65
|
+
| Test Case | Type | Coverage |
|
|
66
|
+
|-----------|------|----------|
|
|
67
|
+
| Should create user | Unit | Happy path |
|
|
68
|
+
| Should reject invalid email | Unit | Validation |
|
|
69
|
+
| Should handle db error | Unit | Error case |
|
|
70
|
+
|
|
71
|
+
### Generated Tests
|
|
72
|
+
|
|
73
|
+
`tests/[file].test.ts`
|
|
74
|
+
|
|
75
|
+
[Code block with tests]
|
|
76
|
+
|
|
77
|
+
---
|
|
78
|
+
|
|
79
|
+
Run with: `npm test`
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
### For Test Execution
|
|
83
|
+
|
|
84
|
+
```
|
|
85
|
+
🧪 Running tests...
|
|
86
|
+
|
|
87
|
+
✅ auth.test.ts (5 passed)
|
|
88
|
+
✅ user.test.ts (8 passed)
|
|
89
|
+
❌ order.test.ts (2 passed, 1 failed)
|
|
90
|
+
|
|
91
|
+
Failed:
|
|
92
|
+
✗ should calculate total with discount
|
|
93
|
+
Expected: 90
|
|
94
|
+
Received: 100
|
|
95
|
+
|
|
96
|
+
Total: 15 tests (14 passed, 1 failed)
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### 🔔 FLYEE BRIDGE EMIT (Condicional)
|
|
100
|
+
|
|
101
|
+
> Se `flyee.json` existe E `enabled: true`:
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
python .agent/flyee-bridge/bridge.py emit "dev.test_run" '{"passed": {N_passed}, "failed": {N_failed}, "skipped": {N_skipped}, "total": {N_total}, "target": "{file_or_feature}"}'
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
> Se bridge não configurado → Pular silenciosamente.
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
## Examples
|
|
112
|
+
|
|
113
|
+
```
|
|
114
|
+
/test src/services/auth.service.ts
|
|
115
|
+
/test user registration flow
|
|
116
|
+
/test coverage
|
|
117
|
+
/test fix failed tests
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
## Test Patterns
|
|
123
|
+
|
|
124
|
+
### Unit Test Structure
|
|
125
|
+
|
|
126
|
+
```typescript
|
|
127
|
+
describe('AuthService', () => {
|
|
128
|
+
describe('login', () => {
|
|
129
|
+
it('should return token for valid credentials', async () => {
|
|
130
|
+
// Arrange
|
|
131
|
+
const credentials = { email: 'test@test.com', password: 'pass123' };
|
|
132
|
+
|
|
133
|
+
// Act
|
|
134
|
+
const result = await authService.login(credentials);
|
|
135
|
+
|
|
136
|
+
// Assert
|
|
137
|
+
expect(result.token).toBeDefined();
|
|
138
|
+
});
|
|
139
|
+
|
|
140
|
+
it('should throw for invalid password', async () => {
|
|
141
|
+
// Arrange
|
|
142
|
+
const credentials = { email: 'test@test.com', password: 'wrong' };
|
|
143
|
+
|
|
144
|
+
// Act & Assert
|
|
145
|
+
await expect(authService.login(credentials)).rejects.toThrow('Invalid credentials');
|
|
146
|
+
});
|
|
147
|
+
});
|
|
148
|
+
});
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
---
|
|
152
|
+
|
|
153
|
+
## Key Principles
|
|
154
|
+
|
|
155
|
+
- **Test behavior not implementation**
|
|
156
|
+
- **One assertion per test** (when practical)
|
|
157
|
+
- **Descriptive test names**
|
|
158
|
+
- **Arrange-Act-Assert pattern**
|
|
159
|
+
- **Mock external dependencies**
|
|
160
|
+
|
|
161
|
+
---
|
|
162
|
+
|
|
163
|
+
## ⏸️ Tratamento de Testes Skipped
|
|
164
|
+
|
|
165
|
+
> [!CAUTION]
|
|
166
|
+
> **Testes skipped NÃO são sucesso.** Eles representam cobertura incompleta e devem ser tratados.
|
|
167
|
+
|
|
168
|
+
### Quando há testes skipped, SEMPRE:
|
|
169
|
+
|
|
170
|
+
1. **Listar todos os testes skipped** com motivo
|
|
171
|
+
2. **Analisar cada um** e categorizar a ação necessária
|
|
172
|
+
3. **Perguntar ao usuário** qual ação tomar
|
|
173
|
+
|
|
174
|
+
### Output Format para Skipped Tests
|
|
175
|
+
|
|
176
|
+
```markdown
|
|
177
|
+
✅ [N] testes passaram
|
|
178
|
+
⏸️ [M] testes skipped:
|
|
179
|
+
|
|
180
|
+
| Teste Skipped | Motivo | Ação Sugerida |
|
|
181
|
+
|---------------|--------|---------------|
|
|
182
|
+
| [nome do teste] | [motivo do skip] | [o que fazer] |
|
|
183
|
+
|
|
184
|
+
📋 **Ação Necessária:**
|
|
185
|
+
|
|
186
|
+
❓ Deseja que eu:
|
|
187
|
+
1. **Implemente** os [M] testes skipped agora?
|
|
188
|
+
2. **Documente** como TODO na task do Flyee?
|
|
189
|
+
3. **Ignore** (aceitar coverage atual com justificativa)?
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
### Classificação de Skipped Tests
|
|
193
|
+
|
|
194
|
+
| Tipo de Skip | Ação Recomendada |
|
|
195
|
+
|--------------|------------------|
|
|
196
|
+
| **Mock faltando** | Implementar mock e habilitar teste |
|
|
197
|
+
| **API externa indisponível** | Criar fake/stub e habilitar teste |
|
|
198
|
+
| **Edge case não mapeado** | Definir cenário com usuário |
|
|
199
|
+
| **Formato de resposta desconhecido** | Investigar API e implementar |
|
|
200
|
+
| **Dependência de ambiente** | Criar environment mock |
|
|
201
|
+
| **Temporariamente desabilitado** | Definir prazo para reabilitar |
|
|
202
|
+
|
|
203
|
+
### Regras para Skipped
|
|
204
|
+
|
|
205
|
+
> [!IMPORTANT]
|
|
206
|
+
> 1. **NUNCA ignorar silenciosamente** testes skipped
|
|
207
|
+
> 2. **SEMPRE perguntar** ao usuário qual ação tomar
|
|
208
|
+
> 3. **Se há mais de 10% de skips**, alertar como problema de cobertura
|
|
209
|
+
> 4. **Documentar motivo** do skip no código e na task
|
|
210
|
+
|
|
211
|
+
---
|
|
212
|
+
|
|
213
|
+
## 🔗 Flyee Integration
|
|
214
|
+
|
|
215
|
+
> [!IMPORTANT]
|
|
216
|
+
> Após executar testes, **SEMPRE** perguntar sobre atualização do Flyee.
|
|
217
|
+
|
|
218
|
+
### Se executado dentro de `/execute`:
|
|
219
|
+
|
|
220
|
+
A atualização do Flyee é automática via Fase 6 do workflow `/execute`.
|
|
221
|
+
|
|
222
|
+
### Se executado standalone (`/test` direto):
|
|
223
|
+
|
|
224
|
+
Após testes passarem, perguntar:
|
|
225
|
+
```
|
|
226
|
+
✅ Testes passaram: 15/15
|
|
227
|
+
|
|
228
|
+
📋 Atualizar task no Tracker?
|
|
229
|
+
Se estes testes são parte de uma task existente, informe o ID para atualizar:
|
|
230
|
+
|
|
231
|
+
> /task-update <id> progress "Implementar testes E2E"
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
### Mapeamento de Progresso
|
|
235
|
+
|
|
236
|
+
| Resultado | Sugestão |
|
|
237
|
+
|-----------|----------|
|
|
238
|
+
| Todos passaram (0 skipped) | `/task-update <id> progress "msg"` (+15%) |
|
|
239
|
+
| Todos passaram (com skipped) | **Tratar skips primeiro** ou documentar como TODO |
|
|
240
|
+
| Alguns falharam | Corrigir primeiro, não atualizar Tracker |
|
|
241
|
+
| Cobertura atingida | `/task-update <id> done "msg"` (100%) |
|
|
242
|
+
|
|
243
|
+
---
|
|
244
|
+
|
|
245
|
+
## ⚠️ REGRAS
|
|
246
|
+
|
|
247
|
+
1. **Nunca atualizar Tracker se testes falharem**
|
|
248
|
+
2. **Nunca ignorar testes skipped** - sempre perguntar ação ao usuário
|
|
249
|
+
3. **Sempre sugerir /task-update após sucesso** (se há task relacionada)
|
|
250
|
+
4. **Documentar testes skipped** como TODOs na task com prazo
|
|
251
|
+
5. **Se >10% skipped**, alertar como problema de cobertura
|