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,197 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Register, validate, and govern ALL visual references used to derive Design System tokens. This workflow is the ONLY authorized entry point for visual reference material.
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
## Hard Preconditions (Abort if any fail)
|
|
6
|
+
|
|
7
|
+
1. `.agent/state/project.json` exists
|
|
8
|
+
2. `project.stage === "development"`
|
|
9
|
+
3. `design_system.status === "initialized"`
|
|
10
|
+
|
|
11
|
+
If any condition fails, abort with:
|
|
12
|
+
|
|
13
|
+
```text
|
|
14
|
+
/ds-references aborted: Design System not initialized or project not ready.
|
|
15
|
+
````
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## Accepted Reference Types
|
|
20
|
+
|
|
21
|
+
Users MUST provide at least ONE of the following:
|
|
22
|
+
|
|
23
|
+
### Visual Files
|
|
24
|
+
|
|
25
|
+
* `.png`
|
|
26
|
+
* `.jpg`
|
|
27
|
+
* `.jpeg`
|
|
28
|
+
* `.webp`
|
|
29
|
+
|
|
30
|
+
### Documents
|
|
31
|
+
|
|
32
|
+
* `.pdf`
|
|
33
|
+
|
|
34
|
+
### Design Sources (links)
|
|
35
|
+
|
|
36
|
+
* Figma
|
|
37
|
+
* FigJam
|
|
38
|
+
* Dribbble
|
|
39
|
+
* Behance
|
|
40
|
+
* Internal design docs
|
|
41
|
+
|
|
42
|
+
🚫 Forbidden:
|
|
43
|
+
|
|
44
|
+
* Verbal descriptions only
|
|
45
|
+
* “Do something modern”
|
|
46
|
+
* Pure inspiration without intent
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## Execution Steps
|
|
51
|
+
|
|
52
|
+
### 1️⃣ Reference Intake (Mandatory)
|
|
53
|
+
|
|
54
|
+
Request explicitly from the user:
|
|
55
|
+
|
|
56
|
+
* Upload files OR
|
|
57
|
+
* Provide links
|
|
58
|
+
|
|
59
|
+
If no references are provided:
|
|
60
|
+
|
|
61
|
+
```text
|
|
62
|
+
/ds-references blocked: Visual references are required.
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
### 2️⃣ Reference Validation
|
|
68
|
+
|
|
69
|
+
For each reference:
|
|
70
|
+
|
|
71
|
+
* Check file integrity
|
|
72
|
+
* Identify reference type (UI, branding, inspiration)
|
|
73
|
+
* Ensure visual relevance to product domain
|
|
74
|
+
|
|
75
|
+
🚫 Abort if:
|
|
76
|
+
|
|
77
|
+
* Files are corrupted
|
|
78
|
+
* Content is not visual
|
|
79
|
+
* References are unrelated to UI / branding
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
### 3️⃣ Canonical Storage (Mandatory)
|
|
84
|
+
|
|
85
|
+
Store all references in:
|
|
86
|
+
|
|
87
|
+
```
|
|
88
|
+
src/design-system/references/
|
|
89
|
+
├── primary/
|
|
90
|
+
├── secondary/
|
|
91
|
+
└── inspiration/
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
Rules:
|
|
95
|
+
|
|
96
|
+
* No references outside this directory
|
|
97
|
+
* Filenames must be immutable
|
|
98
|
+
* References are append-only
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
|
|
102
|
+
### 4️⃣ Project State Update (Critical)
|
|
103
|
+
|
|
104
|
+
Update `.agent/state/project.json`:
|
|
105
|
+
|
|
106
|
+
```json
|
|
107
|
+
"design_system": {
|
|
108
|
+
"references": "present",
|
|
109
|
+
"reference_count": 5,
|
|
110
|
+
"last_reference_update": "ISO_TIMESTAMP",
|
|
111
|
+
"tokens": "outdated",
|
|
112
|
+
"token_origin": "visual_reference",
|
|
113
|
+
"validated": false
|
|
114
|
+
}
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
📌 Important:
|
|
118
|
+
|
|
119
|
+
* Any new reference INVALIDATES existing tokens
|
|
120
|
+
* Validation is automatically revoked
|
|
121
|
+
|
|
122
|
+
---
|
|
123
|
+
|
|
124
|
+
### 5️⃣ Artifact Registration
|
|
125
|
+
|
|
126
|
+
Append:
|
|
127
|
+
|
|
128
|
+
```json
|
|
129
|
+
"artifacts": {
|
|
130
|
+
"documents": ["Visual references registered"],
|
|
131
|
+
"prompts": ["/ds-references"]
|
|
132
|
+
}
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
---
|
|
136
|
+
|
|
137
|
+
## Postconditions (Guaranteed)
|
|
138
|
+
|
|
139
|
+
After successful execution:
|
|
140
|
+
|
|
141
|
+
* References are safely stored
|
|
142
|
+
* Token system is marked OUTDATED
|
|
143
|
+
* UI generation is BLOCKED
|
|
144
|
+
* Next mandatory action is `/ds-tokens`
|
|
145
|
+
|
|
146
|
+
---
|
|
147
|
+
|
|
148
|
+
## Standard Output
|
|
149
|
+
|
|
150
|
+
```text
|
|
151
|
+
Visual References: REGISTERED
|
|
152
|
+
Total References: 5
|
|
153
|
+
Token Status: OUTDATED
|
|
154
|
+
Validation: REVOKED
|
|
155
|
+
Next Required Action: /ds-tokens
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
---
|
|
159
|
+
|
|
160
|
+
## Golden Rules (Hard Law)
|
|
161
|
+
|
|
162
|
+
* No references → No tokens
|
|
163
|
+
* New references → Tokens invalidated
|
|
164
|
+
* Tokens without references → Illegal
|
|
165
|
+
* References are immutable evidence
|
|
166
|
+
|
|
167
|
+
---
|
|
168
|
+
|
|
169
|
+
## `/next-step` Integration (Mandatory)
|
|
170
|
+
|
|
171
|
+
`/next-step` MUST interpret:
|
|
172
|
+
|
|
173
|
+
```text
|
|
174
|
+
design_system.references === "present"
|
|
175
|
+
AND design_system.tokens === "outdated"
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
As:
|
|
179
|
+
|
|
180
|
+
```text
|
|
181
|
+
BLOCK UI
|
|
182
|
+
NEXT ACTION: /ds-tokens
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
And:
|
|
186
|
+
|
|
187
|
+
```text
|
|
188
|
+
design_system.references !== "present"
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
As:
|
|
192
|
+
|
|
193
|
+
```text
|
|
194
|
+
BLOCK ALL
|
|
195
|
+
NEXT ACTION: /ds-references
|
|
196
|
+
```
|
|
197
|
+
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Generate or update the in-app Design System styleguide.
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Generate and maintain a **single, authoritative Style Guide** for the Design System, intended for:
|
|
6
|
+
|
|
7
|
+
* Developers
|
|
8
|
+
* Designers
|
|
9
|
+
* Product teams
|
|
10
|
+
* External consumers (when applicable)
|
|
11
|
+
|
|
12
|
+
This workflow **documents only validated artifacts**.
|
|
13
|
+
It **MUST NEVER invent, infer, or modify** Design System decisions.
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## Hard Preconditions (Abort if any fail)
|
|
18
|
+
|
|
19
|
+
The workflow **MUST NOT RUN** unless:
|
|
20
|
+
|
|
21
|
+
1. `.agent/state/project.json` exists
|
|
22
|
+
2. `design_system.validated === true`
|
|
23
|
+
3. `design_system.status === "validated"`
|
|
24
|
+
4. Token artifacts exist:
|
|
25
|
+
|
|
26
|
+
```
|
|
27
|
+
src/design-system/tokens/
|
|
28
|
+
```
|
|
29
|
+
5. Validation reports exist:
|
|
30
|
+
|
|
31
|
+
```
|
|
32
|
+
src/design-system/validation/ds-validation-report.*
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
If any condition fails, abort with:
|
|
36
|
+
|
|
37
|
+
```text
|
|
38
|
+
/ds-styleguide aborted: Design System not validated.
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## Output Location (Mandatory)
|
|
44
|
+
|
|
45
|
+
```
|
|
46
|
+
src/design-system/styleguide/
|
|
47
|
+
├── index.md
|
|
48
|
+
├── foundations/
|
|
49
|
+
│ ├── colors.md
|
|
50
|
+
│ ├── typography.md
|
|
51
|
+
│ ├── spacing.md
|
|
52
|
+
│ ├── radius.md
|
|
53
|
+
│ └── shadows.md
|
|
54
|
+
├── themes/
|
|
55
|
+
│ ├── light.md
|
|
56
|
+
│ └── dark.md
|
|
57
|
+
├── components/
|
|
58
|
+
│ └── README.md
|
|
59
|
+
├── governance.md
|
|
60
|
+
└── changelog.md
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## Execution Phases
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
### 1️⃣ Load Validated Sources (Read-Only)
|
|
70
|
+
|
|
71
|
+
Consume data from:
|
|
72
|
+
|
|
73
|
+
* `src/design-system/tokens/*`
|
|
74
|
+
* `globals.css` / `tokens.css`
|
|
75
|
+
* Component specifications (if any)
|
|
76
|
+
* `ds-validation-report.json`
|
|
77
|
+
* `.agent/state/project.json`
|
|
78
|
+
|
|
79
|
+
🚫 Any attempt to modify artifacts = **ABORT**
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
### 2️⃣ Foundations Documentation
|
|
84
|
+
|
|
85
|
+
#### Colors (`foundations/colors.md`)
|
|
86
|
+
|
|
87
|
+
Document:
|
|
88
|
+
|
|
89
|
+
* Brand colors
|
|
90
|
+
* Neutral palette
|
|
91
|
+
* Semantic colors
|
|
92
|
+
* Surface & background usage
|
|
93
|
+
* Accessibility notes
|
|
94
|
+
|
|
95
|
+
Include:
|
|
96
|
+
|
|
97
|
+
* Token name
|
|
98
|
+
* Description
|
|
99
|
+
* Usage guidance
|
|
100
|
+
* Do / Don’t rules
|
|
101
|
+
|
|
102
|
+
🚫 Never document raw hex values as primary reference
|
|
103
|
+
Tokens are the authority.
|
|
104
|
+
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
#### Typography (`foundations/typography.md`)
|
|
108
|
+
|
|
109
|
+
Document:
|
|
110
|
+
|
|
111
|
+
* Font families
|
|
112
|
+
* Heading scale
|
|
113
|
+
* Body text scale
|
|
114
|
+
* Line heights
|
|
115
|
+
* Usage hierarchy
|
|
116
|
+
|
|
117
|
+
---
|
|
118
|
+
|
|
119
|
+
#### Spacing, Radius, Shadows
|
|
120
|
+
|
|
121
|
+
For each:
|
|
122
|
+
|
|
123
|
+
* Token list
|
|
124
|
+
* Scale rationale
|
|
125
|
+
* Intended usage
|
|
126
|
+
* Anti-patterns
|
|
127
|
+
|
|
128
|
+
---
|
|
129
|
+
|
|
130
|
+
### 3️⃣ Theme Documentation
|
|
131
|
+
|
|
132
|
+
#### Light & Dark Themes
|
|
133
|
+
|
|
134
|
+
For each theme:
|
|
135
|
+
|
|
136
|
+
* Token mappings
|
|
137
|
+
* Surface hierarchy
|
|
138
|
+
* Interaction behavior
|
|
139
|
+
* Accessibility guarantees
|
|
140
|
+
|
|
141
|
+
---
|
|
142
|
+
|
|
143
|
+
### 4️⃣ Component Documentation (Conditional)
|
|
144
|
+
|
|
145
|
+
If `design_system.components === "ready"`:
|
|
146
|
+
|
|
147
|
+
For **each component**, document:
|
|
148
|
+
|
|
149
|
+
* Purpose
|
|
150
|
+
* Variants
|
|
151
|
+
* States
|
|
152
|
+
* Token dependencies
|
|
153
|
+
* Accessibility notes
|
|
154
|
+
|
|
155
|
+
🚫 No CSS, JSX, or implementation code
|
|
156
|
+
This is **conceptual + spec-level documentation**
|
|
157
|
+
|
|
158
|
+
---
|
|
159
|
+
|
|
160
|
+
### 5️⃣ Governance Documentation (`governance.md`)
|
|
161
|
+
|
|
162
|
+
Document **non-negotiable rules**:
|
|
163
|
+
|
|
164
|
+
* Tokens are mandatory
|
|
165
|
+
* No local visual definitions
|
|
166
|
+
* Validation is required before UI generation
|
|
167
|
+
* Locked decisions policy
|
|
168
|
+
* Change protocol
|
|
169
|
+
|
|
170
|
+
This section is **contractual**, not advisory.
|
|
171
|
+
|
|
172
|
+
---
|
|
173
|
+
|
|
174
|
+
### 6️⃣ Changelog Generation (`changelog.md`)
|
|
175
|
+
|
|
176
|
+
Append:
|
|
177
|
+
|
|
178
|
+
* Date
|
|
179
|
+
* Validation version
|
|
180
|
+
* Summary of validated artifacts
|
|
181
|
+
* Reference to last validation report
|
|
182
|
+
|
|
183
|
+
🚫 No speculative future entries
|
|
184
|
+
|
|
185
|
+
---
|
|
186
|
+
|
|
187
|
+
### 7️⃣ Project State Update (Minimal)
|
|
188
|
+
|
|
189
|
+
Update **only**:
|
|
190
|
+
|
|
191
|
+
```json
|
|
192
|
+
"design_system": {
|
|
193
|
+
"styleguide": "ready"
|
|
194
|
+
}
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
🚫 No other state mutation allowed
|
|
198
|
+
|
|
199
|
+
---
|
|
200
|
+
|
|
201
|
+
## Standard Output Message (Mandatory)
|
|
202
|
+
|
|
203
|
+
```text
|
|
204
|
+
Design System Styleguide: GENERATED
|
|
205
|
+
Status: Read-only
|
|
206
|
+
Validated Source: YES
|
|
207
|
+
Consumption Ready: YES
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
---
|
|
211
|
+
|
|
212
|
+
## Hard Rules (Immutable)
|
|
213
|
+
|
|
214
|
+
* Styleguide documents reality — never creates it
|
|
215
|
+
* Tokens > Components > Documentation
|
|
216
|
+
* No validation → No styleguide
|
|
217
|
+
* No styleguide → External usage forbidden
|
|
218
|
+
|
|
219
|
+
---
|
|
220
|
+
|
|
221
|
+
## `/next-step` Integration
|
|
222
|
+
|
|
223
|
+
`/next-step` MAY:
|
|
224
|
+
|
|
225
|
+
* Recommend `/ds-styleguide` **only after validation**
|
|
226
|
+
* Never block execution if styleguide is missing
|
|
227
|
+
* Never treat styleguide as a prerequisite for UI generation
|
|
228
|
+
|
|
229
|
+
---
|
|
230
|
+
|
|
231
|
+
## Anti-Patterns (Explicitly Forbidden)
|
|
232
|
+
|
|
233
|
+
* Redefining tokens in docs
|
|
234
|
+
* Showing raw values as authoritative
|
|
235
|
+
* Documenting unvalidated components
|
|
236
|
+
* Mixing implementation code with documentation
|
|
237
|
+
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Analyze differences between token versions and detect semantic and visual impact.
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
## Preconditions
|
|
6
|
+
|
|
7
|
+
1. Previous token snapshot exists
|
|
8
|
+
2. New token generation has occurred
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## Execution Steps
|
|
13
|
+
|
|
14
|
+
### 1️⃣ Load Token Snapshots
|
|
15
|
+
|
|
16
|
+
Compare:
|
|
17
|
+
- Previous version
|
|
18
|
+
- Current version
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
### 2️⃣ Diff Classification
|
|
23
|
+
|
|
24
|
+
Classify each change as:
|
|
25
|
+
|
|
26
|
+
- 🟢 Additive (new token)
|
|
27
|
+
- 🟡 Mutative (value changed)
|
|
28
|
+
- 🔴 Breaking (semantic meaning changed or removed)
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
### 3️⃣ Impact Analysis
|
|
33
|
+
|
|
34
|
+
For each changed token:
|
|
35
|
+
|
|
36
|
+
- Identify consumers (components, themes)
|
|
37
|
+
- Identify visual domains affected:
|
|
38
|
+
- Buttons
|
|
39
|
+
- Text
|
|
40
|
+
- Surfaces
|
|
41
|
+
- Layout
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
### 4️⃣ Severity Scoring
|
|
46
|
+
|
|
47
|
+
Assign impact level:
|
|
48
|
+
|
|
49
|
+
- LOW → Safe
|
|
50
|
+
- MEDIUM → Review required
|
|
51
|
+
- HIGH → Validation reset required
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
### 5️⃣ Report Generation
|
|
56
|
+
|
|
57
|
+
Generate:
|
|
58
|
+
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
src/design-system/validation/
|
|
62
|
+
├── token-diff-report.json
|
|
63
|
+
└── token-diff-report.md
|
|
64
|
+
|
|
65
|
+
````
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
## Output Example
|
|
70
|
+
|
|
71
|
+
```text
|
|
72
|
+
Token Diff Analysis: COMPLETED
|
|
73
|
+
Changed Tokens: 6
|
|
74
|
+
Breaking Changes: 2
|
|
75
|
+
High Impact Tokens: 1
|
|
76
|
+
Validation Status: REVOKED
|
|
77
|
+
Next Action: /ds-validate
|
|
78
|
+
````
|
|
79
|
+
|
|
80
|
+
````
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
### 4️⃣ **Integração com `/ds-tokens` (Obrigatória)**
|
|
85
|
+
|
|
86
|
+
Após gerar tokens:
|
|
87
|
+
|
|
88
|
+
- Executar automaticamente `/ds-token-diff`
|
|
89
|
+
- Se impacto ≠ LOW:
|
|
90
|
+
- `design_system.validated = false`
|
|
91
|
+
- UI continua BLOQUEADA
|
|
92
|
+
|
|
93
|
+
---
|
|
94
|
+
|
|
95
|
+
### 5️⃣ **Atualização do Project State**
|
|
96
|
+
|
|
97
|
+
```json
|
|
98
|
+
"design_system": {
|
|
99
|
+
"token_lineage": "enabled",
|
|
100
|
+
"last_token_diff": "ISO_TIMESTAMP",
|
|
101
|
+
"last_token_impact": "high"
|
|
102
|
+
}
|
|
103
|
+
````
|