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,104 @@
|
|
|
1
|
+
# Site Template
|
|
2
|
+
|
|
3
|
+
Use these templates when setting up a new project for the build loop.
|
|
4
|
+
|
|
5
|
+
## SITE.md Template
|
|
6
|
+
|
|
7
|
+
```markdown
|
|
8
|
+
# Project Vision & Constitution
|
|
9
|
+
|
|
10
|
+
> **AGENT INSTRUCTION:** Read this file before every iteration. It serves as the project's "Long-Term Memory."
|
|
11
|
+
|
|
12
|
+
## 1. Core Identity
|
|
13
|
+
* **Project Name:** [Your project name]
|
|
14
|
+
* **Stitch Project ID:** [Your Stitch project ID]
|
|
15
|
+
* **Mission:** [What the site achieves]
|
|
16
|
+
* **Target Audience:** [Who uses this site]
|
|
17
|
+
* **Voice:** [Tone and personality descriptors]
|
|
18
|
+
|
|
19
|
+
## 2. Visual Language
|
|
20
|
+
*Reference these descriptors when prompting Stitch.*
|
|
21
|
+
|
|
22
|
+
* **The "Vibe" (Adjectives):**
|
|
23
|
+
* *Primary:* [Main aesthetic keyword]
|
|
24
|
+
* *Secondary:* [Supporting aesthetic]
|
|
25
|
+
* *Tertiary:* [Additional flavor]
|
|
26
|
+
|
|
27
|
+
## 3. Architecture & File Structure
|
|
28
|
+
* **Root:** `site/public/`
|
|
29
|
+
* **Asset Flow:** Stitch generates to `queue/` → Validate → Move to `site/public/`
|
|
30
|
+
* **Navigation Strategy:** [How nav works]
|
|
31
|
+
|
|
32
|
+
## 4. Live Sitemap (Current State)
|
|
33
|
+
*Update this when a new page is successfully merged.*
|
|
34
|
+
|
|
35
|
+
* [x] `index.html` - [Description]
|
|
36
|
+
* [ ] `about.html` - [Description]
|
|
37
|
+
|
|
38
|
+
## 5. The Roadmap (Backlog)
|
|
39
|
+
*Pick the next task from here if available.*
|
|
40
|
+
|
|
41
|
+
### High Priority
|
|
42
|
+
- [ ] [Task description]
|
|
43
|
+
- [ ] [Task description]
|
|
44
|
+
|
|
45
|
+
### Medium Priority
|
|
46
|
+
- [ ] [Task description]
|
|
47
|
+
|
|
48
|
+
## 6. Creative Freedom Guidelines
|
|
49
|
+
*When the backlog is empty, follow these guidelines to innovate.*
|
|
50
|
+
|
|
51
|
+
1. **Stay On-Brand:** New pages must fit the established vibe
|
|
52
|
+
2. **Enhance the Core:** Support the site mission
|
|
53
|
+
3. **Naming Convention:** Use lowercase, descriptive filenames
|
|
54
|
+
|
|
55
|
+
### Ideas to Explore
|
|
56
|
+
*Pick one, build it, then REMOVE it from this list.*
|
|
57
|
+
|
|
58
|
+
- [ ] `stats.html` - [Description]
|
|
59
|
+
- [ ] `settings.html` - [Description]
|
|
60
|
+
|
|
61
|
+
## 7. Rules of Engagement
|
|
62
|
+
1. Do not recreate pages in Section 4
|
|
63
|
+
2. Always update `next-prompt.md` before completing
|
|
64
|
+
3. Consume ideas from Section 6 when you use them
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## DESIGN.md Template
|
|
68
|
+
|
|
69
|
+
Generate this using the `design-md` skill from an existing Stitch screen, or create manually:
|
|
70
|
+
|
|
71
|
+
```markdown
|
|
72
|
+
# Design System: [Project Name]
|
|
73
|
+
**Project ID:** [Stitch Project ID]
|
|
74
|
+
|
|
75
|
+
## 1. Visual Theme & Atmosphere
|
|
76
|
+
[Describe mood, density, aesthetic philosophy]
|
|
77
|
+
|
|
78
|
+
## 2. Color Palette & Roles
|
|
79
|
+
- **[Descriptive Name]** (#hexcode) – [Functional role]
|
|
80
|
+
- **[Descriptive Name]** (#hexcode) – [Functional role]
|
|
81
|
+
|
|
82
|
+
## 3. Typography Rules
|
|
83
|
+
[Font family, weights, sizes, spacing]
|
|
84
|
+
|
|
85
|
+
## 4. Component Stylings
|
|
86
|
+
* **Buttons:** [Shape, color, behavior]
|
|
87
|
+
* **Cards:** [Corners, background, shadows]
|
|
88
|
+
* **Inputs:** [Stroke, background, focus states]
|
|
89
|
+
|
|
90
|
+
## 5. Layout Principles
|
|
91
|
+
[Whitespace strategy, margins, grid alignment]
|
|
92
|
+
|
|
93
|
+
## 6. Design System Notes for Stitch Generation
|
|
94
|
+
**Copy this block into every baton prompt:**
|
|
95
|
+
|
|
96
|
+
**DESIGN SYSTEM (REQUIRED):**
|
|
97
|
+
- Platform: [Web/Mobile], [Desktop/Mobile]-first
|
|
98
|
+
- Theme: [Dark/Light], [descriptors]
|
|
99
|
+
- Background: [Description] (#hex)
|
|
100
|
+
- Primary Accent: [Description] (#hex)
|
|
101
|
+
- Text Primary: [Description] (#hex)
|
|
102
|
+
- Font: [Description]
|
|
103
|
+
- Layout: [Description]
|
|
104
|
+
```
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: systematic-debugging
|
|
3
|
+
description: 4-phase systematic debugging methodology with root cause analysis and evidence-based verification. Use when debugging complex issues.
|
|
4
|
+
allowed-tools: Read, Glob, Grep
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Systematic Debugging
|
|
8
|
+
|
|
9
|
+
> Source: obra/superpowers
|
|
10
|
+
|
|
11
|
+
## Overview
|
|
12
|
+
This skill provides a structured approach to debugging that prevents random guessing and ensures problems are properly understood before solving.
|
|
13
|
+
|
|
14
|
+
## 4-Phase Debugging Process
|
|
15
|
+
|
|
16
|
+
### Phase 1: Reproduce
|
|
17
|
+
Before fixing, reliably reproduce the issue.
|
|
18
|
+
|
|
19
|
+
```markdown
|
|
20
|
+
## Reproduction Steps
|
|
21
|
+
1. [Exact step to reproduce]
|
|
22
|
+
2. [Next step]
|
|
23
|
+
3. [Expected vs actual result]
|
|
24
|
+
|
|
25
|
+
## Reproduction Rate
|
|
26
|
+
- [ ] Always (100%)
|
|
27
|
+
- [ ] Often (50-90%)
|
|
28
|
+
- [ ] Sometimes (10-50%)
|
|
29
|
+
- [ ] Rare (<10%)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### Phase 2: Isolate
|
|
33
|
+
Narrow down the source.
|
|
34
|
+
|
|
35
|
+
```markdown
|
|
36
|
+
## Isolation Questions
|
|
37
|
+
- When did this start happening?
|
|
38
|
+
- What changed recently?
|
|
39
|
+
- Does it happen in all environments?
|
|
40
|
+
- Can we reproduce with minimal code?
|
|
41
|
+
- What's the smallest change that triggers it?
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### Phase 3: Understand
|
|
45
|
+
Find the root cause, not just symptoms.
|
|
46
|
+
|
|
47
|
+
```markdown
|
|
48
|
+
## Root Cause Analysis
|
|
49
|
+
### The 5 Whys
|
|
50
|
+
1. Why: [First observation]
|
|
51
|
+
2. Why: [Deeper reason]
|
|
52
|
+
3. Why: [Still deeper]
|
|
53
|
+
4. Why: [Getting closer]
|
|
54
|
+
5. Why: [Root cause]
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### Phase 4: Fix & Verify
|
|
58
|
+
Fix and verify it's truly fixed.
|
|
59
|
+
|
|
60
|
+
```markdown
|
|
61
|
+
## Fix Verification
|
|
62
|
+
- [ ] Bug no longer reproduces
|
|
63
|
+
- [ ] Related functionality still works
|
|
64
|
+
- [ ] No new issues introduced
|
|
65
|
+
- [ ] Test added to prevent regression
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Debugging Checklist
|
|
69
|
+
|
|
70
|
+
```markdown
|
|
71
|
+
## Before Starting
|
|
72
|
+
- [ ] Can reproduce consistently
|
|
73
|
+
- [ ] Have minimal reproduction case
|
|
74
|
+
- [ ] Understand expected behavior
|
|
75
|
+
|
|
76
|
+
## During Investigation
|
|
77
|
+
- [ ] Check recent changes (git log)
|
|
78
|
+
- [ ] Check logs for errors
|
|
79
|
+
- [ ] Add logging if needed
|
|
80
|
+
- [ ] Use debugger/breakpoints
|
|
81
|
+
|
|
82
|
+
## After Fix
|
|
83
|
+
- [ ] Root cause documented
|
|
84
|
+
- [ ] Fix verified
|
|
85
|
+
- [ ] Regression test added
|
|
86
|
+
- [ ] Similar code checked
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
## Common Debugging Commands
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
# Recent changes
|
|
93
|
+
git log --oneline -20
|
|
94
|
+
git diff HEAD~5
|
|
95
|
+
|
|
96
|
+
# Search for pattern
|
|
97
|
+
grep -r "errorPattern" --include="*.ts"
|
|
98
|
+
|
|
99
|
+
# Check logs
|
|
100
|
+
pm2 logs app-name --err --lines 100
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
## Anti-Patterns
|
|
104
|
+
|
|
105
|
+
❌ **Random changes** - "Maybe if I change this..."
|
|
106
|
+
❌ **Ignoring evidence** - "That can't be the cause"
|
|
107
|
+
❌ **Assuming** - "It must be X" without proof
|
|
108
|
+
❌ **Not reproducing first** - Fixing blindly
|
|
109
|
+
❌ **Stopping at symptoms** - Not finding root cause
|
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: tailwind-patterns
|
|
3
|
+
description: Tailwind CSS v4 principles. CSS-first configuration, container queries, modern patterns, design token architecture.
|
|
4
|
+
allowed-tools: Read, Write, Edit, Glob, Grep
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Tailwind CSS Patterns (v4 - 2025)
|
|
8
|
+
|
|
9
|
+
> Modern utility-first CSS with CSS-native configuration.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## 1. Tailwind v4 Architecture
|
|
14
|
+
|
|
15
|
+
### What Changed from v3
|
|
16
|
+
|
|
17
|
+
| v3 (Legacy) | v4 (Current) |
|
|
18
|
+
|-------------|--------------|
|
|
19
|
+
| `tailwind.config.js` | CSS-based `@theme` directive |
|
|
20
|
+
| PostCSS plugin | Oxide engine (10x faster) |
|
|
21
|
+
| JIT mode | Native, always-on |
|
|
22
|
+
| Plugin system | CSS-native features |
|
|
23
|
+
| `@apply` directive | Still works, discouraged |
|
|
24
|
+
|
|
25
|
+
### v4 Core Concepts
|
|
26
|
+
|
|
27
|
+
| Concept | Description |
|
|
28
|
+
|---------|-------------|
|
|
29
|
+
| **CSS-first** | Configuration in CSS, not JavaScript |
|
|
30
|
+
| **Oxide Engine** | Rust-based compiler, much faster |
|
|
31
|
+
| **Native Nesting** | CSS nesting without PostCSS |
|
|
32
|
+
| **CSS Variables** | All tokens exposed as `--*` vars |
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## 2. CSS-Based Configuration
|
|
37
|
+
|
|
38
|
+
### Theme Definition
|
|
39
|
+
|
|
40
|
+
```
|
|
41
|
+
@theme {
|
|
42
|
+
/* Colors - use semantic names */
|
|
43
|
+
--color-primary: oklch(0.7 0.15 250);
|
|
44
|
+
--color-surface: oklch(0.98 0 0);
|
|
45
|
+
--color-surface-dark: oklch(0.15 0 0);
|
|
46
|
+
|
|
47
|
+
/* Spacing scale */
|
|
48
|
+
--spacing-xs: 0.25rem;
|
|
49
|
+
--spacing-sm: 0.5rem;
|
|
50
|
+
--spacing-md: 1rem;
|
|
51
|
+
--spacing-lg: 2rem;
|
|
52
|
+
|
|
53
|
+
/* Typography */
|
|
54
|
+
--font-sans: 'Inter', system-ui, sans-serif;
|
|
55
|
+
--font-mono: 'JetBrains Mono', monospace;
|
|
56
|
+
}
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### When to Extend vs Override
|
|
60
|
+
|
|
61
|
+
| Action | Use When |
|
|
62
|
+
|--------|----------|
|
|
63
|
+
| **Extend** | Adding new values alongside defaults |
|
|
64
|
+
| **Override** | Replacing default scale entirely |
|
|
65
|
+
| **Semantic tokens** | Project-specific naming (primary, surface) |
|
|
66
|
+
|
|
67
|
+
> [!CAUTION]
|
|
68
|
+
> **CRITICAL: @theme inline NÃO FUNCIONA para gerar classes.**
|
|
69
|
+
> Use `@theme {}` com valores diretos, NÃO use `var()` dentro de @theme.
|
|
70
|
+
>
|
|
71
|
+
> ```css
|
|
72
|
+
> /* ❌ ERRADO - Não funciona */
|
|
73
|
+
> :root { --color-primary: #C6F135; }
|
|
74
|
+
> @theme inline { --color-primary: var(--color-primary); }
|
|
75
|
+
>
|
|
76
|
+
> /* ✅ CORRETO */
|
|
77
|
+
> @theme { --color-primary: #C6F135; }
|
|
78
|
+
> ```
|
|
79
|
+
>
|
|
80
|
+
> Se cores/classes Tailwind não funcionam, verificar `globals.css`.
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
## 3. Container Queries (v4 Native)
|
|
85
|
+
|
|
86
|
+
### Breakpoint vs Container
|
|
87
|
+
|
|
88
|
+
| Type | Responds To |
|
|
89
|
+
|------|-------------|
|
|
90
|
+
| **Breakpoint** (`md:`) | Viewport width |
|
|
91
|
+
| **Container** (`@container`) | Parent element width |
|
|
92
|
+
|
|
93
|
+
### Container Query Usage
|
|
94
|
+
|
|
95
|
+
| Pattern | Classes |
|
|
96
|
+
|---------|---------|
|
|
97
|
+
| Define container | `@container` on parent |
|
|
98
|
+
| Container breakpoint | `@sm:`, `@md:`, `@lg:` on children |
|
|
99
|
+
| Named containers | `@container/card` for specificity |
|
|
100
|
+
|
|
101
|
+
### When to Use
|
|
102
|
+
|
|
103
|
+
| Scenario | Use |
|
|
104
|
+
|----------|-----|
|
|
105
|
+
| Page-level layouts | Viewport breakpoints |
|
|
106
|
+
| Component-level responsive | Container queries |
|
|
107
|
+
| Reusable components | Container queries (context-independent) |
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
## 4. Responsive Design
|
|
112
|
+
|
|
113
|
+
### Breakpoint System
|
|
114
|
+
|
|
115
|
+
| Prefix | Min Width | Target |
|
|
116
|
+
|--------|-----------|--------|
|
|
117
|
+
| (none) | 0px | Mobile-first base |
|
|
118
|
+
| `sm:` | 640px | Large phone / small tablet |
|
|
119
|
+
| `md:` | 768px | Tablet |
|
|
120
|
+
| `lg:` | 1024px | Laptop |
|
|
121
|
+
| `xl:` | 1280px | Desktop |
|
|
122
|
+
| `2xl:` | 1536px | Large desktop |
|
|
123
|
+
|
|
124
|
+
### Mobile-First Principle
|
|
125
|
+
|
|
126
|
+
1. Write mobile styles first (no prefix)
|
|
127
|
+
2. Add larger screen overrides with prefixes
|
|
128
|
+
3. Example: `w-full md:w-1/2 lg:w-1/3`
|
|
129
|
+
|
|
130
|
+
---
|
|
131
|
+
|
|
132
|
+
## 5. Dark Mode
|
|
133
|
+
|
|
134
|
+
### Configuration Strategies
|
|
135
|
+
|
|
136
|
+
| Method | Behavior | Use When |
|
|
137
|
+
|--------|----------|----------|
|
|
138
|
+
| `class` | `.dark` class toggles | Manual theme switcher |
|
|
139
|
+
| `media` | Follows system preference | No user control |
|
|
140
|
+
| `selector` | Custom selector (v4) | Complex theming |
|
|
141
|
+
|
|
142
|
+
### Dark Mode Pattern
|
|
143
|
+
|
|
144
|
+
| Element | Light | Dark |
|
|
145
|
+
|---------|-------|------|
|
|
146
|
+
| Background | `bg-white` | `dark:bg-zinc-900` |
|
|
147
|
+
| Text | `text-zinc-900` | `dark:text-zinc-100` |
|
|
148
|
+
| Borders | `border-zinc-200` | `dark:border-zinc-700` |
|
|
149
|
+
|
|
150
|
+
---
|
|
151
|
+
|
|
152
|
+
## 6. Modern Layout Patterns
|
|
153
|
+
|
|
154
|
+
### Flexbox Patterns
|
|
155
|
+
|
|
156
|
+
| Pattern | Classes |
|
|
157
|
+
|---------|---------|
|
|
158
|
+
| Center (both axes) | `flex items-center justify-center` |
|
|
159
|
+
| Vertical stack | `flex flex-col gap-4` |
|
|
160
|
+
| Horizontal row | `flex gap-4` |
|
|
161
|
+
| Space between | `flex justify-between items-center` |
|
|
162
|
+
| Wrap grid | `flex flex-wrap gap-4` |
|
|
163
|
+
|
|
164
|
+
### Grid Patterns
|
|
165
|
+
|
|
166
|
+
| Pattern | Classes |
|
|
167
|
+
|---------|---------|
|
|
168
|
+
| Auto-fit responsive | `grid grid-cols-[repeat(auto-fit,minmax(250px,1fr))]` |
|
|
169
|
+
| Asymmetric (Bento) | `grid grid-cols-3 grid-rows-2` with spans |
|
|
170
|
+
| Sidebar layout | `grid grid-cols-[auto_1fr]` |
|
|
171
|
+
|
|
172
|
+
> **Note:** Prefer asymmetric/Bento layouts over symmetric 3-column grids.
|
|
173
|
+
|
|
174
|
+
---
|
|
175
|
+
|
|
176
|
+
## 7. Modern Color System
|
|
177
|
+
|
|
178
|
+
### OKLCH vs RGB/HSL
|
|
179
|
+
|
|
180
|
+
| Format | Advantage |
|
|
181
|
+
|--------|-----------|
|
|
182
|
+
| **OKLCH** | Perceptually uniform, better for design |
|
|
183
|
+
| **HSL** | Intuitive hue/saturation |
|
|
184
|
+
| **RGB** | Legacy compatibility |
|
|
185
|
+
|
|
186
|
+
### Color Token Architecture
|
|
187
|
+
|
|
188
|
+
| Layer | Example | Purpose |
|
|
189
|
+
|-------|---------|---------|
|
|
190
|
+
| **Primitive** | `--blue-500` | Raw color values |
|
|
191
|
+
| **Semantic** | `--color-primary` | Purpose-based naming |
|
|
192
|
+
| **Component** | `--button-bg` | Component-specific |
|
|
193
|
+
|
|
194
|
+
---
|
|
195
|
+
|
|
196
|
+
## 8. Typography System
|
|
197
|
+
|
|
198
|
+
### Font Stack Pattern
|
|
199
|
+
|
|
200
|
+
| Type | Recommended |
|
|
201
|
+
|------|-------------|
|
|
202
|
+
| Sans | `'Inter', 'SF Pro', system-ui, sans-serif` |
|
|
203
|
+
| Mono | `'JetBrains Mono', 'Fira Code', monospace` |
|
|
204
|
+
| Display | `'Outfit', 'Poppins', sans-serif` |
|
|
205
|
+
|
|
206
|
+
### Type Scale
|
|
207
|
+
|
|
208
|
+
| Class | Size | Use |
|
|
209
|
+
|-------|------|-----|
|
|
210
|
+
| `text-xs` | 0.75rem | Labels, captions |
|
|
211
|
+
| `text-sm` | 0.875rem | Secondary text |
|
|
212
|
+
| `text-base` | 1rem | Body text |
|
|
213
|
+
| `text-lg` | 1.125rem | Lead text |
|
|
214
|
+
| `text-xl`+ | 1.25rem+ | Headings |
|
|
215
|
+
|
|
216
|
+
---
|
|
217
|
+
|
|
218
|
+
## 9. Animation & Transitions
|
|
219
|
+
|
|
220
|
+
### Built-in Animations
|
|
221
|
+
|
|
222
|
+
| Class | Effect |
|
|
223
|
+
|-------|--------|
|
|
224
|
+
| `animate-spin` | Continuous rotation |
|
|
225
|
+
| `animate-ping` | Attention pulse |
|
|
226
|
+
| `animate-pulse` | Subtle opacity pulse |
|
|
227
|
+
| `animate-bounce` | Bouncing effect |
|
|
228
|
+
|
|
229
|
+
### Transition Patterns
|
|
230
|
+
|
|
231
|
+
| Pattern | Classes |
|
|
232
|
+
|---------|---------|
|
|
233
|
+
| All properties | `transition-all duration-200` |
|
|
234
|
+
| Specific | `transition-colors duration-150` |
|
|
235
|
+
| With easing | `ease-out` or `ease-in-out` |
|
|
236
|
+
| Hover effect | `hover:scale-105 transition-transform` |
|
|
237
|
+
|
|
238
|
+
---
|
|
239
|
+
|
|
240
|
+
## 10. Component Extraction
|
|
241
|
+
|
|
242
|
+
### When to Extract
|
|
243
|
+
|
|
244
|
+
| Signal | Action |
|
|
245
|
+
|--------|--------|
|
|
246
|
+
| Same class combo 3+ times | Extract component |
|
|
247
|
+
| Complex state variants | Extract component |
|
|
248
|
+
| Design system element | Extract + document |
|
|
249
|
+
|
|
250
|
+
### Extraction Methods
|
|
251
|
+
|
|
252
|
+
| Method | Use When |
|
|
253
|
+
|--------|----------|
|
|
254
|
+
| **React/Vue component** | Dynamic, JS needed |
|
|
255
|
+
| **@apply in CSS** | Static, no JS needed |
|
|
256
|
+
| **Design tokens** | Reusable values |
|
|
257
|
+
|
|
258
|
+
---
|
|
259
|
+
|
|
260
|
+
## 11. Anti-Patterns
|
|
261
|
+
|
|
262
|
+
| Don't | Do |
|
|
263
|
+
|-------|-----|
|
|
264
|
+
| Arbitrary values everywhere | Use design system scale |
|
|
265
|
+
| `!important` | Fix specificity properly |
|
|
266
|
+
| Inline `style=` | Use utilities |
|
|
267
|
+
| Duplicate long class lists | Extract component |
|
|
268
|
+
| Mix v3 config with v4 | Migrate fully to CSS-first |
|
|
269
|
+
| Use `@apply` heavily | Prefer components |
|
|
270
|
+
|
|
271
|
+
---
|
|
272
|
+
|
|
273
|
+
## 12. Performance Principles
|
|
274
|
+
|
|
275
|
+
| Principle | Implementation |
|
|
276
|
+
|-----------|----------------|
|
|
277
|
+
| **Purge unused** | Automatic in v4 |
|
|
278
|
+
| **Avoid dynamism** | No template string classes |
|
|
279
|
+
| **Use Oxide** | Default in v4, 10x faster |
|
|
280
|
+
| **Cache builds** | CI/CD caching |
|
|
281
|
+
|
|
282
|
+
---
|
|
283
|
+
|
|
284
|
+
> **Remember:** Tailwind v4 is CSS-first. Embrace CSS variables, container queries, and native features. The config file is now optional.
|