claude-code-workflow 6.0.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/.claude/agents/action-planning-agent.md +778 -0
- package/.claude/agents/cli-execution-agent.md +270 -0
- package/.claude/agents/cli-explore-agent.md +182 -0
- package/.claude/agents/cli-lite-planning-agent.md +396 -0
- package/.claude/agents/cli-planning-agent.md +558 -0
- package/.claude/agents/code-developer.md +310 -0
- package/.claude/agents/conceptual-planning-agent.md +308 -0
- package/.claude/agents/context-search-agent.md +582 -0
- package/.claude/agents/doc-generator.md +330 -0
- package/.claude/agents/memory-bridge.md +94 -0
- package/.claude/agents/test-context-search-agent.md +399 -0
- package/.claude/agents/test-fix-agent.md +343 -0
- package/.claude/agents/ui-design-agent.md +593 -0
- package/.claude/agents/universal-executor.md +131 -0
- package/.claude/commands/cli/cli-init.md +440 -0
- package/.claude/commands/enhance-prompt.md +93 -0
- package/.claude/commands/memory/code-map-memory.md +687 -0
- package/.claude/commands/memory/docs-full-cli.md +471 -0
- package/.claude/commands/memory/docs-related-cli.md +386 -0
- package/.claude/commands/memory/docs.md +615 -0
- package/.claude/commands/memory/load-skill-memory.md +182 -0
- package/.claude/commands/memory/load.md +240 -0
- package/.claude/commands/memory/skill-memory.md +525 -0
- package/.claude/commands/memory/style-skill-memory.md +396 -0
- package/.claude/commands/memory/tech-research.md +477 -0
- package/.claude/commands/memory/update-full.md +332 -0
- package/.claude/commands/memory/update-related.md +332 -0
- package/.claude/commands/memory/workflow-skill-memory.md +517 -0
- package/.claude/commands/task/breakdown.md +204 -0
- package/.claude/commands/task/create.md +152 -0
- package/.claude/commands/task/execute.md +270 -0
- package/.claude/commands/task/replan.md +437 -0
- package/.claude/commands/version.md +254 -0
- package/.claude/commands/workflow/action-plan-verify.md +447 -0
- package/.claude/commands/workflow/brainstorm/api-designer.md +585 -0
- package/.claude/commands/workflow/brainstorm/artifacts.md +452 -0
- package/.claude/commands/workflow/brainstorm/auto-parallel.md +443 -0
- package/.claude/commands/workflow/brainstorm/data-architect.md +220 -0
- package/.claude/commands/workflow/brainstorm/product-manager.md +200 -0
- package/.claude/commands/workflow/brainstorm/product-owner.md +200 -0
- package/.claude/commands/workflow/brainstorm/scrum-master.md +200 -0
- package/.claude/commands/workflow/brainstorm/subject-matter-expert.md +200 -0
- package/.claude/commands/workflow/brainstorm/synthesis.md +398 -0
- package/.claude/commands/workflow/brainstorm/system-architect.md +387 -0
- package/.claude/commands/workflow/brainstorm/ui-designer.md +221 -0
- package/.claude/commands/workflow/brainstorm/ux-expert.md +221 -0
- package/.claude/commands/workflow/execute.md +460 -0
- package/.claude/commands/workflow/init.md +164 -0
- package/.claude/commands/workflow/lite-execute.md +686 -0
- package/.claude/commands/workflow/lite-fix.md +621 -0
- package/.claude/commands/workflow/lite-plan.md +592 -0
- package/.claude/commands/workflow/plan.md +551 -0
- package/.claude/commands/workflow/replan.md +515 -0
- package/.claude/commands/workflow/review-fix.md +646 -0
- package/.claude/commands/workflow/review-module-cycle.md +795 -0
- package/.claude/commands/workflow/review-session-cycle.md +805 -0
- package/.claude/commands/workflow/review.md +291 -0
- package/.claude/commands/workflow/session/complete.md +500 -0
- package/.claude/commands/workflow/session/list.md +96 -0
- package/.claude/commands/workflow/session/resume.md +61 -0
- package/.claude/commands/workflow/session/start.md +200 -0
- package/.claude/commands/workflow/status.md +352 -0
- package/.claude/commands/workflow/tdd-plan.md +460 -0
- package/.claude/commands/workflow/tdd-verify.md +386 -0
- package/.claude/commands/workflow/test-cycle-execute.md +498 -0
- package/.claude/commands/workflow/test-fix-gen.md +699 -0
- package/.claude/commands/workflow/test-gen.md +529 -0
- package/.claude/commands/workflow/tools/conflict-resolution.md +680 -0
- package/.claude/commands/workflow/tools/context-gather.md +434 -0
- package/.claude/commands/workflow/tools/task-generate-agent.md +291 -0
- package/.claude/commands/workflow/tools/task-generate-tdd.md +518 -0
- package/.claude/commands/workflow/tools/tdd-coverage-analysis.md +309 -0
- package/.claude/commands/workflow/tools/test-concept-enhanced.md +163 -0
- package/.claude/commands/workflow/tools/test-context-gather.md +235 -0
- package/.claude/commands/workflow/tools/test-task-generate.md +256 -0
- package/.claude/commands/workflow/ui-design/animation-extract.md +1150 -0
- package/.claude/commands/workflow/ui-design/codify-style.md +652 -0
- package/.claude/commands/workflow/ui-design/design-sync.md +454 -0
- package/.claude/commands/workflow/ui-design/explore-auto.md +678 -0
- package/.claude/commands/workflow/ui-design/generate.md +504 -0
- package/.claude/commands/workflow/ui-design/imitate-auto.md +745 -0
- package/.claude/commands/workflow/ui-design/import-from-code.md +537 -0
- package/.claude/commands/workflow/ui-design/layout-extract.md +788 -0
- package/.claude/commands/workflow/ui-design/reference-page-generator.md +356 -0
- package/.claude/commands/workflow/ui-design/style-extract.md +773 -0
- package/.claude/scripts/classify-folders.sh +35 -0
- package/.claude/scripts/convert_tokens_to_css.sh +225 -0
- package/.claude/scripts/detect_changed_modules.sh +157 -0
- package/.claude/scripts/discover-design-files.sh +83 -0
- package/.claude/scripts/extract-animations.js +243 -0
- package/.claude/scripts/extract-computed-styles.js +118 -0
- package/.claude/scripts/extract-layout-structure.js +411 -0
- package/.claude/scripts/generate_module_docs.sh +713 -0
- package/.claude/scripts/get_modules_by_depth.sh +166 -0
- package/.claude/scripts/ui-generate-preview.sh +391 -0
- package/.claude/scripts/ui-instantiate-prototypes.sh +811 -0
- package/.claude/scripts/update_module_claude.sh +333 -0
- package/.claude/skills/command-guide/SKILL.md +388 -0
- package/.claude/skills/command-guide/UPDATE-GUIDELINE.md +592 -0
- package/.claude/skills/command-guide/guides/cli-tools-guide.md +410 -0
- package/.claude/skills/command-guide/guides/examples.md +537 -0
- package/.claude/skills/command-guide/guides/getting-started.md +242 -0
- package/.claude/skills/command-guide/guides/implementation-details.md +1010 -0
- package/.claude/skills/command-guide/guides/index-structure.md +326 -0
- package/.claude/skills/command-guide/guides/troubleshooting.md +92 -0
- package/.claude/skills/command-guide/guides/ui-design-workflow-guide.md +316 -0
- package/.claude/skills/command-guide/guides/workflow-patterns.md +662 -0
- package/.claude/skills/command-guide/index/all-commands.json +783 -0
- package/.claude/skills/command-guide/index/by-category.json +811 -0
- package/.claude/skills/command-guide/index/by-use-case.json +797 -0
- package/.claude/skills/command-guide/index/command-relationships.json +307 -0
- package/.claude/skills/command-guide/index/essential-commands.json +123 -0
- package/.claude/skills/command-guide/reference/agents/action-planning-agent.md +722 -0
- package/.claude/skills/command-guide/reference/agents/cli-execution-agent.md +270 -0
- package/.claude/skills/command-guide/reference/agents/cli-explore-agent.md +182 -0
- package/.claude/skills/command-guide/reference/agents/cli-lite-planning-agent.md +396 -0
- package/.claude/skills/command-guide/reference/agents/cli-planning-agent.md +558 -0
- package/.claude/skills/command-guide/reference/agents/code-developer.md +310 -0
- package/.claude/skills/command-guide/reference/agents/conceptual-planning-agent.md +328 -0
- package/.claude/skills/command-guide/reference/agents/context-search-agent.md +577 -0
- package/.claude/skills/command-guide/reference/agents/doc-generator.md +330 -0
- package/.claude/skills/command-guide/reference/agents/memory-bridge.md +94 -0
- package/.claude/skills/command-guide/reference/agents/test-context-search-agent.md +399 -0
- package/.claude/skills/command-guide/reference/agents/test-fix-agent.md +343 -0
- package/.claude/skills/command-guide/reference/agents/ui-design-agent.md +593 -0
- package/.claude/skills/command-guide/reference/agents/universal-executor.md +131 -0
- package/.claude/skills/command-guide/reference/commands/cli/cli-init.md +440 -0
- package/.claude/skills/command-guide/reference/commands/enhance-prompt.md +93 -0
- package/.claude/skills/command-guide/reference/commands/memory/code-map-memory.md +687 -0
- package/.claude/skills/command-guide/reference/commands/memory/docs-full-cli.md +471 -0
- package/.claude/skills/command-guide/reference/commands/memory/docs-related-cli.md +386 -0
- package/.claude/skills/command-guide/reference/commands/memory/docs.md +610 -0
- package/.claude/skills/command-guide/reference/commands/memory/load-skill-memory.md +182 -0
- package/.claude/skills/command-guide/reference/commands/memory/load.md +240 -0
- package/.claude/skills/command-guide/reference/commands/memory/skill-memory.md +525 -0
- package/.claude/skills/command-guide/reference/commands/memory/style-skill-memory.md +396 -0
- package/.claude/skills/command-guide/reference/commands/memory/tech-research.md +477 -0
- package/.claude/skills/command-guide/reference/commands/memory/update-full.md +332 -0
- package/.claude/skills/command-guide/reference/commands/memory/update-related.md +332 -0
- package/.claude/skills/command-guide/reference/commands/memory/workflow-skill-memory.md +517 -0
- package/.claude/skills/command-guide/reference/commands/task/breakdown.md +204 -0
- package/.claude/skills/command-guide/reference/commands/task/create.md +152 -0
- package/.claude/skills/command-guide/reference/commands/task/execute.md +270 -0
- package/.claude/skills/command-guide/reference/commands/task/replan.md +437 -0
- package/.claude/skills/command-guide/reference/commands/version.md +254 -0
- package/.claude/skills/command-guide/reference/commands/workflow/action-plan-verify.md +447 -0
- package/.claude/skills/command-guide/reference/commands/workflow/brainstorm/api-designer.md +585 -0
- package/.claude/skills/command-guide/reference/commands/workflow/brainstorm/artifacts.md +604 -0
- package/.claude/skills/command-guide/reference/commands/workflow/brainstorm/auto-parallel.md +466 -0
- package/.claude/skills/command-guide/reference/commands/workflow/brainstorm/data-architect.md +220 -0
- package/.claude/skills/command-guide/reference/commands/workflow/brainstorm/product-manager.md +200 -0
- package/.claude/skills/command-guide/reference/commands/workflow/brainstorm/product-owner.md +200 -0
- package/.claude/skills/command-guide/reference/commands/workflow/brainstorm/scrum-master.md +200 -0
- package/.claude/skills/command-guide/reference/commands/workflow/brainstorm/subject-matter-expert.md +200 -0
- package/.claude/skills/command-guide/reference/commands/workflow/brainstorm/synthesis.md +496 -0
- package/.claude/skills/command-guide/reference/commands/workflow/brainstorm/system-architect.md +387 -0
- package/.claude/skills/command-guide/reference/commands/workflow/brainstorm/ui-designer.md +221 -0
- package/.claude/skills/command-guide/reference/commands/workflow/brainstorm/ux-expert.md +221 -0
- package/.claude/skills/command-guide/reference/commands/workflow/execute.md +460 -0
- package/.claude/skills/command-guide/reference/commands/workflow/init.md +164 -0
- package/.claude/skills/command-guide/reference/commands/workflow/lite-execute.md +634 -0
- package/.claude/skills/command-guide/reference/commands/workflow/lite-fix.md +602 -0
- package/.claude/skills/command-guide/reference/commands/workflow/lite-plan.md +582 -0
- package/.claude/skills/command-guide/reference/commands/workflow/plan.md +551 -0
- package/.claude/skills/command-guide/reference/commands/workflow/replan.md +515 -0
- package/.claude/skills/command-guide/reference/commands/workflow/review-fix.md +646 -0
- package/.claude/skills/command-guide/reference/commands/workflow/review-module-cycle.md +795 -0
- package/.claude/skills/command-guide/reference/commands/workflow/review-session-cycle.md +805 -0
- package/.claude/skills/command-guide/reference/commands/workflow/review.md +291 -0
- package/.claude/skills/command-guide/reference/commands/workflow/session/complete.md +500 -0
- package/.claude/skills/command-guide/reference/commands/workflow/session/list.md +96 -0
- package/.claude/skills/command-guide/reference/commands/workflow/session/resume.md +61 -0
- package/.claude/skills/command-guide/reference/commands/workflow/session/start.md +180 -0
- package/.claude/skills/command-guide/reference/commands/workflow/status.md +352 -0
- package/.claude/skills/command-guide/reference/commands/workflow/tdd-plan.md +460 -0
- package/.claude/skills/command-guide/reference/commands/workflow/tdd-verify.md +386 -0
- package/.claude/skills/command-guide/reference/commands/workflow/test-cycle-execute.md +498 -0
- package/.claude/skills/command-guide/reference/commands/workflow/test-fix-gen.md +699 -0
- package/.claude/skills/command-guide/reference/commands/workflow/test-gen.md +529 -0
- package/.claude/skills/command-guide/reference/commands/workflow/tools/conflict-resolution.md +680 -0
- package/.claude/skills/command-guide/reference/commands/workflow/tools/context-gather.md +434 -0
- package/.claude/skills/command-guide/reference/commands/workflow/tools/task-generate-agent.md +151 -0
- package/.claude/skills/command-guide/reference/commands/workflow/tools/task-generate-tdd.md +518 -0
- package/.claude/skills/command-guide/reference/commands/workflow/tools/tdd-coverage-analysis.md +309 -0
- package/.claude/skills/command-guide/reference/commands/workflow/tools/test-concept-enhanced.md +163 -0
- package/.claude/skills/command-guide/reference/commands/workflow/tools/test-context-gather.md +235 -0
- package/.claude/skills/command-guide/reference/commands/workflow/tools/test-task-generate.md +256 -0
- package/.claude/skills/command-guide/reference/commands/workflow/ui-design/animation-extract.md +1150 -0
- package/.claude/skills/command-guide/reference/commands/workflow/ui-design/codify-style.md +652 -0
- package/.claude/skills/command-guide/reference/commands/workflow/ui-design/design-sync.md +454 -0
- package/.claude/skills/command-guide/reference/commands/workflow/ui-design/explore-auto.md +678 -0
- package/.claude/skills/command-guide/reference/commands/workflow/ui-design/generate.md +504 -0
- package/.claude/skills/command-guide/reference/commands/workflow/ui-design/imitate-auto.md +745 -0
- package/.claude/skills/command-guide/reference/commands/workflow/ui-design/import-from-code.md +537 -0
- package/.claude/skills/command-guide/reference/commands/workflow/ui-design/layout-extract.md +788 -0
- package/.claude/skills/command-guide/reference/commands/workflow/ui-design/reference-page-generator.md +356 -0
- package/.claude/skills/command-guide/reference/commands/workflow/ui-design/style-extract.md +773 -0
- package/.claude/skills/command-guide/scripts/analyze_commands.py +502 -0
- package/.claude/skills/command-guide/scripts/update-index.sh +130 -0
- package/.claude/skills/command-guide/templates/issue-bug.md +104 -0
- package/.claude/skills/command-guide/templates/issue-diagnosis.md +275 -0
- package/.claude/skills/command-guide/templates/issue-feature.md +97 -0
- package/.claude/skills/command-guide/templates/issue-question.md +141 -0
- package/.claude/skills/prompt-enhancer/SKILL.md +124 -0
- package/.claude/workflows/_template-compare-matrix.html +692 -0
- package/.claude/workflows/cli-templates/fix-plan-template.json +75 -0
- package/.claude/workflows/cli-templates/fix-progress-template.json +48 -0
- package/.claude/workflows/cli-templates/memory/style-skill-memory/skill-md-template.md +299 -0
- package/.claude/workflows/cli-templates/planning-roles/data-architect.md +120 -0
- package/.claude/workflows/cli-templates/planning-roles/product-manager.md +119 -0
- package/.claude/workflows/cli-templates/planning-roles/product-owner.md +261 -0
- package/.claude/workflows/cli-templates/planning-roles/scrum-master.md +186 -0
- package/.claude/workflows/cli-templates/planning-roles/subject-matter-expert.md +281 -0
- package/.claude/workflows/cli-templates/planning-roles/synthesis-role.md +414 -0
- package/.claude/workflows/cli-templates/planning-roles/system-architect.md +106 -0
- package/.claude/workflows/cli-templates/planning-roles/test-strategist.md +124 -0
- package/.claude/workflows/cli-templates/planning-roles/ui-designer.md +379 -0
- package/.claude/workflows/cli-templates/planning-roles/ux-expert.md +240 -0
- package/.claude/workflows/cli-templates/prompts/analysis/01-diagnose-bug-root-cause.txt +127 -0
- package/.claude/workflows/cli-templates/prompts/analysis/01-trace-code-execution.txt +115 -0
- package/.claude/workflows/cli-templates/prompts/analysis/02-analyze-code-patterns.txt +37 -0
- package/.claude/workflows/cli-templates/prompts/analysis/02-analyze-technical-document.txt +33 -0
- package/.claude/workflows/cli-templates/prompts/analysis/02-review-architecture.txt +29 -0
- package/.claude/workflows/cli-templates/prompts/analysis/02-review-code-quality.txt +28 -0
- package/.claude/workflows/cli-templates/prompts/analysis/03-analyze-performance.txt +29 -0
- package/.claude/workflows/cli-templates/prompts/analysis/03-assess-security-risks.txt +29 -0
- package/.claude/workflows/cli-templates/prompts/analysis/03-review-quality-standards.txt +29 -0
- package/.claude/workflows/cli-templates/prompts/development/02-generate-tests.txt +70 -0
- package/.claude/workflows/cli-templates/prompts/development/02-implement-component-ui.txt +55 -0
- package/.claude/workflows/cli-templates/prompts/development/02-implement-feature.txt +58 -0
- package/.claude/workflows/cli-templates/prompts/development/02-refactor-codebase.txt +55 -0
- package/.claude/workflows/cli-templates/prompts/development/03-debug-runtime-issues.txt +55 -0
- package/.claude/workflows/cli-templates/prompts/documentation/api.txt +15 -0
- package/.claude/workflows/cli-templates/prompts/documentation/folder-navigation.txt +27 -0
- package/.claude/workflows/cli-templates/prompts/documentation/module-readme.txt +49 -0
- package/.claude/workflows/cli-templates/prompts/documentation/project-architecture.txt +41 -0
- package/.claude/workflows/cli-templates/prompts/documentation/project-examples.txt +35 -0
- package/.claude/workflows/cli-templates/prompts/documentation/project-readme.txt +35 -0
- package/.claude/workflows/cli-templates/prompts/memory/02-document-module-structure.txt +165 -0
- package/.claude/workflows/cli-templates/prompts/planning/01-plan-architecture-design.txt +109 -0
- package/.claude/workflows/cli-templates/prompts/planning/02-breakdown-task-steps.txt +30 -0
- package/.claude/workflows/cli-templates/prompts/planning/02-design-component-spec.txt +28 -0
- package/.claude/workflows/cli-templates/prompts/planning/03-evaluate-concept-feasibility.txt +127 -0
- package/.claude/workflows/cli-templates/prompts/planning/03-plan-migration-strategy.txt +30 -0
- package/.claude/workflows/cli-templates/prompts/tech/tech-module-format.txt +359 -0
- package/.claude/workflows/cli-templates/prompts/tech/tech-skill-index.txt +185 -0
- package/.claude/workflows/cli-templates/prompts/test/test-concept-analysis.txt +179 -0
- package/.claude/workflows/cli-templates/prompts/universal/00-universal-creative-style.txt +95 -0
- package/.claude/workflows/cli-templates/prompts/universal/00-universal-rigorous-style.txt +92 -0
- package/.claude/workflows/cli-templates/prompts/verification/codex-technical.txt +28 -0
- package/.claude/workflows/cli-templates/prompts/verification/cross-validation.txt +28 -0
- package/.claude/workflows/cli-templates/prompts/verification/gemini-strategic.txt +27 -0
- package/.claude/workflows/cli-templates/prompts/workflow/analysis-results-structure.txt +224 -0
- package/.claude/workflows/cli-templates/prompts/workflow/codex-feasibility-validation.txt +176 -0
- package/.claude/workflows/cli-templates/prompts/workflow/gemini-solution-design.txt +131 -0
- package/.claude/workflows/cli-templates/prompts/workflow/impl-plan-template.txt +286 -0
- package/.claude/workflows/cli-templates/prompts/workflow/skill-aggregation.txt +172 -0
- package/.claude/workflows/cli-templates/prompts/workflow/skill-conflict-patterns.txt +98 -0
- package/.claude/workflows/cli-templates/prompts/workflow/skill-index.txt +224 -0
- package/.claude/workflows/cli-templates/prompts/workflow/skill-lessons-learned.txt +98 -0
- package/.claude/workflows/cli-templates/prompts/workflow/skill-sessions-timeline.txt +53 -0
- package/.claude/workflows/cli-templates/prompts/workflow/task-json-agent-mode.txt +123 -0
- package/.claude/workflows/cli-templates/prompts/workflow/task-json-cli-mode.txt +182 -0
- package/.claude/workflows/cli-templates/schemas/diagnosis-json-schema.json +234 -0
- package/.claude/workflows/cli-templates/schemas/explore-json-schema.json +124 -0
- package/.claude/workflows/cli-templates/schemas/fix-plan-json-schema.json +273 -0
- package/.claude/workflows/cli-templates/schemas/plan-json-schema.json +219 -0
- package/.claude/workflows/cli-templates/schemas/project-json-schema.json +221 -0
- package/.claude/workflows/cli-templates/schemas/review-deep-dive-results-schema.json +82 -0
- package/.claude/workflows/cli-templates/schemas/review-dimension-results-schema.json +51 -0
- package/.claude/workflows/cli-templates/tech-stacks/go-dev.md +91 -0
- package/.claude/workflows/cli-templates/tech-stacks/java-dev.md +107 -0
- package/.claude/workflows/cli-templates/tech-stacks/javascript-dev.md +58 -0
- package/.claude/workflows/cli-templates/tech-stacks/python-dev.md +79 -0
- package/.claude/workflows/cli-templates/tech-stacks/react-dev.md +103 -0
- package/.claude/workflows/cli-templates/tech-stacks/typescript-dev.md +83 -0
- package/.claude/workflows/cli-templates/ui-design/systems/animation-tokens.json +247 -0
- package/.claude/workflows/cli-templates/ui-design/systems/design-tokens.json +342 -0
- package/.claude/workflows/cli-templates/ui-design/systems/layout-templates.json +145 -0
- package/.claude/workflows/context-search-strategy.md +77 -0
- package/.claude/workflows/intelligent-tools-strategy.md +662 -0
- package/.claude/workflows/review-directory-specification.md +336 -0
- package/.claude/workflows/task-core.md +214 -0
- package/.claude/workflows/tool-strategy.md +71 -0
- package/.claude/workflows/workflow-architecture.md +942 -0
- package/.codex/AGENTS.md +330 -0
- package/.gemini/GEMINI.md +164 -0
- package/.qwen/QWEN.md +164 -0
- package/CLAUDE.md +91 -0
- package/LICENSE +21 -0
- package/README.md +219 -0
- package/ccw/README.md +121 -0
- package/ccw/bin/ccw.js +10 -0
- package/ccw/src/cli.js +100 -0
- package/ccw/src/commands/install.js +324 -0
- package/ccw/src/commands/list.js +37 -0
- package/ccw/src/commands/serve.js +67 -0
- package/ccw/src/commands/uninstall.js +238 -0
- package/ccw/src/commands/upgrade.js +307 -0
- package/ccw/src/commands/view.js +14 -0
- package/ccw/src/core/dashboard-generator-patch.js +29 -0
- package/ccw/src/core/dashboard-generator.js +667 -0
- package/ccw/src/core/data-aggregator.js +409 -0
- package/ccw/src/core/lite-scanner.js +290 -0
- package/ccw/src/core/manifest.js +201 -0
- package/ccw/src/core/server.js +1327 -0
- package/ccw/src/core/server.js.bak +385 -0
- package/ccw/src/core/server_original.bak +385 -0
- package/ccw/src/core/session-scanner.js +235 -0
- package/ccw/src/index.js +9 -0
- package/ccw/src/templates/dashboard-js/api.js +200 -0
- package/ccw/src/templates/dashboard-js/components/_conflict_tab.js +112 -0
- package/ccw/src/templates/dashboard-js/components/_exp_helpers.js +54 -0
- package/ccw/src/templates/dashboard-js/components/_review_tab.js +640 -0
- package/ccw/src/templates/dashboard-js/components/carousel.js +398 -0
- package/ccw/src/templates/dashboard-js/components/flowchart.js +493 -0
- package/ccw/src/templates/dashboard-js/components/hook-manager.js +273 -0
- package/ccw/src/templates/dashboard-js/components/mcp-manager.js +506 -0
- package/ccw/src/templates/dashboard-js/components/modals.js +260 -0
- package/ccw/src/templates/dashboard-js/components/navigation.js +239 -0
- package/ccw/src/templates/dashboard-js/components/notifications.js +194 -0
- package/ccw/src/templates/dashboard-js/components/sidebar.js +31 -0
- package/ccw/src/templates/dashboard-js/components/tabs-context.js +1093 -0
- package/ccw/src/templates/dashboard-js/components/tabs-other.js +273 -0
- package/ccw/src/templates/dashboard-js/components/task-drawer-core.js +477 -0
- package/ccw/src/templates/dashboard-js/components/task-drawer-renderers.js +447 -0
- package/ccw/src/templates/dashboard-js/components/theme.js +21 -0
- package/ccw/src/templates/dashboard-js/main.js +57 -0
- package/ccw/src/templates/dashboard-js/state.js +37 -0
- package/ccw/src/templates/dashboard-js/utils.js +153 -0
- package/ccw/src/templates/dashboard-js/views/fix-session.js +180 -0
- package/ccw/src/templates/dashboard-js/views/home.js +193 -0
- package/ccw/src/templates/dashboard-js/views/hook-manager.js +387 -0
- package/ccw/src/templates/dashboard-js/views/lite-tasks.js +390 -0
- package/ccw/src/templates/dashboard-js/views/mcp-manager.js +271 -0
- package/ccw/src/templates/dashboard-js/views/project-overview.js +246 -0
- package/ccw/src/templates/dashboard-js/views/review-session.js +711 -0
- package/ccw/src/templates/dashboard-js/views/session-detail.js +770 -0
- package/ccw/src/templates/dashboard.css +7660 -0
- package/ccw/src/templates/dashboard.html +630 -0
- package/ccw/src/templates/dashboard_tailwind.html +42 -0
- package/ccw/src/templates/dashboard_test.html +37 -0
- package/ccw/src/templates/review-cycle-dashboard.html +1930 -0
- package/ccw/src/templates/tailwind-base.css +212 -0
- package/ccw/src/templates/workflow-dashboard.html +401 -0
- package/ccw/src/utils/browser-launcher.js +49 -0
- package/ccw/src/utils/file-utils.js +48 -0
- package/ccw/src/utils/path-resolver.js +279 -0
- package/ccw/src/utils/ui.js +148 -0
- package/package.json +66 -0
|
@@ -0,0 +1,396 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: style-skill-memory
|
|
3
|
+
description: Generate SKILL memory package from style reference for easy loading and consistent design system usage
|
|
4
|
+
argument-hint: "[package-name] [--regenerate]"
|
|
5
|
+
allowed-tools: Bash,Read,Write,TodoWrite
|
|
6
|
+
auto-continue: true
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Memory: Style SKILL Memory Generator
|
|
10
|
+
|
|
11
|
+
## Overview
|
|
12
|
+
|
|
13
|
+
**Purpose**: Convert style reference package into SKILL memory for easy loading and context management.
|
|
14
|
+
|
|
15
|
+
**Input**: Style reference package at `.workflow/reference_style/{package-name}/`
|
|
16
|
+
|
|
17
|
+
**Output**: SKILL memory index at `.claude/skills/style-{package-name}/SKILL.md`
|
|
18
|
+
|
|
19
|
+
**Use Case**: Load design system context when working with UI components, analyzing design patterns, or implementing style guidelines.
|
|
20
|
+
|
|
21
|
+
**Key Features**:
|
|
22
|
+
- Extracts primary design references (colors, typography, spacing, etc.)
|
|
23
|
+
- Provides dynamic adjustment guidelines for design tokens
|
|
24
|
+
- Includes prerequisites and tooling requirements (browsers, PostCSS, dark mode)
|
|
25
|
+
- Progressive loading structure for efficient token usage
|
|
26
|
+
- Complete implementation examples with React components
|
|
27
|
+
- Interactive preview showcase
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## Quick Reference
|
|
32
|
+
|
|
33
|
+
### Command Syntax
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
/memory:style-skill-memory [package-name] [--regenerate]
|
|
37
|
+
|
|
38
|
+
# Arguments
|
|
39
|
+
package-name Style reference package name (required)
|
|
40
|
+
--regenerate Force regenerate SKILL.md even if it exists (optional)
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### Usage Examples
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
# Generate SKILL memory for package
|
|
47
|
+
/memory:style-skill-memory main-app-style-v1
|
|
48
|
+
|
|
49
|
+
# Regenerate SKILL memory
|
|
50
|
+
/memory:style-skill-memory main-app-style-v1 --regenerate
|
|
51
|
+
|
|
52
|
+
# Package name from current directory or default
|
|
53
|
+
/memory:style-skill-memory
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Key Variables
|
|
57
|
+
|
|
58
|
+
**Input Variables**:
|
|
59
|
+
- `PACKAGE_NAME`: Style reference package name
|
|
60
|
+
- `PACKAGE_DIR`: `.workflow/reference_style/${package_name}`
|
|
61
|
+
- `SKILL_DIR`: `.claude/skills/style-${package_name}`
|
|
62
|
+
- `REGENERATE`: `true` if --regenerate flag, `false` otherwise
|
|
63
|
+
|
|
64
|
+
**Data Sources** (Phase 2):
|
|
65
|
+
- `DESIGN_TOKENS_DATA`: Complete design-tokens.json content (from Read)
|
|
66
|
+
- `LAYOUT_TEMPLATES_DATA`: Complete layout-templates.json content (from Read)
|
|
67
|
+
- `ANIMATION_TOKENS_DATA`: Complete animation-tokens.json content (from Read, if exists)
|
|
68
|
+
|
|
69
|
+
**Metadata** (Phase 2):
|
|
70
|
+
- `COMPONENT_COUNT`: Total components
|
|
71
|
+
- `UNIVERSAL_COUNT`: Universal components count
|
|
72
|
+
- `SPECIALIZED_COUNT`: Specialized components count
|
|
73
|
+
- `UNIVERSAL_COMPONENTS`: Universal component names (first 5)
|
|
74
|
+
- `HAS_ANIMATIONS`: Whether animation-tokens.json exists
|
|
75
|
+
|
|
76
|
+
**Analysis Output** (`DESIGN_ANALYSIS` - Phase 2):
|
|
77
|
+
- `has_colors`: Colors exist
|
|
78
|
+
- `color_semantic`: Has semantic naming (primary/secondary/accent)
|
|
79
|
+
- `uses_oklch`: Uses modern color spaces (oklch, lab, etc.)
|
|
80
|
+
- `has_dark_mode`: Has separate light/dark mode color tokens
|
|
81
|
+
- `spacing_pattern`: Pattern type ("linear", "geometric", "custom")
|
|
82
|
+
- `spacing_scale`: Actual scale values (e.g., [4, 8, 16, 32, 64])
|
|
83
|
+
- `has_typography`: Typography system exists
|
|
84
|
+
- `typography_hierarchy`: Has size scale for hierarchy
|
|
85
|
+
- `uses_calc`: Uses calc() expressions in token values
|
|
86
|
+
- `has_radius`: Border radius exists
|
|
87
|
+
- `radius_style`: Style characteristic ("sharp" <4px, "moderate" 4-8px, "rounded" >8px)
|
|
88
|
+
- `has_shadows`: Shadow system exists
|
|
89
|
+
- `shadow_pattern`: Elevation naming pattern
|
|
90
|
+
- `has_animations`: Animation tokens exist
|
|
91
|
+
- `animation_range`: Duration range (fast to slow)
|
|
92
|
+
- `easing_variety`: Types of easing functions
|
|
93
|
+
|
|
94
|
+
### Common Errors
|
|
95
|
+
|
|
96
|
+
| Error | Cause | Resolution |
|
|
97
|
+
|-------|-------|------------|
|
|
98
|
+
| Package not found | Invalid package name or doesn't exist | Run `/workflow:ui-design:codify-style` first |
|
|
99
|
+
| SKILL already exists | SKILL.md already generated | Use `--regenerate` flag |
|
|
100
|
+
| Missing layout-templates.json | Incomplete package | Verify package integrity, re-run codify-style |
|
|
101
|
+
| Invalid JSON format | Corrupted package files | Regenerate package with codify-style |
|
|
102
|
+
|
|
103
|
+
---
|
|
104
|
+
|
|
105
|
+
## Execution Process
|
|
106
|
+
|
|
107
|
+
### Phase 1: Validate Package
|
|
108
|
+
|
|
109
|
+
**TodoWrite** (First Action):
|
|
110
|
+
```json
|
|
111
|
+
[
|
|
112
|
+
{
|
|
113
|
+
"content": "Validate package exists and check SKILL status",
|
|
114
|
+
"activeForm": "Validating package and SKILL status",
|
|
115
|
+
"status": "in_progress"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"content": "Read package data and analyze design system",
|
|
119
|
+
"activeForm": "Reading package data and analyzing design system",
|
|
120
|
+
"status": "pending"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"content": "Generate SKILL.md with design principles and token values",
|
|
124
|
+
"activeForm": "Generating SKILL.md with design principles and token values",
|
|
125
|
+
"status": "pending"
|
|
126
|
+
}
|
|
127
|
+
]
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
**Step 1: Parse Package Name**
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
# Get package name from argument or auto-detect
|
|
134
|
+
bash(echo "${package_name}" || basename "$(pwd)" | sed 's/^style-//')
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
**Step 2: Validate Package Exists**
|
|
138
|
+
|
|
139
|
+
```bash
|
|
140
|
+
bash(test -d .workflow/reference_style/${package_name} && echo "exists" || echo "missing")
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
**Error Handling**:
|
|
144
|
+
```javascript
|
|
145
|
+
if (package_not_exists) {
|
|
146
|
+
error("ERROR: Style reference package not found: ${package_name}")
|
|
147
|
+
error("HINT: Run '/workflow:ui-design:codify-style' first to create package")
|
|
148
|
+
error("Available packages:")
|
|
149
|
+
bash(ls -1 .workflow/reference_style/ 2>/dev/null || echo " (none)")
|
|
150
|
+
exit(1)
|
|
151
|
+
}
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
**Step 3: Check SKILL Already Exists**
|
|
155
|
+
|
|
156
|
+
```bash
|
|
157
|
+
bash(test -f .claude/skills/style-${package_name}/SKILL.md && echo "exists" || echo "missing")
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
**Decision Logic**:
|
|
161
|
+
```javascript
|
|
162
|
+
if (skill_exists && !regenerate_flag) {
|
|
163
|
+
echo("SKILL memory already exists for: ${package_name}")
|
|
164
|
+
echo("Use --regenerate to force regeneration")
|
|
165
|
+
exit(0)
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
if (regenerate_flag && skill_exists) {
|
|
169
|
+
echo("Regenerating SKILL memory for: ${package_name}")
|
|
170
|
+
}
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
**TodoWrite Update**: Mark "Validate" as completed, "Read package data" as in_progress
|
|
174
|
+
|
|
175
|
+
---
|
|
176
|
+
|
|
177
|
+
### Phase 2: Read Package Data & Analyze Design System
|
|
178
|
+
|
|
179
|
+
**Step 1: Read All JSON Files**
|
|
180
|
+
|
|
181
|
+
```bash
|
|
182
|
+
# Read layout templates
|
|
183
|
+
Read(file_path=".workflow/reference_style/${package_name}/layout-templates.json")
|
|
184
|
+
|
|
185
|
+
# Read design tokens
|
|
186
|
+
Read(file_path=".workflow/reference_style/${package_name}/design-tokens.json")
|
|
187
|
+
|
|
188
|
+
# Read animation tokens (if exists)
|
|
189
|
+
bash(test -f .workflow/reference_style/${package_name}/animation-tokens.json && echo "exists" || echo "missing")
|
|
190
|
+
Read(file_path=".workflow/reference_style/${package_name}/animation-tokens.json") # if exists
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
**Step 2: Extract Metadata for Description**
|
|
194
|
+
|
|
195
|
+
```bash
|
|
196
|
+
# Count components and classify by type
|
|
197
|
+
bash(jq '.layout_templates | length' layout-templates.json)
|
|
198
|
+
bash(jq '[.layout_templates[] | select(.component_type == "universal")] | length' layout-templates.json)
|
|
199
|
+
bash(jq '[.layout_templates[] | select(.component_type == "specialized")] | length' layout-templates.json)
|
|
200
|
+
bash(jq -r '.layout_templates | to_entries[] | select(.value.component_type == "universal") | .key' layout-templates.json | head -5)
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
Store results in metadata variables (see [Key Variables](#key-variables))
|
|
204
|
+
|
|
205
|
+
**Step 3: Analyze Design System for Dynamic Principles**
|
|
206
|
+
|
|
207
|
+
Analyze design-tokens.json to extract characteristics and patterns:
|
|
208
|
+
|
|
209
|
+
```bash
|
|
210
|
+
# Color system characteristics
|
|
211
|
+
bash(jq '.colors | keys' design-tokens.json)
|
|
212
|
+
bash(jq '.colors | to_entries[0:2] | map(.value)' design-tokens.json)
|
|
213
|
+
# Check for modern color spaces
|
|
214
|
+
bash(jq '.colors | to_entries[] | .value | test("oklch|lab|lch")' design-tokens.json)
|
|
215
|
+
# Check for dark mode variants
|
|
216
|
+
bash(jq '.colors | keys | map(select(contains("dark") or contains("light")))' design-tokens.json)
|
|
217
|
+
# → Store: has_colors, color_semantic, uses_oklch, has_dark_mode
|
|
218
|
+
|
|
219
|
+
# Spacing pattern detection
|
|
220
|
+
bash(jq '.spacing | to_entries | map(.value) | map(gsub("[^0-9.]"; "") | tonumber)' design-tokens.json)
|
|
221
|
+
# Analyze pattern: linear (4-8-12-16) vs geometric (4-8-16-32) vs custom
|
|
222
|
+
# → Store: spacing_pattern, spacing_scale
|
|
223
|
+
|
|
224
|
+
# Typography characteristics
|
|
225
|
+
bash(jq '.typography | keys | map(select(contains("family") or contains("weight")))' design-tokens.json)
|
|
226
|
+
bash(jq '.typography | to_entries | map(select(.key | contains("size"))) | .[].value' design-tokens.json)
|
|
227
|
+
# Check for calc() usage
|
|
228
|
+
bash(jq '. | tostring | test("calc\\(")' design-tokens.json)
|
|
229
|
+
# → Store: has_typography, typography_hierarchy, uses_calc
|
|
230
|
+
|
|
231
|
+
# Border radius style
|
|
232
|
+
bash(jq '.border_radius | to_entries | map(.value)' design-tokens.json)
|
|
233
|
+
# Check range: small (sharp <4px) vs moderate (4-8px) vs large (rounded >8px)
|
|
234
|
+
# → Store: has_radius, radius_style
|
|
235
|
+
|
|
236
|
+
# Shadow characteristics
|
|
237
|
+
bash(jq '.shadows | keys' design-tokens.json)
|
|
238
|
+
bash(jq '.shadows | to_entries[0].value' design-tokens.json)
|
|
239
|
+
# → Store: has_shadows, shadow_pattern
|
|
240
|
+
|
|
241
|
+
# Animations (if available)
|
|
242
|
+
bash(jq '.duration | to_entries | map(.value)' animation-tokens.json)
|
|
243
|
+
bash(jq '.easing | keys' animation-tokens.json)
|
|
244
|
+
# → Store: has_animations, animation_range, easing_variety
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
Store analysis results in `DESIGN_ANALYSIS` (see [Key Variables](#key-variables))
|
|
248
|
+
|
|
249
|
+
**Note**: Analysis focuses on characteristics and patterns, not counts. Include technical feature detection (oklch, calc, dark mode) for Prerequisites section.
|
|
250
|
+
|
|
251
|
+
**TodoWrite Update**: Mark "Read package data" as completed, "Generate SKILL.md" as in_progress
|
|
252
|
+
|
|
253
|
+
---
|
|
254
|
+
|
|
255
|
+
### Phase 3: Generate SKILL.md
|
|
256
|
+
|
|
257
|
+
**Step 1: Create SKILL Directory**
|
|
258
|
+
|
|
259
|
+
```bash
|
|
260
|
+
bash(mkdir -p .claude/skills/style-${package_name})
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
**Step 2: Generate Intelligent Description**
|
|
264
|
+
|
|
265
|
+
**Format**:
|
|
266
|
+
```
|
|
267
|
+
{package_name} project-independent design system with {universal_count} universal layout templates and interactive preview (located at .workflow/reference_style/{package_name}). Load when working with reusable UI components, design tokens, layout patterns, or implementing visual consistency. Excludes {specialized_count} project-specific components.
|
|
268
|
+
```
|
|
269
|
+
|
|
270
|
+
**Step 3: Load and Process SKILL.md Template**
|
|
271
|
+
|
|
272
|
+
**⚠️ CRITICAL - Execute First**:
|
|
273
|
+
```bash
|
|
274
|
+
bash(cat ~/.claude/workflows/cli-templates/memory/style-skill-memory/skill-md-template.md)
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
**Template Processing**:
|
|
278
|
+
1. **Replace variables**: Substitute all `{variable}` placeholders with actual values from Phase 2
|
|
279
|
+
2. **Generate dynamic sections**:
|
|
280
|
+
- **Prerequisites & Tooling**: Generate based on `DESIGN_ANALYSIS` technical features (oklch, calc, dark mode)
|
|
281
|
+
- **Design Principles**: Generate based on `DESIGN_ANALYSIS` characteristics
|
|
282
|
+
- **Complete Implementation Example**: Include React component example with token adaptation
|
|
283
|
+
- **Design Token Values**: Iterate `DESIGN_TOKENS_DATA`, `ANIMATION_TOKENS_DATA` and display all key-value pairs with DEFAULT annotations
|
|
284
|
+
3. **Write to file**: Use Write tool to save to `.claude/skills/style-{package_name}/SKILL.md`
|
|
285
|
+
|
|
286
|
+
**Variable Replacement Map**:
|
|
287
|
+
- `{package_name}` → PACKAGE_NAME
|
|
288
|
+
- `{intelligent_description}` → Generated description from Step 2
|
|
289
|
+
- `{component_count}` → COMPONENT_COUNT
|
|
290
|
+
- `{universal_count}` → UNIVERSAL_COUNT
|
|
291
|
+
- `{specialized_count}` → SPECIALIZED_COUNT
|
|
292
|
+
- `{universal_components_list}` → UNIVERSAL_COMPONENTS (comma-separated)
|
|
293
|
+
- `{has_animations}` → HAS_ANIMATIONS
|
|
294
|
+
|
|
295
|
+
**Dynamic Content Generation**:
|
|
296
|
+
|
|
297
|
+
See template file for complete structure. Key dynamic sections:
|
|
298
|
+
|
|
299
|
+
1. **Prerequisites & Tooling** (based on DESIGN_ANALYSIS technical features):
|
|
300
|
+
- IF uses_oklch → Include PostCSS plugin requirement (`postcss-oklab-function`)
|
|
301
|
+
- IF uses_calc → Include preprocessor requirement for calc() expressions
|
|
302
|
+
- IF has_dark_mode → Include dark mode implementation mechanism (class or media query)
|
|
303
|
+
- ALWAYS include browser support, jq installation, and local server setup
|
|
304
|
+
|
|
305
|
+
2. **Design Principles** (based on DESIGN_ANALYSIS):
|
|
306
|
+
- IF has_colors → Include "Color System" principle with semantic pattern
|
|
307
|
+
- IF spacing_pattern detected → Include "Spatial Rhythm" with unified scale description (actual token values)
|
|
308
|
+
- IF has_typography_hierarchy → Include "Typographic System" with scale examples
|
|
309
|
+
- IF has_radius → Include "Shape Language" with style characteristic
|
|
310
|
+
- IF has_shadows → Include "Depth & Elevation" with elevation pattern
|
|
311
|
+
- IF has_animations → Include "Motion & Timing" with duration range
|
|
312
|
+
- ALWAYS include "Accessibility First" principle
|
|
313
|
+
|
|
314
|
+
3. **Design Token Values** (iterate from read data):
|
|
315
|
+
- Colors: Iterate `DESIGN_TOKENS_DATA.colors`
|
|
316
|
+
- Typography: Iterate `DESIGN_TOKENS_DATA.typography`
|
|
317
|
+
- Spacing: Iterate `DESIGN_TOKENS_DATA.spacing`
|
|
318
|
+
- Border Radius: Iterate `DESIGN_TOKENS_DATA.border_radius` with calc() explanations
|
|
319
|
+
- Shadows: Iterate `DESIGN_TOKENS_DATA.shadows` with DEFAULT token annotations
|
|
320
|
+
- Animations (if available): Iterate `ANIMATION_TOKENS_DATA.duration` and `ANIMATION_TOKENS_DATA.easing`
|
|
321
|
+
|
|
322
|
+
**Step 4: Verify SKILL.md Created**
|
|
323
|
+
|
|
324
|
+
```bash
|
|
325
|
+
bash(test -f .claude/skills/style-${package_name}/SKILL.md && echo "success" || echo "failed")
|
|
326
|
+
```
|
|
327
|
+
|
|
328
|
+
**TodoWrite Update**: Mark all todos as completed
|
|
329
|
+
|
|
330
|
+
---
|
|
331
|
+
|
|
332
|
+
### Completion Message
|
|
333
|
+
|
|
334
|
+
Display a simple completion message with key information:
|
|
335
|
+
|
|
336
|
+
```
|
|
337
|
+
✅ SKILL memory generated for style package: {package_name}
|
|
338
|
+
|
|
339
|
+
📁 Location: .claude/skills/style-{package_name}/SKILL.md
|
|
340
|
+
|
|
341
|
+
📊 Package Summary:
|
|
342
|
+
- {component_count} components ({universal_count} universal, {specialized_count} specialized)
|
|
343
|
+
- Design tokens: colors, typography, spacing, shadows{animations_note}
|
|
344
|
+
|
|
345
|
+
💡 Usage: /memory:load-skill-memory style-{package_name} "your task description"
|
|
346
|
+
```
|
|
347
|
+
|
|
348
|
+
Variables: `{package_name}`, `{component_count}`, `{universal_count}`, `{specialized_count}`, `{animations_note}` (", animations" if exists)
|
|
349
|
+
|
|
350
|
+
---
|
|
351
|
+
|
|
352
|
+
## Implementation Details
|
|
353
|
+
|
|
354
|
+
### Critical Rules
|
|
355
|
+
|
|
356
|
+
1. **Check Before Generate**: Verify package exists before attempting SKILL generation
|
|
357
|
+
2. **Respect Existing SKILL**: Don't overwrite unless --regenerate flag provided
|
|
358
|
+
3. **Load Templates via cat**: Use `cat ~/.claude/workflows/cli-templates/memory/style-skill-memory/{template}` to load templates
|
|
359
|
+
4. **Variable Substitution**: Replace all `{variable}` placeholders with actual values
|
|
360
|
+
5. **Technical Feature Detection**: Analyze tokens for modern features (oklch, calc, dark mode) and generate appropriate Prerequisites section
|
|
361
|
+
6. **Dynamic Content Generation**: Generate sections based on DESIGN_ANALYSIS characteristics
|
|
362
|
+
7. **Unified Spacing Scale**: Use actual token values as primary scale reference, avoid contradictory pattern descriptions
|
|
363
|
+
8. **Direct Iteration**: Iterate data structures (DESIGN_TOKENS_DATA, etc.) for token values
|
|
364
|
+
9. **Annotate Special Tokens**: Add comments for DEFAULT tokens and calc() expressions
|
|
365
|
+
10. **Embed jq Commands**: Include bash/jq commands in SKILL.md for dynamic loading
|
|
366
|
+
11. **Progressive Loading**: Include all 3 levels (0-2) with specific jq commands
|
|
367
|
+
12. **Complete Examples**: Include end-to-end implementation examples (React components)
|
|
368
|
+
13. **Intelligent Description**: Extract component count and key features from metadata
|
|
369
|
+
14. **Emphasize Flexibility**: Strongly warn against rigid copying - values are references for creative adaptation
|
|
370
|
+
|
|
371
|
+
### Template Files Location
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
```
|
|
375
|
+
Phase 1: Validate
|
|
376
|
+
├─ Parse package_name
|
|
377
|
+
├─ Check PACKAGE_DIR exists
|
|
378
|
+
└─ Check SKILL_DIR exists (skip if exists and no --regenerate)
|
|
379
|
+
|
|
380
|
+
Phase 2: Read & Analyze
|
|
381
|
+
├─ Read design-tokens.json → DESIGN_TOKENS_DATA
|
|
382
|
+
├─ Read layout-templates.json → LAYOUT_TEMPLATES_DATA
|
|
383
|
+
├─ Read animation-tokens.json → ANIMATION_TOKENS_DATA (if exists)
|
|
384
|
+
├─ Extract Metadata → COMPONENT_COUNT, UNIVERSAL_COUNT, etc.
|
|
385
|
+
└─ Analyze Design System → DESIGN_ANALYSIS (characteristics)
|
|
386
|
+
|
|
387
|
+
Phase 3: Generate
|
|
388
|
+
├─ Create SKILL directory
|
|
389
|
+
├─ Generate intelligent description
|
|
390
|
+
├─ Load SKILL.md template (cat command)
|
|
391
|
+
├─ Replace variables and generate dynamic content
|
|
392
|
+
├─ Write SKILL.md
|
|
393
|
+
├─ Verify creation
|
|
394
|
+
├─ Load completion message template (cat command)
|
|
395
|
+
└─ Display completion message
|
|
396
|
+
```
|