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,306 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Collect, validate, and normalize **textual content (copy)** required for pages, sections, components, or features **without mixing copy decisions with UI composition or design system logic**.
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
This workflow exists to:
|
|
6
|
+
|
|
7
|
+
* Prevent copy decisions from being inferred implicitly
|
|
8
|
+
* Separate **content authority** from **UI authority**
|
|
9
|
+
* Ensure pages are never blocked by missing text
|
|
10
|
+
* Maintain product and brand governance
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## AUTHORITY & POSITION IN THE SYSTEM
|
|
15
|
+
|
|
16
|
+
* `/copy-collect` is the **ONLY allowed workflow** to define or approve final copy
|
|
17
|
+
* `/page-build` and `/ds-components` **MUST NOT invent final copy**
|
|
18
|
+
* Copy is considered **product-level input**, not a UI decision
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## HARD PRECONDITIONS
|
|
23
|
+
|
|
24
|
+
Before execution, ALL conditions must be true:
|
|
25
|
+
|
|
26
|
+
* `.agent/state/project.json` exists
|
|
27
|
+
* `project.stage === "development"`
|
|
28
|
+
* A target exists:
|
|
29
|
+
|
|
30
|
+
* page
|
|
31
|
+
* section
|
|
32
|
+
* component
|
|
33
|
+
* feature
|
|
34
|
+
|
|
35
|
+
❌ If no target is defined → BLOCK execution
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## INPUT
|
|
40
|
+
|
|
41
|
+
### Required
|
|
42
|
+
|
|
43
|
+
```text
|
|
44
|
+
/copy-collect [target]
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Examples:
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
/copy-collect onboarding
|
|
51
|
+
/copy-collect dashboard
|
|
52
|
+
/copy-collect page:settings
|
|
53
|
+
/copy-collect component:pricing-card
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
### Optional Inputs
|
|
59
|
+
|
|
60
|
+
```text
|
|
61
|
+
tone: formal | neutral | friendly | technical | marketing
|
|
62
|
+
language: en | pt-BR | es | fr | custom
|
|
63
|
+
brand_constraints: provided | unknown
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## COPY MODES (EXPLICIT)
|
|
69
|
+
|
|
70
|
+
The workflow MUST determine which mode applies.
|
|
71
|
+
|
|
72
|
+
### 1️⃣ Provided Copy (Preferred)
|
|
73
|
+
|
|
74
|
+
User provides copy directly.
|
|
75
|
+
|
|
76
|
+
```text
|
|
77
|
+
Title:
|
|
78
|
+
Subtitle:
|
|
79
|
+
CTA:
|
|
80
|
+
Descriptions:
|
|
81
|
+
Empty states:
|
|
82
|
+
Errors:
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
Rules:
|
|
86
|
+
|
|
87
|
+
* Copy is stored verbatim
|
|
88
|
+
* No rewriting unless explicitly requested
|
|
89
|
+
* Considered FINAL unless reopened
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
### 2️⃣ Assisted Draft Copy (Controlled)
|
|
94
|
+
|
|
95
|
+
If copy is not provided:
|
|
96
|
+
|
|
97
|
+
* Generate **semantic placeholder copy**
|
|
98
|
+
* Avoid brand tone assumptions
|
|
99
|
+
* Avoid marketing language
|
|
100
|
+
* Avoid claims or promises
|
|
101
|
+
|
|
102
|
+
Allowed examples:
|
|
103
|
+
|
|
104
|
+
```text
|
|
105
|
+
"Primary action"
|
|
106
|
+
"Section title"
|
|
107
|
+
"Short descriptive text"
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
❌ Forbidden:
|
|
111
|
+
|
|
112
|
+
* Value propositions
|
|
113
|
+
* Emotional claims
|
|
114
|
+
* Sales language
|
|
115
|
+
* Feature naming
|
|
116
|
+
|
|
117
|
+
All generated copy MUST be marked as:
|
|
118
|
+
|
|
119
|
+
```text
|
|
120
|
+
status: draft
|
|
121
|
+
requires_approval: true
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
### 3️⃣ Copy Approval Mode
|
|
127
|
+
|
|
128
|
+
If draft copy already exists:
|
|
129
|
+
|
|
130
|
+
* Present copy for approval
|
|
131
|
+
* Allow:
|
|
132
|
+
|
|
133
|
+
* approve
|
|
134
|
+
* edit
|
|
135
|
+
* reject
|
|
136
|
+
* No UI or page build may proceed with unapproved strategic copy
|
|
137
|
+
|
|
138
|
+
---
|
|
139
|
+
|
|
140
|
+
## WORKFLOW STEPS
|
|
141
|
+
|
|
142
|
+
---
|
|
143
|
+
|
|
144
|
+
### 1️⃣ Load Project Context
|
|
145
|
+
|
|
146
|
+
Read:
|
|
147
|
+
|
|
148
|
+
* `.agent/state/project.json`
|
|
149
|
+
* Existing copy artifacts (if any)
|
|
150
|
+
|
|
151
|
+
---
|
|
152
|
+
|
|
153
|
+
### 2️⃣ Identify Copy Scope
|
|
154
|
+
|
|
155
|
+
Determine required copy types:
|
|
156
|
+
|
|
157
|
+
* Page titles
|
|
158
|
+
* Section headers
|
|
159
|
+
* Body text
|
|
160
|
+
* CTAs
|
|
161
|
+
* Labels
|
|
162
|
+
* Empty states
|
|
163
|
+
* Errors
|
|
164
|
+
* Helper text
|
|
165
|
+
* Accessibility labels (aria-labels)
|
|
166
|
+
|
|
167
|
+
---
|
|
168
|
+
|
|
169
|
+
### 3️⃣ Detect Copy Gaps
|
|
170
|
+
|
|
171
|
+
For each required item:
|
|
172
|
+
|
|
173
|
+
* exists → OK
|
|
174
|
+
* missing → mark as REQUIRED
|
|
175
|
+
|
|
176
|
+
---
|
|
177
|
+
|
|
178
|
+
### 4️⃣ Resolve Copy Gaps
|
|
179
|
+
|
|
180
|
+
Depending on mode:
|
|
181
|
+
|
|
182
|
+
* Use provided copy
|
|
183
|
+
* Generate placeholder copy
|
|
184
|
+
* Request explicit user input
|
|
185
|
+
|
|
186
|
+
---
|
|
187
|
+
|
|
188
|
+
### 5️⃣ Normalize & Structure Copy
|
|
189
|
+
|
|
190
|
+
Store copy in a structured format:
|
|
191
|
+
|
|
192
|
+
```json
|
|
193
|
+
{
|
|
194
|
+
"target": "dashboard",
|
|
195
|
+
"language": "en",
|
|
196
|
+
"tone": "neutral",
|
|
197
|
+
"status": "approved",
|
|
198
|
+
"copy": {
|
|
199
|
+
"title": "...",
|
|
200
|
+
"sections": [
|
|
201
|
+
{
|
|
202
|
+
"id": "overview",
|
|
203
|
+
"title": "...",
|
|
204
|
+
"description": "...",
|
|
205
|
+
"cta": "..."
|
|
206
|
+
}
|
|
207
|
+
],
|
|
208
|
+
"empty_states": {},
|
|
209
|
+
"errors": {}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
---
|
|
215
|
+
|
|
216
|
+
### 6️⃣ Persist Copy Artifact
|
|
217
|
+
|
|
218
|
+
Write to:
|
|
219
|
+
|
|
220
|
+
```
|
|
221
|
+
src/content/
|
|
222
|
+
└── copy/
|
|
223
|
+
└── [target].json
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
And register in:
|
|
227
|
+
|
|
228
|
+
```json
|
|
229
|
+
artifacts.documents[]
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
---
|
|
233
|
+
|
|
234
|
+
### 7️⃣ Project State Update
|
|
235
|
+
|
|
236
|
+
Update `.agent/state/project.json`:
|
|
237
|
+
|
|
238
|
+
```json
|
|
239
|
+
"content": {
|
|
240
|
+
"copy": {
|
|
241
|
+
"[target]": {
|
|
242
|
+
"status": "approved | draft",
|
|
243
|
+
"language": "en",
|
|
244
|
+
"last_updated": "ISO_TIMESTAMP"
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
---
|
|
251
|
+
|
|
252
|
+
## OUTPUT (MANDATORY)
|
|
253
|
+
|
|
254
|
+
```text
|
|
255
|
+
Copy Collection Status: COMPLETED
|
|
256
|
+
Target: [page / component / feature]
|
|
257
|
+
Copy Status: approved | draft
|
|
258
|
+
Blocking Issues: none | approval required
|
|
259
|
+
Next Allowed Action:
|
|
260
|
+
- /page-build (if approved)
|
|
261
|
+
- await copy approval
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
---
|
|
265
|
+
|
|
266
|
+
## GOVERNANCE RULES (HARD LAW)
|
|
267
|
+
|
|
268
|
+
* UI workflows MUST NOT invent final copy
|
|
269
|
+
* Draft copy MUST be visibly marked
|
|
270
|
+
* Strategic copy requires explicit approval
|
|
271
|
+
* Copy changes DO NOT invalidate Design System validation
|
|
272
|
+
* Copy does NOT unlock UI by itself
|
|
273
|
+
|
|
274
|
+
---
|
|
275
|
+
|
|
276
|
+
## /next-step INTEGRATION (MANDATORY)
|
|
277
|
+
|
|
278
|
+
`/next-step` MUST enforce:
|
|
279
|
+
|
|
280
|
+
```text
|
|
281
|
+
If page-build is requested AND copy.status !== "approved":
|
|
282
|
+
→ Recommend /copy-collect
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
---
|
|
286
|
+
|
|
287
|
+
## RELATIONSHIP TO OTHER WORKFLOWS
|
|
288
|
+
|
|
289
|
+
| Workflow | Relationship |
|
|
290
|
+
| ---------------- | ----------------------------- |
|
|
291
|
+
| `/page-build` | Consumes approved copy |
|
|
292
|
+
| `/ds-components` | May use labels only |
|
|
293
|
+
| `/ds-validate` | Ignores copy (structure only) |
|
|
294
|
+
| `/next-step` | Orchestrates order |
|
|
295
|
+
| `/copy-collect` | Content authority |
|
|
296
|
+
|
|
297
|
+
---
|
|
298
|
+
|
|
299
|
+
## GOLDEN RULE
|
|
300
|
+
|
|
301
|
+
> **Design defines structure.
|
|
302
|
+
> Copy defines meaning.
|
|
303
|
+
> Data defines truth.
|
|
304
|
+
> Governance defines order.**
|
|
305
|
+
|
|
306
|
+
---
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Create new specialist agent
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /create-agent
|
|
6
|
+
|
|
7
|
+
> Interactively create a new specialist agent. Can invoke /create-skill if needed.
|
|
8
|
+
|
|
9
|
+
## 1. Identity
|
|
10
|
+
1. **Identity**: "What is the agent's name?" (e.g., `aws-specialist`, `tanavitrine-expert`)
|
|
11
|
+
2. **Trigger**: "What keywords should trigger this agent?"
|
|
12
|
+
|
|
13
|
+
> **Note:** All agents are created in `.agent/agents/` (global scope). The `.agent/` directory is immutable per project.
|
|
14
|
+
|
|
15
|
+
## 2. Skills Analysis
|
|
16
|
+
1. **Existing**: "Which existing skills should this agent possess?" (List common ones like `clean-code`)
|
|
17
|
+
2. **New**: "Do you need a new specific skill?"
|
|
18
|
+
- If YES: Invoke `/create-skill` first.
|
|
19
|
+
|
|
20
|
+
## 3. Behavior Definition
|
|
21
|
+
1. **Philosophy**: "What is this agent's core philosophy?"
|
|
22
|
+
2. **Do/Don'ts**: "What are the critical Do's and Don'ts?"
|
|
23
|
+
3. **Questions**: "What must the agent ask before acting?"
|
|
24
|
+
|
|
25
|
+
## 4. Execution
|
|
26
|
+
1. **Target Directory**: `.agent/agents/`
|
|
27
|
+
2. **Read Template**: `.agent/templates/agent-template.md`
|
|
28
|
+
3. **Generate File**: Write `{name}.md` in the target directory.
|
|
29
|
+
|
|
30
|
+
## Example
|
|
31
|
+
```bash
|
|
32
|
+
/create-agent --local
|
|
33
|
+
```
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Create new skill with guided dialogue
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /create-skill
|
|
6
|
+
|
|
7
|
+
> Interactively create a new specialized skill in global or local scope.
|
|
8
|
+
|
|
9
|
+
## 1. Domain (Socratic)
|
|
10
|
+
First, determine the skill's purpose:
|
|
11
|
+
1. **Domain**: "What is the specific domain or technology?" (e.g., "GraphQL Patterns", "Vitrine Rules")
|
|
12
|
+
2. **Name**: "What should be the folder name?" (kebab-case, e.g., `graphql-patterns`)
|
|
13
|
+
|
|
14
|
+
> **Note:** All skills are created in `.agent/skills/` (global scope). The `.agent/` directory is immutable per project.
|
|
15
|
+
|
|
16
|
+
## 2. Structure
|
|
17
|
+
Ask about the skill's components:
|
|
18
|
+
- "Does this skill need auxiliary scripts?"
|
|
19
|
+
- "Does it need templates or examples?"
|
|
20
|
+
|
|
21
|
+
## 3. Content Generation
|
|
22
|
+
Ask for core content to populate the template:
|
|
23
|
+
- "What are the top 3 core principles?"
|
|
24
|
+
- "What are the critical anti-patterns?"
|
|
25
|
+
- "Are there specific decision frameworks?"
|
|
26
|
+
|
|
27
|
+
## 4. Execution
|
|
28
|
+
1. **Target Directory**: `.agent/skills/{name}`
|
|
29
|
+
2. **Read Template**: `.agent/templates/skill-template.md`
|
|
30
|
+
3. **Generate File**: Write `SKILL.md` in the target directory with populated content.
|
|
31
|
+
4. **Optional**:
|
|
32
|
+
- If scripts requested: Create `scripts/` folder and copy `.agent/templates/script-template.py` to `scripts/verify.py`.
|
|
33
|
+
- If examples requested: Create `examples/` folder.
|
|
34
|
+
|
|
35
|
+
## Example
|
|
36
|
+
```bash
|
|
37
|
+
/create-skill
|
|
38
|
+
# Follow the dialogue
|
|
39
|
+
```
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Create new workflow (can invoke create-agent)
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /create-workflow
|
|
6
|
+
|
|
7
|
+
> Interactively create a new workflow. Can invoke /create-agent if a new specialist is needed.
|
|
8
|
+
|
|
9
|
+
## 1. Purpose
|
|
10
|
+
1. **Trigger**: "What is the slash command?" (e.g., `/deploy-aws`)
|
|
11
|
+
2. **Goal**: "What problem does this workflow solve?"
|
|
12
|
+
|
|
13
|
+
> **Note:** All workflows are created in `.agent/workflows/` (global scope). The `.agent/` directory is immutable per project.
|
|
14
|
+
|
|
15
|
+
## 2. Agent Check
|
|
16
|
+
1. **Required expertise**: "Which agents are needed to execute this?"
|
|
17
|
+
2. **Gap Analysis**: "Do these agents exist?"
|
|
18
|
+
- If NO: Invoke `/create-agent` to create the missing specialist.
|
|
19
|
+
|
|
20
|
+
## 3. Flow Design
|
|
21
|
+
1. **Phases**: "What are the main phases?"
|
|
22
|
+
2. **Steps**: "List the key steps for each phase."
|
|
23
|
+
3. **Inputs/Outputs**: "What inputs are needed? What artifacts are produced?"
|
|
24
|
+
|
|
25
|
+
## 4. Execution
|
|
26
|
+
1. **Target Directory**: `.agent/workflows/`
|
|
27
|
+
2. **Read Template**: `.agent/templates/workflow-template.md`
|
|
28
|
+
3. **Generate File**: Write `{command}.md` in the target directory.
|
|
29
|
+
|
|
30
|
+
## Example
|
|
31
|
+
```bash
|
|
32
|
+
/create-workflow
|
|
33
|
+
```
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Create new application command. Triggers App Builder skill and starts interactive dialogue with user.
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /create - Create Application
|
|
6
|
+
|
|
7
|
+
$ARGUMENTS
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Task
|
|
12
|
+
|
|
13
|
+
This command starts a new application creation process.
|
|
14
|
+
|
|
15
|
+
### Steps:
|
|
16
|
+
|
|
17
|
+
1. **Request Analysis**
|
|
18
|
+
- Understand what the user wants
|
|
19
|
+
- If information is missing, use `conversation-manager` skill to ask
|
|
20
|
+
|
|
21
|
+
2. **Project Planning**
|
|
22
|
+
- Use `project-planner` agent for task breakdown
|
|
23
|
+
- Determine tech stack
|
|
24
|
+
- Plan file structure
|
|
25
|
+
- Create plan file and proceed to building
|
|
26
|
+
|
|
27
|
+
3. **TDD Metodologia (OBRIGATÓRIO)**
|
|
28
|
+
> [!IMPORTANT]
|
|
29
|
+
> **Antes de implementar, escrever testes.**
|
|
30
|
+
|
|
31
|
+
- Use `tdd-workflow` skill para cada feature
|
|
32
|
+
- Ciclo: 🔴 RED → 🟢 GREEN → 🔵 REFACTOR
|
|
33
|
+
- Gerar testes com `/test [feature]`
|
|
34
|
+
|
|
35
|
+
4. **Design System (OBRIGATÓRIO para UI)**
|
|
36
|
+
> [!IMPORTANT]
|
|
37
|
+
> **SKILL OBRIGATÓRIA:** Seguir `ui-ux-discovery` para perguntas granulares.
|
|
38
|
+
> **WORKFLOW:** Executar `/ui-ux-pro-max` para obter recomendações.
|
|
39
|
+
|
|
40
|
+
**Processo:**
|
|
41
|
+
1. Executar script para obter recomendações
|
|
42
|
+
2. **Fazer perguntas granulares** (cores, tipografia, layout, efeitos, logo)
|
|
43
|
+
3. **AGUARDAR respostas** antes de finalizar
|
|
44
|
+
4. Consolidar decisões e persistir em `design-system/MASTER.md`
|
|
45
|
+
5. AGUARDAR aprovação antes de implementar
|
|
46
|
+
|
|
47
|
+
5. **Application Building (After Tests + Design System + Approval)**
|
|
48
|
+
- Orchestrate with `app-builder` skill
|
|
49
|
+
- Coordinate expert agents:
|
|
50
|
+
- `database-architect` → Schema
|
|
51
|
+
- `backend-specialist` → API
|
|
52
|
+
- `frontend-specialist` → UI (seguindo Design System)
|
|
53
|
+
|
|
54
|
+
6. **Verificação de Cobertura (GATE)**
|
|
55
|
+
> [!CAUTION]
|
|
56
|
+
> **Cobertura mínima: 80%** antes de preview.
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
/test coverage
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
Se cobertura < 80%:
|
|
63
|
+
- Identificar áreas não cobertas
|
|
64
|
+
- Adicionar testes faltantes
|
|
65
|
+
- Repetir verificação
|
|
66
|
+
|
|
67
|
+
7. **Preview**
|
|
68
|
+
- Start with `auto_preview.py` when complete
|
|
69
|
+
- Present URL to user
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
## Usage Examples
|
|
74
|
+
|
|
75
|
+
```
|
|
76
|
+
/create blog site
|
|
77
|
+
/create e-commerce app with product listing and cart
|
|
78
|
+
/create todo app
|
|
79
|
+
/create Instagram clone
|
|
80
|
+
/create crm system with customer management
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
## Before Starting
|
|
86
|
+
|
|
87
|
+
If request is unclear, ask these questions:
|
|
88
|
+
- What type of application?
|
|
89
|
+
- What are the basic features?
|
|
90
|
+
- Who will use it?
|
|
91
|
+
|
|
92
|
+
Use defaults, add details later.
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Debugging command. Activates DEBUG mode for systematic problem investigation.
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /debug - Systematic Problem Investigation
|
|
6
|
+
|
|
7
|
+
$ARGUMENTS
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Purpose
|
|
12
|
+
|
|
13
|
+
This command activates DEBUG mode for systematic investigation of issues, errors, or unexpected behavior.
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## Agentes Envolvidos
|
|
18
|
+
|
|
19
|
+
- `debugger` - Investigação sistemática e análise de root cause
|
|
20
|
+
- `backend-specialist` / `frontend-specialist` / `mobile-developer` - Conforme domínio do erro
|
|
21
|
+
- `test-engineer` - Para criar testes de regressão após correção
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## Etapa 0: Flyee Sync (OBRIGATÓRIO — ANTES de qualquer código)
|
|
26
|
+
|
|
27
|
+
> [!CAUTION]
|
|
28
|
+
> Toda investigação de bug DEVE ser registrada no Flyee antes de iniciar qualquer fix.
|
|
29
|
+
> Se `flyee.json` não existir ou `enabled: false`, informar o usuário.
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
python3 .agent/flyee-bridge/bridge.py --create-task \
|
|
33
|
+
--name "Bug: <descrição curta do problema>" \
|
|
34
|
+
--type generic \
|
|
35
|
+
--description "<sintoma observado, arquivo afetado, passos para reproduzir>" \
|
|
36
|
+
--priority high
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
> Salvar o `task_id` retornado — será usado nas etapas seguintes.
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## Etapa 1: Gather Information
|
|
44
|
+
|
|
45
|
+
- Error message / sintoma visível
|
|
46
|
+
- Reproduction steps
|
|
47
|
+
- Expected vs actual behavior
|
|
48
|
+
- Recent changes that may have caused it
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
## Etapa 2: Form Hypotheses
|
|
53
|
+
|
|
54
|
+
- List possible causes
|
|
55
|
+
- Order by likelihood
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## Etapa 3: Investigate Systematically
|
|
60
|
+
|
|
61
|
+
- Test each hypothesis
|
|
62
|
+
- Check logs, data flow
|
|
63
|
+
- Use elimination method
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
## Etapa 4: Fix and Prevent
|
|
68
|
+
|
|
69
|
+
- Apply fix
|
|
70
|
+
- Explain root cause
|
|
71
|
+
- Add prevention measures
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
## Etapa 5: QA Test Gate (BLOQUEANTE — ANTES de marcar concluído)
|
|
76
|
+
|
|
77
|
+
> [!CAUTION]
|
|
78
|
+
> O bug NÃO pode ser marcado como concluído sem gerar e executar testes.
|
|
79
|
+
> Seguir heurísticas de `@[skills/qa-test-generation]`.
|
|
80
|
+
|
|
81
|
+
1. **Transicionar status para `testing`:**
|
|
82
|
+
```bash
|
|
83
|
+
python3 .agent/flyee-bridge/bridge.py --update-task <task_id> --status testing
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
2. **Gerar checklist de testes:**
|
|
87
|
+
```bash
|
|
88
|
+
python3 .agent/flyee-bridge/bridge.py --generate-tests <task_id>
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
3. **Rodar testes automáticos** (TypeScript, Vitest, Playwright — conforme stack):
|
|
92
|
+
```bash
|
|
93
|
+
python3 .agent/flyee-bridge/bridge.py --report-test <task_id> <step_id> passed|failed ["comment"]
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
4. **Verificar gate:**
|
|
97
|
+
```bash
|
|
98
|
+
python3 .agent/flyee-bridge/bridge.py --test-summary <task_id>
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
- `all_passed == true` → ✅ prosseguir para Etapa 6
|
|
102
|
+
- `all_passed == false` → ❌ BLOQUEAR — corrigir testes antes de concluir
|
|
103
|
+
|
|
104
|
+
> Se o usuário solicitar skip (ex: hotfix urgente), registrar como `skipped` com aviso de quality debt.
|
|
105
|
+
|
|
106
|
+
> [!IMPORTANT]
|
|
107
|
+
> **Para bugs de UI:** orientar o usuário a reproduzir o bug pelo caminho real da aplicação.
|
|
108
|
+
> Exemplo: abrir a tela de tasks de um projeto → clicar nos 3 pontos de uma task → selecionar uma opção que abre modal → fechar o modal → verificar se a tela continua responsiva.
|
|
109
|
+
|
|
110
|
+
---
|
|
111
|
+
|
|
112
|
+
## Etapa 6: Conclusão — /task-complete
|
|
113
|
+
|
|
114
|
+
> Após testes aprovados, executar obrigatoriamente:
|
|
115
|
+
|
|
116
|
+
```
|
|
117
|
+
/task-complete <task_id> "<tempo_gasto>"
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
Isso sincroniza o status, adiciona nota de conclusão e comentário rico no Flyee.
|
|
121
|
+
|
|
122
|
+
---
|
|
123
|
+
|
|
124
|
+
## Output Format
|
|
125
|
+
|
|
126
|
+
```markdown
|
|
127
|
+
## 🔍 Debug: [Issue]
|
|
128
|
+
|
|
129
|
+
### 1. Symptom
|
|
130
|
+
[What's happening]
|
|
131
|
+
|
|
132
|
+
### 2. Information Gathered
|
|
133
|
+
- Error: `[error message]`
|
|
134
|
+
- File: `[filepath]`
|
|
135
|
+
- Line: [line number]
|
|
136
|
+
|
|
137
|
+
### 3. Hypotheses
|
|
138
|
+
1. ❓ [Most likely cause]
|
|
139
|
+
2. ❓ [Second possibility]
|
|
140
|
+
3. ❓ [Less likely cause]
|
|
141
|
+
|
|
142
|
+
### 4. Investigation
|
|
143
|
+
|
|
144
|
+
**Testing hypothesis 1:**
|
|
145
|
+
[What I checked] → [Result]
|
|
146
|
+
|
|
147
|
+
**Testing hypothesis 2:**
|
|
148
|
+
[What I checked] → [Result]
|
|
149
|
+
|
|
150
|
+
### 5. Root Cause
|
|
151
|
+
🎯 **[Explanation of why this happened]**
|
|
152
|
+
|
|
153
|
+
### 6. Fix
|
|
154
|
+
```[language]
|
|
155
|
+
// Before
|
|
156
|
+
[broken code]
|
|
157
|
+
|
|
158
|
+
// After
|
|
159
|
+
[fixed code]
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
### 7. Prevention
|
|
163
|
+
🛡️ [How to prevent this in the future]
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
---
|
|
167
|
+
|
|
168
|
+
## Examples
|
|
169
|
+
|
|
170
|
+
```
|
|
171
|
+
/debug login not working
|
|
172
|
+
/debug API returns 500
|
|
173
|
+
/debug form doesn't submit
|
|
174
|
+
/debug modal freezes the screen
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
---
|
|
178
|
+
|
|
179
|
+
## Key Principles
|
|
180
|
+
|
|
181
|
+
- **Register first** - create Flyee task before touching code
|
|
182
|
+
- **Ask before assuming** - get full error context
|
|
183
|
+
- **Test hypotheses** - don't guess randomly
|
|
184
|
+
- **Explain why** - not just what to fix
|
|
185
|
+
- **Prevent recurrence** - add tests, validation
|
|
186
|
+
- **No completion without tests** - QA gate is mandatory
|