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,278 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Extrair Design System de projeto finalizado e salvar como template reutilizável em .agent/templates/design-system/. Gera template + paleta de cores automaticamente.
|
|
3
|
+
skills: frontend-design, ui-ux-discovery
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /extract-template - Extrair Template de Projeto
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## 🎯 PROPÓSITO
|
|
11
|
+
|
|
12
|
+
Transforma o Design System de um projeto **finalizado e aprovado** em um template reutilizável, para que futuros projetos similares não precisem recriar o Design System do zero.
|
|
13
|
+
|
|
14
|
+
**Gera:**
|
|
15
|
+
- Template genérico em `.agent/templates/design-system/{TEMPLATE-NAME}.md`
|
|
16
|
+
- Paleta de cores extraída, adicionada ao `COLOR-PALETTES.md`
|
|
17
|
+
- Registro no workflow `/new-project` (Phase 2.5)
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## 📊 QUANDO USAR
|
|
22
|
+
|
|
23
|
+
| Situação | Usar? |
|
|
24
|
+
|----------|-------|
|
|
25
|
+
| Projeto finalizado com Design System aprovado | ✅ Sim |
|
|
26
|
+
| Design System foi refinado manualmente durante implementação | ✅ Sim (melhor resultado) |
|
|
27
|
+
| Projeto ainda em andamento | ❌ Não — finalizar primeiro |
|
|
28
|
+
| Template já existe para esse tipo | ⚠️ Perguntar se quer substituir ou criar variante |
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## 🧩 SUBCOMMANDS
|
|
33
|
+
|
|
34
|
+
| Comando | Ação |
|
|
35
|
+
|---------|------|
|
|
36
|
+
| `/extract-template` | Extrai do projeto atual (detecta MASTER.md automaticamente) |
|
|
37
|
+
| `/extract-template [caminho]` | Extrai de um caminho específico |
|
|
38
|
+
| `/extract-template --list` | Lista templates existentes |
|
|
39
|
+
| `/extract-template --preview` | Mostra o que seria extraído sem salvar |
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## 🔴 FLUXO
|
|
44
|
+
|
|
45
|
+
```
|
|
46
|
+
┌──────────────┐ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐
|
|
47
|
+
│ DETECTAR │───▶│ ANALISAR │───▶│ ABSTRAIR │───▶│ PALETA │───▶│ REGISTRAR │
|
|
48
|
+
│ (MASTER.md) │ │ (Padrões) │ │ (Template) │ │ (Cores) │ │ (Workflow) │
|
|
49
|
+
└──────────────┘ └──────────────┘ └──────────────┘ └──────────────┘ └──────────────┘
|
|
50
|
+
✅ ✅ ✋ ✋ ✅
|
|
51
|
+
Automático Automático Aprovação Aprovação Automático
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
### Step 1: DETECTAR — Localizar Design System do Projeto
|
|
57
|
+
|
|
58
|
+
**Ações:**
|
|
59
|
+
1. Buscar `design-system/MASTER.md` no projeto
|
|
60
|
+
2. Se não encontrado: buscar `design-system/*/MASTER.md`
|
|
61
|
+
3. Se não encontrado: perguntar caminho ao usuário
|
|
62
|
+
4. Ler também: `src/styles/tokens.css`, `src/app/globals.css` (para padrões reais)
|
|
63
|
+
|
|
64
|
+
```markdown
|
|
65
|
+
## 📂 Design System Detectado
|
|
66
|
+
|
|
67
|
+
| Arquivo | Caminho | Status |
|
|
68
|
+
|---------|---------|--------|
|
|
69
|
+
| MASTER.md | `design-system/MASTER.md` | ✅ Encontrado |
|
|
70
|
+
| tokens.css | `src/styles/tokens.css` | ✅ / ❌ |
|
|
71
|
+
| globals.css | `src/app/globals.css` | ✅ / ❌ |
|
|
72
|
+
|
|
73
|
+
Confirma que este é o Design System finalizado? (sim/não)
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
**AGUARDAR** confirmação.
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
### Step 2: ANALISAR — Extrair Padrões
|
|
81
|
+
|
|
82
|
+
**Ler e catalogar:**
|
|
83
|
+
|
|
84
|
+
| Aspecto | O que extrair | Fonte |
|
|
85
|
+
|---------|--------------|-------|
|
|
86
|
+
| **Cores** | Paleta primária completa (5 variações) | MASTER.md / tokens.css |
|
|
87
|
+
| **Tipografia** | Font families, escala tipográfica, weights | MASTER.md |
|
|
88
|
+
| **Espaçamento** | Escala de spacing | MASTER.md / tokens.css |
|
|
89
|
+
| **Radius** | Escala de border-radius | MASTER.md |
|
|
90
|
+
| **Shadows** | Todos os níveis + brand shadow | MASTER.md |
|
|
91
|
+
| **Efeitos** | Transições, gradients, hover patterns | MASTER.md |
|
|
92
|
+
| **Breakpoints** | Escala responsiva | MASTER.md |
|
|
93
|
+
| **Componentes** | Lista de componentes implementados | MASTER.md |
|
|
94
|
+
| **Anti-patterns** | O que NÃO fazer | MASTER.md |
|
|
95
|
+
| **Direção Visual** | Pattern, style, mood | MASTER.md |
|
|
96
|
+
|
|
97
|
+
**Apresentar análise ao usuário:**
|
|
98
|
+
|
|
99
|
+
```markdown
|
|
100
|
+
## 📊 Análise do Design System
|
|
101
|
+
|
|
102
|
+
### Identificação
|
|
103
|
+
- **Projeto:** {nome}
|
|
104
|
+
- **Direção Visual:** {pattern} — {style}
|
|
105
|
+
- **Mood:** {mood}
|
|
106
|
+
|
|
107
|
+
### Paleta Extraída
|
|
108
|
+
| Token | Hex | Nome sugerido |
|
|
109
|
+
|-------|-----|---------------|
|
|
110
|
+
| primary | {hex} | — |
|
|
111
|
+
| primary-light | {hex} | — |
|
|
112
|
+
| primary-dark | {hex} | — |
|
|
113
|
+
| primary-accent | {hex} | — |
|
|
114
|
+
| primary-muted | {hex} | — |
|
|
115
|
+
|
|
116
|
+
### Tipografia
|
|
117
|
+
- Heading: {font}
|
|
118
|
+
- Body: {font}
|
|
119
|
+
|
|
120
|
+
### Componentes ({N} total)
|
|
121
|
+
{lista}
|
|
122
|
+
|
|
123
|
+
### Tipo de Template Sugerido
|
|
124
|
+
**{tipo}** — Baseado na direção visual e componentes identificados.
|
|
125
|
+
|
|
126
|
+
Segmentos recomendados para reutilização: {segmentos}
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
131
|
+
### Step 3: ABSTRAIR — Gerar Template
|
|
132
|
+
|
|
133
|
+
**Perguntas ao usuário:**
|
|
134
|
+
|
|
135
|
+
```markdown
|
|
136
|
+
## ✏️ Configuração do Template
|
|
137
|
+
|
|
138
|
+
1. **Nome do template:**
|
|
139
|
+
Sugestão: `{sugestão baseada na direção visual}`
|
|
140
|
+
(ex: "Corporate Landing", "SaaS Dashboard", "Minimal Portfolio")
|
|
141
|
+
|
|
142
|
+
2. **Para quais tipos de projeto?**
|
|
143
|
+
- [ ] Site Institucional / LP
|
|
144
|
+
- [ ] Web App / SaaS
|
|
145
|
+
- [ ] Mobile App
|
|
146
|
+
- [ ] E-commerce
|
|
147
|
+
- [ ] Portfólio
|
|
148
|
+
- [ ] Blog
|
|
149
|
+
- [ ] Outro: ___
|
|
150
|
+
|
|
151
|
+
3. **Segmentos-alvo:**
|
|
152
|
+
Sugestão: {segmentos detectados}
|
|
153
|
+
(ex: "Financeiro, jurídico, imobiliário, seguros")
|
|
154
|
+
|
|
155
|
+
4. **Manter tipografia atual ou torná-la configurável?**
|
|
156
|
+
A) Manter (Inter + Plus Jakarta Sans) — recomendado para consistência
|
|
157
|
+
B) Tornar configurável — mais flexível mas menos testado
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
**AGUARDAR** respostas.
|
|
161
|
+
|
|
162
|
+
**Gerar template:**
|
|
163
|
+
1. Copiar estrutura do MASTER.md
|
|
164
|
+
2. Substituir cores específicas por placeholders `{PALETTE.*}`
|
|
165
|
+
3. Substituir `--shadow-gold` (ou brand shadow) por `{PALETTE.shadow-rgba}`
|
|
166
|
+
4. Substituir gradient específico por `{PALETTE.primary}` + `{PALETTE.primary-accent}`
|
|
167
|
+
5. Manter todos os outros tokens como valores concretos
|
|
168
|
+
6. Adicionar header com metadados do template
|
|
169
|
+
7. Salvar em `.agent/templates/design-system/{TEMPLATE-NAME}.md`
|
|
170
|
+
|
|
171
|
+
**Apresentar template gerado para aprovação.**
|
|
172
|
+
|
|
173
|
+
**AGUARDAR** aprovação.
|
|
174
|
+
|
|
175
|
+
---
|
|
176
|
+
|
|
177
|
+
### Step 4: PALETA — Registrar Cores na Biblioteca
|
|
178
|
+
|
|
179
|
+
**Gerar entrada para `COLOR-PALETTES.md`:**
|
|
180
|
+
|
|
181
|
+
```markdown
|
|
182
|
+
## {emoji} {N+1}. {Nome da Paleta}
|
|
183
|
+
|
|
184
|
+
> **Segmentos:** {segmentos do projeto original}
|
|
185
|
+
> **Mood:** {mood extraído}
|
|
186
|
+
|
|
187
|
+
| Token | Hex | Preview |
|
|
188
|
+
|-------|-----|---------|
|
|
189
|
+
| `primary` | `{hex}` | {emoji} {descrição} |
|
|
190
|
+
| `primary-light` | `{hex}` | {descrição} |
|
|
191
|
+
| `primary-dark` | `{hex}` | {descrição} |
|
|
192
|
+
| `primary-accent` | `{hex}` | {descrição} |
|
|
193
|
+
| `primary-muted` | `{hex}` | {descrição} |
|
|
194
|
+
| `shadow-rgba` | `rgba({r}, {g}, {b}, 0.{opacidade})` | Sombra {cor} |
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
**Perguntar ao usuário:**
|
|
198
|
+
|
|
199
|
+
```markdown
|
|
200
|
+
## 🎨 Registrar Paleta de Cores
|
|
201
|
+
|
|
202
|
+
As cores deste projeto serão adicionadas como nova paleta em `COLOR-PALETTES.md`.
|
|
203
|
+
|
|
204
|
+
**Nome sugerido:** {nome baseado no projeto}
|
|
205
|
+
**Emoji sugerido:** {emoji baseado na cor}
|
|
206
|
+
|
|
207
|
+
Quer ajustar o nome, emoji ou segmentos? (ou aprovar)
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
**AGUARDAR** aprovação. Adicionar ao final de `COLOR-PALETTES.md`.
|
|
211
|
+
|
|
212
|
+
---
|
|
213
|
+
|
|
214
|
+
### Step 5: REGISTRAR — Atualizar Workflow
|
|
215
|
+
|
|
216
|
+
**Ações automáticas:**
|
|
217
|
+
|
|
218
|
+
1. Atualizar a tabela de templates na Phase 2.5 do `/new-project`:
|
|
219
|
+
|
|
220
|
+
```markdown
|
|
221
|
+
| {Template Name} | `{TEMPLATE-FILE}.md` | {tipos compatíveis} |
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
2. Atualizar a tabela de paletas na Phase 2.5 do `/new-project` (se a tabela de preview existir)
|
|
225
|
+
|
|
226
|
+
3. Gerar relatório final:
|
|
227
|
+
|
|
228
|
+
```markdown
|
|
229
|
+
## ✅ Template Extraído com Sucesso
|
|
230
|
+
|
|
231
|
+
### Arquivos Criados/Atualizados
|
|
232
|
+
|
|
233
|
+
| Arquivo | Ação |
|
|
234
|
+
|---------|------|
|
|
235
|
+
| `.agent/templates/design-system/{TEMPLATE}.md` | ✅ Criado |
|
|
236
|
+
| `.agent/templates/design-system/COLOR-PALETTES.md` | ✅ Paleta adicionada |
|
|
237
|
+
| `.agent/workflows/new-project.md` | ✅ Tabela de templates atualizada |
|
|
238
|
+
|
|
239
|
+
### Como Usar
|
|
240
|
+
|
|
241
|
+
No próximo projeto:
|
|
242
|
+
```bash
|
|
243
|
+
/new-project meu-site
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
O agente oferecerá automaticamente:
|
|
247
|
+
> "Encontrei o template **{nome}**. Escolha a paleta de cores..."
|
|
248
|
+
|
|
249
|
+
### Templates Disponíveis ({N} total)
|
|
250
|
+
|
|
251
|
+
| # | Template | Tipos | Paletas |
|
|
252
|
+
|---|----------|-------|---------|
|
|
253
|
+
{tabela atualizada de todos os templates}
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
---
|
|
257
|
+
|
|
258
|
+
## 📋 GATES DE SAÍDA
|
|
259
|
+
|
|
260
|
+
```
|
|
261
|
+
[ ] MASTER.md do projeto-fonte localizado e confirmado
|
|
262
|
+
[ ] Padrões analisados e apresentados ao usuário
|
|
263
|
+
[ ] Template gerado com placeholders de cor
|
|
264
|
+
[ ] Template aprovado pelo usuário
|
|
265
|
+
[ ] Paleta extraída e adicionada ao COLOR-PALETTES.md
|
|
266
|
+
[ ] Tabela de templates no /new-project atualizada
|
|
267
|
+
[ ] Relatório final apresentado
|
|
268
|
+
```
|
|
269
|
+
|
|
270
|
+
---
|
|
271
|
+
|
|
272
|
+
## ⚠️ REGRAS
|
|
273
|
+
|
|
274
|
+
1. **Nunca extrair de projeto incompleto** — o MASTER.md deve ser a versão final
|
|
275
|
+
2. **Preferir o que foi REALMENTE implementado** — se houve divergência entre MASTER.md e o CSS real, usar os valores do CSS (tokens.css / globals.css)
|
|
276
|
+
3. **Não substituir templates existentes** sem permissão — perguntar se quer criar variante
|
|
277
|
+
4. **Nomes descritivos** — evitar nomes genéricos como "Template 1"
|
|
278
|
+
5. **Testar contraste** — verificar que as cores extraídas passam WCAG AA
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Workflow para corrigir testes falhados. O agente lê falhas, analisa código, aplica fixes e re-testa em loop (máx 3 tentativas automáticas).
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /fix-tests
|
|
6
|
+
|
|
7
|
+
> Corrigir testes falhados de uma task. Loop automático com limite de tentativas.
|
|
8
|
+
|
|
9
|
+
## Uso
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
/fix-tests <task_id>
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
**Exemplo:**
|
|
16
|
+
```bash
|
|
17
|
+
/fix-tests abc-123-uuid
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## Pré-requisitos
|
|
23
|
+
|
|
24
|
+
1. A task DEVE ter `meta.test_checklist` preenchido
|
|
25
|
+
2. Pelo menos 1 teste com `status: failed` ou `status: pending`
|
|
26
|
+
3. Bridge configurado (fallback: usar API diretamente)
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## Fluxo de Execução
|
|
31
|
+
|
|
32
|
+
### Step 1: Ler Testes Pendentes/Falhados
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
python3 .agent/flyee-bridge/bridge.py --pending-tests <task_id>
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Separar em dois grupos:
|
|
39
|
+
- **Auto tests** (`type: auto`) → agente corrige e re-roda
|
|
40
|
+
- **Manual tests** (`type: manual`) → listar para o dev
|
|
41
|
+
|
|
42
|
+
> Se nenhum teste failing/pending → informar "✅ All tests passed" e encerrar.
|
|
43
|
+
|
|
44
|
+
### Step 2: Loop de Auto-Fix (máx 3 iterações)
|
|
45
|
+
|
|
46
|
+
Para cada teste `auto` com status `failed`:
|
|
47
|
+
|
|
48
|
+
```
|
|
49
|
+
2.1: Ler result_comment → entender o que falhou
|
|
50
|
+
2.2: Identificar arquivo(s) relacionado(s) ao teste
|
|
51
|
+
2.3: Analisar código e aplicar correção
|
|
52
|
+
2.4: Re-rodar teste:
|
|
53
|
+
- tsc --noEmit (para testes unit/sdk)
|
|
54
|
+
- vitest run (se configurado)
|
|
55
|
+
- Playwright (se configurado)
|
|
56
|
+
2.5: Reportar resultado:
|
|
57
|
+
python3 .agent/flyee-bridge/bridge.py --report-test <task_id> <step_id> passed|failed ["novo comentário"]
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
**Controle de loop:**
|
|
61
|
+
```
|
|
62
|
+
iteration = 0
|
|
63
|
+
MAX_ITERATIONS = 3
|
|
64
|
+
|
|
65
|
+
while iteration < MAX_ITERATIONS:
|
|
66
|
+
pending = get_pending_auto_tests()
|
|
67
|
+
if len(pending) == 0: break
|
|
68
|
+
|
|
69
|
+
for test in pending:
|
|
70
|
+
analyze_and_fix(test)
|
|
71
|
+
report_result(test)
|
|
72
|
+
|
|
73
|
+
iteration += 1
|
|
74
|
+
|
|
75
|
+
if iteration >= MAX_ITERATIONS:
|
|
76
|
+
ESCALATE → informar dev
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### Step 3: Regression Detection
|
|
80
|
+
|
|
81
|
+
Antes de aplicar fix, verificar se mesmo cenário falhou antes:
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
python3 .agent/flyee-bridge/bridge.py --search-context "<description do teste falhado>"
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
Se encontrar task anterior com mesmo padrão de falha → consultar solução aplicada anteriormente.
|
|
88
|
+
|
|
89
|
+
### Step 4: Listar Testes Manuais
|
|
90
|
+
|
|
91
|
+
Para testes com `type: manual`:
|
|
92
|
+
|
|
93
|
+
```markdown
|
|
94
|
+
## 🔍 Testes Manuais Pendentes
|
|
95
|
+
|
|
96
|
+
Os seguintes testes requerem validação manual:
|
|
97
|
+
|
|
98
|
+
| # | Teste | Categoria |
|
|
99
|
+
|---|-------|-----------|
|
|
100
|
+
| ts-3 | Responsivo no mobile (≤640px) | visual |
|
|
101
|
+
| ts-7 | Hover states match DS | visual |
|
|
102
|
+
|
|
103
|
+
Por favor, teste e marque como passed/failed na UI (TaskDetail → tab "tests").
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
### Step 5: Verificar Resultado Final
|
|
107
|
+
|
|
108
|
+
```bash
|
|
109
|
+
python3 .agent/flyee-bridge/bridge.py --test-summary <task_id>
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
| Resultado | Ação |
|
|
113
|
+
|-----------|------|
|
|
114
|
+
| `all_passed: true` | ✅ "Todos os testes passando. Task pode ser concluída." |
|
|
115
|
+
| `all_passed: false` (só manual) | ⏳ "Testes auto OK. Aguardando validação manual do dev." |
|
|
116
|
+
| `all_passed: false` (auto failed after 3 loops) | ❌ Escalar ao dev com detalhes |
|
|
117
|
+
|
|
118
|
+
### Step 6: Emitir Eventos (se bridge configurado)
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
# Para cada teste que passou:
|
|
122
|
+
python3 .agent/flyee-bridge/bridge.py emit "qa.test_passed" '{"task_id": "<id>", "step_id": "<step>", "tested_by": "agent"}'
|
|
123
|
+
|
|
124
|
+
# Para cada teste que falhou (após 3 tentativas):
|
|
125
|
+
python3 .agent/flyee-bridge/bridge.py emit "qa.test_failed" '{"task_id": "<id>", "step_id": "<step>", "attempts": 3, "last_error": "<comment>"}'
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
---
|
|
129
|
+
|
|
130
|
+
## Mensagem Final
|
|
131
|
+
|
|
132
|
+
```markdown
|
|
133
|
+
## 🧪 Fix-Tests Summary — Task {id}
|
|
134
|
+
|
|
135
|
+
| Métrica | Valor |
|
|
136
|
+
|---------|-------|
|
|
137
|
+
| Total de testes | {total} |
|
|
138
|
+
| ✅ Passed | {passed} |
|
|
139
|
+
| ❌ Failed | {failed} |
|
|
140
|
+
| ⏭️ Skipped | {skipped} |
|
|
141
|
+
| ⏳ Pending (manual) | {pending} |
|
|
142
|
+
| 🔄 Auto-fix loops | {iterations}/3 |
|
|
143
|
+
| All passed | {yes/no} |
|
|
144
|
+
|
|
145
|
+
{Se all_passed: "✅ Task pronta para /task-complete"}
|
|
146
|
+
{Se não: "❌ Testes ainda falhando. Intervenção manual necessária."}
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
---
|
|
150
|
+
|
|
151
|
+
## Gatilhos
|
|
152
|
+
|
|
153
|
+
Este workflow é acionado quando:
|
|
154
|
+
|
|
155
|
+
- O usuário invoca `/fix-tests <task_id>`
|
|
156
|
+
- O usuário solicita "corrigir testes" ou "fix failing tests"
|
|
157
|
+
- Etapa 1.7 do `/task-complete` sugere e o dev aceita
|
|
158
|
+
- Agent detecta `all_passed == false` durante verificação
|
|
159
|
+
|
|
160
|
+
> 🔴 **REGRA:** O agente NÃO pode marcar `all_passed` manualmente. Somente o endpoint `PUT /tasks/{id}/test-results` pode alterar o status.
|