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,483 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Execute existing task (Flyee or Local). Searches task by ID or name, updates status, executes, then marks complete.
|
|
3
|
+
skills: context-gathering-patterns, project-tracking-patterns, local-verification
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /execute - Executar Task Existente
|
|
7
|
+
|
|
8
|
+
> **Tracker-aware:** Lê `PROJECT-PROGRESS.md` → `Tracker de Tasks` para determinar se busca no Flyee ou em `PROJECT-PROGRESS.md` (tabela de tasks).
|
|
9
|
+
|
|
10
|
+
$ARGUMENTS
|
|
11
|
+
|
|
12
|
+
**Arguments:**
|
|
13
|
+
|
|
14
|
+
| Flag | Descrição | Exemplo |
|
|
15
|
+
|------|-----------|---------|
|
|
16
|
+
| `<task-id>` | ID da task (ex: 1.1, 2.3) | `/execute 3.3` |
|
|
17
|
+
| `<task-name>` | Nome parcial da task | `/execute "Testes de Regressão"` |
|
|
18
|
+
| `--add-tests` | Complementar task com requisitos de testes | `/execute "Emissão Fiscal" --add-tests` |
|
|
19
|
+
| `--analyze-tests` | Analisar cobertura de testes existente | `/execute 2.1 --analyze-tests` |
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## 🎯 PROPÓSITO
|
|
24
|
+
|
|
25
|
+
Executa uma task **já existente** no Flyee (criada via `/discovery` ou manualmente).
|
|
26
|
+
|
|
27
|
+
> [!IMPORTANT]
|
|
28
|
+
> Este workflow **NÃO CRIA** nova task. Ele busca e atualiza uma task existente.
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## 🔴 FLUXO: Pre-Check → Search → Update → Execute → Complete
|
|
33
|
+
|
|
34
|
+
### Fase 0: PRE-START CHECK (🚨 OBRIGATÓRIO)
|
|
35
|
+
|
|
36
|
+
> [!CAUTION]
|
|
37
|
+
> **REGRA BLOQUEANTE:** Seguir Flyee API → Seção "GATE DE FINALIZAÇÃO".
|
|
38
|
+
> Verificar se há tasks "Em andamento" antes de iniciar nova.
|
|
39
|
+
|
|
40
|
+
**Ações:**
|
|
41
|
+
1. Buscar tasks com Status="Em andamento":
|
|
42
|
+
```json
|
|
43
|
+
// Tool: Flyee API: list_tasks()
|
|
44
|
+
{
|
|
45
|
+
"data_source_id": "{DATABASE_ID}",
|
|
46
|
+
"filter": {
|
|
47
|
+
"property": "Status",
|
|
48
|
+
"status": { "equals": "Em andamento" }
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
2. **Se encontrar tasks abertas:**
|
|
54
|
+
```
|
|
55
|
+
⚠️ TASK EM ANDAMENTO DETECTADA
|
|
56
|
+
|
|
57
|
+
📋 {nome da task}
|
|
58
|
+
📊 Status: Em andamento
|
|
59
|
+
⏱️ Tempo Gasto: (não preenchido)
|
|
60
|
+
|
|
61
|
+
Deseja:
|
|
62
|
+
1. Finalizar esta task primeiro (preencher Tempo Gasto)
|
|
63
|
+
2. Iniciar nova task mesmo assim
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
3. **Se usuário escolher finalizar:** Executar Fase 6 (UPDATE STATUS → CONCLUÍDO) na task aberta.
|
|
67
|
+
4. **Se usuário escolher continuar:** Prosseguir para Fase 1.
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
### Fase 1: SEARCH TASK (Obrigatório)
|
|
72
|
+
|
|
73
|
+
**Trigger:** Comando `/execute <task-id ou nome>`
|
|
74
|
+
|
|
75
|
+
**Agente:** `orchestrator`
|
|
76
|
+
|
|
77
|
+
**Ações:**
|
|
78
|
+
1. Buscar task no Tracker usando `API-post-search`:
|
|
79
|
+
```
|
|
80
|
+
query: "{task-id ou nome}"
|
|
81
|
+
filter: { "property": "object", "value": "page" }
|
|
82
|
+
```
|
|
83
|
+
2. Validar que encontrou exatamente 1 task
|
|
84
|
+
3. Se encontrar múltiplas:
|
|
85
|
+
```
|
|
86
|
+
⚠️ MÚLTIPLAS TASKS ENCONTRADAS
|
|
87
|
+
|
|
88
|
+
1. [Nome Task 1] - Status: X
|
|
89
|
+
2. [Nome Task 2] - Status: Y
|
|
90
|
+
|
|
91
|
+
Qual você quer executar? (digite o número)
|
|
92
|
+
```
|
|
93
|
+
4. Se não encontrar:
|
|
94
|
+
```
|
|
95
|
+
❌ TASK NÃO ENCONTRADA
|
|
96
|
+
|
|
97
|
+
Nenhuma task com "{busca}" foi encontrada no Flyee.
|
|
98
|
+
|
|
99
|
+
Dica: Use `/discovery` para criar novas tasks ou verifique o ID.
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
### Fase 2: LOAD CONTEXT (Carregar Conteúdo)
|
|
105
|
+
|
|
106
|
+
**Trigger:** Task encontrada
|
|
107
|
+
|
|
108
|
+
**Ações:**
|
|
109
|
+
1. Usar `API-get-block-children` para ler o corpo da página:
|
|
110
|
+
- User Story
|
|
111
|
+
- Critérios de Aceite
|
|
112
|
+
- Verificação
|
|
113
|
+
2. Extrair metadados da task:
|
|
114
|
+
- Agente recomendado
|
|
115
|
+
- Ref. TDD
|
|
116
|
+
- Dependências
|
|
117
|
+
3. Mostrar resumo ao usuário:
|
|
118
|
+
```
|
|
119
|
+
✅ TASK ENCONTRADA
|
|
120
|
+
|
|
121
|
+
📋 Nome: {nome}
|
|
122
|
+
📄 User Story: {user story}
|
|
123
|
+
🎯 Agente: {agente}
|
|
124
|
+
📊 Status atual: {status}
|
|
125
|
+
|
|
126
|
+
Iniciando execução...
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
131
|
+
### Fase 3: UPDATE STATUS → EM PROGRESSO
|
|
132
|
+
|
|
133
|
+
**Trigger:** Contexto carregado
|
|
134
|
+
|
|
135
|
+
**Ações:**
|
|
136
|
+
1. Atualizar task via `API-patch-page`:
|
|
137
|
+
```json
|
|
138
|
+
{
|
|
139
|
+
"properties": {
|
|
140
|
+
"Status": { "status": { "name": "Em andamento" } }
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
> [!NOTE]
|
|
146
|
+
> `Última edição` é atualizada automaticamente pelo Flyee.
|
|
147
|
+
|
|
148
|
+
#### 🔔 FLYEE BRIDGE EMIT (Condicional)
|
|
149
|
+
|
|
150
|
+
> Se `flyee.json` existe E `enabled: true`:
|
|
151
|
+
|
|
152
|
+
```bash
|
|
153
|
+
python .agent/flyee-bridge/bridge.py emit "dev.workflow_started" '{"workflow": "execute", "task_id": "{task_id}", "task_name": "{nome}"}'
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
> Se bridge não configurado → Pular silenciosamente.
|
|
157
|
+
|
|
158
|
+
---
|
|
159
|
+
|
|
160
|
+
### Fase 4: EXECUTE (Implementação)
|
|
161
|
+
|
|
162
|
+
**Agentes:** Conforme especificado na task (backend-specialist, frontend-specialist, etc.)
|
|
163
|
+
|
|
164
|
+
> [!CAUTION]
|
|
165
|
+
> **GATE OBRIGATÓRIO:** Seguir skill `context-gathering-patterns` → seção "PROCESSO DE CONTEXT GATHERING"
|
|
166
|
+
> ANTES de implementar. Preencher checklist de evidência e persistir como comentário na task Flyee.
|
|
167
|
+
|
|
168
|
+
**Ações:**
|
|
169
|
+
1. **Context Gathering** (skill `context-gathering-patterns`) — ler task + docs + SDD
|
|
170
|
+
2. Executar implementação seguindo:
|
|
171
|
+
- User Story como objetivo
|
|
172
|
+
- Critérios de Aceite como checklist
|
|
173
|
+
- Agente recomendado como especialista
|
|
174
|
+
3. Durante a execução, usar `/task-update` para atualizações de progresso
|
|
175
|
+
|
|
176
|
+
---
|
|
177
|
+
|
|
178
|
+
### Fase 5: VERIFY
|
|
179
|
+
|
|
180
|
+
**Trigger:** Implementação concluída
|
|
181
|
+
|
|
182
|
+
**Ações:**
|
|
183
|
+
1. Verificar cada item de "Verificação" do corpo da task
|
|
184
|
+
2. Rodar testes se aplicável
|
|
185
|
+
3. Se tudo OK: prosseguir para Fase 6
|
|
186
|
+
4. Se falhar: corrigir e re-verificar
|
|
187
|
+
|
|
188
|
+
---
|
|
189
|
+
|
|
190
|
+
### Fase 6: UPDATE STATUS → CONCLUÍDO
|
|
191
|
+
|
|
192
|
+
**Trigger:** Verificação passou
|
|
193
|
+
|
|
194
|
+
**Ações:**
|
|
195
|
+
1. **PERGUNTAR Tempo Gasto ao usuário:**
|
|
196
|
+
```
|
|
197
|
+
⏱️ Quanto tempo foi gasto nesta task?
|
|
198
|
+
(Ex: "2h30m", "4h", "30m")
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
2. Atualizar task via `API-patch-page`:
|
|
202
|
+
```json
|
|
203
|
+
{
|
|
204
|
+
"properties": {
|
|
205
|
+
"Status": { "status": { "name": "Concluído" } },
|
|
206
|
+
"Tempo Gasto": { "rich_text": [{ "text": { "content": "{tempo_informado}" } }] },
|
|
207
|
+
"% Progresso": { "number": 100 }
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
> [!CAUTION]
|
|
213
|
+
> **OBRIGATÓRIO:** `Tempo Gasto` DEVE ser preenchido. Não marcar "Concluído" sem este campo.
|
|
214
|
+
|
|
215
|
+
3. **Adicionar nota de conclusão no corpo (INLINE — NÃO PULAR):**
|
|
216
|
+
|
|
217
|
+
```json
|
|
218
|
+
// Tool: Flyee API: update_task() (output)
|
|
219
|
+
{
|
|
220
|
+
"block_id": "{page_id}",
|
|
221
|
+
"children": [
|
|
222
|
+
{ "type": "divider", "divider": {} },
|
|
223
|
+
{ "type": "callout", "callout": { "icon": { "type": "emoji", "emoji": "✅" }, "rich_text": [{ "type": "text", "text": { "content": "Concluído em {data}" } }] } },
|
|
224
|
+
{ "type": "bulleted_list_item", "bulleted_list_item": { "rich_text": [{ "type": "text", "text": { "content": "📋 {resumo da implementação}" } }] } },
|
|
225
|
+
{ "type": "bulleted_list_item", "bulleted_list_item": { "rich_text": [{ "type": "text", "text": { "content": "🧪 Testes: {resultado}" } }] } },
|
|
226
|
+
{ "type": "bulleted_list_item", "bulleted_list_item": { "rich_text": [{ "type": "text", "text": { "content": "📁 Arquivos: {lista de arquivos modificados}" } }] } }
|
|
227
|
+
]
|
|
228
|
+
}
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
3.5. **🔔 FLYEE BRIDGE EMIT (Condicional):**
|
|
232
|
+
|
|
233
|
+
> Se `flyee.json` existe E `enabled: true`:
|
|
234
|
+
|
|
235
|
+
```bash
|
|
236
|
+
python .agent/flyee-bridge/bridge.py emit "dev.task_completed" '{"workflow": "execute", "task_id": "{task_id}", "task_name": "{nome}", "time_spent": "{tempo_informado}", "files_changed": ["{lista de arquivos}"]}'
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
> Se bridge não configurado → Pular silenciosamente.
|
|
240
|
+
|
|
241
|
+
4. Adicionar comentário com resumo:
|
|
242
|
+
```
|
|
243
|
+
API-create-a-comment:
|
|
244
|
+
- page_id: {task_id}
|
|
245
|
+
- rich_text: "✅ Implementado em {data}. Arquivos: {lista}"
|
|
246
|
+
```
|
|
247
|
+
3. Notificar usuário:
|
|
248
|
+
```
|
|
249
|
+
🚀 TASK CONCLUÍDA
|
|
250
|
+
|
|
251
|
+
📋 Task: {nome}
|
|
252
|
+
✅ Status: Concluído
|
|
253
|
+
📂 Arquivos alterados: X, Y, Z
|
|
254
|
+
|
|
255
|
+
Próxima task recomendada: {próxima P0}
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
### Fase 5.5: DOC REFRESH CHECK (Obrigatório)
|
|
259
|
+
|
|
260
|
+
> [!CAUTION]
|
|
261
|
+
> **Após concluir a task**, verificar se os arquivos modificados são referenciados
|
|
262
|
+
> em documentação existente. Docs desatualizados = informação errada para devs.
|
|
263
|
+
|
|
264
|
+
**Ações:**
|
|
265
|
+
|
|
266
|
+
1. Listar arquivos modificados durante a execução da task
|
|
267
|
+
2. Buscar referências em `docs/flows/` e `docs/design/SDD-*.md`:
|
|
268
|
+
```bash
|
|
269
|
+
grep -rl "{nome_do_arquivo}" docs/flows/ docs/design/ 2>/dev/null
|
|
270
|
+
```
|
|
271
|
+
3. Se **referências encontradas**:
|
|
272
|
+
a. Abrir cada doc e verificar se a descrição corresponde ao estado real pós-mudança
|
|
273
|
+
b. Se divergência → Atualizar o doc localmente
|
|
274
|
+
c. Verificar se a doc existe no Flyee (database "Documentação Técnica") e atualizar lá também
|
|
275
|
+
4. Se **nenhuma referência** → Registrar "📄 Nenhum doc afetado" no comentário de conclusão
|
|
276
|
+
|
|
277
|
+
---
|
|
278
|
+
|
|
279
|
+
## Usage Examples
|
|
280
|
+
|
|
281
|
+
```bash
|
|
282
|
+
# Por ID
|
|
283
|
+
/execute 1.1
|
|
284
|
+
/execute 3.3
|
|
285
|
+
|
|
286
|
+
# Por nome parcial
|
|
287
|
+
/execute "Testes de Regressão"
|
|
288
|
+
/execute "Dashboard KPIs"
|
|
289
|
+
|
|
290
|
+
# Por nome completo
|
|
291
|
+
/execute "Testes de Regressão - Emissão Fiscal (Invoicy)"
|
|
292
|
+
```
|
|
293
|
+
|
|
294
|
+
---
|
|
295
|
+
|
|
296
|
+
## Diferença entre /new-task e /execute
|
|
297
|
+
|
|
298
|
+
| Comando | Quando usar | O que faz |
|
|
299
|
+
|---------|-------------|-----------|
|
|
300
|
+
| `/new-task` | Demandas ad-hoc, bugfixes rápidos | **CRIA** nova task no Tracker |
|
|
301
|
+
| `/execute` | Executar task do SDD/Discovery | **ATUALIZA** task existente |
|
|
302
|
+
| `/execute --add-tests` | Complementar task com testes | **ADICIONA** requisitos de teste |
|
|
303
|
+
| `/task-update` | Durante execução | Atualiza status no Tracker |
|
|
304
|
+
|
|
305
|
+
---
|
|
306
|
+
|
|
307
|
+
## 🧪 MODO --add-tests (Complementar Testes)
|
|
308
|
+
|
|
309
|
+
> [!IMPORTANT]
|
|
310
|
+
> Use este modo para adicionar requisitos de testes a tasks de **features já implementadas**.
|
|
311
|
+
|
|
312
|
+
### Trigger
|
|
313
|
+
|
|
314
|
+
```bash
|
|
315
|
+
/execute "Testes de Regressão - Emissão Fiscal (Invoicy)" --add-tests
|
|
316
|
+
/execute 2.5 --add-tests
|
|
317
|
+
```
|
|
318
|
+
|
|
319
|
+
### Fluxo: Search → Analyze → Generate → Update
|
|
320
|
+
|
|
321
|
+
---
|
|
322
|
+
|
|
323
|
+
### Fase A1: SEARCH & LOAD (Igual ao fluxo normal)
|
|
324
|
+
|
|
325
|
+
1. Buscar task no Tracker
|
|
326
|
+
2. Carregar corpo da página
|
|
327
|
+
3. Verificar se já existe seção "🧪 Testes Necessários"
|
|
328
|
+
|
|
329
|
+
---
|
|
330
|
+
|
|
331
|
+
### Fase A2: ANALYZE CODE (Se --add-tests)
|
|
332
|
+
|
|
333
|
+
**Agente:** `test-engineer`
|
|
334
|
+
|
|
335
|
+
**Skills:** `testing-patterns`, `webapp-testing`
|
|
336
|
+
|
|
337
|
+
**Ações:**
|
|
338
|
+
1. Identificar arquivos relacionados à task:
|
|
339
|
+
- Ler TDD Ref se disponível
|
|
340
|
+
- Buscar no codebase por arquivos mencionados
|
|
341
|
+
2. Analisar código existente:
|
|
342
|
+
- Backend: Services, Controllers, Repositories
|
|
343
|
+
- Frontend: Components, Hooks, Pages
|
|
344
|
+
3. Detectar testes existentes:
|
|
345
|
+
- Buscar `*.spec.ts`, `*.test.ts`, `*.test.tsx`
|
|
346
|
+
- Verificar coverage atual
|
|
347
|
+
|
|
348
|
+
**Output:**
|
|
349
|
+
```
|
|
350
|
+
📊 ANÁLISE DE CÓDIGO
|
|
351
|
+
|
|
352
|
+
Arquivos encontrados:
|
|
353
|
+
├── Backend (5 arquivos)
|
|
354
|
+
│ ├── invoicy.service.ts (567 linhas, 23 métodos)
|
|
355
|
+
│ ├── nfe.service.ts (1117 linhas, 14 métodos)
|
|
356
|
+
│ └── ...
|
|
357
|
+
├── Frontend (0 arquivos)
|
|
358
|
+
│ └── N/A (feature sem UI)
|
|
359
|
+
|
|
360
|
+
Testes existentes:
|
|
361
|
+
├── fiscal.e2e-spec.ts (18 testes)
|
|
362
|
+
└── Cobertura: 65%
|
|
363
|
+
|
|
364
|
+
Gaps identificados:
|
|
365
|
+
├── ❌ Falta: Unit tests para InvoicyHttpService
|
|
366
|
+
├── ❌ Falta: Error handling tests
|
|
367
|
+
└── ❌ Falta: Timeout/retry tests
|
|
368
|
+
```
|
|
369
|
+
|
|
370
|
+
---
|
|
371
|
+
|
|
372
|
+
### Fase A3: GENERATE TEST REQUIREMENTS
|
|
373
|
+
|
|
374
|
+
**Agente:** `test-engineer`
|
|
375
|
+
|
|
376
|
+
**Ações:**
|
|
377
|
+
1. Para cada arquivo sem cobertura, gerar requisitos:
|
|
378
|
+
|
|
379
|
+
```markdown
|
|
380
|
+
## 🧪 Testes Necessários (Complemento)
|
|
381
|
+
|
|
382
|
+
### Backend Tests
|
|
383
|
+
|
|
384
|
+
| Arquivo | Tipo | Testes a Criar |
|
|
385
|
+
|---------|------|----------------|
|
|
386
|
+
| `invoicy-http.service.ts` | Unit | Timeout handling, retry logic |
|
|
387
|
+
| `nfe.service.ts` | Integration | Payload validation, error responses |
|
|
388
|
+
| `nfse.service.ts` | Unit | Cancel flow, certificate errors |
|
|
389
|
+
|
|
390
|
+
### Frontend Tests
|
|
391
|
+
|
|
392
|
+
| Arquivo | Tipo | Testes a Criar |
|
|
393
|
+
|---------|------|----------------|
|
|
394
|
+
| N/A | - | Feature sem componentes UI |
|
|
395
|
+
|
|
396
|
+
> **Justificativa N/A:** Esta feature é backend-only (emissão fiscal via API Invoicy).
|
|
397
|
+
|
|
398
|
+
### Comandos para Executar
|
|
399
|
+
|
|
400
|
+
```bash
|
|
401
|
+
# Backend
|
|
402
|
+
npm run test:e2e -- --grep "Fiscal"
|
|
403
|
+
npm run test -- invoicy.service.spec.ts
|
|
404
|
+
|
|
405
|
+
# Verificação
|
|
406
|
+
npm run test:coverage
|
|
407
|
+
```
|
|
408
|
+
```
|
|
409
|
+
|
|
410
|
+
---
|
|
411
|
+
|
|
412
|
+
### Fase A4: UPDATE FLYEE (Adicionar ao corpo)
|
|
413
|
+
|
|
414
|
+
**Ações:**
|
|
415
|
+
1. Usar `API-patch-block-children` para **ADICIONAR** (não substituir) ao corpo da task:
|
|
416
|
+
- Seção "🧪 Testes Necessários (Complemento)"
|
|
417
|
+
- Tabelas de Backend e Frontend
|
|
418
|
+
- Comandos de execução
|
|
419
|
+
2. Adicionar comentário:
|
|
420
|
+
```
|
|
421
|
+
📋 Requisitos de testes adicionados em {data}.
|
|
422
|
+
- Backend: X testes identificados
|
|
423
|
+
- Frontend: Y testes identificados (ou N/A com justificativa)
|
|
424
|
+
- Cobertura atual: XX%
|
|
425
|
+
```
|
|
426
|
+
|
|
427
|
+
**Output Final:**
|
|
428
|
+
```
|
|
429
|
+
✅ TESTES COMPLEMENTADOS
|
|
430
|
+
|
|
431
|
+
📋 Task: "Testes de Regressão - Emissão Fiscal (Invoicy)"
|
|
432
|
+
|
|
433
|
+
Adicionado ao corpo da task:
|
|
434
|
+
- ✓ Seção "🧪 Testes Necessários"
|
|
435
|
+
- ✓ 8 testes de backend identificados
|
|
436
|
+
- ✓ Frontend: N/A (justificado)
|
|
437
|
+
- ✓ Comandos de execução
|
|
438
|
+
|
|
439
|
+
Para executar a task agora:
|
|
440
|
+
> /execute "Testes de Regressão - Emissão Fiscal"
|
|
441
|
+
```
|
|
442
|
+
|
|
443
|
+
---
|
|
444
|
+
|
|
445
|
+
## 📊 MODO --analyze-tests (Apenas Análise)
|
|
446
|
+
|
|
447
|
+
> Use para ver status de testes sem modificar a task.
|
|
448
|
+
|
|
449
|
+
```bash
|
|
450
|
+
/execute 2.5 --analyze-tests
|
|
451
|
+
```
|
|
452
|
+
|
|
453
|
+
**Output:** Relatório de cobertura sem atualizar Tracker.
|
|
454
|
+
|
|
455
|
+
---
|
|
456
|
+
|
|
457
|
+
## ⚠️ REGRAS CRÍTICAS
|
|
458
|
+
|
|
459
|
+
> [!CAUTION]
|
|
460
|
+
> **REGRA BLOQUEANTE:** Este workflow **NÃO PODE TERMINAR** sem atualizar o tracker (Flyee ou Local).
|
|
461
|
+
> A Fase 6 (UPDATE STATUS → FEITO) é **OBRIGATÓRIA**.
|
|
462
|
+
|
|
463
|
+
1. **NUNCA criar nova task** - se a task não existir, informar ao usuário
|
|
464
|
+
2. **SEMPRE carregar contexto** — ler User Story e ACs (Flyee body ou `PROJECT-PROGRESS.md`)
|
|
465
|
+
3. **SEMPRE atualizar status no INÍCIO** - Em andamento (Flyee) ou anotar (Local)
|
|
466
|
+
4. **SEMPRE atualizar status no FIM** - Concluído (Flyee) ou `[x]` (Local)
|
|
467
|
+
5. **Sugerir próxima task** - ao concluir, sugerir próxima task pendente
|
|
468
|
+
6. **Com --add-tests:** SEMPRE incluir tanto Backend quanto Frontend (ou justificar N/A)
|
|
469
|
+
|
|
470
|
+
### Checklist de Finalização (Obrigatório)
|
|
471
|
+
|
|
472
|
+
Antes de encerrar este workflow, verifique:
|
|
473
|
+
|
|
474
|
+
- [ ] `API-patch-page` foi chamado com Status = "Concluído" e `% Progresso: 100`?
|
|
475
|
+
- [ ] `API-patch-block-children` foi chamado com nota de conclusão no corpo?
|
|
476
|
+
- [ ] `API-create-a-comment` foi chamado com resumo da implementação?
|
|
477
|
+
- [ ] Usuário foi notificado sobre próxima task recomendada?
|
|
478
|
+
- [ ] **(Se --add-tests)** Seção de testes foi adicionada ao corpo?
|
|
479
|
+
- [ ] **(Se --add-tests)** Backend E Frontend foram analisados?
|
|
480
|
+
- [ ] **Fase 5.5 executada?** Docs impactados verificados e atualizados (local + Flyee)?
|
|
481
|
+
|
|
482
|
+
> [!IMPORTANT]
|
|
483
|
+
> Se algum item acima não foi feito, **EXECUTE AGORA** antes de finalizar.
|