create-yss-spec 3.4.8 → 3.4.10
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 +1 -1
- package/package.json +1 -1
- package/src/template/attach-planner.js +5 -0
- package/src/template/sync-planner.js +5 -0
- package/template/.agents/skills/.strategic-design-skills-manifest.json +5 -5
- package/template/.agents/skills/alibaba-java-code-style/SKILL.md +2 -2
- package/template/.agents/skills/archify/SKILL.md +2 -19
- package/template/.agents/skills/archify/references/geometry-and-routing.md +20 -0
- package/template/.agents/skills/code-review/SKILL.md +3 -33
- package/template/.agents/skills/code-review/references/candidate-capture.md +33 -0
- package/template/.agents/skills/code-review/references/yss-review-standards.md +3 -5
- package/template/.agents/skills/codebase-design/SKILL.md +2 -2
- package/template/.agents/skills/competitive-intelligence/SKILL.md +1 -1
- package/template/.agents/skills/diagnosing-bugs/SKILL.md +6 -2
- package/template/.agents/skills/formily-foundation/SKILL.md +1 -1
- package/template/.agents/skills/formily-step-flow/SKILL.md +3 -2
- package/template/.agents/skills/frontend-commit/SKILL.md +6 -6
- package/template/.agents/skills/grilling/SKILL.md +2 -2
- package/template/.agents/skills/implement/SKILL.md +1 -1
- package/template/.agents/skills/implementation-repo-onboarding/SKILL.md +3 -3
- package/template/.agents/skills/implementation-repo-onboarding/references/write-scope.md +5 -0
- package/template/.agents/skills/improve-codebase-architecture/SKILL.md +10 -6
- package/template/.agents/skills/java-backend-commit/SKILL.md +5 -5
- package/template/.agents/skills/llm-wiki/SKILL.md +1 -1
- package/template/.agents/skills/prototype/SKILL.md +1 -1
- package/template/.agents/skills/prototype-review/SKILL.md +1 -1
- package/template/.agents/skills/resolving-merge-conflicts/SKILL.md +2 -2
- package/template/.agents/skills/tdd/SKILL.md +1 -1
- package/template/.agents/skills/to-questionnaire/SKILL.md +4 -2
- package/template/.agents/skills/to-spec/SKILL.md +3 -3
- package/template/.agents/skills/to-tickets/SKILL.md +7 -7
- package/template/.agents/skills/using-git-worktrees/SKILL.md +13 -11
- package/template/.agents/skills/wait-what/SKILL.md +1 -1
- package/template/.agents/skills/wayfinder/SKILL.md +4 -2
- package/template/.agents/skills/writing-for-agents/SKILL.md +9 -73
- package/template/.agents/skills/writing-for-agents/references/writing-principles.md +76 -0
- package/template/.agents/skills/yss-api-integration/SKILL.md +2 -2
- package/template/.agents/skills/yss-application/SKILL.md +12 -0
- package/template/.agents/skills/yss-audit-log/SKILL.md +3 -1
- package/template/.agents/skills/yss-audit-log/assets/AuditLogAspect.java +1 -0
- package/template/.agents/skills/yss-audit-log/assets/YssAuditLogPrintSubscriberImpl.java +1 -0
- package/template/.agents/skills/yss-audit-log/assets/YssAuditLogSysManagerSubscriberImpl.java +1 -0
- package/template/.agents/skills/yss-audit-log/assets/YssAuditPublishService.java +1 -0
- package/template/.agents/skills/yss-backend-spec-review/SKILL.md +6 -0
- package/template/.agents/skills/yss-backend-spec-review/references/check-inputs.md +2 -2
- package/template/.agents/skills/yss-backend-spec-review/references/standards-coverage.md +39 -0
- package/template/.agents/skills/yss-ddd-scaffold-generator/SKILL.md +5 -34
- package/template/.agents/skills/yss-ddd-scaffold-generator/references/command-examples.md +32 -0
- package/template/.agents/skills/yss-ddd-scaffold-generator/references/generator-maintenance.md +7 -0
- package/template/.agents/skills/yss-design-system/SKILL.md +2 -2
- package/template/.agents/skills/yss-domain/SKILL.md +17 -5
- package/template/.agents/skills/yss-domain/references/domain-layer-guide.md +2 -2
- package/template/.agents/skills/yss-domain/references/existing-project.md +5 -0
- package/template/.agents/skills/yss-dto/SKILL.md +13 -10
- package/template/.agents/skills/yss-dto/references/wire-validation-checklist.md +14 -0
- package/template/.agents/skills/yss-exception/SKILL.md +2 -2
- package/template/.agents/skills/yss-formily-schema-generator/SKILL.md +12 -12
- package/template/.agents/skills/yss-hook/SKILL.md +8 -44
- package/template/.agents/skills/yss-hook/references/use-request.md +42 -0
- package/template/.agents/skills/yss-implementation-contract-compiler/SKILL.md +3 -5
- package/template/.agents/skills/yss-implementation-contract-compiler/references/strategic-handoff-routing.md +7 -0
- package/template/.agents/skills/yss-implementation-contract-compiler/references/yss-skill-execution-result.md +5 -1
- package/template/.agents/skills/yss-layered-mvc-scaffold-generator/SKILL.md +2 -2
- package/template/.agents/skills/yss-mybatis/SKILL.md +10 -0
- package/template/.agents/skills/yss-openapi-draft-review/SKILL.md +3 -1
- package/template/.agents/skills/yss-openapi-governance/SKILL.md +5 -32
- package/template/.agents/skills/yss-openapi-governance/references/governance-output.md +34 -0
- package/template/.agents/skills/yss-product-lifecycle/SKILL.md +12 -6
- package/template/.agents/skills/yss-product-lifecycle/references/orchestration-contract.yaml +63 -1
- package/template/.agents/skills/yss-product-lifecycle/references/orchestration.md +2 -2
- package/template/.agents/skills/yss-prototype-stage/SKILL.md +3 -5
- package/template/.agents/skills/yss-prototype-stage/references/existing-ui-entry.md +7 -0
- package/template/.agents/skills/yss-prototype-stage/scripts/visual-baseline-contract.mjs +2 -2
- package/template/.agents/skills/yss-repository/SKILL.md +13 -1
- package/template/.agents/skills/yss-repository/references/profiles/existing-domain-driven-maven.md +7 -0
- package/template/.agents/skills/yss-repository/references/profiles/existing-layered-mvc-maven.md +7 -0
- package/template/.agents/skills/yss-repository/tests/profile-routing.test.mjs +3 -1
- package/template/.agents/skills/yss-stage-decision/SKILL.md +3 -1
- package/template/.agents/skills/yss-stage-decision/references/strategic-handoff-routing.md +3 -0
- package/template/.agents/skills/yss-tactical-design/SKILL.md +3 -3
- package/template/.agents/skills/yss-tactical-design/references/strategic-handoff-routing.md +5 -0
- package/template/.agents/skills/yss-technical-design/SKILL.md +2 -0
- package/template/.agents/skills/yss-technical-design/scripts/engineering-design.mjs +1 -1
- package/template/.agents/skills/yss-technical-design/scripts/validate-technical-design.mjs +11 -8
- package/template/.agents/skills/yss-ui-business-page-generation/SKILL.md +5 -3
- package/template/.agents/skills/yss-validation/SKILL.md +1 -1
- package/template/.agents/skills/yss-web-controller/SKILL.md +16 -7
- package/template/.agents/skills/ytable-usage/SKILL.md +2 -2
- package/template/.codex/skills/alibaba-java-code-style/SKILL.md +2 -2
- package/template/.codex/skills/archify/SKILL.md +2 -19
- package/template/.codex/skills/archify/references/geometry-and-routing.md +20 -0
- package/template/.codex/skills/code-review/SKILL.md +3 -33
- package/template/.codex/skills/code-review/references/candidate-capture.md +33 -0
- package/template/.codex/skills/code-review/references/yss-review-standards.md +3 -5
- package/template/.codex/skills/codebase-design/SKILL.md +2 -2
- package/template/.codex/skills/competitive-intelligence/SKILL.md +1 -1
- package/template/.codex/skills/data-analytics/mcp/server.cjs +2 -1
- package/template/.codex/skills/data-analytics/skills/analyze-data-quality/SKILL.md +9 -32
- package/template/.codex/skills/data-analytics/skills/analyze-data-quality/references/quality-checks.md +29 -0
- package/template/.codex/skills/data-analytics/skills/build-dashboard/SKILL.md +1 -1
- package/template/.codex/skills/data-analytics/skills/build-report/SKILL.md +4 -4
- package/template/.codex/skills/data-analytics/skills/build-report/report-to-google-doc/SKILL.md +12 -22
- package/template/.codex/skills/data-analytics/skills/build-report/report-to-google-doc/scripts/report_to_google_doc/cli.py +5 -10
- package/template/.codex/skills/data-analytics/skills/build-report/report-to-google-doc/scripts/report_to_google_doc/plan.py +47 -49
- package/template/.codex/skills/data-analytics/skills/build-report/report-to-google-doc/tests/test_delivery_plan.py +45 -0
- package/template/.codex/skills/data-analytics/skills/build-report/report-to-google-slides/SKILL.md +4 -5
- package/template/.codex/skills/data-analytics/skills/build-report/report-to-pdf/SKILL.md +1 -1
- package/template/.codex/skills/data-analytics/skills/build-report/specifications/mcp-app-report.md +1 -1
- package/template/.codex/skills/data-analytics/skills/design-kpis/SKILL.md +1 -1
- package/template/.codex/skills/data-analytics/skills/gather-business-context/SKILL.md +1 -1
- package/template/.codex/skills/data-analytics/skills/index/SKILL.md +4 -4
- package/template/.codex/skills/data-analytics/skills/jupyter-notebooks/SKILL.md +1 -1
- package/template/.codex/skills/data-analytics/skills/kpi-reporting/SKILL.md +2 -2
- package/template/.codex/skills/data-analytics/skills/market-sizing/SKILL.md +1 -1
- package/template/.codex/skills/data-analytics/skills/metric-diagnostics/SKILL.md +1 -1
- package/template/.codex/skills/data-analytics/skills/product-business-analysis/SKILL.md +1 -1
- package/template/.codex/skills/data-analytics/skills/spreadsheets/SKILL.md +4 -4
- package/template/.codex/skills/data-analytics/skills/user-context/SKILL.md +16 -14
- package/template/.codex/skills/data-analytics/skills/user-context/plugin-author-config/automation-config.md +1 -1
- package/template/.codex/skills/data-analytics/skills/user-context/references/onboarding-examples.md +1 -1
- package/template/.codex/skills/data-analytics/skills/user-context/references/onboarding.md +7 -7
- package/template/.codex/skills/data-analytics/skills/user-context/references/source-category-runtime.md +7 -7
- package/template/.codex/skills/data-analytics/skills/user-context/scripts/data_analytics_preflight.py +4 -2
- package/template/.codex/skills/data-analytics/skills/user-context/scripts/validate_user_context_preflight.py +5 -5
- package/template/.codex/skills/data-analytics/skills/user-context/tests/test_state_helpers.py +3 -3
- package/template/.codex/skills/data-analytics/skills/validate-data/SKILL.md +7 -71
- package/template/.codex/skills/data-analytics/skills/validate-data/references/validation-methods.md +70 -0
- package/template/.codex/skills/data-analytics/skills/visualize-data/SKILL.md +4 -4
- package/template/.codex/skills/data-analytics/src/analytics-app/App.tsx +1 -1
- package/template/.codex/skills/data-analytics/src/analytics-app-core.md +1 -1
- package/template/.codex/skills/diagnosing-bugs/SKILL.md +6 -2
- package/template/.codex/skills/formily-foundation/SKILL.md +1 -1
- package/template/.codex/skills/formily-step-flow/SKILL.md +3 -2
- package/template/.codex/skills/frontend-commit/SKILL.md +6 -6
- package/template/.codex/skills/grilling/SKILL.md +2 -2
- package/template/.codex/skills/implement/SKILL.md +1 -1
- package/template/.codex/skills/implementation-repo-onboarding/SKILL.md +3 -3
- package/template/.codex/skills/implementation-repo-onboarding/references/write-scope.md +5 -0
- package/template/.codex/skills/improve-codebase-architecture/SKILL.md +10 -6
- package/template/.codex/skills/java-backend-commit/SKILL.md +5 -5
- package/template/.codex/skills/llm-wiki/SKILL.md +1 -1
- package/template/.codex/skills/product-design/references/critical-overrides.md +3 -4
- package/template/.codex/skills/product-design/skills/audit/SKILL.md +1 -1
- package/template/.codex/skills/product-design/skills/design-qa/SKILL.md +1 -1
- package/template/.codex/skills/product-design/skills/get-context/SKILL.md +2 -1
- package/template/.codex/skills/product-design/skills/ideate/SKILL.md +2 -50
- package/template/.codex/skills/product-design/skills/ideate/references/image-prompt-patterns.md +51 -0
- package/template/.codex/skills/product-design/skills/image-to-code/SKILL.md +6 -6
- package/template/.codex/skills/product-design/skills/index/SKILL.md +2 -2
- package/template/.codex/skills/product-design/skills/prototype/SKILL.md +6 -6
- package/template/.codex/skills/product-design/skills/url-to-code/SKILL.md +1 -1
- package/template/.codex/skills/product-design/skills/user-context/SKILL.md +1 -1
- package/template/.codex/skills/prototype/SKILL.md +1 -1
- package/template/.codex/skills/prototype-review/SKILL.md +1 -1
- package/template/.codex/skills/resolving-merge-conflicts/SKILL.md +2 -2
- package/template/.codex/skills/tdd/SKILL.md +1 -1
- package/template/.codex/skills/to-questionnaire/SKILL.md +4 -2
- package/template/.codex/skills/to-spec/SKILL.md +3 -3
- package/template/.codex/skills/to-tickets/SKILL.md +7 -7
- package/template/.codex/skills/using-git-worktrees/SKILL.md +13 -11
- package/template/.codex/skills/wait-what/SKILL.md +1 -1
- package/template/.codex/skills/wayfinder/SKILL.md +4 -2
- package/template/.codex/skills/writing-for-agents/SKILL.md +9 -73
- package/template/.codex/skills/writing-for-agents/references/writing-principles.md +76 -0
- package/template/.codex/skills/yss-api-integration/SKILL.md +2 -2
- package/template/.codex/skills/yss-application/SKILL.md +12 -0
- package/template/.codex/skills/yss-audit-log/SKILL.md +3 -1
- package/template/.codex/skills/yss-audit-log/assets/AuditLogAspect.java +1 -0
- package/template/.codex/skills/yss-audit-log/assets/YssAuditLogPrintSubscriberImpl.java +1 -0
- package/template/.codex/skills/yss-audit-log/assets/YssAuditLogSysManagerSubscriberImpl.java +1 -0
- package/template/.codex/skills/yss-audit-log/assets/YssAuditPublishService.java +1 -0
- package/template/.codex/skills/yss-backend-spec-review/SKILL.md +6 -0
- package/template/.codex/skills/yss-backend-spec-review/references/check-inputs.md +2 -2
- package/template/.codex/skills/yss-backend-spec-review/references/standards-coverage.md +39 -0
- package/template/.codex/skills/yss-ddd-scaffold-generator/SKILL.md +5 -34
- package/template/.codex/skills/yss-ddd-scaffold-generator/references/command-examples.md +32 -0
- package/template/.codex/skills/yss-ddd-scaffold-generator/references/generator-maintenance.md +7 -0
- package/template/.codex/skills/yss-design-system/SKILL.md +2 -2
- package/template/.codex/skills/yss-domain/SKILL.md +17 -5
- package/template/.codex/skills/yss-domain/references/domain-layer-guide.md +2 -2
- package/template/.codex/skills/yss-domain/references/existing-project.md +5 -0
- package/template/.codex/skills/yss-dto/SKILL.md +13 -10
- package/template/.codex/skills/yss-dto/references/wire-validation-checklist.md +14 -0
- package/template/.codex/skills/yss-exception/SKILL.md +2 -2
- package/template/.codex/skills/yss-formily-schema-generator/SKILL.md +12 -12
- package/template/.codex/skills/yss-hook/SKILL.md +8 -44
- package/template/.codex/skills/yss-hook/references/use-request.md +42 -0
- package/template/.codex/skills/yss-implementation-contract-compiler/SKILL.md +3 -5
- package/template/.codex/skills/yss-implementation-contract-compiler/references/strategic-handoff-routing.md +7 -0
- package/template/.codex/skills/yss-implementation-contract-compiler/references/yss-skill-execution-result.md +5 -1
- package/template/.codex/skills/yss-layered-mvc-scaffold-generator/SKILL.md +2 -2
- package/template/.codex/skills/yss-mybatis/SKILL.md +10 -0
- package/template/.codex/skills/yss-openapi-draft-review/SKILL.md +3 -1
- package/template/.codex/skills/yss-openapi-governance/SKILL.md +5 -32
- package/template/.codex/skills/yss-openapi-governance/references/governance-output.md +34 -0
- package/template/.codex/skills/yss-product-lifecycle/SKILL.md +12 -6
- package/template/.codex/skills/yss-product-lifecycle/references/orchestration-contract.yaml +63 -1
- package/template/.codex/skills/yss-product-lifecycle/references/orchestration.md +2 -2
- package/template/.codex/skills/yss-prototype-stage/SKILL.md +3 -5
- package/template/.codex/skills/yss-prototype-stage/references/existing-ui-entry.md +7 -0
- package/template/.codex/skills/yss-prototype-stage/scripts/visual-baseline-contract.mjs +2 -2
- package/template/.codex/skills/yss-repository/SKILL.md +13 -1
- package/template/.codex/skills/yss-repository/references/profiles/existing-domain-driven-maven.md +7 -0
- package/template/.codex/skills/yss-repository/references/profiles/existing-layered-mvc-maven.md +7 -0
- package/template/.codex/skills/yss-repository/tests/profile-routing.test.mjs +3 -1
- package/template/.codex/skills/yss-stage-decision/SKILL.md +3 -1
- package/template/.codex/skills/yss-stage-decision/references/strategic-handoff-routing.md +3 -0
- package/template/.codex/skills/yss-tactical-design/SKILL.md +3 -3
- package/template/.codex/skills/yss-tactical-design/references/strategic-handoff-routing.md +5 -0
- package/template/.codex/skills/yss-technical-design/SKILL.md +2 -0
- package/template/.codex/skills/yss-technical-design/scripts/engineering-design.mjs +1 -1
- package/template/.codex/skills/yss-technical-design/scripts/validate-technical-design.mjs +11 -8
- package/template/.codex/skills/yss-ui-business-page-generation/SKILL.md +5 -3
- package/template/.codex/skills/yss-validation/SKILL.md +1 -1
- package/template/.codex/skills/yss-web-controller/SKILL.md +16 -7
- package/template/.codex/skills/ytable-usage/SKILL.md +2 -2
- package/template/.cursor/skills/alibaba-java-code-style/SKILL.md +2 -2
- package/template/.cursor/skills/archify/SKILL.md +2 -19
- package/template/.cursor/skills/archify/references/geometry-and-routing.md +20 -0
- package/template/.cursor/skills/code-review/SKILL.md +3 -33
- package/template/.cursor/skills/code-review/references/candidate-capture.md +33 -0
- package/template/.cursor/skills/code-review/references/yss-review-standards.md +3 -5
- package/template/.cursor/skills/codebase-design/SKILL.md +2 -2
- package/template/.cursor/skills/competitive-intelligence/SKILL.md +1 -1
- package/template/.cursor/skills/diagnosing-bugs/SKILL.md +6 -2
- package/template/.cursor/skills/formily-foundation/SKILL.md +1 -1
- package/template/.cursor/skills/formily-step-flow/SKILL.md +3 -2
- package/template/.cursor/skills/frontend-commit/SKILL.md +6 -6
- package/template/.cursor/skills/grilling/SKILL.md +2 -2
- package/template/.cursor/skills/implement/SKILL.md +1 -1
- package/template/.cursor/skills/implementation-repo-onboarding/SKILL.md +3 -3
- package/template/.cursor/skills/implementation-repo-onboarding/references/write-scope.md +5 -0
- package/template/.cursor/skills/improve-codebase-architecture/SKILL.md +10 -6
- package/template/.cursor/skills/java-backend-commit/SKILL.md +5 -5
- package/template/.cursor/skills/llm-wiki/SKILL.md +1 -1
- package/template/.cursor/skills/prototype/SKILL.md +1 -1
- package/template/.cursor/skills/prototype-review/SKILL.md +1 -1
- package/template/.cursor/skills/resolving-merge-conflicts/SKILL.md +2 -2
- package/template/.cursor/skills/tdd/SKILL.md +1 -1
- package/template/.cursor/skills/to-questionnaire/SKILL.md +4 -2
- package/template/.cursor/skills/to-spec/SKILL.md +3 -3
- package/template/.cursor/skills/to-tickets/SKILL.md +7 -7
- package/template/.cursor/skills/using-git-worktrees/SKILL.md +13 -11
- package/template/.cursor/skills/wait-what/SKILL.md +1 -1
- package/template/.cursor/skills/wayfinder/SKILL.md +4 -2
- package/template/.cursor/skills/writing-for-agents/SKILL.md +9 -73
- package/template/.cursor/skills/writing-for-agents/references/writing-principles.md +76 -0
- package/template/.cursor/skills/yss-api-integration/SKILL.md +2 -2
- package/template/.cursor/skills/yss-application/SKILL.md +12 -0
- package/template/.cursor/skills/yss-audit-log/SKILL.md +3 -1
- package/template/.cursor/skills/yss-audit-log/assets/AuditLogAspect.java +1 -0
- package/template/.cursor/skills/yss-audit-log/assets/YssAuditLogPrintSubscriberImpl.java +1 -0
- package/template/.cursor/skills/yss-audit-log/assets/YssAuditLogSysManagerSubscriberImpl.java +1 -0
- package/template/.cursor/skills/yss-audit-log/assets/YssAuditPublishService.java +1 -0
- package/template/.cursor/skills/yss-backend-spec-review/SKILL.md +6 -0
- package/template/.cursor/skills/yss-backend-spec-review/references/check-inputs.md +2 -2
- package/template/.cursor/skills/yss-backend-spec-review/references/standards-coverage.md +39 -0
- package/template/.cursor/skills/yss-ddd-scaffold-generator/SKILL.md +5 -34
- package/template/.cursor/skills/yss-ddd-scaffold-generator/references/command-examples.md +32 -0
- package/template/.cursor/skills/yss-ddd-scaffold-generator/references/generator-maintenance.md +7 -0
- package/template/.cursor/skills/yss-design-system/SKILL.md +2 -2
- package/template/.cursor/skills/yss-domain/SKILL.md +17 -5
- package/template/.cursor/skills/yss-domain/references/domain-layer-guide.md +2 -2
- package/template/.cursor/skills/yss-domain/references/existing-project.md +5 -0
- package/template/.cursor/skills/yss-dto/SKILL.md +13 -10
- package/template/.cursor/skills/yss-dto/references/wire-validation-checklist.md +14 -0
- package/template/.cursor/skills/yss-exception/SKILL.md +2 -2
- package/template/.cursor/skills/yss-formily-schema-generator/SKILL.md +12 -12
- package/template/.cursor/skills/yss-hook/SKILL.md +8 -44
- package/template/.cursor/skills/yss-hook/references/use-request.md +42 -0
- package/template/.cursor/skills/yss-implementation-contract-compiler/SKILL.md +3 -5
- package/template/.cursor/skills/yss-implementation-contract-compiler/references/strategic-handoff-routing.md +7 -0
- package/template/.cursor/skills/yss-implementation-contract-compiler/references/yss-skill-execution-result.md +5 -1
- package/template/.cursor/skills/yss-layered-mvc-scaffold-generator/SKILL.md +2 -2
- package/template/.cursor/skills/yss-mybatis/SKILL.md +10 -0
- package/template/.cursor/skills/yss-openapi-draft-review/SKILL.md +3 -1
- package/template/.cursor/skills/yss-openapi-governance/SKILL.md +5 -32
- package/template/.cursor/skills/yss-openapi-governance/references/governance-output.md +34 -0
- package/template/.cursor/skills/yss-product-lifecycle/SKILL.md +12 -6
- package/template/.cursor/skills/yss-product-lifecycle/references/orchestration-contract.yaml +63 -1
- package/template/.cursor/skills/yss-product-lifecycle/references/orchestration.md +2 -2
- package/template/.cursor/skills/yss-prototype-stage/SKILL.md +3 -5
- package/template/.cursor/skills/yss-prototype-stage/references/existing-ui-entry.md +7 -0
- package/template/.cursor/skills/yss-prototype-stage/scripts/visual-baseline-contract.mjs +2 -2
- package/template/.cursor/skills/yss-repository/SKILL.md +13 -1
- package/template/.cursor/skills/yss-repository/references/profiles/existing-domain-driven-maven.md +7 -0
- package/template/.cursor/skills/yss-repository/references/profiles/existing-layered-mvc-maven.md +7 -0
- package/template/.cursor/skills/yss-repository/tests/profile-routing.test.mjs +3 -1
- package/template/.cursor/skills/yss-stage-decision/SKILL.md +3 -1
- package/template/.cursor/skills/yss-stage-decision/references/strategic-handoff-routing.md +3 -0
- package/template/.cursor/skills/yss-tactical-design/SKILL.md +3 -3
- package/template/.cursor/skills/yss-tactical-design/references/strategic-handoff-routing.md +5 -0
- package/template/.cursor/skills/yss-technical-design/SKILL.md +2 -0
- package/template/.cursor/skills/yss-technical-design/scripts/engineering-design.mjs +1 -1
- package/template/.cursor/skills/yss-technical-design/scripts/validate-technical-design.mjs +11 -8
- package/template/.cursor/skills/yss-ui-business-page-generation/SKILL.md +5 -3
- package/template/.cursor/skills/yss-validation/SKILL.md +1 -1
- package/template/.cursor/skills/yss-web-controller/SKILL.md +16 -7
- package/template/.cursor/skills/ytable-usage/SKILL.md +2 -2
- package/template/.pi/skills/alibaba-java-code-style/SKILL.md +2 -2
- package/template/.pi/skills/archify/SKILL.md +2 -19
- package/template/.pi/skills/archify/references/geometry-and-routing.md +20 -0
- package/template/.pi/skills/code-review/SKILL.md +3 -33
- package/template/.pi/skills/code-review/references/candidate-capture.md +33 -0
- package/template/.pi/skills/code-review/references/yss-review-standards.md +3 -5
- package/template/.pi/skills/codebase-design/SKILL.md +2 -2
- package/template/.pi/skills/competitive-intelligence/SKILL.md +1 -1
- package/template/.pi/skills/diagnosing-bugs/SKILL.md +6 -2
- package/template/.pi/skills/formily-foundation/SKILL.md +1 -1
- package/template/.pi/skills/formily-step-flow/SKILL.md +3 -2
- package/template/.pi/skills/frontend-commit/SKILL.md +6 -6
- package/template/.pi/skills/grilling/SKILL.md +2 -2
- package/template/.pi/skills/implement/SKILL.md +1 -1
- package/template/.pi/skills/implementation-repo-onboarding/SKILL.md +3 -3
- package/template/.pi/skills/implementation-repo-onboarding/references/write-scope.md +5 -0
- package/template/.pi/skills/improve-codebase-architecture/SKILL.md +10 -6
- package/template/.pi/skills/java-backend-commit/SKILL.md +5 -5
- package/template/.pi/skills/llm-wiki/SKILL.md +1 -1
- package/template/.pi/skills/prototype/SKILL.md +1 -1
- package/template/.pi/skills/prototype-review/SKILL.md +1 -1
- package/template/.pi/skills/resolving-merge-conflicts/SKILL.md +2 -2
- package/template/.pi/skills/tdd/SKILL.md +1 -1
- package/template/.pi/skills/to-questionnaire/SKILL.md +4 -2
- package/template/.pi/skills/to-spec/SKILL.md +3 -3
- package/template/.pi/skills/to-tickets/SKILL.md +7 -7
- package/template/.pi/skills/using-git-worktrees/SKILL.md +13 -11
- package/template/.pi/skills/wait-what/SKILL.md +1 -1
- package/template/.pi/skills/wayfinder/SKILL.md +4 -2
- package/template/.pi/skills/writing-for-agents/SKILL.md +9 -73
- package/template/.pi/skills/writing-for-agents/references/writing-principles.md +76 -0
- package/template/.pi/skills/yss-api-integration/SKILL.md +2 -2
- package/template/.pi/skills/yss-application/SKILL.md +12 -0
- package/template/.pi/skills/yss-audit-log/SKILL.md +3 -1
- package/template/.pi/skills/yss-audit-log/assets/AuditLogAspect.java +1 -0
- package/template/.pi/skills/yss-audit-log/assets/YssAuditLogPrintSubscriberImpl.java +1 -0
- package/template/.pi/skills/yss-audit-log/assets/YssAuditLogSysManagerSubscriberImpl.java +1 -0
- package/template/.pi/skills/yss-audit-log/assets/YssAuditPublishService.java +1 -0
- package/template/.pi/skills/yss-backend-spec-review/SKILL.md +6 -0
- package/template/.pi/skills/yss-backend-spec-review/references/check-inputs.md +2 -2
- package/template/.pi/skills/yss-backend-spec-review/references/standards-coverage.md +39 -0
- package/template/.pi/skills/yss-ddd-scaffold-generator/SKILL.md +5 -34
- package/template/.pi/skills/yss-ddd-scaffold-generator/references/command-examples.md +32 -0
- package/template/.pi/skills/yss-ddd-scaffold-generator/references/generator-maintenance.md +7 -0
- package/template/.pi/skills/yss-design-system/SKILL.md +2 -2
- package/template/.pi/skills/yss-domain/SKILL.md +17 -5
- package/template/.pi/skills/yss-domain/references/domain-layer-guide.md +2 -2
- package/template/.pi/skills/yss-domain/references/existing-project.md +5 -0
- package/template/.pi/skills/yss-dto/SKILL.md +13 -10
- package/template/.pi/skills/yss-dto/references/wire-validation-checklist.md +14 -0
- package/template/.pi/skills/yss-exception/SKILL.md +2 -2
- package/template/.pi/skills/yss-formily-schema-generator/SKILL.md +12 -12
- package/template/.pi/skills/yss-hook/SKILL.md +8 -44
- package/template/.pi/skills/yss-hook/references/use-request.md +42 -0
- package/template/.pi/skills/yss-implementation-contract-compiler/SKILL.md +3 -5
- package/template/.pi/skills/yss-implementation-contract-compiler/references/strategic-handoff-routing.md +7 -0
- package/template/.pi/skills/yss-implementation-contract-compiler/references/yss-skill-execution-result.md +5 -1
- package/template/.pi/skills/yss-layered-mvc-scaffold-generator/SKILL.md +2 -2
- package/template/.pi/skills/yss-mybatis/SKILL.md +10 -0
- package/template/.pi/skills/yss-openapi-draft-review/SKILL.md +3 -1
- package/template/.pi/skills/yss-openapi-governance/SKILL.md +5 -32
- package/template/.pi/skills/yss-openapi-governance/references/governance-output.md +34 -0
- package/template/.pi/skills/yss-product-lifecycle/SKILL.md +12 -6
- package/template/.pi/skills/yss-product-lifecycle/references/orchestration-contract.yaml +63 -1
- package/template/.pi/skills/yss-product-lifecycle/references/orchestration.md +2 -2
- package/template/.pi/skills/yss-prototype-stage/SKILL.md +3 -5
- package/template/.pi/skills/yss-prototype-stage/references/existing-ui-entry.md +7 -0
- package/template/.pi/skills/yss-prototype-stage/scripts/visual-baseline-contract.mjs +2 -2
- package/template/.pi/skills/yss-repository/SKILL.md +13 -1
- package/template/.pi/skills/yss-repository/references/profiles/existing-domain-driven-maven.md +7 -0
- package/template/.pi/skills/yss-repository/references/profiles/existing-layered-mvc-maven.md +7 -0
- package/template/.pi/skills/yss-repository/tests/profile-routing.test.mjs +3 -1
- package/template/.pi/skills/yss-stage-decision/SKILL.md +3 -1
- package/template/.pi/skills/yss-stage-decision/references/strategic-handoff-routing.md +3 -0
- package/template/.pi/skills/yss-tactical-design/SKILL.md +3 -3
- package/template/.pi/skills/yss-tactical-design/references/strategic-handoff-routing.md +5 -0
- package/template/.pi/skills/yss-technical-design/SKILL.md +2 -0
- package/template/.pi/skills/yss-technical-design/scripts/engineering-design.mjs +1 -1
- package/template/.pi/skills/yss-technical-design/scripts/validate-technical-design.mjs +11 -8
- package/template/.pi/skills/yss-ui-business-page-generation/SKILL.md +5 -3
- package/template/.pi/skills/yss-validation/SKILL.md +1 -1
- package/template/.pi/skills/yss-web-controller/SKILL.md +16 -7
- package/template/.pi/skills/ytable-usage/SKILL.md +2 -2
- package/template/AGENTS.md +2 -0
- package/template/CONTEXT.md +2 -1
- package/template/README.md +1 -0
- package/template/docs/agents/issue-tracker.md +7 -0
- package/template/docs/process/contract-reading.md +46 -0
- package/template/docs/process/lifecycle-artifact-map.md +2 -2
- package/template/docs/process/lifecycle-registry-baseline.json +2 -1
- package/template/docs/process/lifecycle-registry.yaml +10 -4
- package/template/docs/process/schemas/api-contract-decision-v2.schema.json +198 -0
- package/template/docs/process/schemas/digital-human-task-package.schema.json +68 -4
- package/template/docs/process/schemas/lifecycle-checkpoint.schema.json +259 -0
- package/template/docs/process/schemas/stage-tracking.schema.json +259 -0
- package/template/docs/process/stage-tracking.md +62 -0
- package/template/docs/process/strategic-handoff-package.md +8 -0
- package/template/docs/user-guide//347/224/250/346/210/267/346/211/213/345/206/214.md +2 -0
- package/template/docs/user-guide//347/224/250/346/210/267/346/211/213/345/206/214/347/264/242/345/274/225.md +1 -0
- package/template/docs/user-guide//351/230/266/346/256/265/346/216/245/345/205/245/344/270/216/344/272/247/347/211/251/345/244/215/347/224/250/344/275/277/347/224/250/346/211/213/345/206/214.md +243 -0
- package/template/scripts/api-contract-decision +16 -0
- package/template/scripts/backend-standards-coverage +26 -0
- package/template/scripts/complete-backend-delivery +17 -0
- package/template/scripts/contract +13 -0
- package/template/scripts/dispatch-slice-task +13 -0
- package/template/scripts/lib/api-contract-decision.mjs +45 -4
- package/template/scripts/lib/approval-record.mjs +1 -1
- package/template/scripts/lib/approved-execution-context.mjs +35 -7
- package/template/scripts/lib/backend-architecture.mjs +2 -2
- package/template/scripts/lib/backend-delivery-terminal.mjs +51 -0
- package/template/scripts/lib/backend-platform-provenance.mjs +1 -1
- package/template/scripts/lib/backend-platform.mjs +1 -1
- package/template/scripts/lib/backend-review.mjs +58 -20
- package/template/scripts/lib/backend-scaffold-prerequisites.mjs +1 -1
- package/template/scripts/lib/backend-standards-coverage.mjs +237 -0
- package/template/scripts/lib/context-contract.mjs +1 -1
- package/template/scripts/lib/context-reconciliation.mjs +1 -1
- package/template/scripts/lib/contract-source.mjs +22 -0
- package/template/scripts/lib/contract-views.mjs +109 -0
- package/template/scripts/lib/delivery-preflight.mjs +3 -2
- package/template/scripts/lib/digital-human-roles.mjs +1 -1
- package/template/scripts/lib/existing-backend-architecture.mjs +4 -3
- package/template/scripts/lib/existing-ui-baseline.mjs +4 -2
- package/template/scripts/lib/first-slice-artifacts.mjs +1 -1
- package/template/scripts/lib/frontend-delivery-boundary.mjs +1 -1
- package/template/scripts/lib/frontend-delivery.mjs +1 -1
- package/template/scripts/lib/harness-execution-scope.mjs +15 -1
- package/template/scripts/lib/implementation-contract-compiler.mjs +4 -4
- package/template/scripts/lib/json-schema.mjs +19 -4
- package/template/scripts/lib/lifecycle-context-query.mjs +5 -1
- package/template/scripts/lib/lifecycle-controls.mjs +1 -1
- package/template/scripts/lib/lifecycle-execution-scope.mjs +92 -0
- package/template/scripts/lib/lifecycle-registry.mjs +2 -1
- package/template/scripts/lib/lifecycle-transition.mjs +25 -4
- package/template/scripts/lib/openapi-draft-validation.mjs +2 -1
- package/template/scripts/lib/profile-skill-sync.mjs +46 -5
- package/template/scripts/lib/skill-registry.mjs +1 -1
- package/template/scripts/lib/slice-contract-preparation.mjs +16 -14
- package/template/scripts/lib/slice-contract-views.mjs +1 -1
- package/template/scripts/lib/slice-contract.mjs +18 -3
- package/template/scripts/lib/slice-execution-preflight.mjs +7 -3
- package/template/scripts/lib/slice-repositories.mjs +1 -1
- package/template/scripts/lib/slice-task-package.mjs +3 -2
- package/template/scripts/lib/stage-tracking-migration.mjs +176 -0
- package/template/scripts/lib/stage-tracking.mjs +184 -0
- package/template/scripts/lib/strategic-handoff-consumption.mjs +5 -4
- package/template/scripts/lib/strategic-handoff-io.mjs +5 -2
- package/template/scripts/lib/strategic-handoff-routing.mjs +31 -0
- package/template/scripts/lib/strategic-handoff.mjs +4 -2
- package/template/scripts/lib/task-package.mjs +2 -0
- package/template/scripts/lib/technical-design-boundary.mjs +4 -2
- package/template/scripts/lib/ui-baseline.mjs +1 -1
- package/template/scripts/lib/user-decision.mjs +1 -1
- package/template/scripts/lib/validation-phase.mjs +72 -0
- package/template/scripts/stage-tracking +25 -0
- package/template/scripts/strategic-consumer-entry +47 -0
- package/template/scripts/verify-context-reconciliation +4 -3
- package/template/scripts/verify-lifecycle-checkpoint +10 -0
- package/template/skills-lock.json +65 -63
- package/template.snapshot.json +4 -4
|
@@ -11,7 +11,7 @@ Create quantitative visuals that are analytically sound, immediately readable, a
|
|
|
11
11
|
|
|
12
12
|
### User Context
|
|
13
13
|
|
|
14
|
-
Mandatory pre-answer gate: Invoke `data-analytics:user-context` in preflight mode by loading [data-analytics:user-context](../user-context/SKILL.md) and
|
|
14
|
+
Mandatory pre-answer gate: Invoke `data-analytics:user-context` in preflight mode by loading [data-analytics:user-context](../user-context/SKILL.md) and using its read-only preflight before source selection. Reuse the already loaded envelope within the same workflow while the resolved state paths, file digests, request mode and source scope are unchanged; re-read on change, missing context or explicit inspection. Do not look for a callable MCP tool named `data-analytics:user-context`. Use the returned `data_analytics_preflight` envelope as the source of truth for saved context, source-category mapping, semantic-layer registry, onboarding/final-response obligations, and conditional guidance; use saved context and semantic layers as source-selection inputs, not as substitutes for workflow-time reads from connected or provided sources. Do not read or reinterpret raw plugin state files unless preflight fails, declares required content omitted, local shell access is unavailable, or the user explicitly asks for raw state inspection.
|
|
15
15
|
|
|
16
16
|
## Chart Selection
|
|
17
17
|
|
|
@@ -92,7 +92,7 @@ Concrete forms such as `highlighted multi-series line`, `Likert`, `pie`, `Pareto
|
|
|
92
92
|
- In multi-area executive reports, repeated line charts are a smell. Use line charts only where the main question is continuous movement over time. Consider dot/lollipop or bar with reference for plan variance, stacked area or 100% stacked bar for mix, ranked bars or leaderboards for category comparisons, waterfall for additive drivers, heatmaps for cohort or matrix structure, and stage bars for ordered progression.
|
|
93
93
|
- For one-slide-per-area executive reports, do a chart-family pass before writing the visual plan. Audit repeated families and require a rationale when multiple sections use the same family despite asking different questions.
|
|
94
94
|
- If every visual in a report uses the same family, document the reason in the chart map and verify that no section is actually asking for status, mix, variance, or drivers.
|
|
95
|
-
-
|
|
95
|
+
- Repeated line charts are appropriate for comparable trends. Review readability and decision value; chart count or chart-family repetition alone is not a failure.
|
|
96
96
|
|
|
97
97
|
### Surface And Implementation
|
|
98
98
|
|
|
@@ -133,7 +133,7 @@ Concrete forms such as `highlighted multi-series line`, `Likert`, `pie`, `Pareto
|
|
|
133
133
|
- For HTML artifacts, keep standalone charts on real grid footprints: `8 columns` by default, `6` minimum, `10` or `12` for complex charts, stacked vertically on mobile. Align multi-chart rows from the left/start edge.
|
|
134
134
|
- Match HTML chart containers, legends, KPI strips, and notes to the same Data Viz System tokens as the surrounding report or dashboard. Remove unused multi-hue CSS variables when they are not rendered.
|
|
135
135
|
- Use dark chart variants only when the containing artifact is dark. Inspect both light and dark variants for shipped branded web outputs.
|
|
136
|
-
-
|
|
136
|
+
- Use a brand mark only when the user's selected brand profile requests it and supplies an authorized asset. Do not inject OpenAI or vendor branding by default.
|
|
137
137
|
|
|
138
138
|
### Quality Bar
|
|
139
139
|
|
|
@@ -152,6 +152,6 @@ Concrete forms such as `highlighted multi-series line`, `Likert`, `pie`, `Pareto
|
|
|
152
152
|
- Exported SVG or HTML colors should match declared palette roots plus neutrals; remove unused multi-hue tokens unless documenting an intentional exception.
|
|
153
153
|
- Chart scaffolding should stay quiet: no arbitrary colored backgrounds, gradients, decorative guides, inconsistent stroke widths, or decorative mark fills. Filled marks should keep keylines, and benchmark, calibration, and reference lines should use dark-neutral styling.
|
|
154
154
|
- Titles, legends, and primary labels should use dark ink and share a clear header anchor. Numeric ticks and direct value labels should use mono styling where the template system calls for it.
|
|
155
|
-
-
|
|
155
|
+
- Apply a brand mark only when the selected user brand profile requests and supplies it.
|
|
156
156
|
- Before handoff, inspect the visual in the artifact readers will open and verify that it answers the stated analytical question, signs and scales are honest, labels fit at laptop and mobile widths, the color and non-color encoding is understandable, and the caption states metric, time window, and source when those are part of the visual.
|
|
157
157
|
- Inspect the final report, slide, dashboard, notebook, widget, or HTML layout before handoff. Revise before delivery when any requirement above fails.
|
|
@@ -2692,7 +2692,7 @@ const context = promptContext(manifest, snapshot, packageInfo);
|
|
|
2692
2692
|
if (target === "site") {
|
|
2693
2693
|
return `Publish this ${surface} app as a hosted Site Creator link.
|
|
2694
2694
|
|
|
2695
|
-
Use the current Data Analytics artifact as the source of truth. Create or reuse a Site Creator project for this ${surface}, materialize a Cloudflare Worker-compatible app that serves the current manifest, bounded snapshot, package metadata, and inline-safe source text through /api/manifest, /api/snapshot, /api/package, and /api/source-file, then deploy it through Site Creator. Preserve the rendered layout, charts, tables, source details, and narrative.
|
|
2695
|
+
Use the current Data Analytics artifact as the source of truth. Create or reuse a Site Creator project for this ${surface}, materialize a Cloudflare Worker-compatible app that serves the current manifest, bounded snapshot, package metadata, and inline-safe source text through /api/manifest, /api/snapshot, /api/package, and /api/source-file, then deploy it through Site Creator. Preserve the rendered layout, charts, tables, source details, and narrative. Use the access scope I explicitly selected. If no access scope has been selected, keep the package local and ask for that publishing decision before deployment. Report the production URL and actual access mode only after successful deployment.
|
|
2696
2696
|
|
|
2697
2697
|
If the local package files are unavailable from the context below, stop and ask for the report package or validated artifact payload rather than publishing an empty or stale report.
|
|
2698
2698
|
|
|
@@ -58,7 +58,7 @@ Use this file after the selected delivery surface is an MCP Apps inline chart/ta
|
|
|
58
58
|
- Do not rebuild the report as standalone HTML, inline CSS charts, or a separate one-off viewer. Hosted sharing is a packaging step for the current artifact, not a second rendering implementation.
|
|
59
59
|
- Treat Site Creator exports as read-only reader surfaces by default: hide artifact editing controls and remove `Publish to Sites` from hosted export menus. Authoring should happen in the MCP artifact, followed by a new export/deploy.
|
|
60
60
|
- Keep static HTML and PDF exports content-only: include the report or dashboard title, narrative, charts, tables, and source details, but omit the interactive top bar and app-only controls.
|
|
61
|
-
-
|
|
61
|
+
- Use the explicitly selected sharing audience; if none exists, preserve local/private output until sharing is requested.
|
|
62
62
|
|
|
63
63
|
## Encoding Rules
|
|
64
64
|
|
|
@@ -15,6 +15,10 @@ This skill has you show commands, outputs and captured artifacts. **Redact every
|
|
|
15
15
|
|
|
16
16
|
If the redacted output is not enough to diagnose the bug, say so and ask the user.
|
|
17
17
|
|
|
18
|
+
## Simple fixes and complex investigations
|
|
19
|
+
|
|
20
|
+
When a bounded defect has confirmed inputs and a known public seam, run a direct reproducer, make the authorized minimal fix and run the regression check. Do not restart an interview, minimize an already minimal case, or invent extra hypotheses. Use the phases below when the cause, environment or reproduction is uncertain.
|
|
21
|
+
|
|
18
22
|
## Phase 1 — Build a feedback loop
|
|
19
23
|
|
|
20
24
|
**This is the skill.** Everything else is mechanical. If you have a **tight** pass/fail signal for the bug — one that goes red on _this_ bug — you will find the cause; bisection, hypothesis-testing, and instrumentation all just consume it. If you don't have one, no amount of staring at code will save you.
|
|
@@ -83,11 +87,11 @@ Why bother: a minimal repro shrinks the hypothesis space in Phase 3 (fewer movin
|
|
|
83
87
|
|
|
84
88
|
Done when **every remaining element is load-bearing** — removing any one of them makes the loop go green.
|
|
85
89
|
|
|
86
|
-
|
|
90
|
+
Minimize further only while it removes meaningful uncertainty. Preserve representative conditions; do not spend effort proving every remaining element essential when the cause can already be tested directly.
|
|
87
91
|
|
|
88
92
|
## Phase 3 — Hypothesise
|
|
89
93
|
|
|
90
|
-
Generate
|
|
94
|
+
Generate enough competing falsifiable hypotheses to distinguish plausible causes. For a clear, bounded defect one directly testable hypothesis can be sufficient; complex or ambiguous failures need alternatives, without a fixed count.
|
|
91
95
|
|
|
92
96
|
Each hypothesis must be **falsifiable**: state the prediction it makes.
|
|
93
97
|
|
|
@@ -79,7 +79,7 @@ const schema: ISchema = {
|
|
|
79
79
|
'x-component': 'FormGrid',
|
|
80
80
|
'x-component-props': { maxColumns: 3, minColumns: 1, minWidth: 260 },
|
|
81
81
|
properties: {
|
|
82
|
-
name: { type: 'string', title: '名称', 'x-decorator': 'FormItem', 'x-component': 'Input', required: true },
|
|
82
|
+
name: { type: 'string', title: '名称', 'x-decorator': 'FormItem', 'x-component': 'Input', required: true, 'x-validator': [{ required: true, whitespace: true, message: '请输入名称' }] },
|
|
83
83
|
submit: {
|
|
84
84
|
type: 'void',
|
|
85
85
|
'x-component': 'Submit',
|
|
@@ -100,6 +100,7 @@ const step1Schema = createStepSchema({
|
|
|
100
100
|
type: 'string',
|
|
101
101
|
title: '任务名称',
|
|
102
102
|
required: true,
|
|
103
|
+
'x-validator': [{ required: true, whitespace: true, message: '请输入任务名称' }],
|
|
103
104
|
'x-decorator': 'FormItem',
|
|
104
105
|
'x-component': 'Input',
|
|
105
106
|
},
|
|
@@ -173,7 +174,7 @@ const submitAll = async () => {
|
|
|
173
174
|
</template>
|
|
174
175
|
```
|
|
175
176
|
|
|
176
|
-
|
|
177
|
+
当 schema、步骤状态和页面编排难以独立理解或验证时,分别拆到 `constant.ts`、`hooks/useStepFlow.ts`;以职责清晰和状态可测试为准,不按固定行数拆分。
|
|
177
178
|
|
|
178
179
|
## 交付检查清单
|
|
179
180
|
|
|
@@ -191,4 +192,4 @@ const submitAll = async () => {
|
|
|
191
192
|
- 状态串联错误时先收敛为单一 `reactive` 数据源,再检查每步 `v-model` 路径。
|
|
192
193
|
- 确认页为空时检查是否错误绑定了独立 `step3`,应改为前序数据的 `computed` 聚合。
|
|
193
194
|
- API 调用 reject 时只在 `finally` 恢复 loading,不重复弹出错误提示。
|
|
194
|
-
-
|
|
195
|
+
- 步骤职责交叉或状态难以验证时,按业务阶段拆子组件和 `useStepXxx` hook。
|
|
@@ -15,7 +15,7 @@ description: "为前端改动生成提交信息、审查原子提交或修复 Gi
|
|
|
15
15
|
## 不适用场景
|
|
16
16
|
|
|
17
17
|
- yss-ui 组件库仓库自身的提交与发版:回到 yss-ui 源仓库使用其 `categories.library` 提交流程;该类 skill 不随业务模板分发。
|
|
18
|
-
- Java、Spring Boot、Maven、Gradle
|
|
18
|
+
- Java、Spring Boot、Maven、Gradle 后端仓库:回交目标后端 profile 的 `java-backend-commit`;本 profile 不臆造跨目录链接。
|
|
19
19
|
- 仅请求代码实现,不涉及提交信息或 `git commit` 操作。
|
|
20
20
|
- 无代码改动,或改动内容与提交请求不匹配。
|
|
21
21
|
- 合并提交、发布提交和自动依赖机器人提交:遵循仓库专用流程,不套用本技能的常规消息模板。
|
|
@@ -65,15 +65,15 @@ git ls-files --others --exclude-standard
|
|
|
65
65
|
|
|
66
66
|
- type 默认从 `feat/fix/docs/style/refactor/perf/test/chore/revert/build/ci` 中选择,但仓库枚举优先。
|
|
67
67
|
- scope 优先级为:仓库枚举 → monorepo 包或应用 → 业务模块 → 共享能力。使用小写 kebab-case;不要机械地以 `views`、`hooks` 或文件名作为 scope。
|
|
68
|
-
-
|
|
69
|
-
- 默认将完整 header 控制在 72
|
|
68
|
+
- 标题使用仓库确定的 type/scope、分隔符和语言;无既定规则时默认英文 type/scope、ASCII `:` 和中文摘要;描述行为或价值,不写“修改文件”“更新代码”或单个文件名。
|
|
69
|
+
- 默认将完整 header 控制在 72 个字符内;仓库配置了其他限制时服从该配置。标题末尾不加句号,不用 emoji 或全角冒号。
|
|
70
70
|
- 简单单文件变更可以没有 body;多文件、非显然修复、重要功能或行为变化使用 body 解释做了什么、为什么以及如何验证。
|
|
71
71
|
- 仅对真实不兼容变更使用 `!` 和 `BREAKING CHANGE:`;仅在已知编号或仓库要求时加入工单、DCO、`Signed-off-by` 等 footer,禁止编造。
|
|
72
72
|
|
|
73
73
|
### 4. 验证并提交
|
|
74
74
|
|
|
75
75
|
1. 根据变更范围运行仓库已有的最小充分检查,例如相关单元测试、类型检查、lint 和构建检查;优先使用仓库脚本与当前包管理器。
|
|
76
|
-
2. 通过 stdin 校验完整候选消息,而不只校验 header
|
|
76
|
+
2. 通过 stdin 校验完整候选消息,而不只校验 header。仅在仓库实际采用 commitlint 时使用其本地命令并要求退出码 0;否则按现有 hook/贡献指南验证,不安装新工具。
|
|
77
77
|
3. 仅暂存属于当前原子提交的明确路径或安全 hunks,再重新检查 `git diff --cached --check`、`--name-status` 和完整 staged diff。
|
|
78
78
|
4. 执行正常 `git commit`,允许 hooks 运行。
|
|
79
79
|
5. hook 若格式化或修改文件,重新检查 staged 与 working tree,确认实际提交内容没有漂移。
|
|
@@ -102,9 +102,9 @@ feat(data-push): 优化推送任务数据源与调度规则展示
|
|
|
102
102
|
|
|
103
103
|
## 交付检查清单
|
|
104
104
|
|
|
105
|
-
- [ ]
|
|
105
|
+
- [ ] 完整消息通过仓库实际采用的提交校验;采用 commitlint 时记录 stdin 校验退出码 0。
|
|
106
106
|
- [ ] scope 来自仓库枚举、包名或业务模块,未使用 `views`、`hooks`、`utils` 或文件名兜底。
|
|
107
|
-
- [ ]
|
|
107
|
+
- [ ] 标题语言、type/scope 和长度符合仓库配置;无配置时才使用本技能回退格式。
|
|
108
108
|
- [ ] 暂存区只包含当前原子提交的文件;lockfile 与对应 manifest 同提交。
|
|
109
109
|
- [ ] 已运行与变更范围匹配的最小充分检查(相关测试、类型检查、lint)。
|
|
110
110
|
- [ ] 提交后已核对 `git show --stat` 与 `git status --short`,并向用户报告 hash 与剩余改动。
|
|
@@ -23,6 +23,6 @@ Format a round like so:
|
|
|
23
23
|
|
|
24
24
|
Each round the user answers reshapes the tree — settled decisions push the frontier outward and unblock questions that depended on them. Recompute the frontier and ask the next round. A question whose answer depends on another question still open in this round belongs to a _later_ round, not this one.
|
|
25
25
|
|
|
26
|
-
Finding _facts_ is your job, never the user's. When a frontier question needs
|
|
26
|
+
Finding _facts_ is your job, never the user's. When a frontier question needs an environment fact, look it up directly; delegate only when an independent bounded investigation can run usefully alongside other work — don't ask the user for anything you could look up yourself. Don't block on it: a running exploration is an unsettled prerequisite, so only the questions downstream of it wait for the sub-agent to report — ask the rest of the frontier now. The _decisions_ are the user's — put each to them and wait.
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
Stop when decisions material to the agreed scope are settled, remaining uncertainty is explicit and the next action is authorized. Reuse existing confirmations; do not traverse irrelevant branches or re-ask settled questions. New material decisions still require a real user response.
|
|
@@ -4,7 +4,7 @@ description: "Implement a piece of work based on a spec or set of tickets."
|
|
|
4
4
|
disable-model-invocation: true
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
This is an explicit compatibility entry. Before implementation, return to the active lifecycle orchestrator to verify repository identity, registered implementation paths, a current approved Slice Implementation Contract and applicable gates. Reuse existing approved inputs; do not restart planning merely because this entry was invoked. Implement only that contract and return artifacts, actual verification, drift and new impacts for acceptance. Do not approve the contract or upgrade Ticket state yourself. Template-source changes follow the template maintenance route instead of creating product assets.
|
|
8
8
|
|
|
9
9
|
Use /tdd where possible, at pre-agreed seams.
|
|
10
10
|
|
|
@@ -22,13 +22,13 @@ description: Use when connecting an existing frontend, backend, fullstack, or ot
|
|
|
22
22
|
4. 识别技术栈、包管理器、CI、测试命令、构建命令、OpenAPI 接入和设计 token 接入。
|
|
23
23
|
5. 判定实现位置与 `repository_scope`:`external-repository` 记录真实项目根;`harness-apps` 与 `git-submodule` 只能使用 `apps/backend/<project>/` 或 `apps/frontend/<project>/`。`apps/backend/`、`apps/frontend/` 仅为容器,`app/backend/`、`app/frontend/` 及其子路径必须标记为阻断。gitlink(mode `160000`)必须登记为 `git-submodule` 和 `layout_policy: git-submodule-harness-apps`,不得写成 `harness-apps`。必须对照工作树:`git ls-files --stage`、`.gitmodules` 与声明 scope 不一致时阻断;缺少 `git_entry_mode: 160000` 不得把挂载点当普通目录。
|
|
24
24
|
6. 按 `docs/templates/implementation-repo-registry-template.md` 输出实现仓库登记内容。`git-submodule` 必填 `gitmodules_name`、`gitlink_path`、`git_entry_mode`、`superproject_git_url` 和 `checkout_state`。`harness-apps` / `external-repository` 这些字段填 `不适用`。
|
|
25
|
-
7. 列出 `known_gaps`、人审点、fresh verification 命令和需要回写到 Harness change / Issue / checkpoint 的信息。命中交付预检时,登记和工程基线补齐后重跑 `prepare`;将结构化诊断的责任来源和恢复入口纳入缺口清单,在初始化或构建前关闭当前阶段阻断。后续阶段证据尚未形成不能被当作本阶段失败;其他技术栈/不涉及该交付协议的接入记录不适用原因,不能冒充后端 v2 正例。空 gitlink、detached HEAD、`--force`
|
|
25
|
+
7. 列出 `known_gaps`、人审点、fresh verification 命令和需要回写到 Harness change / Issue / checkpoint 的信息。命中交付预检时,登记和工程基线补齐后重跑 `prepare`;将结构化诊断的责任来源和恢复入口纳入缺口清单,在初始化或构建前关闭当前阶段阻断。后续阶段证据尚未形成不能被当作本阶段失败;其他技术栈/不涉及该交付协议的接入记录不适用原因,不能冒充后端 v2 正例。空 gitlink、detached HEAD、`--force` 覆盖挂载点或缺少递归检出凭据时标记阻断。需要转入已授权写入时,先按 [写范围核验](references/write-scope.md) 检查工具对象结果;只有 `.writable === true` 可写,其他形态或状态一律阻断。
|
|
26
26
|
|
|
27
27
|
## Baseline Checks
|
|
28
28
|
|
|
29
29
|
| repo_role | 必查项 |
|
|
30
30
|
|---|---|
|
|
31
|
-
| backend | 构建工具、模块结构、测试命令、OpenAPI
|
|
31
|
+
| backend | 构建工具、模块结构、测试命令、OpenAPI 产出、已登记 DDD 或分层 MVC 对应的 YSS 工程基线、数据库 / 迁移红线 |
|
|
32
32
|
| frontend | 包管理器、框架、路由、YSS UI / Ant Design、Orval / API client、设计 token、lint / type-check / build |
|
|
33
33
|
| fullstack | 前后端边界、契约生成方式、独立测试命令、CI 阶段拆分 |
|
|
34
34
|
| other | owner、构建 / 测试 / 发布命令、与 Harness change 的关系 |
|
|
@@ -39,7 +39,7 @@ description: Use when connecting an existing frontend, backend, fullstack, or ot
|
|
|
39
39
|
- 不把实现仓库源码复制进 Harness 仓库;`git-submodule` 只能形成 gitlink,不能 copy / subtree 冒充。
|
|
40
40
|
- 不把缺失命令编造为已存在;找不到时标记 `unknown` 或 `需人工确认`。
|
|
41
41
|
- 不得把 `app/backend/`、`app/frontend/` 或 `apps/backend/`、`apps/frontend/` 容器根登记为可生成项目根。
|
|
42
|
-
-
|
|
42
|
+
- 认证、授权、SQL、迁移、加密、公共基础库 API 按实际影响记录审批和证据缺口;仅缺少必要批准时标记 `TODO-HUMAN-REVIEW`,已有授权不因关键词重新审批。
|
|
43
43
|
|
|
44
44
|
## Output
|
|
45
45
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: improve-codebase-architecture
|
|
3
|
-
description:
|
|
3
|
+
description: 显式分析代码结构的维护成本、模块边界与可测试性,提出有证据的重构候选。
|
|
4
4
|
disable-model-invocation: true
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -10,7 +10,7 @@ Surface architectural friction and propose **deepening opportunities** — refac
|
|
|
10
10
|
|
|
11
11
|
This command is _informed_ by the project's domain model and built on a shared design vocabulary:
|
|
12
12
|
|
|
13
|
-
- Run the `/codebase-design` skill for the architecture vocabulary (**module**, **interface**, **depth**, **seam**, **adapter**, **leverage**, **locality**) and its principles (the deletion test, "the interface is the test surface", "one adapter = hypothetical seam, two = real"). Use
|
|
13
|
+
- Run the `/codebase-design` skill for the architecture vocabulary (**module**, **interface**, **depth**, **seam**, **adapter**, **leverage**, **locality**) and its principles (the deletion test, "the interface is the test surface", "one adapter = hypothetical seam, two = real"). Use this analysis vocabulary without overriding CONTEXT or the project's component/service/API terminology.
|
|
14
14
|
- The domain language in `CONTEXT.md` gives names to good seams; ADRs in `docs/adr/` record decisions this command should not re-litigate.
|
|
15
15
|
|
|
16
16
|
## Process
|
|
@@ -24,7 +24,7 @@ This command is _informed_ by the project's domain model and built on a shared d
|
|
|
24
24
|
|
|
25
25
|
Read the project's domain glossary (`CONTEXT.md`) and any ADRs in the area you're touching first.
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
Inspect the bounded area directly; delegate an independent reading task only when useful parallel work exists. Note evidence of friction:
|
|
28
28
|
|
|
29
29
|
- Where does understanding one concept require bouncing between many small modules?
|
|
30
30
|
- Where are modules **shallow** — interface nearly as complex as the implementation?
|
|
@@ -34,11 +34,15 @@ Then spawn a sub-agent to walk the codebase. Don't follow rigid heuristics — e
|
|
|
34
34
|
|
|
35
35
|
Apply the **deletion test** to anything you suspect is shallow: would deleting it concentrate complexity, or just move it? A "yes, concentrates" is the signal you want.
|
|
36
36
|
|
|
37
|
-
### 2. Present candidates
|
|
37
|
+
### 2. Present candidates in the requested format
|
|
38
|
+
|
|
39
|
+
Default to concise Markdown with grounded paths, tradeoffs and a small diagram when useful. Use the HTML branch below only when requested or when interaction materially aids comparison. Local/offline delivery uses bundled assets, not mandatory CDN dependencies.
|
|
40
|
+
|
|
41
|
+
#### Optional HTML report
|
|
38
42
|
|
|
39
43
|
Write a self-contained HTML file to the OS temp directory so nothing lands in the repo. Resolve the temp dir from `$TMPDIR`, falling back to `/tmp` (or `%TEMP%` on Windows), and write to `<tmpdir>/architecture-review-<timestamp>.html` so each run gets a fresh file. Open it for the user — `xdg-open <path>` on Linux, `open <path>` on macOS, `start <path>` on Windows — and tell them the absolute path.
|
|
40
44
|
|
|
41
|
-
|
|
45
|
+
When an online HTML report is explicitly selected, Tailwind and Mermaid are optional tools for layout and diagrams where a graph/flow/sequence reliably communicates the structure. Mix Mermaid with hand-crafted CSS/SVG visuals — use Mermaid when relationships are graph-shaped (call graphs, dependencies, sequences), and hand-built divs/SVG when you want something more editorial (mass diagrams, cross-sections, collapse animations). Each candidate gets a **before/after visualisation**. Be visual.
|
|
42
46
|
|
|
43
47
|
For each candidate, render a card with:
|
|
44
48
|
|
|
@@ -57,7 +61,7 @@ End the report with a **Top recommendation** section: which candidate you'd tack
|
|
|
57
61
|
|
|
58
62
|
See [HTML-REPORT.md](HTML-REPORT.md) for the full HTML scaffold, diagram patterns, and styling guidance.
|
|
59
63
|
|
|
60
|
-
Do NOT propose interfaces yet. After
|
|
64
|
+
Do NOT propose interfaces yet. After presenting candidates, ask which unresolved design direction to explore only if that choice has not already been made.
|
|
61
65
|
|
|
62
66
|
### 3. Grilling loop
|
|
63
67
|
|
|
@@ -14,8 +14,8 @@ description: "为 Java 后端改动生成提交信息、审查原子提交或修
|
|
|
14
14
|
|
|
15
15
|
## 不适用场景
|
|
16
16
|
|
|
17
|
-
- Vue、React
|
|
18
|
-
- yss-ui
|
|
17
|
+
- Vue、React 等前端或微前端仓库:在目标前端 profile 使用已安装的 `frontend-commit`;本 profile 不臆造跨目录链接。
|
|
18
|
+
- yss-ui 组件库仓库自身的提交与发版:遵循目标组件库已安装的提交规范;不存在对应 skill 时读取其贡献指南和 hooks。
|
|
19
19
|
- 仅请求代码实现,不涉及提交信息或 `git commit` 操作。
|
|
20
20
|
- 无代码改动,或改动内容与提交请求不匹配。
|
|
21
21
|
- 合并提交、发布提交、自动依赖机器人提交和数据库基线发布:遵循仓库专用流程,不套用本技能的常规模板。
|
|
@@ -66,8 +66,8 @@ git ls-files --others --exclude-standard
|
|
|
66
66
|
|
|
67
67
|
- type 默认从 `feat/fix/docs/style/refactor/perf/test/chore/revert/build/ci` 中选择,但仓库枚举优先。
|
|
68
68
|
- scope 优先级为:仓库枚举 → Maven artifactId 或 Gradle 子项目 → 服务或限界上下文 → 跨模块能力。使用小写 kebab-case;不要仅使用 `controller`、`service`、`repository` 或类名。
|
|
69
|
-
-
|
|
70
|
-
- 默认将完整 header 控制在 72
|
|
69
|
+
- 标题使用仓库确定的 type/scope、分隔符和语言;无既定规则时默认英文 type/scope、ASCII `:` 和中文摘要;描述业务、调用方或运维可感知的结果,不写“修改代码”或单个 Java 类名。
|
|
70
|
+
- 默认将完整 header 控制在 72 个字符内;仓库配置了其他限制时服从该配置。标题末尾不加句号,不用 emoji 或全角冒号。
|
|
71
71
|
- 简单单文件变更可以没有 body;跨层实现、数据迁移、并发或事务修复、重要功能和行为变化使用 body 解释做了什么、为什么以及如何验证。
|
|
72
72
|
- REST/GraphQL/RPC 契约、事件格式、公共 Java API、配置语义或数据库兼容性发生真实破坏时,使用 `!` 和 `BREAKING CHANGE:` 并写迁移方式。
|
|
73
73
|
- 仅在已知编号或仓库要求时加入工单、DCO、`Signed-off-by` 等 footer,禁止编造;不要因为 Spring 项目采用 DCO 就推断所有 Java 项目都必须签署。
|
|
@@ -106,7 +106,7 @@ fix(settlement): 修复重复回调导致结算流水重复入账的问题
|
|
|
106
106
|
|
|
107
107
|
- [ ] type 与 scope 通过仓库校验规则,完整消息经仓库命令校验通过。
|
|
108
108
|
- [ ] scope 来自仓库枚举、构建模块或业务域,未使用 `controller`、`service`、`repository` 或类名兜底。
|
|
109
|
-
- [ ]
|
|
109
|
+
- [ ] 标题语言、type/scope 和长度符合仓库配置;无配置时才使用本技能回退格式。
|
|
110
110
|
- [ ] 提交可独立理解、构建和回滚;数据库迁移与对应实体、查询和测试同提交。
|
|
111
111
|
- [ ] 暂存区不包含 `target/`、`build/`、日志或本地运行产物。
|
|
112
112
|
- [ ] 已使用仓库 wrapper 运行与变更范围匹配的最小充分检查。
|
|
@@ -48,7 +48,7 @@ node <skill-root>/scripts/extract.mjs skill-names --in <live-lock.json> --out <w
|
|
|
48
48
|
|
|
49
49
|
1. Detect: `<wiki-root>/wiki/index.md` + `CLAUDE.md` (or `AGENTS.md`) means a wiki exists. Default wiki-root is repo-root `wiki/`. If `yss-project.yaml` is `repository_mode: template-source`, wiki-root is `.template-source/wiki`.
|
|
50
50
|
2. If the user is asking a repository question, load [query.md](references/query.md) and stop. Do not lint, ingest, or append `log.md`.
|
|
51
|
-
3. Load the mode algorithm: [compile.md](references/compile.md) for init/refresh/rebuild, [ingest.md](references/ingest.md) for ingest. For init/rebuild corpus choice, load [discover.md](discover.md). For writing, load [writing.md](references/writing.md). For checks, load [lint.md](references/lint.md).
|
|
51
|
+
3. Load the mode algorithm: [compile.md](references/compile.md) for init/refresh/rebuild, [ingest.md](references/ingest.md) for ingest. For init/rebuild corpus choice, load [discover.md](references/discover.md). For writing, load [writing.md](references/writing.md). For checks, load [lint.md](references/lint.md).
|
|
52
52
|
4. **Fact order:** called code > table comments / config defaults > stale raw copies. After writing, re-read live sources for a sample of claims (`N = min(5, changed pages)`).
|
|
53
53
|
5. Run structural lint and advise. Append `log.md`. Stop.
|
|
54
54
|
|
|
@@ -34,8 +34,7 @@ These rules override generic assistant defaults for Product Design work.
|
|
|
34
34
|
|
|
35
35
|
## Re-read this file
|
|
36
36
|
|
|
37
|
-
-
|
|
38
|
-
- A user-facing assistant message is any message sent in `commentary` or `final`.
|
|
37
|
+
- Read this file on first entering a Product Design workflow. Re-read only when context was lost, the file changed, or a new workflow/decision requires it; do not use a message-count cadence.
|
|
39
38
|
|
|
40
39
|
## Explore vs. Design vs. Build
|
|
41
40
|
|
|
@@ -45,7 +44,7 @@ These rules override generic assistant defaults for Product Design work.
|
|
|
45
44
|
- Never invent a better first screen, landing page, hero, card style, icon set, image style, color palette, radius, spacing, or typography when cloning or matching a provided source. Match the source.
|
|
46
45
|
- Check the work like a senior designer. Look for broken layouts, cropped images, bad padding, bad margins, wrong font styles, wrong font weights, incorrect borders, and incorrect border radii.
|
|
47
46
|
- Screenshots are not QA by themselves. Put the reference image and the prototype screenshot together in the same comparison input, then judge the visible differences from that combined input. Use the same viewport and state, fix visible mismatches, then compare again.
|
|
48
|
-
-
|
|
47
|
+
- Carry the confirmed interactivity level and required states into every downstream workflow and QA. Static review requires visual/state representation only; interactive prototypes implement the agreed flows and key failure states. Do not add CRUD, real data writes, new pages or routes beyond the agreed scope.
|
|
49
48
|
|
|
50
49
|
## Browser user
|
|
51
50
|
|
|
@@ -54,5 +53,5 @@ These rules override generic assistant defaults for Product Design work.
|
|
|
54
53
|
|
|
55
54
|
## Working with and making assets
|
|
56
55
|
|
|
57
|
-
- Never fake visible assets with ASCII, prose, text symbols, emoji, placeholder boxes, CSS art, div art, handcrafted SVGs, inline SVGs, or approximate code drawings. Use real source assets when available. Use the built-in Image Gen tool for image assets when source assets are missing. Use the closest matching icon library for icons.
|
|
56
|
+
- Never fake visible assets with ASCII, prose, text symbols, emoji, placeholder boxes, CSS art, div art, handcrafted SVGs, inline SVGs, or approximate code drawings. Preserve approved source assets, including existing SVGs and code-native brand components. The prohibition concerns unapproved approximations replacing the target, not faithful reuse. Use real source assets when available. Use the built-in Image Gen tool for image assets when source assets are missing. Use the closest matching icon library for icons.
|
|
58
57
|
- Work like a designer. Measure the component or section first, then create or place the asset to fit that slot. Match the needed dimensions, crop, subject, palette, and density. Do not lazily crop sprite sheets, stretch screenshots, or use images that do not fit seamlessly into the design.
|
|
@@ -44,7 +44,7 @@ Destination rules:
|
|
|
44
44
|
|
|
45
45
|
- If the user names Figma, use Figma.
|
|
46
46
|
- If the user names a local folder, use that folder.
|
|
47
|
-
- If
|
|
47
|
+
- If no destination is specified, use the current local output folder. Ask only if a remote destination or sharing choice materially affects the requested audit.
|
|
48
48
|
|
|
49
49
|
Capture rules:
|
|
50
50
|
|
|
@@ -77,7 +77,7 @@ Every QA report must explicitly evaluate these surfaces:
|
|
|
77
77
|
- Fonts and typography: family, fallback, weight, size, line height, letter spacing, antialiasing, hierarchy, wrapping, truncation, and whether display text and small UI text use appropriate optical weights. It is incredibly important to check fonts carefully for fidelity, including looking up similar typefaces or using image analysis to find the font differences.
|
|
78
78
|
- Spacing and layout rhythm: frame size, crop, alignment, margins, padding, grid tracks, section gaps, component spacing, radii, shadows/elevation, and vertical rhythm.
|
|
79
79
|
- Colors and visual tokens: sampled or inferred palette, gradients, opacity, contrast, semantic state colors, foreground/background balance, and whether CSS tokens map to the source design.
|
|
80
|
-
- Image quality and asset fidelity: subject correctness, crop, scale, sharpness, compression, transparency halos, masking, background treatment, raster-vs-vector appropriateness, and whether generated assets match the source art direction. Fail QA
|
|
80
|
+
- Image quality and asset fidelity: subject correctness, crop, scale, sharpness, compression, transparency halos, masking, background treatment, raster-vs-vector appropriateness, and whether generated assets match the source art direction. Preserve existing approved SVG and code-native assets. Fail QA when, without approval, logos, illustrations, decorative marks, product imagery, non-standard icons, or other visible image assets from the visual target were replaced with approximate custom inline SVG, handcrafted SVG, HTML elements, div/span shapes, CSS drawings, gradients, emoji, text glyphs, placeholder shapes, or code-native approximations.
|
|
81
81
|
- Copy and content of app-specific text
|
|
82
82
|
|
|
83
83
|
## Severity
|
|
@@ -48,7 +48,8 @@ The questions to answer are:
|
|
|
48
48
|
One of:
|
|
49
49
|
|
|
50
50
|
- Full interactivity: all controls and states are completely functional and implemented.
|
|
51
|
-
- Static: controls and
|
|
51
|
+
- Static: visual/state review only; simulated controls are labelled and no functional workflow is implied.
|
|
52
|
+
- Pass `interactivity`, `required_states`, selected visual source and asset-reuse decisions to the next skill and its QA; reuse an already confirmed brief unless its scope changes.
|
|
52
53
|
|
|
53
54
|
After the questions, reply with a pithy design brief that summarizes what you're about to explore. Avoid walls of text at all costs. Be clear and concise.
|
|
54
55
|
|
|
@@ -86,7 +86,7 @@ Rules you must follow:
|
|
|
86
86
|
|
|
87
87
|
- Use the Image Gen prompt below.
|
|
88
88
|
- Use the built-in Image Gen tool.
|
|
89
|
-
-
|
|
89
|
+
- Respect the user-requested count; default to three distinct options only when exploration is needed. Stop after the selected direction answers the current design decision.
|
|
90
90
|
- Generate options in parallel when possible.
|
|
91
91
|
- Each option must be its own Image Gen result. Do not put multiple ideas in one image.
|
|
92
92
|
- Attach provided screenshots, files, app captures, Figma references, and visual source material as moodboard inspiration when available.
|
|
@@ -108,55 +108,7 @@ If the user likes parts of more than one option, combine those choices into a ne
|
|
|
108
108
|
|
|
109
109
|
## Image Gen Prompt
|
|
110
110
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
```text
|
|
114
|
-
Create realistic, production-quality UI designs with clear hierarchy, strong typography, intentional imagery, and purposeful spacing.
|
|
115
|
-
|
|
116
|
-
Keep the design simple. Avoid busy interfaces. Every section should have a clear purpose, and every element should earn its place.
|
|
117
|
-
|
|
118
|
-
Prioritize clarity, whitespace, and usability over decorative complexity.
|
|
119
|
-
|
|
120
|
-
### Target Dimensions
|
|
121
|
-
|
|
122
|
-
Pick the dimensions that best match the user's request and any provided visual reference.
|
|
123
|
-
|
|
124
|
-
- Mobile app: `390 x 844`
|
|
125
|
-
- Tablet app: `834 x 1194`
|
|
126
|
-
- Desktop app, dashboard, admin, or SaaS: `1440 x 1024`
|
|
127
|
-
- Landing or marketing page: `1440` wide and scrollable
|
|
128
|
-
- Modal, panel, widget, or component: natural container size
|
|
129
|
-
- Provided screenshot, Figma frame, mockup, or reference image: match its dimensions and aspect ratio when the user wants to continue from that visual
|
|
130
|
-
|
|
131
|
-
Avoid crowding. Make the design fit the chosen dimensions cleanly, with realistic spacing, readable type, and no clipped content.
|
|
132
|
-
|
|
133
|
-
### Layout
|
|
134
|
-
|
|
135
|
-
When deciding how to lay elements out on the page, this should be your priority order for tools to differentiate sections:
|
|
136
|
-
|
|
137
|
-
1. Use spacing, grouping, alignment, typography, and hierarchy on the same product surface.
|
|
138
|
-
2. Use simple dividers or row separators.
|
|
139
|
-
3. Use a subtle surface tint only when the base surface is not enough.
|
|
140
|
-
4. Use borders only when separation still is not clear.
|
|
141
|
-
5. Use shadows/elevation last, and sparingly.
|
|
142
|
-
|
|
143
|
-
Don'ts:
|
|
144
|
-
- Do not default to a centered "app card" (the whole UI is in a card on the page) on top of a contrasting page background. Use the base page surface first unless the source product or user explicitly asks for a contained app panel.
|
|
145
|
-
- Do not put cards inside cards. Do not make every major section a card. Do not make each list item its own card unless each item is truly a standalone object. A normal list should usually read as one grouped surface with lightweight row separation.
|
|
146
|
-
- Do not make up extraneous features. Add only the things essential to accomplish what the prototype's goal is. Don't make up more features just to fill out a UI.
|
|
147
|
-
|
|
148
|
-
### Typography
|
|
149
|
-
|
|
150
|
-
- Anchor UI typography to readable product sizes. Body text should usually sit between 14px and 16px, with the rest of the type scale built around that baseline.
|
|
151
|
-
- Keep long-form text to a comfortable line length, generally no more than 65 characters per line.
|
|
152
|
-
- Use no more than 2 fonts in a UI. You can use any font available in the project, or fonts provided free on Google Fonts. Pick the font that is best for the goal of the product and that matches with its intended look and feel.
|
|
153
|
-
|
|
154
|
-
### Presentation
|
|
155
|
-
|
|
156
|
-
- Do not add browser or device chrome around the mockup.
|
|
157
|
-
- Do not put multiple ideas into a single image generation.
|
|
158
|
-
- Vary each idea as much as possible while adhering to the constraints given entirely.
|
|
159
|
-
```
|
|
111
|
+
在实际生成方案图前,按目标尺寸、布局和字体需要读取 [图像提示模板](references/image-prompt-patterns.md)。用户已选来源、方案数量与当前设计决策优先;模板不要求补造无关维度。
|
|
160
112
|
|
|
161
113
|
## Output
|
|
162
114
|
|
package/template/.codex/skills/product-design/skills/ideate/references/image-prompt-patterns.md
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
## Image Gen Prompt
|
|
2
|
+
|
|
3
|
+
Adapt this prompt to the confirmed design brief, attach any available image references, and send it to Image Gen:
|
|
4
|
+
|
|
5
|
+
```text
|
|
6
|
+
Create realistic, production-quality UI designs with clear hierarchy, strong typography, intentional imagery, and purposeful spacing.
|
|
7
|
+
|
|
8
|
+
Keep the design simple. Avoid busy interfaces. Every section should have a clear purpose, and every element should earn its place.
|
|
9
|
+
|
|
10
|
+
Prioritize clarity, whitespace, and usability over decorative complexity.
|
|
11
|
+
|
|
12
|
+
### Target Dimensions
|
|
13
|
+
|
|
14
|
+
Pick the dimensions that best match the user's request and any provided visual reference.
|
|
15
|
+
|
|
16
|
+
- Mobile app: `390 x 844`
|
|
17
|
+
- Tablet app: `834 x 1194`
|
|
18
|
+
- Desktop app, dashboard, admin, or SaaS: `1440 x 1024`
|
|
19
|
+
- Landing or marketing page: `1440` wide and scrollable
|
|
20
|
+
- Modal, panel, widget, or component: natural container size
|
|
21
|
+
- Provided screenshot, Figma frame, mockup, or reference image: match its dimensions and aspect ratio when the user wants to continue from that visual
|
|
22
|
+
|
|
23
|
+
Avoid crowding. Make the design fit the chosen dimensions cleanly, with realistic spacing, readable type, and no clipped content.
|
|
24
|
+
|
|
25
|
+
### Layout
|
|
26
|
+
|
|
27
|
+
When deciding how to lay elements out on the page, this should be your priority order for tools to differentiate sections:
|
|
28
|
+
|
|
29
|
+
1. Use spacing, grouping, alignment, typography, and hierarchy on the same product surface.
|
|
30
|
+
2. Use simple dividers or row separators.
|
|
31
|
+
3. Use a subtle surface tint only when the base surface is not enough.
|
|
32
|
+
4. Use borders only when separation still is not clear.
|
|
33
|
+
5. Use shadows/elevation last, and sparingly.
|
|
34
|
+
|
|
35
|
+
Don'ts:
|
|
36
|
+
- Do not default to a centered "app card" (the whole UI is in a card on the page) on top of a contrasting page background. Use the base page surface first unless the source product or user explicitly asks for a contained app panel.
|
|
37
|
+
- Do not put cards inside cards. Do not make every major section a card. Do not make each list item its own card unless each item is truly a standalone object. A normal list should usually read as one grouped surface with lightweight row separation.
|
|
38
|
+
- Do not make up extraneous features. Add only the things essential to accomplish what the prototype's goal is. Don't make up more features just to fill out a UI.
|
|
39
|
+
|
|
40
|
+
### Typography
|
|
41
|
+
|
|
42
|
+
- Anchor UI typography to readable product sizes. Body text should usually sit between 14px and 16px, with the rest of the type scale built around that baseline.
|
|
43
|
+
- Keep long-form text to a comfortable line length, generally no more than 65 characters per line.
|
|
44
|
+
- Use no more than 2 fonts in a UI. You can use any font available in the project, or fonts provided free on Google Fonts. Pick the font that is best for the goal of the product and that matches with its intended look and feel.
|
|
45
|
+
|
|
46
|
+
### Presentation
|
|
47
|
+
|
|
48
|
+
- Do not add browser or device chrome around the mockup.
|
|
49
|
+
- Do not put multiple ideas into a single image generation.
|
|
50
|
+
- Vary each idea as much as possible while adhering to the constraints given entirely.
|
|
51
|
+
```
|
|
@@ -32,7 +32,7 @@ CRITICAL: THIS IS NOT GUIDANCE. THIS IS A CHECKLIST TO COMPLETE.
|
|
|
32
32
|
|
|
33
33
|
3. If the provided design is a mobile viewport, build a mobile app. If it's unclear, default to desktop.
|
|
34
34
|
|
|
35
|
-
4. Review the reference design
|
|
35
|
+
4. Review the reference design and inventory its assets. Reuse provided or authorized source assets unchanged unless modification is requested. Generate only a genuinely missing asset when its creation is in scope and the tool is available; name unresolved asset gaps.
|
|
36
36
|
|
|
37
37
|
Examples include:
|
|
38
38
|
|
|
@@ -47,7 +47,7 @@ CRITICAL: THIS IS NOT GUIDANCE. THIS IS A CHECKLIST TO COMPLETE.
|
|
|
47
47
|
|
|
48
48
|
Rules:
|
|
49
49
|
|
|
50
|
-
- CRITICAL RULE: Do not
|
|
50
|
+
- CRITICAL RULE: Do not replace approved source assets with unapproved approximate drawings or placeholders. Reuse provided SVGs and other original assets; only missing in-scope assets require a generation or library capability.
|
|
51
51
|
- If text is part of an image asset, keep it in the image asset. Examples include full bleed hero images, signs, posters, packaging, storefronts, article art, and illustrations where the type belongs to the visual itself. Do not crop the background image and recreate that text with transparent text boxes, HTML, CSS, or separate overlay layers unless the source clearly shows editable UI text sitting on top of the image.
|
|
52
52
|
- Do not use generic placeholders where the reference implies custom visual content.
|
|
53
53
|
- Generated assets must share the same art direction, palette, rendering style, and design language as the reference mockup.
|
|
@@ -61,9 +61,9 @@ CRITICAL: THIS IS NOT GUIDANCE. THIS IS A CHECKLIST TO COMPLETE.
|
|
|
61
61
|
|
|
62
62
|
Rules:
|
|
63
63
|
|
|
64
|
-
- CRITICAL RULE:
|
|
64
|
+
- CRITICAL RULE: Preserve original SVGs, icon assets and code-native visual components. Do not substitute approximate drawings without approval. Use a matching library or generation tool only for missing in-scope assets.
|
|
65
65
|
|
|
66
|
-
8. Build the app starting with [local-prototype-preflight](../../references/local-prototype-preflight.md).
|
|
66
|
+
8. Build the app starting with [local-prototype-preflight](../../references/local-prototype-preflight.md). Carry the confirmed brief's `interactivity` and `required_states`. For static scope, implement faithful visual states without adding action workflows; for interactive scope, implement and verify the agreed controls and recovery states.
|
|
67
67
|
|
|
68
68
|
Examples include:
|
|
69
69
|
|
|
@@ -73,12 +73,12 @@ CRITICAL: THIS IS NOT GUIDANCE. THIS IS A CHECKLIST TO COMPLETE.
|
|
|
73
73
|
- Clickable cards and buttons
|
|
74
74
|
- Animated affordances if implied by the design
|
|
75
75
|
- Newsletter forms, tags, filters, or navigation elements shown in the mockup
|
|
76
|
-
-
|
|
76
|
+
- A static prototype is complete when the agreed visual/state review is supported; do not expand it into a functional product.
|
|
77
77
|
|
|
78
78
|
Rules:
|
|
79
79
|
|
|
80
80
|
- Place every image asset you generated into its position before proceeding. I repeat, replace all placeholders, including CSS/SVG placeholders, before proceeding.
|
|
81
|
-
-
|
|
81
|
+
- For interactive scope, required controls must work; for static scope, clearly label simulated controls. Do not create new pages or routes unless requested.
|
|
82
82
|
|
|
83
83
|
9. Run the local app.
|
|
84
84
|
|
|
@@ -41,10 +41,10 @@ For new app, prototype, redesign, or UI build requests without a URL, screenshot
|
|
|
41
41
|
|
|
42
42
|
- Run `$get-context`.
|
|
43
43
|
- After the brief is approved, route to `$ideate`.
|
|
44
|
-
- Show
|
|
44
|
+
- Show the user-requested number of visual options (default three when exploration is needed) and wait for the user to choose one.
|
|
45
45
|
- Do not scaffold, edit files, or start a server before a visual option is selected.
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
A confirmed selected visual source skips ideation. Otherwise retain the visual-selection step, respecting the user-requested option count; a static brief does not authorize full interaction.
|
|
48
48
|
|
|
49
49
|
## User Context
|
|
50
50
|
|