@guanlin4924/devflow-pi 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/README.md +164 -0
- package/docs/OMP-NATIVE-ARCHITECTURE.md +104 -0
- package/package.json +40 -0
- package/plugins/devflow-core/extensions/devflow-core.ts +1642 -0
- package/plugins/devflow-core/package.json +14 -0
- package/plugins/devflow-core/runtime/hooks/context_sync_gate.py +174 -0
- package/plugins/devflow-core/runtime/hooks/hook_common.py +696 -0
- package/plugins/devflow-core/runtime/hooks/index_gate.py +63 -0
- package/plugins/devflow-core/runtime/hooks/injection_code_specification.py +7 -0
- package/plugins/devflow-core/runtime/hooks/post_tool.py +44 -0
- package/plugins/devflow-core/runtime/hooks/start.py +288 -0
- package/plugins/devflow-core/skills/workflow-orchestrator/SKILL.md +265 -0
- package/plugins/devflow-core/skills/workflow-orchestrator/agents/openai.yaml +4 -0
- package/plugins/devflow-core/skills/workflow-orchestrator/scripts/advance_state.rb +520 -0
- package/plugins/devflow-core/skills/workflow-orchestrator/scripts/control_io.rb +42 -0
- package/plugins/devflow-core/skills/workflow-orchestrator/scripts/init_state.rb +138 -0
- package/plugins/devflow-core/skills/workflow-orchestrator/scripts/init_workflow.rb +121 -0
- package/plugins/devflow-core/skills/workflow-orchestrator/scripts/inspect_state.rb +553 -0
- package/plugins/devflow-core/skills/workflow-orchestrator/scripts/manage_lessons.rb +219 -0
- package/plugins/devflow-core/skills/workflow-orchestrator/scripts/sync_artifacts.rb +168 -0
- package/plugins/devflow-core/skills/workflow-orchestrator/scripts/update_triage_route.rb +110 -0
- package/plugins/devflow-core/skills/workflow-orchestrator/scripts/validate_state.rb +565 -0
- package/plugins/devflow-core/skills/workflow-orchestrator/templates/feature-development.yaml +783 -0
- package/plugins/devflow-core/skills/workflow-orchestrator/templates/uat-remediation.yaml +143 -0
- package/plugins/devflow-core/skills/workflow-orchestrator/templates/workflows-README.md +10 -0
- package/plugins/devflow-core/skills/workflow-pipeline/SKILL.md +117 -0
- package/plugins/devflow-core/skills/workflow-pipeline/references/pipeline-flow.md +167 -0
- package/plugins/devflow-core/skills/workflow-pipeline/references/slice-safety-guide.md +125 -0
- package/plugins/devflow-core/skills/workflow-project-context/SKILL.md +819 -0
- package/plugins/devflow-core/skills/workflow-project-context/assets/agents-md-template.md +25 -0
- package/plugins/devflow-core/skills/workflow-project-context/assets/codebase-backend-spec-template.md +68 -0
- package/plugins/devflow-core/skills/workflow-project-context/assets/codebase-frontend-spec-template.md +64 -0
- package/plugins/devflow-core/skills/workflow-project-context/assets/codebase-navigation-template.md +168 -0
- package/plugins/devflow-core/skills/workflow-project-context/assets/context-domain-index-template.md +43 -0
- package/plugins/devflow-core/skills/workflow-project-context/assets/context-spec-index-template.md +45 -0
- package/plugins/devflow-core/skills/workflow-project-context/assets/execution-contract-template.md +57 -0
- package/plugins/devflow-core/skills/workflow-project-context/assets/navigation-index-template.md +40 -0
- package/plugins/devflow-core/skills/workflow-project-context/assets/project-initialization-template.md +109 -0
- package/plugins/devflow-core/skills/workflow-project-context/assets/rules-index-template.md +80 -0
- package/plugins/devflow-core/skills/workflow-project-context/assets/run-manifest-template.json +40 -0
- package/plugins/devflow-core/skills/workflow-project-context/assets/spec-templates/backend/directory-structure.md +46 -0
- package/plugins/devflow-core/skills/workflow-project-context/assets/spec-templates/backend/engine.md +46 -0
- package/plugins/devflow-core/skills/workflow-project-context/assets/spec-templates/backend/errors.md +46 -0
- package/plugins/devflow-core/skills/workflow-project-context/assets/spec-templates/backend/locator.md +46 -0
- package/plugins/devflow-core/skills/workflow-project-context/assets/spec-templates/backend/model.md +46 -0
- package/plugins/devflow-core/skills/workflow-project-context/assets/spec-templates/backend/repository.md +46 -0
- package/plugins/devflow-core/skills/workflow-project-context/assets/spec-templates/backend/router.md +46 -0
- package/plugins/devflow-core/skills/workflow-project-context/assets/spec-templates/backend/scheduler.md +46 -0
- package/plugins/devflow-core/skills/workflow-project-context/assets/spec-templates/backend/schema.md +46 -0
- package/plugins/devflow-core/skills/workflow-project-context/assets/spec-templates/backend/service.md +46 -0
- package/plugins/devflow-core/skills/workflow-project-context/assets/spec-templates/backend/testing.md +46 -0
- package/plugins/devflow-core/skills/workflow-project-context/assets/spec-templates/frontend/api-client.md +46 -0
- package/plugins/devflow-core/skills/workflow-project-context/assets/spec-templates/frontend/case-editor.md +46 -0
- package/plugins/devflow-core/skills/workflow-project-context/assets/spec-templates/frontend/components.md +46 -0
- package/plugins/devflow-core/skills/workflow-project-context/assets/spec-templates/frontend/directory-structure.md +46 -0
- package/plugins/devflow-core/skills/workflow-project-context/assets/spec-templates/frontend/forms.md +46 -0
- package/plugins/devflow-core/skills/workflow-project-context/assets/spec-templates/frontend/routing.md +46 -0
- package/plugins/devflow-core/skills/workflow-project-context/assets/spec-templates/frontend/state.md +46 -0
- package/plugins/devflow-core/skills/workflow-project-context/assets/spec-templates/frontend/testing.md +46 -0
- package/plugins/devflow-core/skills/workflow-project-context/assets/stack-spec-template.md +106 -0
- package/plugins/devflow-core/skills/workflow-project-context/assets/state-template.md +77 -0
- package/plugins/devflow-core/skills/workflow-project-context/assets/toolchain-template.md +37 -0
- package/plugins/devflow-core/skills/workflow-project-context/references/navigation-guide.md +262 -0
- package/plugins/devflow-core/skills/workflow-project-context/scripts/validate_initialization.py +545 -0
- package/plugins/devflow-design/agents/contract-auditor.md +18 -0
- package/plugins/devflow-design/extensions/devflow-design.ts +47 -0
- package/plugins/devflow-design/package.json +14 -0
- package/plugins/devflow-design/skills/workflow-api-call-guide/SKILL.md +142 -0
- package/plugins/devflow-design/skills/workflow-api-contract/SKILL.md +150 -0
- package/plugins/devflow-design/skills/workflow-api-supplement/SKILL.md +121 -0
- package/plugins/devflow-design/skills/workflow-backend-tech-spec/SKILL.md +257 -0
- package/plugins/devflow-design/skills/workflow-backend-tech-spec/assets/adr-template.md +57 -0
- package/plugins/devflow-design/skills/workflow-backend-tech-spec/assets/backend-spec-template.md +205 -0
- package/plugins/devflow-design/skills/workflow-backend-tech-spec/references/affected-module-exploration.md +59 -0
- package/plugins/devflow-design/skills/workflow-backend-tech-spec/references/backend-conventions.md +30 -0
- package/plugins/devflow-design/skills/workflow-backend-tech-spec/references/code-explore-guide.md +40 -0
- package/plugins/devflow-design/skills/workflow-backend-tech-spec/references/project-rule-contract.md +66 -0
- package/plugins/devflow-design/skills/workflow-design-rule-pack/SKILL.md +91 -0
- package/plugins/devflow-design/skills/workflow-design-rule-pack/assets/design/index.md +71 -0
- package/plugins/devflow-design/skills/workflow-design-rule-pack/assets/design/recommendations/accessibility.md +31 -0
- package/plugins/devflow-design/skills/workflow-design-rule-pack/assets/design/recommendations/component-library.md +31 -0
- package/plugins/devflow-design/skills/workflow-design-rule-pack/assets/design/recommendations/design-systems.md +47 -0
- package/plugins/devflow-design/skills/workflow-design-rule-pack/assets/design/recommendations/responsive-grid.md +29 -0
- package/plugins/devflow-design/skills/workflow-design-rule-pack/assets/design/recommendations/stack-guidelines.md +31 -0
- package/plugins/devflow-design/skills/workflow-design-rule-pack/assets/design/recommendations/ux-patterns.md +40 -0
- package/plugins/devflow-design/skills/workflow-design-rule-pack/assets/design/tokens/project-tokens.md +19 -0
- package/plugins/devflow-design/skills/workflow-design-rule-pack/assets/design/tools/ui-ux-pro-max/SKILL.md +377 -0
- package/plugins/devflow-design/skills/workflow-design-rule-pack/assets/design/tools/ui-ux-pro-max/data/charts.csv +26 -0
- package/plugins/devflow-design/skills/workflow-design-rule-pack/assets/design/tools/ui-ux-pro-max/data/colors.csv +97 -0
- package/plugins/devflow-design/skills/workflow-design-rule-pack/assets/design/tools/ui-ux-pro-max/data/icons.csv +101 -0
- package/plugins/devflow-design/skills/workflow-design-rule-pack/assets/design/tools/ui-ux-pro-max/data/landing.csv +31 -0
- package/plugins/devflow-design/skills/workflow-design-rule-pack/assets/design/tools/ui-ux-pro-max/data/products.csv +97 -0
- package/plugins/devflow-design/skills/workflow-design-rule-pack/assets/design/tools/ui-ux-pro-max/data/react-performance.csv +45 -0
- package/plugins/devflow-design/skills/workflow-design-rule-pack/assets/design/tools/ui-ux-pro-max/data/stacks/astro.csv +54 -0
- package/plugins/devflow-design/skills/workflow-design-rule-pack/assets/design/tools/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
- package/plugins/devflow-design/skills/workflow-design-rule-pack/assets/design/tools/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
- package/plugins/devflow-design/skills/workflow-design-rule-pack/assets/design/tools/ui-ux-pro-max/data/stacks/jetpack-compose.csv +53 -0
- package/plugins/devflow-design/skills/workflow-design-rule-pack/assets/design/tools/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
- package/plugins/devflow-design/skills/workflow-design-rule-pack/assets/design/tools/ui-ux-pro-max/data/stacks/nuxt-ui.csv +51 -0
- package/plugins/devflow-design/skills/workflow-design-rule-pack/assets/design/tools/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
- package/plugins/devflow-design/skills/workflow-design-rule-pack/assets/design/tools/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
- package/plugins/devflow-design/skills/workflow-design-rule-pack/assets/design/tools/ui-ux-pro-max/data/stacks/react.csv +54 -0
- package/plugins/devflow-design/skills/workflow-design-rule-pack/assets/design/tools/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
- package/plugins/devflow-design/skills/workflow-design-rule-pack/assets/design/tools/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
- package/plugins/devflow-design/skills/workflow-design-rule-pack/assets/design/tools/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
- package/plugins/devflow-design/skills/workflow-design-rule-pack/assets/design/tools/ui-ux-pro-max/data/stacks/vue.csv +50 -0
- package/plugins/devflow-design/skills/workflow-design-rule-pack/assets/design/tools/ui-ux-pro-max/data/styles.csv +68 -0
- package/plugins/devflow-design/skills/workflow-design-rule-pack/assets/design/tools/ui-ux-pro-max/data/typography.csv +58 -0
- package/plugins/devflow-design/skills/workflow-design-rule-pack/assets/design/tools/ui-ux-pro-max/data/ui-reasoning.csv +101 -0
- package/plugins/devflow-design/skills/workflow-design-rule-pack/assets/design/tools/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
- package/plugins/devflow-design/skills/workflow-design-rule-pack/assets/design/tools/ui-ux-pro-max/data/web-interface.csv +31 -0
- package/plugins/devflow-design/skills/workflow-design-rule-pack/assets/design/tools/ui-ux-pro-max/scripts/core.py +253 -0
- package/plugins/devflow-design/skills/workflow-design-rule-pack/assets/design/tools/ui-ux-pro-max/scripts/design_system.py +1067 -0
- package/plugins/devflow-design/skills/workflow-design-rule-pack/assets/design/tools/ui-ux-pro-max/scripts/search.py +114 -0
- package/plugins/devflow-design/skills/workflow-design-rule-pack/scripts/install.py +67 -0
- package/plugins/devflow-design/skills/workflow-feature-breakdown/SKILL.md +370 -0
- package/plugins/devflow-design/skills/workflow-feature-breakdown/assets/admin-system-template.md +57 -0
- package/plugins/devflow-design/skills/workflow-feature-breakdown/assets/api-service-template.md +42 -0
- package/plugins/devflow-design/skills/workflow-feature-breakdown/assets/c-end-system-template.md +25 -0
- package/plugins/devflow-design/skills/workflow-feature-breakdown/assets/output-template.md +139 -0
- package/plugins/devflow-design/skills/workflow-feature-breakdown/references/bug-rules.md +12 -0
- package/plugins/devflow-design/skills/workflow-feature-breakdown/references/exception-checklist.md +31 -0
- package/plugins/devflow-design/skills/workflow-feature-breakdown/references/trace-integrity-guide.md +153 -0
- package/plugins/devflow-design/skills/workflow-feature-breakdown/references/writing-guide.md +92 -0
- package/plugins/devflow-design/skills/workflow-frontend-tech-spec/SKILL.md +223 -0
- package/plugins/devflow-design/skills/workflow-frontend-tech-spec/assets/frontend-spec-template.md +204 -0
- package/plugins/devflow-design/skills/workflow-frontend-tech-spec/references/affected-module-exploration.md +58 -0
- package/plugins/devflow-design/skills/workflow-frontend-tech-spec/references/component-patterns.md +42 -0
- package/plugins/devflow-design/skills/workflow-frontend-tech-spec/references/frontend-conventions.md +28 -0
- package/plugins/devflow-design/skills/workflow-frontend-tech-spec/references/frontend-stack-slots/common-web.md +53 -0
- package/plugins/devflow-design/skills/workflow-frontend-tech-spec/references/frontend-stack-slots/next.md +40 -0
- package/plugins/devflow-design/skills/workflow-frontend-tech-spec/references/frontend-stack-slots/react.md +41 -0
- package/plugins/devflow-design/skills/workflow-frontend-tech-spec/references/frontend-stack-slots/vue.md +41 -0
- package/plugins/devflow-design/skills/workflow-frontend-tech-spec/references/project-rule-contract.md +95 -0
- package/plugins/devflow-design/skills/workflow-integration-verify/SKILL.md +172 -0
- package/plugins/devflow-design/skills/workflow-ui-spec/SKILL.md +302 -0
- package/plugins/devflow-design/skills/workflow-ui-spec/assets/ui-spec-template.md +244 -0
- package/plugins/devflow-design/skills/workflow-ui-spec/references/affected-module-exploration.md +55 -0
- package/plugins/devflow-implementation/agents/implementation-worker.md +20 -0
- package/plugins/devflow-implementation/package.json +6 -0
- package/plugins/devflow-implementation/skills/workflow-bug-fix/SKILL.md +124 -0
- package/plugins/devflow-implementation/skills/workflow-bug-fix/references/INDEX.md +13 -0
- package/plugins/devflow-implementation/skills/workflow-bug-fix/references/adversarial-review.md +35 -0
- package/plugins/devflow-implementation/skills/workflow-bug-fix/references/first-principles.md +26 -0
- package/plugins/devflow-implementation/skills/workflow-bug-fix/references/lesson-format.md +28 -0
- package/plugins/devflow-implementation/skills/workflow-bug-fix/references/root-cause-ladder.md +51 -0
- package/plugins/devflow-implementation/skills/workflow-bug-fix/references/seam-analysis.md +30 -0
- package/plugins/devflow-implementation/skills/workflow-change-plan/SKILL.md +160 -0
- package/plugins/devflow-implementation/skills/workflow-change-plan/references/code-conventions.md +33 -0
- package/plugins/devflow-implementation/skills/workflow-change-plan/references/ddl-guidelines.md +60 -0
- package/plugins/devflow-implementation/skills/workflow-change-plan/references/output-template.md +217 -0
- package/plugins/devflow-implementation/skills/workflow-change-plan/references/project-rule-contract.md +55 -0
- package/plugins/devflow-implementation/skills/workflow-execute-phase/SKILL.md +271 -0
- package/plugins/devflow-implementation/skills/workflow-execute-phase/references/execute-phase.md +1251 -0
- package/plugins/devflow-implementation/skills/workflow-execute-phase/references/ui-brand.md +160 -0
- package/plugins/devflow-intel/agents/project-scout.md +27 -0
- package/plugins/devflow-intel/extensions/devflow-intel.ts +104 -0
- package/plugins/devflow-intel/package.json +14 -0
- package/plugins/devflow-intel/skills/code-index-query/SKILL.md +37 -0
- package/plugins/devflow-intel/skills/code-index-query/references/query-patterns.md +27 -0
- package/plugins/devflow-intel/skills/workflow-code-index/SKILL.md +68 -0
- package/plugins/devflow-intel/skills/workflow-code-index/references/adapter-contract.md +38 -0
- package/plugins/devflow-intel/skills/workflow-code-index/references/audit-checklist.md +10 -0
- package/plugins/devflow-intel/skills/workflow-code-index/references/confidence-rules.md +43 -0
- package/plugins/devflow-intel/skills/workflow-code-index/references/data-model.md +74 -0
- package/plugins/devflow-intel/skills/workflow-code-index/references/discovery.md +24 -0
- package/plugins/devflow-intel/skills/workflow-code-index/references/query-guide.md +20 -0
- package/plugins/devflow-intel/skills/workflow-code-index/scripts/adapters/__init__.py +1 -0
- package/plugins/devflow-intel/skills/workflow-code-index/scripts/adapters/base.py +30 -0
- package/plugins/devflow-intel/skills/workflow-code-index/scripts/adapters/generic_text.py +287 -0
- package/plugins/devflow-intel/skills/workflow-code-index/scripts/adapters/registry.py +17 -0
- package/plugins/devflow-intel/skills/workflow-code-index/scripts/code_index.py +437 -0
- package/plugins/devflow-intel/skills/workflow-code-index/scripts/core/__init__.py +1 -0
- package/plugins/devflow-intel/skills/workflow-code-index/scripts/core/discovery.py +139 -0
- package/plugins/devflow-intel/skills/workflow-code-index/scripts/core/hashing.py +11 -0
- package/plugins/devflow-intel/skills/workflow-code-index/scripts/core/scanner.py +115 -0
- package/plugins/devflow-intel/skills/workflow-code-index/scripts/core/schema.py +123 -0
- package/plugins/devflow-intel/skills/workflow-code-index/scripts/validators/__init__.py +1 -0
- package/plugins/devflow-intel/skills/workflow-code-index/scripts/validators/project_binding_check.py +66 -0
- package/plugins/devflow-intel/skills/workflow-code-index/scripts/validators/relation_check.py +36 -0
- package/plugins/devflow-intel/skills/workflow-code-index/scripts/validators/schema_validate.py +11 -0
- package/plugins/devflow-intel/skills/workflow-code-index/scripts/validators/stale_check.py +42 -0
- package/plugins/devflow-intel/skills/workflow-code-index/scripts/writers/__init__.py +1 -0
- package/plugins/devflow-intel/skills/workflow-code-index/scripts/writers/jsonl_writer.py +25 -0
- package/plugins/devflow-intel/skills/workflow-code-index/scripts/writers/markdown_writer.py +106 -0
- package/plugins/devflow-intel/skills/workflow-code-index/scripts/writers/sqlite_writer.py +143 -0
- package/plugins/devflow-intel/skills/workflow-context-sync/SKILL.md +381 -0
- package/plugins/devflow-intel/skills/workflow-context-sync/agents/openai.yaml +4 -0
- package/plugins/devflow-intel/skills/workflow-context-sync/scripts/context_sync_cursor.py +241 -0
- package/plugins/devflow-intel/skills/workflow-update-navigation/SKILL.md +186 -0
- package/plugins/devflow-intel/skills/workflow-update-navigation/references/incremental-update-guide.md +47 -0
- package/plugins/devflow-quality/agents/code-reviewer.md +18 -0
- package/plugins/devflow-quality/agents/verification-runner.md +21 -0
- package/plugins/devflow-quality/extensions/devflow-quality.ts +59 -0
- package/plugins/devflow-quality/package.json +14 -0
- package/plugins/devflow-quality/skills/code-review/SKILL.md +288 -0
- package/plugins/devflow-quality/skills/code-review/references/cross-layer-checklist.md +70 -0
- package/plugins/devflow-quality/skills/code-review/references/dao-checklist.md +70 -0
- package/plugins/devflow-quality/skills/code-review/references/handler-checklist.md +48 -0
- package/plugins/devflow-quality/skills/code-review/references/repository-checklist.md +44 -0
- package/plugins/devflow-quality/skills/code-review/references/service-checklist.md +57 -0
- package/plugins/devflow-quality/skills/code-review/references/spec-checklist.md +34 -0
- package/plugins/devflow-quality/skills/code-review/references/vo-checklist.md +26 -0
- package/plugins/devflow-quality/skills/workflow-audit-milestone/SKILL.md +31 -0
- package/plugins/devflow-quality/skills/workflow-audit-milestone/references/audit-milestone.md +328 -0
- package/plugins/devflow-quality/skills/workflow-complete-milestone/SKILL.md +132 -0
- package/plugins/devflow-quality/skills/workflow-complete-milestone/assets/milestone-archive.md +123 -0
- package/plugins/devflow-quality/skills/workflow-complete-milestone/references/complete-milestone.md +775 -0
- package/plugins/devflow-quality/skills/workflow-complete-milestone/references/milestone-archive.md +123 -0
- package/plugins/devflow-quality/skills/workflow-generate-mainflow-cases/SKILL.md +126 -0
- package/plugins/devflow-quality/skills/workflow-generate-mainflow-cases/references/api-mainflow-rules.md +27 -0
- package/plugins/devflow-quality/skills/workflow-generate-mainflow-cases/references/codebase-discovery.md +54 -0
- package/plugins/devflow-quality/skills/workflow-generate-mainflow-cases/references/intermediate-format.md +244 -0
- package/plugins/devflow-quality/skills/workflow-generate-mainflow-cases/references/mainflow-selection.md +36 -0
- package/plugins/devflow-quality/skills/workflow-generate-mainflow-cases/references/project-dsl-contract.md +190 -0
- package/plugins/devflow-quality/skills/workflow-generate-mainflow-cases/references/ui-mainflow-rules.md +110 -0
- package/plugins/devflow-quality/skills/workflow-generate-mainflow-cases/scripts/compile_dsl.py +583 -0
- package/plugins/devflow-quality/skills/workflow-generate-mainflow-cases/scripts/discover_codebases.py +199 -0
- package/plugins/devflow-quality/skills/workflow-generate-mainflow-cases/scripts/normalize_case_payloads.py +177 -0
- package/plugins/devflow-quality/skills/workflow-generate-mainflow-cases/scripts/validate_case_payloads.py +370 -0
- package/plugins/devflow-quality/skills/workflow-verify-work/SKILL.md +106 -0
- package/plugins/devflow-quality/skills/workflow-verify-work/assets/UAT.md +265 -0
- package/plugins/devflow-quality/skills/workflow-verify-work/references/verify-work.md +759 -0
- package/plugins/devflow-requirements/agents/requirements-auditor.md +20 -0
- package/plugins/devflow-requirements/package.json +6 -0
- package/plugins/devflow-requirements/skills/requirement-feasibility-review/SKILL.md +219 -0
- package/plugins/devflow-requirements/skills/requirement-feasibility-review/agents/openai.yaml +4 -0
- package/plugins/devflow-requirements/skills/requirement-feasibility-review/references/review-method.md +257 -0
- package/plugins/devflow-requirements/skills/requirement-feasibility-review/references/review-template.md +80 -0
- package/plugins/devflow-requirements/skills/workflow-demand-clarify/SKILL.md +325 -0
- package/plugins/devflow-requirements/skills/workflow-domain-modeling/SKILL.md +163 -0
- package/plugins/devflow-requirements/skills/workflow-requirement-baseline/SKILL.md +748 -0
- package/plugins/devflow-requirements/skills/workflow-requirement-baseline/assets/baseline-template.md +281 -0
- package/plugins/devflow-requirements/skills/workflow-requirement-baseline/references/antipatterns.md +69 -0
- package/plugins/devflow-requirements/skills/workflow-requirement-baseline/references/challenge-review-guide.md +158 -0
- package/plugins/devflow-requirements/skills/workflow-requirement-baseline/references/decomposition-guide.md +115 -0
- package/plugins/devflow-requirements/skills/workflow-requirement-baseline/references/project-context-guide.md +119 -0
- package/plugins/devflow-requirements/skills/workflow-requirement-baseline/references/questioning.md +76 -0
- package/plugins/devflow-requirements/skills/workflow-requirement-baseline/references/requirement-review-checklist.md +115 -0
- package/plugins/devflow-requirements/skills/workflow-requirement-triage/SKILL.md +204 -0
- package/plugins/devflow-requirements/skills/workflow-wayfinder/SKILL.md +183 -0
- package/src/cli.ts +76 -0
- package/src/constants.ts +15 -0
- package/src/doctor.ts +66 -0
- package/src/paths.ts +37 -0
- package/src/platform-extension.ts +46 -0
- package/src/project-context.ts +165 -0
- package/src/runtime.ts +167 -0
- package/src/usage-stats.ts +101 -0
- package/templates/commands/start.md +58 -0
- package/templates/omp/AGENTS.md +36 -0
- package/templates/omp/config.yml +112 -0
- package/templates/omp/hook-config.json +18 -0
- package/templates/omp/index-policy.json +57 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Component Library Recommendations
|
|
2
|
+
|
|
3
|
+
本文件提供组件选择和复用参考。workflow-ui-spec 和 workflow-frontend-tech-spec 必须优先复用现有项目组件。
|
|
4
|
+
|
|
5
|
+
## 通用原则
|
|
6
|
+
|
|
7
|
+
- 先查现有页面和组件库,再决定新增组件。
|
|
8
|
+
- 按页面、区域、业务组件、基础组件拆分组件树,至少三层。
|
|
9
|
+
- 所有可交互组件必须覆盖 default、loading、disabled、error、permission 或 not-applicable 判断。
|
|
10
|
+
- 图标按钮必须有可访问名称,例如 `aria-label` 或等效组件属性。
|
|
11
|
+
- 不用 emoji 作为正式 UI 图标,优先使用项目已有图标库;若无项目规范,Web 端优先 Lucide/Heroicons。
|
|
12
|
+
|
|
13
|
+
## 常见组件检查
|
|
14
|
+
|
|
15
|
+
| 组件 | 必查项 |
|
|
16
|
+
|------|--------|
|
|
17
|
+
| Button | loading 防重复、disabled、focus、图标间距、按钮文案长度 |
|
|
18
|
+
| Form | label 关联、校验时机、错误信息位置、必填标识、提交中状态 |
|
|
19
|
+
| Table | loading、empty、error、分页、批量操作、列宽、横向滚动 |
|
|
20
|
+
| Modal/Drawer | 打开关闭、提交中、Esc/遮罩关闭规则、焦点回收 |
|
|
21
|
+
| Card/List | 点击区域、hover/focus、空态、长文本换行 |
|
|
22
|
+
| Tabs/Menu | 当前态、权限隐藏/禁用、键盘导航 |
|
|
23
|
+
|
|
24
|
+
## 与 ui-ux-pro-max 配合
|
|
25
|
+
|
|
26
|
+
需要补充组件模式时,可查:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
python3 .context/spec/design/tools/ui-ux-pro-max/scripts/search.py "form button modal table accessibility" --domain ux
|
|
30
|
+
python3 .context/spec/design/tools/ui-ux-pro-max/scripts/search.py "button form table" --stack shadcn
|
|
31
|
+
```
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Design System Recommendations
|
|
2
|
+
|
|
3
|
+
本文件是通用设计系统参考,只能作为缺省建议。已确认设计稿、现有代码和项目 token 优先。
|
|
4
|
+
|
|
5
|
+
## 使用场景
|
|
6
|
+
|
|
7
|
+
- 无设计稿,但需要给 UI-SPEC 补充待拍板的默认视觉方向
|
|
8
|
+
- 设计稿缺少完整 token,需要补充颜色、字体、间距、圆角、阴影候选
|
|
9
|
+
- 需要按产品类型选择页面模式、视觉风格、CTA 策略
|
|
10
|
+
|
|
11
|
+
## 推荐生成
|
|
12
|
+
|
|
13
|
+
优先用动态工具生成完整建议:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
python3 .context/spec/design/tools/ui-ux-pro-max/scripts/search.py "<product type> <industry> <style keywords>" --design-system -p "<Feature or Project Name>" --format markdown
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
输出只能进入 UI-SPEC 的“推荐方案(待拍板)”或“待确认事项”,不能直接进入“设计稿事实”。
|
|
20
|
+
|
|
21
|
+
## 合并规则
|
|
22
|
+
|
|
23
|
+
| 来源 | 可作为实现依据 | 处理方式 |
|
|
24
|
+
|------|----------------|----------|
|
|
25
|
+
| 设计稿明确值 | 是 | 写入设计稿事实 |
|
|
26
|
+
| 现有代码 token | 是 | 写入现有项目规范 |
|
|
27
|
+
| 用户拍板推荐值 | 是 | 写入已确认 token |
|
|
28
|
+
| ui-ux-pro-max 推荐值 | 否 | 写入推荐方案,标记待拍板 |
|
|
29
|
+
|
|
30
|
+
## UI-SPEC 输出要求
|
|
31
|
+
|
|
32
|
+
UI-SPEC 至少区分以下三类:
|
|
33
|
+
|
|
34
|
+
```markdown
|
|
35
|
+
### 设计系统(设计稿事实)
|
|
36
|
+
- 主色:...
|
|
37
|
+
|
|
38
|
+
### 设计系统(现有项目规范)
|
|
39
|
+
- 已有变量:...
|
|
40
|
+
|
|
41
|
+
### 设计系统(推荐 - 待拍板)
|
|
42
|
+
- 推荐主色:...
|
|
43
|
+
- 推荐字阶:...
|
|
44
|
+
- 推荐间距:...
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
推荐值如需用于后续实现,必须在“待确认事项”中明确要求用户拍板。
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Responsive Grid Recommendations
|
|
2
|
+
|
|
3
|
+
本文件提供响应式和多端适配参考。已有设计稿断点和项目布局规范优先。
|
|
4
|
+
|
|
5
|
+
## 基础规则
|
|
6
|
+
|
|
7
|
+
- 移动端不得出现非预期横向滚动。
|
|
8
|
+
- 表格、代码块、长链接等可横向溢出的区域必须有明确滚动容器。
|
|
9
|
+
- 固定顶部/底部区域必须给内容区预留空间,避免遮挡。
|
|
10
|
+
- 触控目标建议不小于 44px。
|
|
11
|
+
- 正文字号移动端不低于 16px,若项目规范已定义则按项目规范执行。
|
|
12
|
+
- 固定格式控件使用稳定尺寸、`min/max`、`aspect-ratio` 或明确 grid track,避免 hover/loading/text 导致布局跳动。
|
|
13
|
+
|
|
14
|
+
## UI-SPEC 必填
|
|
15
|
+
|
|
16
|
+
| 项 | 要求 |
|
|
17
|
+
|----|------|
|
|
18
|
+
| 页面断点 | 标明桌面、平板、移动端布局变化 |
|
|
19
|
+
| 导航 | 标明收起、折叠、抽屉、底部栏等行为 |
|
|
20
|
+
| 表格/列表 | 标明列裁剪、横向滚动、卡片化或分页策略 |
|
|
21
|
+
| 弹窗/抽屉 | 标明移动端尺寸和关闭行为 |
|
|
22
|
+
| 固定元素 | 标明 sticky/fixed 与内容避让 |
|
|
23
|
+
|
|
24
|
+
## 查询辅助
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
python3 .context/spec/design/tools/ui-ux-pro-max/scripts/search.py "responsive layout mobile horizontal scroll touch target" --domain ux
|
|
28
|
+
python3 .context/spec/design/tools/ui-ux-pro-max/scripts/search.py "responsive layout" --stack html-tailwind
|
|
29
|
+
```
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Stack Guidelines Recommendations
|
|
2
|
+
|
|
3
|
+
本文件提供技术栈实现参考。项目 `.context/spec/stacks/`、前端代码约定和 workflow 内置 stack slots 优先。
|
|
4
|
+
|
|
5
|
+
## 使用方式
|
|
6
|
+
|
|
7
|
+
按项目实际栈调用动态工具补充:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
python3 .context/spec/design/tools/ui-ux-pro-max/scripts/search.py "layout form table accessibility performance" --stack react
|
|
11
|
+
python3 .context/spec/design/tools/ui-ux-pro-max/scripts/search.py "image routing cache hydration" --stack nextjs
|
|
12
|
+
python3 .context/spec/design/tools/ui-ux-pro-max/scripts/search.py "composition api form table state" --stack vue
|
|
13
|
+
python3 .context/spec/design/tools/ui-ux-pro-max/scripts/search.py "responsive utility accessibility" --stack html-tailwind
|
|
14
|
+
python3 .context/spec/design/tools/ui-ux-pro-max/scripts/search.py "components theme form" --stack shadcn
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## 前端技术方案使用边界
|
|
18
|
+
|
|
19
|
+
- 查询结果用于补充实现注意点、风险和验证门禁。
|
|
20
|
+
- 不得覆盖项目内已有组件库、状态管理、API client、样式方案。
|
|
21
|
+
- 与项目规则冲突时,写入风险或待确认事项。
|
|
22
|
+
|
|
23
|
+
## 常见关注点
|
|
24
|
+
|
|
25
|
+
| 栈 | 关注点 |
|
|
26
|
+
|----|--------|
|
|
27
|
+
| React | hooks 依赖、重渲染、memo 边界、受控表单、错误边界 |
|
|
28
|
+
| Next.js | server/client component 边界、数据获取、缓存、hydration、图片优化 |
|
|
29
|
+
| Vue | Composition API、Pinia/router、响应式边界、组件 emits/props |
|
|
30
|
+
| Tailwind | 响应式类、状态类、暗色模式、可访问性辅助类、设计 token 映射 |
|
|
31
|
+
| shadcn | 组件组合、表单、主题变量、可访问性默认行为 |
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# UX Pattern Recommendations
|
|
2
|
+
|
|
3
|
+
本文件提供交互、状态和反馈模式参考。需求基线和设计稿已确认交互优先。
|
|
4
|
+
|
|
5
|
+
## 状态覆盖
|
|
6
|
+
|
|
7
|
+
每个页面或关键组件至少判断:
|
|
8
|
+
|
|
9
|
+
- Loading
|
|
10
|
+
- Empty
|
|
11
|
+
- Error
|
|
12
|
+
- Disabled
|
|
13
|
+
- Permission
|
|
14
|
+
- Duplicate Submit
|
|
15
|
+
- Network Error
|
|
16
|
+
|
|
17
|
+
不适用时写明 `不适用`,不得留空。
|
|
18
|
+
|
|
19
|
+
## 交互反馈
|
|
20
|
+
|
|
21
|
+
- 异步提交期间禁用提交按钮或显示 loading,避免重复提交。
|
|
22
|
+
- 错误反馈应靠近问题区域;全局 toast 只作为补充。
|
|
23
|
+
- 破坏性操作需要确认机制,并明确取消路径。
|
|
24
|
+
- hover 不能作为唯一可见反馈,移动端必须有 tap 可用路径。
|
|
25
|
+
- 动效优先使用 opacity/transform,尊重 `prefers-reduced-motion`。
|
|
26
|
+
|
|
27
|
+
## UI-SPEC 输出
|
|
28
|
+
|
|
29
|
+
交互流程必须覆盖:
|
|
30
|
+
|
|
31
|
+
```text
|
|
32
|
+
触发 -> 即时视觉反馈 -> 状态变化 -> 接口调用 -> 成功/失败/空态/权限处理 -> 终态
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## 查询辅助
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
python3 .context/spec/design/tools/ui-ux-pro-max/scripts/search.py "loading error feedback duplicate submit animation" --domain ux
|
|
39
|
+
python3 .context/spec/design/tools/ui-ux-pro-max/scripts/search.py "form validation feedback" --domain web
|
|
40
|
+
```
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Project Design Tokens
|
|
2
|
+
|
|
3
|
+
本文件只记录项目级已确认设计 token。不得写入单个功能的临时推荐值。
|
|
4
|
+
|
|
5
|
+
## 状态
|
|
6
|
+
|
|
7
|
+
当前项目尚未沉淀全局设计 token。workflow-ui-spec 生成某个功能的 token 时,应先写入对应功能的 `.planning/features/{功能名}/UI-SPEC.md`。
|
|
8
|
+
|
|
9
|
+
## 允许写入本文件的条件
|
|
10
|
+
|
|
11
|
+
- 用户明确拍板为项目级规范;或
|
|
12
|
+
- 现有代码已经稳定使用,并经 workflow 审查确认可作为全局规范;或
|
|
13
|
+
- 设计系统/组件库已有正式变量定义。
|
|
14
|
+
|
|
15
|
+
## 禁止写入
|
|
16
|
+
|
|
17
|
+
- ui-ux-pro-max 仅推荐但未拍板的颜色、字体、间距、圆角、阴影。
|
|
18
|
+
- 单个页面或单个功能的局部样式。
|
|
19
|
+
- 与现有代码变量冲突且未完成迁移方案的 token。
|
|
@@ -0,0 +1,377 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ui-ux-pro-max
|
|
3
|
+
description: "UI/UX design intelligence. 67 styles, 96 palettes, 57 font pairings, 25 charts, 13 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind, shadcn/ui). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient. Integrations: shadcn/ui MCP for component search and examples."
|
|
4
|
+
---
|
|
5
|
+
# UI/UX Pro Max - Design Intelligence
|
|
6
|
+
|
|
7
|
+
Comprehensive design guide for web and mobile applications. Contains 67 styles, 96 color palettes, 57 font pairings, 99 UX guidelines, and 25 chart types across 13 technology stacks. Searchable database with priority-based recommendations.
|
|
8
|
+
|
|
9
|
+
## When to Apply
|
|
10
|
+
|
|
11
|
+
Reference these guidelines when:
|
|
12
|
+
- Designing new UI components or pages
|
|
13
|
+
- Choosing color palettes and typography
|
|
14
|
+
- Reviewing code for UX issues
|
|
15
|
+
- Building landing pages or dashboards
|
|
16
|
+
- Implementing accessibility requirements
|
|
17
|
+
|
|
18
|
+
## Rule Categories by Priority
|
|
19
|
+
|
|
20
|
+
| Priority | Category | Impact | Domain |
|
|
21
|
+
|----------|----------|--------|--------|
|
|
22
|
+
| 1 | Accessibility | CRITICAL | `ux` |
|
|
23
|
+
| 2 | Touch & Interaction | CRITICAL | `ux` |
|
|
24
|
+
| 3 | Performance | HIGH | `ux` |
|
|
25
|
+
| 4 | Layout & Responsive | HIGH | `ux` |
|
|
26
|
+
| 5 | Typography & Color | MEDIUM | `typography`, `color` |
|
|
27
|
+
| 6 | Animation | MEDIUM | `ux` |
|
|
28
|
+
| 7 | Style Selection | MEDIUM | `style`, `product` |
|
|
29
|
+
| 8 | Charts & Data | LOW | `chart` |
|
|
30
|
+
|
|
31
|
+
## Quick Reference
|
|
32
|
+
|
|
33
|
+
### 1. Accessibility (CRITICAL)
|
|
34
|
+
|
|
35
|
+
- `color-contrast` - Minimum 4.5:1 ratio for normal text
|
|
36
|
+
- `focus-states` - Visible focus rings on interactive elements
|
|
37
|
+
- `alt-text` - Descriptive alt text for meaningful images
|
|
38
|
+
- `aria-labels` - aria-label for icon-only buttons
|
|
39
|
+
- `keyboard-nav` - Tab order matches visual order
|
|
40
|
+
- `form-labels` - Use label with for attribute
|
|
41
|
+
|
|
42
|
+
### 2. Touch & Interaction (CRITICAL)
|
|
43
|
+
|
|
44
|
+
- `touch-target-size` - Minimum 44x44px touch targets
|
|
45
|
+
- `hover-vs-tap` - Use click/tap for primary interactions
|
|
46
|
+
- `loading-buttons` - Disable button during async operations
|
|
47
|
+
- `error-feedback` - Clear error messages near problem
|
|
48
|
+
- `cursor-pointer` - Add cursor-pointer to clickable elements
|
|
49
|
+
|
|
50
|
+
### 3. Performance (HIGH)
|
|
51
|
+
|
|
52
|
+
- `image-optimization` - Use WebP, srcset, lazy loading
|
|
53
|
+
- `reduced-motion` - Check prefers-reduced-motion
|
|
54
|
+
- `content-jumping` - Reserve space for async content
|
|
55
|
+
|
|
56
|
+
### 4. Layout & Responsive (HIGH)
|
|
57
|
+
|
|
58
|
+
- `viewport-meta` - width=device-width initial-scale=1
|
|
59
|
+
- `readable-font-size` - Minimum 16px body text on mobile
|
|
60
|
+
- `horizontal-scroll` - Ensure content fits viewport width
|
|
61
|
+
- `z-index-management` - Define z-index scale (10, 20, 30, 50)
|
|
62
|
+
|
|
63
|
+
### 5. Typography & Color (MEDIUM)
|
|
64
|
+
|
|
65
|
+
- `line-height` - Use 1.5-1.75 for body text
|
|
66
|
+
- `line-length` - Limit to 65-75 characters per line
|
|
67
|
+
- `font-pairing` - Match heading/body font personalities
|
|
68
|
+
|
|
69
|
+
### 6. Animation (MEDIUM)
|
|
70
|
+
|
|
71
|
+
- `duration-timing` - Use 150-300ms for micro-interactions
|
|
72
|
+
- `transform-performance` - Use transform/opacity, not width/height
|
|
73
|
+
- `loading-states` - Skeleton screens or spinners
|
|
74
|
+
|
|
75
|
+
### 7. Style Selection (MEDIUM)
|
|
76
|
+
|
|
77
|
+
- `style-match` - Match style to product type
|
|
78
|
+
- `consistency` - Use same style across all pages
|
|
79
|
+
- `no-emoji-icons` - Use SVG icons, not emojis
|
|
80
|
+
|
|
81
|
+
### 8. Charts & Data (LOW)
|
|
82
|
+
|
|
83
|
+
- `chart-type` - Match chart type to data type
|
|
84
|
+
- `color-guidance` - Use accessible color palettes
|
|
85
|
+
- `data-table` - Provide table alternative for accessibility
|
|
86
|
+
|
|
87
|
+
## How to Use
|
|
88
|
+
|
|
89
|
+
Search specific domains using the CLI tool below.
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
## Prerequisites
|
|
95
|
+
|
|
96
|
+
Check if Python is installed:
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
python3 --version || python --version
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
If Python is not installed, install it based on user's OS:
|
|
103
|
+
|
|
104
|
+
**macOS:**
|
|
105
|
+
```bash
|
|
106
|
+
brew install python3
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
**Ubuntu/Debian:**
|
|
110
|
+
```bash
|
|
111
|
+
sudo apt update && sudo apt install python3
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
**Windows:**
|
|
115
|
+
```powershell
|
|
116
|
+
winget install Python.Python.3.12
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
---
|
|
120
|
+
|
|
121
|
+
## How to Use This Skill
|
|
122
|
+
|
|
123
|
+
When user requests UI/UX work (design, build, create, implement, review, fix, improve), follow this workflow:
|
|
124
|
+
|
|
125
|
+
### Step 1: Analyze User Requirements
|
|
126
|
+
|
|
127
|
+
Extract key information from user request:
|
|
128
|
+
- **Product type**: SaaS, e-commerce, portfolio, dashboard, landing page, etc.
|
|
129
|
+
- **Style keywords**: minimal, playful, professional, elegant, dark mode, etc.
|
|
130
|
+
- **Industry**: healthcare, fintech, gaming, education, etc.
|
|
131
|
+
- **Stack**: React, Vue, Next.js, or default to `html-tailwind`
|
|
132
|
+
|
|
133
|
+
### Step 2: Generate Design System (REQUIRED)
|
|
134
|
+
|
|
135
|
+
**Always start with `--design-system`** to get comprehensive recommendations with reasoning:
|
|
136
|
+
|
|
137
|
+
```bash
|
|
138
|
+
python3 .context/spec/design/tools/ui-ux-pro-max/scripts/search.py "<product_type> <industry> <keywords>" --design-system [-p "Project Name"]
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
This command:
|
|
142
|
+
1. Searches 5 domains in parallel (product, style, color, landing, typography)
|
|
143
|
+
2. Applies reasoning rules from `ui-reasoning.csv` to select best matches
|
|
144
|
+
3. Returns complete design system: pattern, style, colors, typography, effects
|
|
145
|
+
4. Includes anti-patterns to avoid
|
|
146
|
+
|
|
147
|
+
**Example:**
|
|
148
|
+
```bash
|
|
149
|
+
python3 .context/spec/design/tools/ui-ux-pro-max/scripts/search.py "beauty spa wellness service" --design-system -p "Serenity Spa"
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
### Step 2b: Persist Design System (Master + Overrides Pattern)
|
|
153
|
+
|
|
154
|
+
To save the design system for hierarchical retrieval across sessions, add `--persist`:
|
|
155
|
+
|
|
156
|
+
```bash
|
|
157
|
+
python3 .context/spec/design/tools/ui-ux-pro-max/scripts/search.py "<query>" --design-system --persist -p "Project Name"
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
This creates:
|
|
161
|
+
- `design-system/MASTER.md` — Global Source of Truth with all design rules
|
|
162
|
+
- `design-system/pages/` — Folder for page-specific overrides
|
|
163
|
+
|
|
164
|
+
**With page-specific override:**
|
|
165
|
+
```bash
|
|
166
|
+
python3 .context/spec/design/tools/ui-ux-pro-max/scripts/search.py "<query>" --design-system --persist -p "Project Name" --page "dashboard"
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
This also creates:
|
|
170
|
+
- `design-system/pages/dashboard.md` — Page-specific deviations from Master
|
|
171
|
+
|
|
172
|
+
**How hierarchical retrieval works:**
|
|
173
|
+
1. When building a specific page (e.g., "Checkout"), first check `design-system/pages/checkout.md`
|
|
174
|
+
2. If the page file exists, its rules **override** the Master file
|
|
175
|
+
3. If not, use `design-system/MASTER.md` exclusively
|
|
176
|
+
|
|
177
|
+
### Step 3: Supplement with Detailed Searches (as needed)
|
|
178
|
+
|
|
179
|
+
After getting the design system, use domain searches to get additional details:
|
|
180
|
+
|
|
181
|
+
```bash
|
|
182
|
+
python3 .context/spec/design/tools/ui-ux-pro-max/scripts/search.py "<keyword>" --domain <domain> [-n <max_results>]
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
**When to use detailed searches:**
|
|
186
|
+
|
|
187
|
+
| Need | Domain | Example |
|
|
188
|
+
|------|--------|---------|
|
|
189
|
+
| More style options | `style` | `--domain style "glassmorphism dark"` |
|
|
190
|
+
| Chart recommendations | `chart` | `--domain chart "real-time dashboard"` |
|
|
191
|
+
| UX best practices | `ux` | `--domain ux "animation accessibility"` |
|
|
192
|
+
| Alternative fonts | `typography` | `--domain typography "elegant luxury"` |
|
|
193
|
+
| Landing structure | `landing` | `--domain landing "hero social-proof"` |
|
|
194
|
+
|
|
195
|
+
### Step 4: Stack Guidelines (Default: html-tailwind)
|
|
196
|
+
|
|
197
|
+
Get implementation-specific best practices. If user doesn't specify a stack, **default to `html-tailwind`**.
|
|
198
|
+
|
|
199
|
+
```bash
|
|
200
|
+
python3 .context/spec/design/tools/ui-ux-pro-max/scripts/search.py "<keyword>" --stack html-tailwind
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
Available stacks: `html-tailwind`, `react`, `nextjs`, `vue`, `svelte`, `swiftui`, `react-native`, `flutter`, `shadcn`, `jetpack-compose`
|
|
204
|
+
|
|
205
|
+
---
|
|
206
|
+
|
|
207
|
+
## Search Reference
|
|
208
|
+
|
|
209
|
+
### Available Domains
|
|
210
|
+
|
|
211
|
+
| Domain | Use For | Example Keywords |
|
|
212
|
+
|--------|---------|------------------|
|
|
213
|
+
| `product` | Product type recommendations | SaaS, e-commerce, portfolio, healthcare, beauty, service |
|
|
214
|
+
| `style` | UI styles, colors, effects | glassmorphism, minimalism, dark mode, brutalism |
|
|
215
|
+
| `typography` | Font pairings, Google Fonts | elegant, playful, professional, modern |
|
|
216
|
+
| `color` | Color palettes by product type | saas, ecommerce, healthcare, beauty, fintech, service |
|
|
217
|
+
| `landing` | Page structure, CTA strategies | hero, hero-centric, testimonial, pricing, social-proof |
|
|
218
|
+
| `chart` | Chart types, library recommendations | trend, comparison, timeline, funnel, pie |
|
|
219
|
+
| `ux` | Best practices, anti-patterns | animation, accessibility, z-index, loading |
|
|
220
|
+
| `react` | React/Next.js performance | waterfall, bundle, suspense, memo, rerender, cache |
|
|
221
|
+
| `web` | Web interface guidelines | aria, focus, keyboard, semantic, virtualize |
|
|
222
|
+
| `prompt` | AI prompts, CSS keywords | (style name) |
|
|
223
|
+
|
|
224
|
+
### Available Stacks
|
|
225
|
+
|
|
226
|
+
| Stack | Focus |
|
|
227
|
+
|-------|-------|
|
|
228
|
+
| `html-tailwind` | Tailwind utilities, responsive, a11y (DEFAULT) |
|
|
229
|
+
| `react` | State, hooks, performance, patterns |
|
|
230
|
+
| `nextjs` | SSR, routing, images, API routes |
|
|
231
|
+
| `vue` | Composition API, Pinia, Vue Router |
|
|
232
|
+
| `svelte` | Runes, stores, SvelteKit |
|
|
233
|
+
| `swiftui` | Views, State, Navigation, Animation |
|
|
234
|
+
| `react-native` | Components, Navigation, Lists |
|
|
235
|
+
| `flutter` | Widgets, State, Layout, Theming |
|
|
236
|
+
| `shadcn` | shadcn/ui components, theming, forms, patterns |
|
|
237
|
+
| `jetpack-compose` | Composables, Modifiers, State Hoisting, Recomposition |
|
|
238
|
+
|
|
239
|
+
---
|
|
240
|
+
|
|
241
|
+
## Example Workflow
|
|
242
|
+
|
|
243
|
+
**User request:** "Làm landing page cho dịch vụ chăm sóc da chuyên nghiệp"
|
|
244
|
+
|
|
245
|
+
### Step 1: Analyze Requirements
|
|
246
|
+
- Product type: Beauty/Spa service
|
|
247
|
+
- Style keywords: elegant, professional, soft
|
|
248
|
+
- Industry: Beauty/Wellness
|
|
249
|
+
- Stack: html-tailwind (default)
|
|
250
|
+
|
|
251
|
+
### Step 2: Generate Design System (REQUIRED)
|
|
252
|
+
|
|
253
|
+
```bash
|
|
254
|
+
python3 .context/spec/design/tools/ui-ux-pro-max/scripts/search.py "beauty spa wellness service elegant" --design-system -p "Serenity Spa"
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
**Output:** Complete design system with pattern, style, colors, typography, effects, and anti-patterns.
|
|
258
|
+
|
|
259
|
+
### Step 3: Supplement with Detailed Searches (as needed)
|
|
260
|
+
|
|
261
|
+
```bash
|
|
262
|
+
# Get UX guidelines for animation and accessibility
|
|
263
|
+
python3 .context/spec/design/tools/ui-ux-pro-max/scripts/search.py "animation accessibility" --domain ux
|
|
264
|
+
|
|
265
|
+
# Get alternative typography options if needed
|
|
266
|
+
python3 .context/spec/design/tools/ui-ux-pro-max/scripts/search.py "elegant luxury serif" --domain typography
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
### Step 4: Stack Guidelines
|
|
270
|
+
|
|
271
|
+
```bash
|
|
272
|
+
python3 .context/spec/design/tools/ui-ux-pro-max/scripts/search.py "layout responsive form" --stack html-tailwind
|
|
273
|
+
```
|
|
274
|
+
|
|
275
|
+
**Then:** Synthesize design system + detailed searches and implement the design.
|
|
276
|
+
|
|
277
|
+
---
|
|
278
|
+
|
|
279
|
+
## Output Formats
|
|
280
|
+
|
|
281
|
+
The `--design-system` flag supports two output formats:
|
|
282
|
+
|
|
283
|
+
```bash
|
|
284
|
+
# ASCII box (default) - best for terminal display
|
|
285
|
+
python3 .context/spec/design/tools/ui-ux-pro-max/scripts/search.py "fintech crypto" --design-system
|
|
286
|
+
|
|
287
|
+
# Markdown - best for documentation
|
|
288
|
+
python3 .context/spec/design/tools/ui-ux-pro-max/scripts/search.py "fintech crypto" --design-system -f markdown
|
|
289
|
+
```
|
|
290
|
+
|
|
291
|
+
---
|
|
292
|
+
|
|
293
|
+
## Tips for Better Results
|
|
294
|
+
|
|
295
|
+
1. **Be specific with keywords** - "healthcare SaaS dashboard" > "app"
|
|
296
|
+
2. **Search multiple times** - Different keywords reveal different insights
|
|
297
|
+
3. **Combine domains** - Style + Typography + Color = Complete design system
|
|
298
|
+
4. **Always check UX** - Search "animation", "z-index", "accessibility" for common issues
|
|
299
|
+
5. **Use stack flag** - Get implementation-specific best practices
|
|
300
|
+
6. **Iterate** - If first search doesn't match, try different keywords
|
|
301
|
+
|
|
302
|
+
---
|
|
303
|
+
|
|
304
|
+
## Common Rules for Professional UI
|
|
305
|
+
|
|
306
|
+
These are frequently overlooked issues that make UI look unprofessional:
|
|
307
|
+
|
|
308
|
+
### Icons & Visual Elements
|
|
309
|
+
|
|
310
|
+
| Rule | Do | Don't |
|
|
311
|
+
|------|----|----- |
|
|
312
|
+
| **No emoji icons** | Use SVG icons (Heroicons, Lucide, Simple Icons) | Use emojis like 🎨 🚀 ⚙️ as UI icons |
|
|
313
|
+
| **Stable hover states** | Use color/opacity transitions on hover | Use scale transforms that shift layout |
|
|
314
|
+
| **Correct brand logos** | Research official SVG from Simple Icons | Guess or use incorrect logo paths |
|
|
315
|
+
| **Consistent icon sizing** | Use fixed viewBox (24x24) with w-6 h-6 | Mix different icon sizes randomly |
|
|
316
|
+
|
|
317
|
+
### Interaction & Cursor
|
|
318
|
+
|
|
319
|
+
| Rule | Do | Don't |
|
|
320
|
+
|------|----|----- |
|
|
321
|
+
| **Cursor pointer** | Add `cursor-pointer` to all clickable/hoverable cards | Leave default cursor on interactive elements |
|
|
322
|
+
| **Hover feedback** | Provide visual feedback (color, shadow, border) | No indication element is interactive |
|
|
323
|
+
| **Smooth transitions** | Use `transition-colors duration-200` | Instant state changes or too slow (>500ms) |
|
|
324
|
+
|
|
325
|
+
### Light/Dark Mode Contrast
|
|
326
|
+
|
|
327
|
+
| Rule | Do | Don't |
|
|
328
|
+
|------|----|----- |
|
|
329
|
+
| **Glass card light mode** | Use `bg-white/80` or higher opacity | Use `bg-white/10` (too transparent) |
|
|
330
|
+
| **Text contrast light** | Use `#0F172A` (slate-900) for text | Use `#94A3B8` (slate-400) for body text |
|
|
331
|
+
| **Muted text light** | Use `#475569` (slate-600) minimum | Use gray-400 or lighter |
|
|
332
|
+
| **Border visibility** | Use `border-gray-200` in light mode | Use `border-white/10` (invisible) |
|
|
333
|
+
|
|
334
|
+
### Layout & Spacing
|
|
335
|
+
|
|
336
|
+
| Rule | Do | Don't |
|
|
337
|
+
|------|----|----- |
|
|
338
|
+
| **Floating navbar** | Add `top-4 left-4 right-4` spacing | Stick navbar to `top-0 left-0 right-0` |
|
|
339
|
+
| **Content padding** | Account for fixed navbar height | Let content hide behind fixed elements |
|
|
340
|
+
| **Consistent max-width** | Use same `max-w-6xl` or `max-w-7xl` | Mix different container widths |
|
|
341
|
+
|
|
342
|
+
---
|
|
343
|
+
|
|
344
|
+
## Pre-Delivery Checklist
|
|
345
|
+
|
|
346
|
+
Before delivering UI code, verify these items:
|
|
347
|
+
|
|
348
|
+
### Visual Quality
|
|
349
|
+
- [ ] No emojis used as icons (use SVG instead)
|
|
350
|
+
- [ ] All icons from consistent icon set (Heroicons/Lucide)
|
|
351
|
+
- [ ] Brand logos are correct (verified from Simple Icons)
|
|
352
|
+
- [ ] Hover states don't cause layout shift
|
|
353
|
+
- [ ] Use theme colors directly (bg-primary) not var() wrapper
|
|
354
|
+
|
|
355
|
+
### Interaction
|
|
356
|
+
- [ ] All clickable elements have `cursor-pointer`
|
|
357
|
+
- [ ] Hover states provide clear visual feedback
|
|
358
|
+
- [ ] Transitions are smooth (150-300ms)
|
|
359
|
+
- [ ] Focus states visible for keyboard navigation
|
|
360
|
+
|
|
361
|
+
### Light/Dark Mode
|
|
362
|
+
- [ ] Light mode text has sufficient contrast (4.5:1 minimum)
|
|
363
|
+
- [ ] Glass/transparent elements visible in light mode
|
|
364
|
+
- [ ] Borders visible in both modes
|
|
365
|
+
- [ ] Test both modes before delivery
|
|
366
|
+
|
|
367
|
+
### Layout
|
|
368
|
+
- [ ] Floating elements have proper spacing from edges
|
|
369
|
+
- [ ] No content hidden behind fixed navbars
|
|
370
|
+
- [ ] Responsive at 375px, 768px, 1024px, 1440px
|
|
371
|
+
- [ ] No horizontal scroll on mobile
|
|
372
|
+
|
|
373
|
+
### Accessibility
|
|
374
|
+
- [ ] All images have alt text
|
|
375
|
+
- [ ] Form inputs have labels
|
|
376
|
+
- [ ] Color is not the only indicator
|
|
377
|
+
- [ ] `prefers-reduced-motion` respected
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
No,Data Type,Keywords,Best Chart Type,Secondary Options,Color Guidance,Performance Impact,Accessibility Notes,Library Recommendation,Interactive Level
|
|
2
|
+
1,Trend Over Time,"trend, time-series, line, growth, timeline, progress",Line Chart,"Area Chart, Smooth Area",Primary: #0080FF. Multiple series: use distinct colors. Fill: 20% opacity,⚡ Excellent (optimized),✓ Clear line patterns for colorblind users. Add pattern overlays.,"Chart.js, Recharts, ApexCharts",Hover + Zoom
|
|
3
|
+
2,Compare Categories,"compare, categories, bar, comparison, ranking",Bar Chart (Horizontal or Vertical),"Column Chart, Grouped Bar",Each bar: distinct color. Category: grouped same color. Sorted: descending order,⚡ Excellent,✓ Easy to compare. Add value labels on bars for clarity.,"Chart.js, Recharts, D3.js",Hover + Sort
|
|
4
|
+
3,Part-to-Whole,"part-to-whole, pie, donut, percentage, proportion, share",Pie Chart or Donut,"Stacked Bar, Treemap",Colors: 5-6 max. Contrasting palette. Large slices first. Use labels.,⚡ Good (limit 6 slices),⚠ Hard for accessibility. Better: Stacked bar with legend. Avoid pie if >5 items.,"Chart.js, Recharts, D3.js",Hover + Drill
|
|
5
|
+
4,Correlation/Distribution,"correlation, distribution, scatter, relationship, pattern",Scatter Plot or Bubble Chart,"Heat Map, Matrix",Color axis: gradient (blue-red). Size: relative. Opacity: 0.6-0.8 to show density,⚠ Moderate (many points),⚠ Provide data table alternative. Use pattern + color distinction.,"D3.js, Plotly, Recharts",Hover + Brush
|
|
6
|
+
5,Heatmap/Intensity,"heatmap, heat-map, intensity, density, matrix",Heat Map or Choropleth,"Grid Heat Map, Bubble Heat",Gradient: Cool (blue) to Hot (red). Scale: clear legend. Divergent for ±data,⚡ Excellent (color CSS),⚠ Colorblind: Use pattern overlay. Provide numerical legend.,"D3.js, Plotly, ApexCharts",Hover + Zoom
|
|
7
|
+
6,Geographic Data,"geographic, map, location, region, geo, spatial","Choropleth Map, Bubble Map",Geographic Heat Map,Regional: single color gradient or categorized colors. Legend: clear scale,⚠ Moderate (rendering),⚠ Include text labels for regions. Provide data table alternative.,"D3.js, Mapbox, Leaflet",Pan + Zoom + Drill
|
|
8
|
+
7,Funnel/Flow,funnel/flow,"Funnel Chart, Sankey",Waterfall (for flows),Stages: gradient (starting color → ending color). Show conversion %,⚡ Good,✓ Clear stage labels + percentages. Good for accessibility if labeled.,"D3.js, Recharts, Custom SVG",Hover + Drill
|
|
9
|
+
8,Performance vs Target,performance-vs-target,Gauge Chart or Bullet Chart,"Dial, Thermometer",Performance: Red→Yellow→Green gradient. Target: marker line. Threshold colors,⚡ Good,✓ Add numerical value + percentage label beside gauge.,"D3.js, ApexCharts, Custom SVG",Hover
|
|
10
|
+
9,Time-Series Forecast,time-series-forecast,Line with Confidence Band,Ribbon Chart,Actual: solid line #0080FF. Forecast: dashed #FF9500. Band: light shading,⚡ Good,✓ Clearly distinguish actual vs forecast. Add legend.,"Chart.js, ApexCharts, Plotly",Hover + Toggle
|
|
11
|
+
10,Anomaly Detection,anomaly-detection,Line Chart with Highlights,Scatter with Alert,Normal: blue #0080FF. Anomaly: red #FF0000 circle/square marker + alert,⚡ Good,✓ Circle/marker for anomalies. Add text alert annotation.,"D3.js, Plotly, ApexCharts",Hover + Alert
|
|
12
|
+
11,Hierarchical/Nested Data,hierarchical/nested-data,Treemap,"Sunburst, Nested Donut, Icicle",Parent: distinct hues. Children: lighter shades. White borders 2-3px.,⚠ Moderate,⚠ Poor - provide table alternative. Label large areas.,"D3.js, Recharts, ApexCharts",Hover + Drilldown
|
|
13
|
+
12,Flow/Process Data,flow/process-data,Sankey Diagram,"Alluvial, Chord Diagram",Gradient from source to target. Opacity 0.4-0.6 for flows.,⚠ Moderate,⚠ Poor - provide flow table alternative.,"D3.js (d3-sankey), Plotly",Hover + Drilldown
|
|
14
|
+
13,Cumulative Changes,cumulative-changes,Waterfall Chart,"Stacked Bar, Cascade",Increases: #4CAF50. Decreases: #F44336. Start: #2196F3. End: #0D47A1.,⚡ Good,✓ Good - clear directional colors with labels.,"ApexCharts, Highcharts, Plotly",Hover
|
|
15
|
+
14,Multi-Variable Comparison,multi-variable-comparison,Radar/Spider Chart,"Parallel Coordinates, Grouped Bar",Single: #0080FF 20% fill. Multiple: distinct colors per dataset.,⚡ Good,⚠ Moderate - limit 5-8 axes. Add data table.,"Chart.js, Recharts, ApexCharts",Hover + Toggle
|
|
16
|
+
15,Stock/Trading OHLC,stock/trading-ohlc,Candlestick Chart,"OHLC Bar, Heikin-Ashi",Bullish: #26A69A. Bearish: #EF5350. Volume: 40% opacity below.,⚡ Good,⚠ Moderate - provide OHLC data table.,"Lightweight Charts (TradingView), ApexCharts",Real-time + Hover + Zoom
|
|
17
|
+
16,Relationship/Connection Data,relationship/connection-data,Network Graph,"Hierarchical Tree, Adjacency Matrix",Node types: categorical colors. Edges: #90A4AE 60% opacity.,❌ Poor (500+ nodes struggles),❌ Very Poor - provide adjacency list alternative.,"D3.js (d3-force), Vis.js, Cytoscape.js",Drilldown + Hover + Drag
|
|
18
|
+
17,Distribution/Statistical,distribution/statistical,Box Plot,"Violin Plot, Beeswarm",Box: #BBDEFB. Border: #1976D2. Median: #D32F2F. Outliers: #F44336.,⚡ Excellent,"✓ Good - include stats table (min, Q1, median, Q3, max).","Plotly, D3.js, Chart.js (plugin)",Hover
|
|
19
|
+
18,Performance vs Target (Compact),performance-vs-target-(compact),Bullet Chart,"Gauge, Progress Bar","Ranges: #FFCDD2, #FFF9C4, #C8E6C9. Performance: #1976D2. Target: black 3px.",⚡ Excellent,✓ Excellent - compact with clear values.,"D3.js, Plotly, Custom SVG",Hover
|
|
20
|
+
19,Proportional/Percentage,proportional/percentage,Waffle Chart,"Pictogram, Stacked Bar 100%",10x10 grid. 3-5 categories max. 2-3px spacing between squares.,⚡ Good,✓ Good - better than pie for accessibility.,"D3.js, React-Waffle, Custom CSS Grid",Hover
|
|
21
|
+
20,Hierarchical Proportional,hierarchical-proportional,Sunburst Chart,"Treemap, Icicle, Circle Packing",Center to outer: darker to lighter. 15-20% lighter per level.,⚠ Moderate,⚠ Poor - provide hierarchy table alternative.,"D3.js (d3-hierarchy), Recharts, ApexCharts",Drilldown + Hover
|
|
22
|
+
21,Root Cause Analysis,"root cause, decomposition, tree, hierarchy, drill-down, ai-split",Decomposition Tree,"Decision Tree, Flow Chart",Nodes: #2563EB (Primary) vs #EF4444 (Negative impact). Connectors: Neutral grey.,⚠ Moderate (calculation heavy),✓ clear hierarchy. Allow keyboard navigation for nodes.,"Power BI (native), React-Flow, Custom D3.js",Drill + Expand
|
|
23
|
+
22,3D Spatial Data,"3d, spatial, immersive, terrain, molecular, volumetric",3D Scatter/Surface Plot,"Volumetric Rendering, Point Cloud",Depth cues: lighting/shading. Z-axis: color gradient (cool to warm).,❌ Heavy (WebGL required),❌ Poor - requires alternative 2D view or data table.,"Three.js, Deck.gl, Plotly 3D",Rotate + Zoom + VR
|
|
24
|
+
23,Real-Time Streaming,"streaming, real-time, ticker, live, velocity, pulse",Streaming Area Chart,"Ticker Tape, Moving Gauge",Current: Bright Pulse (#00FF00). History: Fading opacity. Grid: Dark.,⚡ Optimized (canvas/webgl),⚠ Flashing elements - provide pause button. High contrast.,Smoothed D3.js, CanvasJS
|
|
25
|
+
24,Sentiment/Emotion,"sentiment, emotion, nlp, opinion, feeling",Word Cloud with Sentiment,"Sentiment Arc, Radar Chart",Positive: #22C55E. Negative: #EF4444. Neutral: #94A3B8. Size = Frequency.,⚡ Good,⚠ Word clouds poor for screen readers. Use list view.,"D3-cloud, Highcharts, Nivo",Hover + Filter
|
|
26
|
+
25,Process Mining,"process, mining, variants, path, bottleneck, log",Process Map / Graph,"Directed Acyclic Graph (DAG), Petri Net",Happy path: #10B981 (Thick). Deviations: #F59E0B (Thin). Bottlenecks: #EF4444.,⚠ Moderate to Heavy,⚠ Complex graphs hard to navigate. Provide path summary.,"React-Flow, Cytoscape.js, Recharts",Drag + Node-Click
|