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,386 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Initialize local project state and configuration (idempotent)
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
1. Check if `.agent/state/project.json` exists.
|
|
6
|
+
|
|
7
|
+
2. If it exists:
|
|
8
|
+
- Do NOT recreate files or directories.
|
|
9
|
+
- Inform that the project has already been initialized.
|
|
10
|
+
- Explain that the project can be continued using `/next-step`.
|
|
11
|
+
- Stop execution.
|
|
12
|
+
|
|
13
|
+
3. If it does NOT exist:
|
|
14
|
+
- Create directory `.agent/state/`.
|
|
15
|
+
- Create directory `.agent/rules/`.
|
|
16
|
+
- Create directory `.agent/workflows/`.
|
|
17
|
+
|
|
18
|
+
4. Create `.agent/state/project.json` with the following default structure:
|
|
19
|
+
{
|
|
20
|
+
"project": {
|
|
21
|
+
"name": "",
|
|
22
|
+
"domain": "",
|
|
23
|
+
"type": ""
|
|
24
|
+
},
|
|
25
|
+
"intent": {
|
|
26
|
+
"primary": "",
|
|
27
|
+
"secondary": [],
|
|
28
|
+
"success_criteria": []
|
|
29
|
+
},
|
|
30
|
+
"stage": "discovery",
|
|
31
|
+
"constraints": {
|
|
32
|
+
"technical": [],
|
|
33
|
+
"business": [],
|
|
34
|
+
"legal": [],
|
|
35
|
+
"time": [],
|
|
36
|
+
"budget": []
|
|
37
|
+
},
|
|
38
|
+
"decisions": {
|
|
39
|
+
"architecture": {},
|
|
40
|
+
"stack": {},
|
|
41
|
+
"patterns": [],
|
|
42
|
+
"assumptions": []
|
|
43
|
+
},
|
|
44
|
+
"design_system": {
|
|
45
|
+
"status": "not_initialized",
|
|
46
|
+
"tokens": "missing" | "scaffold_only" | "ready" | "outdated",
|
|
47
|
+
"token_origin": "none",
|
|
48
|
+
"components": "missing",
|
|
49
|
+
"styleguide": "missing",
|
|
50
|
+
"validated": false,
|
|
51
|
+
"last_validation": null
|
|
52
|
+
},
|
|
53
|
+
"ux_mobile": "not_evaluated",
|
|
54
|
+
"artifacts": {
|
|
55
|
+
"documents": [],
|
|
56
|
+
"code": [],
|
|
57
|
+
"prompts": []
|
|
58
|
+
},
|
|
59
|
+
"open_items": {
|
|
60
|
+
"tasks": [],
|
|
61
|
+
"questions": [],
|
|
62
|
+
"risks": []
|
|
63
|
+
},
|
|
64
|
+
"control": {
|
|
65
|
+
"locked_fields": [],
|
|
66
|
+
"confidence_level": "low"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
5. Create `.agent/rules/project.rules.md` with:
|
|
71
|
+
# Project Governance Rules
|
|
72
|
+
|
|
73
|
+
## Mandatory Rules
|
|
74
|
+
|
|
75
|
+
- The project state file `.agent/state/project.json` is the single source of truth
|
|
76
|
+
- No rule, workflow, or output may violate declared constraints
|
|
77
|
+
- Decisions recorded in the `decisions` block are LOCKED by default
|
|
78
|
+
- Locked decisions may only be changed by explicit user instruction
|
|
79
|
+
|
|
80
|
+
### Component Authority Rules (Hard Law)
|
|
81
|
+
|
|
82
|
+
- UI components MUST be created exclusively through the `/ds-components` workflow
|
|
83
|
+
- Direct creation or modification of UI components outside `/ds-components` is forbidden
|
|
84
|
+
- Any component detected without `/ds-components` authorization is considered INVALID
|
|
85
|
+
- Invalid components MUST be refactored or removed immediately
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
## Design System Rules (Critical)
|
|
89
|
+
|
|
90
|
+
- No UI code may be generated before `/ds-init` is completed
|
|
91
|
+
- No visual component may be created without Design Tokens
|
|
92
|
+
- No feature is considered complete if `/ds-validate` returns FAIL
|
|
93
|
+
- Design System decisions are locked after successful validation
|
|
94
|
+
- No UI component, page or layout may be generated unless `design_system.validated === true`
|
|
95
|
+
|
|
96
|
+
### Governance Violations
|
|
97
|
+
|
|
98
|
+
Any of the following constitutes a GOVERNANCE VIOLATION:
|
|
99
|
+
|
|
100
|
+
- Generating UI before `/ds-validate`
|
|
101
|
+
- Creating components outside `/ds-components`
|
|
102
|
+
- Defining visual styles locally (colors, spacing, typography)
|
|
103
|
+
- Bypassing locked Design System decisions
|
|
104
|
+
|
|
105
|
+
Governance violations MUST:
|
|
106
|
+
- Block all downstream workflows
|
|
107
|
+
- Be reported explicitly
|
|
108
|
+
- Be resolved before any continuation
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
### Component Authority Rules (Hard Law)
|
|
112
|
+
|
|
113
|
+
- UI components MUST be created exclusively through the `/ds-components` workflow
|
|
114
|
+
- Direct creation or modification of UI components outside `/ds-components` is forbidden
|
|
115
|
+
- Any component detected without `/ds-components` authorization is considered INVALID
|
|
116
|
+
- Invalid components MUST be refactored or removed immediately
|
|
117
|
+
|
|
118
|
+
## Design System Refactor Rules (Recovery Mode)
|
|
119
|
+
|
|
120
|
+
- /ds-refactor is the ONLY authorized workflow to fix Design System violations
|
|
121
|
+
caused by hardcoded styles or token bypass
|
|
122
|
+
|
|
123
|
+
- /ds-refactor MAY be executed ONLY IF:
|
|
124
|
+
- design_system.initialized === true
|
|
125
|
+
- design_system.tokens === "ready"
|
|
126
|
+
- design_system.validated === false
|
|
127
|
+
- Violations are classified as refactorable
|
|
128
|
+
|
|
129
|
+
- /ds-refactor MUST NOT:
|
|
130
|
+
- Change visual appearance
|
|
131
|
+
- Alter spacing, layout, hierarchy or semantics
|
|
132
|
+
- Introduce new tokens
|
|
133
|
+
- Modify design decisions already LOCKED
|
|
134
|
+
|
|
135
|
+
- /ds-refactor MUST:
|
|
136
|
+
- Replace hardcoded values with existing tokens
|
|
137
|
+
- Preserve rendered UI output
|
|
138
|
+
- Generate an audit report of all changes
|
|
139
|
+
- Require explicit user authorization before applying changes
|
|
140
|
+
|
|
141
|
+
- After a successful /ds-refactor:
|
|
142
|
+
- /ds-validate MUST be re-run
|
|
143
|
+
- design_system.validated MAY be set to true
|
|
144
|
+
- UI generation MAY be unblocked
|
|
145
|
+
|
|
146
|
+
## Workflow Authority
|
|
147
|
+
|
|
148
|
+
- `/next-step` is the only workflow allowed to determine progression
|
|
149
|
+
- Direct execution of DS workflows without readiness checks is forbidden
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
6. Create `.agent/workflows/next-step.md` with a workflow that:
|
|
153
|
+
|
|
154
|
+
---
|
|
155
|
+
Description: Determine the next logical and allowed action based on the current project state.
|
|
156
|
+
---
|
|
157
|
+
|
|
158
|
+
## Execution Steps
|
|
159
|
+
|
|
160
|
+
### 1. Load Project State
|
|
161
|
+
Read `.agent/state/project.json`
|
|
162
|
+
|
|
163
|
+
---
|
|
164
|
+
|
|
165
|
+
### 2. Evaluate Stage
|
|
166
|
+
|
|
167
|
+
#### Stage: discovery
|
|
168
|
+
- Recommend:
|
|
169
|
+
- Defining project intent
|
|
170
|
+
- Clarifying constraints
|
|
171
|
+
- Selecting product type
|
|
172
|
+
- Output command suggestion only (no execution)
|
|
173
|
+
|
|
174
|
+
---
|
|
175
|
+
|
|
176
|
+
## Workflow Authority Alignment
|
|
177
|
+
|
|
178
|
+
- `/next-step` is the sole authority to authorize `/ds-components`
|
|
179
|
+
- Manual invocation of `/ds-components` without `/next-step` authorization is forbidden
|
|
180
|
+
- Manual invocation of `/page-build` without `/next-step` authorization is forbidden
|
|
181
|
+
|
|
182
|
+
---
|
|
183
|
+
|
|
184
|
+
#### Stage: development
|
|
185
|
+
|
|
186
|
+
##### 2.1 Design System Initialization Guard
|
|
187
|
+
- If `/app/globals.css` does NOT exist:
|
|
188
|
+
→ NEXT ACTION: `/ds-init`
|
|
189
|
+
|
|
190
|
+
---
|
|
191
|
+
|
|
192
|
+
##### 2.2 Token Readiness Guard
|
|
193
|
+
- If `design_system.tokens === "scaffold_only"`:
|
|
194
|
+
→ BLOCK UI
|
|
195
|
+
→ NEXT ACTION: Add visual references + `/ds-tokens`
|
|
196
|
+
|
|
197
|
+
- If `design_system.tokens === "missing"`:
|
|
198
|
+
→ BLOCK UI
|
|
199
|
+
→ NEXT ACTION: Add visual references + `/ds-tokens`
|
|
200
|
+
|
|
201
|
+
---
|
|
202
|
+
|
|
203
|
+
##### 2.2.1 Reference Detection Guard
|
|
204
|
+
- If new files are detected in `design-system/references`:
|
|
205
|
+
→ Set `design_system.tokens = "outdated"`
|
|
206
|
+
→ BLOCK UI generation
|
|
207
|
+
→ NEXT ACTION: `/ds-tokens`
|
|
208
|
+
|
|
209
|
+
---
|
|
210
|
+
|
|
211
|
+
##### 2.3 Component Readiness Guard (Hard Gate)
|
|
212
|
+
|
|
213
|
+
- If UI components are requested
|
|
214
|
+
AND `design_system.validated === false`:
|
|
215
|
+
→ BLOCK execution
|
|
216
|
+
→ NEXT ACTION: `/ds-validate`
|
|
217
|
+
|
|
218
|
+
- If UI components are requested
|
|
219
|
+
AND `design_system.validated === true`:
|
|
220
|
+
→ NEXT ACTION: `/ds-components`
|
|
221
|
+
|
|
222
|
+
---
|
|
223
|
+
|
|
224
|
+
##### 2.4 Validation Gate (Hard Stop)
|
|
225
|
+
|
|
226
|
+
- If `design_system.tokens === "scaffold_only"`:
|
|
227
|
+
→ BLOCK UI
|
|
228
|
+
→ NEXT ACTION: Add visual references + `/ds-tokens`
|
|
229
|
+
|
|
230
|
+
- If `design_system.tokens === "ready"`
|
|
231
|
+
AND `design_system.token_origin === "visual_reference"`
|
|
232
|
+
AND `design_system.validated === false`:
|
|
233
|
+
→ NEXT ACTION: `/ds-validate`
|
|
234
|
+
|
|
235
|
+
---
|
|
236
|
+
|
|
237
|
+
##### 2.4.1 Design System Recovery Path (Refactor Mode)
|
|
238
|
+
|
|
239
|
+
If ALL conditions below are true:
|
|
240
|
+
|
|
241
|
+
- `design_system.initialized === true`
|
|
242
|
+
- `design_system.tokens === "ready"`
|
|
243
|
+
- `design_system.validated === false`
|
|
244
|
+
- A ds-validation report exists
|
|
245
|
+
- All violations are limited to:
|
|
246
|
+
- hardcoded colors
|
|
247
|
+
- inline styles
|
|
248
|
+
- token bypass
|
|
249
|
+
- NO violations related to:
|
|
250
|
+
- accessibility
|
|
251
|
+
- layout structure
|
|
252
|
+
- semantics
|
|
253
|
+
- component architecture
|
|
254
|
+
|
|
255
|
+
Then:
|
|
256
|
+
|
|
257
|
+
- UI generation remains BLOCKED
|
|
258
|
+
- Recovery is ALLOWED
|
|
259
|
+
|
|
260
|
+
→ Authorized Workflow: `/ds-refactor`
|
|
261
|
+
→ Next Logical Action: Refactor existing components to token-only compliance
|
|
262
|
+
→ Command to Execute: `/ds-refactor`
|
|
263
|
+
|
|
264
|
+
---
|
|
265
|
+
|
|
266
|
+
##### 2.4.2 Component Authority Enforcement
|
|
267
|
+
|
|
268
|
+
- UI components MUST be created only via `/ds-components`
|
|
269
|
+
- Direct component creation outside this workflow is forbidden
|
|
270
|
+
|
|
271
|
+
If component files are detected without `/ds-components` execution:
|
|
272
|
+
→ BLOCK execution
|
|
273
|
+
→ Report governance violation
|
|
274
|
+
→ Require correction via `/ds-refactor` (if refactorable)
|
|
275
|
+
→ Otherwise require removal and recreation via `/ds-components`
|
|
276
|
+
|
|
277
|
+
---
|
|
278
|
+
|
|
279
|
+
##### 2.5 Documentation Guard
|
|
280
|
+
- If components exist and styleguide is missing:
|
|
281
|
+
→ Recommend `/ds-styleguide`
|
|
282
|
+
|
|
283
|
+
---
|
|
284
|
+
|
|
285
|
+
##### 2.5.1 Copy Readiness Guard (Hard Gate)
|
|
286
|
+
|
|
287
|
+
If page, section, or feature UI is requested:
|
|
288
|
+
|
|
289
|
+
- If required copy/content is missing:
|
|
290
|
+
→ BLOCK execution
|
|
291
|
+
→ NEXT ACTION: `/copy-collect`
|
|
292
|
+
|
|
293
|
+
- If copy exists but `copy.status !== "approved"`:
|
|
294
|
+
→ BLOCK execution
|
|
295
|
+
→ NEXT ACTION: `/copy-collect`
|
|
296
|
+
|
|
297
|
+
- If `copy.status === "approved"`:
|
|
298
|
+
→ ALLOW continuation
|
|
299
|
+
|
|
300
|
+
> Notes:
|
|
301
|
+
> - Copy includes: headings, labels, CTAs, empty states, helper text, messages
|
|
302
|
+
> - `/page-build` is forbidden to invent copy
|
|
303
|
+
> - Copy approval is a product decision, not a UI decision
|
|
304
|
+
|
|
305
|
+
---
|
|
306
|
+
|
|
307
|
+
##### 2.6 Page / Feature UI Guard
|
|
308
|
+
|
|
309
|
+
- If page or feature UI is requested
|
|
310
|
+
AND `design_system.validated === true`
|
|
311
|
+
AND `copy.status === "approved"`:
|
|
312
|
+
→ NEXT ACTION: `/page-build`
|
|
313
|
+
|
|
314
|
+
- If page or feature UI is requested
|
|
315
|
+
AND `design_system.validated === false`:
|
|
316
|
+
→ BLOCK execution
|
|
317
|
+
→ NEXT ACTION: `/ds-validate`
|
|
318
|
+
|
|
319
|
+
---
|
|
320
|
+
|
|
321
|
+
##### 2.7 Page Build Authority
|
|
322
|
+
|
|
323
|
+
- Page or section UI MUST be created only via `/page-build`
|
|
324
|
+
|
|
325
|
+
- If requested change is scoped to an existing page:
|
|
326
|
+
→ Require `mode=extend`
|
|
327
|
+
|
|
328
|
+
- If requested change introduces a new route:
|
|
329
|
+
→ Require `mode=create`
|
|
330
|
+
|
|
331
|
+
---
|
|
332
|
+
|
|
333
|
+
##### 2.8 Mobile UX Validation Gate (NEW — HARD)
|
|
334
|
+
If page build has been completed:
|
|
335
|
+
|
|
336
|
+
- If `ux_mobile !== "validated"`:
|
|
337
|
+
→ NEXT ACTION: `/ux-mobile-validate`
|
|
338
|
+
|
|
339
|
+
❌ Page is NOT considered production-ready without this
|
|
340
|
+
|
|
341
|
+
---
|
|
342
|
+
|
|
343
|
+
##### 2.9 Mobile UX Optimization (OPTIONAL, GOVERNED)
|
|
344
|
+
|
|
345
|
+
If ALL are true:
|
|
346
|
+
|
|
347
|
+
- `ux_mobile === "validated"`
|
|
348
|
+
- No blocking issues
|
|
349
|
+
- Explicit optimization intent detected
|
|
350
|
+
→ AUTHORIZED (Optional): `/ux-mobile-optimize`
|
|
351
|
+
|
|
352
|
+
⚠️ Never mandatory
|
|
353
|
+
⚠️ Never blocking
|
|
354
|
+
|
|
355
|
+
---
|
|
356
|
+
|
|
357
|
+
### 3. Decision Protection
|
|
358
|
+
|
|
359
|
+
- Never re-evaluate locked decisions
|
|
360
|
+
- Never suggest alternatives that violate constraints
|
|
361
|
+
- Never suggest UI or component generation outside `/ds-components`
|
|
362
|
+
- Never allow page or feature UI to define new visual patterns
|
|
363
|
+
- Never allow `/ds-refactor` to alter visual decisions
|
|
364
|
+
- Never allow `/page-build` to invent or modify approved copy
|
|
365
|
+
|
|
366
|
+
---
|
|
367
|
+
|
|
368
|
+
### 4. Output Format (Mandatory)
|
|
369
|
+
|
|
370
|
+
Current Stage:
|
|
371
|
+
Design System Status:
|
|
372
|
+
UX Mobile Status:
|
|
373
|
+
Blocking Issues:
|
|
374
|
+
Next Logical Action:
|
|
375
|
+
Authorized Workflow:
|
|
376
|
+
Command to Execute:
|
|
377
|
+
Design System Validation:
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
3. Initialization Confirmation
|
|
382
|
+
After successful execution:
|
|
383
|
+
- Confirm project initialized
|
|
384
|
+
- Explain governance model
|
|
385
|
+
- Explain that /next-step is now the single source of progression
|
|
386
|
+
- Recommend next discovery actions
|