cokit-cli 1.0.9 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +32 -32
- package/README.FLOW.md +237 -237
- package/README.md +142 -92
- package/agents/brainstormer.agent.md +71 -71
- package/agents/code-reviewer.agent.md +136 -136
- package/agents/code-simplifier.agent.md +43 -0
- package/agents/debugger.agent.md +128 -128
- package/agents/docs-manager.agent.md +121 -121
- package/agents/fullstack-developer.agent.md +52 -0
- package/agents/git-manager.agent.md +390 -390
- package/agents/planner.agent.md +94 -94
- package/agents/researcher.agent.md +31 -32
- package/agents/scout.agent.md +107 -107
- package/agents/tester.agent.md +117 -117
- package/agents/ui-ux-designer.agent.md +57 -0
- package/bin/cokit.js +4 -4
- package/collections/ck-core.collection.yml +28 -28
- package/collections/ck-development-rules.collection.yml +18 -18
- package/collections/ck-documentation.collection.yml +14 -14
- package/collections/ck-git-workflow.collection.yml +12 -12
- package/collections/ck-orchestration.collection.yml +16 -16
- package/docs/README.md +75 -108
- package/docs/code-standards.md +68 -0
- package/docs/codebase-summary.md +263 -0
- package/docs/cokit-commands-usage-guide.md +138 -0
- package/docs/cokit-comprehensive-mapping-guide.md +361 -374
- package/docs/cokit-slides.md +212 -222
- package/docs/cokit-sync-and-maintenance-guide.md +414 -0
- package/docs/cokit-team-presentation.md +356 -378
- package/docs/copilot-processing-flow.md +215 -212
- package/docs/guide-next-steps-speckit-cokit-implementation.md +187 -0
- package/docs/migration-guide.md +133 -133
- package/docs/project-overview-pdr.md +45 -0
- package/docs/project-roadmap.md +308 -280
- package/docs/system-architecture.md +81 -0
- package/instructions/ck-backend.instructions.md +48 -48
- package/instructions/ck-development.instructions.md +54 -54
- package/instructions/ck-frontend.instructions.md +44 -44
- package/instructions/ck-research.instructions.md +167 -167
- package/instructions/ck-testing.instructions.md +36 -36
- package/package.json +71 -42
- package/prompts/ck-ask.prompt.md +67 -57
- package/prompts/ck-bootstrap.prompt.md +141 -136
- package/prompts/ck-brainstorm.prompt.md +87 -105
- package/prompts/ck-cook.prompt.md +96 -97
- package/prompts/ck-debug.prompt.md +115 -14
- package/prompts/ck-docs.prompt.md +102 -51
- package/prompts/ck-fix-ci.prompt.md +46 -0
- package/prompts/ck-fix-fast.prompt.md +44 -0
- package/prompts/ck-fix-hard.prompt.md +60 -0
- package/prompts/ck-fix-logs.prompt.md +53 -0
- package/prompts/ck-fix-test.prompt.md +47 -0
- package/prompts/ck-fix-types.prompt.md +29 -0
- package/prompts/ck-fix-ui.prompt.md +50 -0
- package/prompts/ck-fix.prompt.md +50 -44
- package/prompts/ck-git.prompt.md +104 -79
- package/{templates/repo/.github/prompts/ck-ck-help.prompt.md → prompts/ck-help.prompt.md} +142 -112
- package/prompts/ck-journal.prompt.md +19 -0
- package/prompts/ck-plan-fast.prompt.md +106 -0
- package/prompts/ck-plan-hard.prompt.md +133 -0
- package/prompts/ck-plan-validate.prompt.md +209 -0
- package/prompts/ck-plan.prompt.md +75 -80
- package/prompts/ck-preview.prompt.md +77 -0
- package/{templates/repo/.github/prompts/ck-review-codebase.prompt.md → prompts/ck-review.prompt.md} +58 -44
- package/prompts/ck-scout.prompt.md +85 -25
- package/prompts/ck-simplify.prompt.md +46 -0
- package/prompts/ck-spec-analyze.prompt.md +201 -0
- package/prompts/ck-spec-checklist.prompt.md +308 -0
- package/prompts/ck-spec-clarify.prompt.md +190 -0
- package/prompts/ck-spec-constitution.prompt.md +92 -0
- package/prompts/ck-spec-implement.prompt.md +157 -0
- package/prompts/ck-spec-plan.prompt.md +95 -0
- package/prompts/ck-spec-specify.prompt.md +260 -0
- package/prompts/ck-spec-tasks.prompt.md +181 -0
- package/prompts/ck-test.prompt.md +21 -10
- package/prompts/ck-watzup.prompt.md +21 -0
- package/skills/INSTALLATION.md +311 -0
- package/skills/README.md +112 -0
- package/skills/THIRD_PARTY_NOTICES.md +405 -0
- package/skills/agent-browser/SKILL.md +291 -0
- package/skills/agent-browser/references/.gitkeep +0 -0
- package/skills/agent-browser/references/browserbase-cloud-setup.md +161 -0
- package/skills/agent_skills_spec.md +55 -0
- package/skills/{ck-backend-development → backend-development}/SKILL.md +94 -96
- package/skills/{ck-backend-development → backend-development}/references/backend-api-design.md +697 -495
- package/{templates/repo/.github/skills/ck-backend-development → skills/backend-development}/references/backend-architecture.md +454 -454
- package/skills/{ck-backend-development → backend-development}/references/backend-authentication.md +433 -338
- package/skills/{ck-backend-development → backend-development}/references/backend-code-quality.md +659 -659
- package/{templates/repo/.github/skills/ck-backend-development → skills/backend-development}/references/backend-debugging.md +904 -904
- package/{templates/repo/.github/skills/ck-backend-development → skills/backend-development}/references/backend-devops.md +494 -494
- package/{templates/repo/.github/skills/ck-backend-development → skills/backend-development}/references/backend-mindset.md +387 -387
- package/skills/{ck-backend-development → backend-development}/references/backend-performance.md +397 -397
- package/{templates/repo/.github/skills/ck-backend-development → skills/backend-development}/references/backend-security.md +340 -290
- package/{templates/repo/.github/skills/ck-backend-development → skills/backend-development}/references/backend-technologies.md +300 -290
- package/{templates/repo/.github/skills/ck-backend-development → skills/backend-development}/references/backend-testing.md +484 -561
- package/skills/brainstorm/SKILL.md +74 -0
- package/skills/{ck-code-review → code-review}/SKILL.md +143 -143
- package/skills/{ck-code-review → code-review}/references/code-review-reception.md +1 -1
- package/skills/{ck-code-review → code-review}/references/requesting-code-review.md +7 -7
- package/skills/common/README.md +120 -0
- package/skills/common/api_key_helper.py +411 -0
- package/skills/common/api_key_rotator.py +248 -0
- package/skills/context-engineering/SKILL.md +106 -0
- package/skills/context-engineering/references/context-compression.md +84 -0
- package/skills/context-engineering/references/context-degradation.md +93 -0
- package/skills/context-engineering/references/context-fundamentals.md +75 -0
- package/skills/context-engineering/references/context-optimization.md +82 -0
- package/skills/context-engineering/references/evaluation.md +89 -0
- package/skills/context-engineering/references/memory-systems.md +88 -0
- package/skills/context-engineering/references/multi-agent-patterns.md +90 -0
- package/skills/context-engineering/references/project-development.md +97 -0
- package/skills/context-engineering/references/runtime-awareness.md +202 -0
- package/skills/context-engineering/references/tool-design.md +86 -0
- package/skills/context-engineering/scripts/compression_evaluator.py +349 -0
- package/skills/context-engineering/scripts/context_analyzer.py +317 -0
- package/skills/cook/README.md +86 -0
- package/skills/cook/SKILL.md +93 -0
- package/skills/cook/references/agent-patterns.md +75 -0
- package/skills/cook/references/intent-detection.md +101 -0
- package/skills/cook/references/review-cycle.md +75 -0
- package/skills/cook/references/workflow-steps.md +140 -0
- package/skills/databases/SKILL.md +111 -0
- package/skills/databases/analytics.md +198 -0
- package/skills/databases/db-design.md +188 -0
- package/skills/databases/incremental-etl.md +213 -0
- package/skills/databases/references/mongodb-aggregation.md +447 -0
- package/skills/databases/references/mongodb-atlas.md +465 -0
- package/skills/databases/references/mongodb-crud.md +408 -0
- package/skills/databases/references/mongodb-indexing.md +442 -0
- package/skills/databases/references/postgresql-administration.md +594 -0
- package/skills/databases/references/postgresql-performance.md +527 -0
- package/skills/databases/references/postgresql-psql-cli.md +467 -0
- package/skills/databases/references/postgresql-queries.md +475 -0
- package/skills/databases/scripts/db_backup.py +502 -0
- package/skills/databases/scripts/db_migrate.py +426 -0
- package/skills/databases/scripts/db_performance_check.py +457 -0
- package/skills/databases/scripts/requirements.txt +20 -0
- package/skills/databases/stacks/bigquery.md +231 -0
- package/skills/databases/stacks/d1_cloudflare.md +137 -0
- package/skills/databases/stacks/mysql.md +216 -0
- package/skills/databases/stacks/postgres.md +235 -0
- package/skills/databases/stacks/sqlite.md +244 -0
- package/skills/databases/transactional.md +176 -0
- package/{templates/repo/.github/skills/ck-debugging → skills/debug}/SKILL.md +83 -82
- package/{templates/repo/.github/skills/ck-debugging → skills/debug}/references/defense-in-depth.md +124 -124
- package/skills/{ck-debugging → debug}/references/root-cause-tracing.md +122 -122
- package/{templates/repo/.github/skills/ck-debugging → skills/debug}/references/systematic-debugging.md +102 -102
- package/skills/{ck-debugging → debug}/references/verification.md +123 -123
- package/{templates/repo/.github/skills/ck-debugging → skills/debug}/scripts/find-polluter.sh +63 -63
- package/{templates/repo/.github/skills/ck-debugging → skills/debug}/scripts/find-polluter.test.md +102 -102
- package/skills/devops/.env.example +76 -0
- package/skills/devops/SKILL.md +102 -0
- package/skills/devops/references/browser-rendering.md +305 -0
- package/skills/devops/references/cloudflare-d1-kv.md +123 -0
- package/skills/devops/references/cloudflare-platform.md +271 -0
- package/skills/devops/references/cloudflare-r2-storage.md +280 -0
- package/skills/devops/references/cloudflare-workers-advanced.md +312 -0
- package/skills/devops/references/cloudflare-workers-apis.md +309 -0
- package/skills/devops/references/cloudflare-workers-basics.md +418 -0
- package/skills/devops/references/docker-basics.md +297 -0
- package/skills/devops/references/docker-compose.md +292 -0
- package/skills/devops/references/gcloud-platform.md +297 -0
- package/skills/devops/references/gcloud-services.md +304 -0
- package/skills/devops/references/kubernetes-basics.md +99 -0
- package/skills/devops/references/kubernetes-helm-advanced.md +75 -0
- package/skills/devops/references/kubernetes-helm.md +81 -0
- package/skills/devops/references/kubernetes-kubectl.md +74 -0
- package/skills/devops/references/kubernetes-security-advanced.md +98 -0
- package/skills/devops/references/kubernetes-security.md +95 -0
- package/skills/devops/references/kubernetes-troubleshooting-advanced.md +74 -0
- package/skills/devops/references/kubernetes-troubleshooting.md +49 -0
- package/skills/devops/references/kubernetes-workflows-advanced.md +75 -0
- package/skills/devops/references/kubernetes-workflows.md +78 -0
- package/skills/devops/scripts/cloudflare_deploy.py +269 -0
- package/skills/devops/scripts/docker_optimize.py +332 -0
- package/skills/devops/scripts/requirements.txt +20 -0
- package/skills/docs-seeker/.env.example +15 -0
- package/skills/docs-seeker/SKILL.md +96 -0
- package/skills/docs-seeker/package.json +25 -0
- package/skills/docs-seeker/references/advanced.md +79 -0
- package/skills/docs-seeker/references/context7-patterns.md +64 -0
- package/skills/docs-seeker/references/errors.md +68 -0
- package/skills/docs-seeker/scripts/analyze-llms-txt.js +211 -0
- package/skills/docs-seeker/scripts/detect-topic.js +172 -0
- package/skills/docs-seeker/scripts/fetch-docs.js +214 -0
- package/skills/docs-seeker/scripts/utils/env-loader.js +94 -0
- package/skills/docs-seeker/workflows/library-search.md +86 -0
- package/skills/docs-seeker/workflows/repo-analysis.md +91 -0
- package/skills/docs-seeker/workflows/topic-search.md +77 -0
- package/skills/fix/SKILL.md +100 -0
- package/skills/fix/references/complexity-assessment.md +61 -0
- package/skills/fix/references/mode-selection.md +30 -0
- package/skills/fix/references/parallel-exploration.md +77 -0
- package/skills/fix/references/review-cycle.md +77 -0
- package/skills/fix/references/skill-activation-matrix.md +65 -0
- package/skills/fix/references/workflow-ci.md +28 -0
- package/skills/fix/references/workflow-deep.md +91 -0
- package/skills/fix/references/workflow-logs.md +36 -0
- package/skills/fix/references/workflow-quick.md +59 -0
- package/skills/fix/references/workflow-standard.md +86 -0
- package/skills/fix/references/workflow-test.md +36 -0
- package/skills/fix/references/workflow-types.md +33 -0
- package/skills/fix/references/workflow-ui.md +34 -0
- package/skills/frontend-design/SKILL.md +74 -0
- package/skills/frontend-design/references/analysis-best-practices.md +80 -0
- package/skills/frontend-design/references/analysis-prompts.md +141 -0
- package/skills/frontend-design/references/analysis-techniques.md +118 -0
- package/skills/frontend-design/references/animejs.md +396 -0
- package/skills/frontend-design/references/asset-generation.md +161 -0
- package/skills/frontend-design/references/design-extraction-overview.md +71 -0
- package/skills/frontend-design/references/extraction-best-practices.md +141 -0
- package/skills/frontend-design/references/extraction-output-templates.md +162 -0
- package/skills/frontend-design/references/extraction-prompts.md +127 -0
- package/skills/frontend-design/references/technical-accessibility.md +119 -0
- package/skills/frontend-design/references/technical-best-practices.md +97 -0
- package/skills/frontend-design/references/technical-optimization.md +44 -0
- package/skills/frontend-design/references/technical-overview.md +90 -0
- package/skills/frontend-design/references/technical-workflows.md +150 -0
- package/skills/frontend-design/references/visual-analysis-overview.md +95 -0
- package/skills/frontend-design/references/workflow-describe.md +86 -0
- package/skills/frontend-design/references/workflow-quick.md +54 -0
- package/skills/frontend-design/references/workflow-screenshot.md +62 -0
- package/skills/git/SKILL.md +99 -0
- package/skills/git/references/branch-management.md +88 -0
- package/skills/git/references/commit-standards.md +46 -0
- package/skills/git/references/gh-cli-guide.md +109 -0
- package/skills/git/references/safety-protocols.md +69 -0
- package/skills/git/references/workflow-commit.md +58 -0
- package/skills/git/references/workflow-merge.md +48 -0
- package/skills/git/references/workflow-pr.md +58 -0
- package/skills/git/references/workflow-push.md +52 -0
- package/skills/install.ps1 +1247 -0
- package/skills/install.sh +1300 -0
- package/skills/mcp-management/README.md +219 -0
- package/skills/mcp-management/SKILL.md +209 -0
- package/skills/mcp-management/assets/tools.json +3146 -0
- package/skills/mcp-management/references/configuration.md +114 -0
- package/skills/mcp-management/references/gemini-cli-integration.md +221 -0
- package/skills/mcp-management/references/mcp-protocol.md +116 -0
- package/skills/mcp-management/scripts/.env.example +10 -0
- package/skills/mcp-management/scripts/cli.ts +195 -0
- package/skills/mcp-management/scripts/dist/analyze-tools.js +70 -0
- package/skills/mcp-management/scripts/dist/cli.js +160 -0
- package/skills/mcp-management/scripts/dist/mcp-client.js +183 -0
- package/skills/mcp-management/scripts/mcp-client.ts +230 -0
- package/skills/mcp-management/scripts/package.json +20 -0
- package/skills/mcp-management/scripts/tsconfig.json +15 -0
- package/skills/mermaidjs-v11/SKILL.md +115 -0
- package/skills/mermaidjs-v11/references/cli-usage.md +228 -0
- package/skills/mermaidjs-v11/references/configuration.md +232 -0
- package/skills/mermaidjs-v11/references/diagram-types.md +315 -0
- package/skills/mermaidjs-v11/references/examples.md +344 -0
- package/skills/mermaidjs-v11/references/integration.md +310 -0
- package/skills/{ck-planning → planning}/SKILL.md +131 -112
- package/{templates/repo/.github/skills/ck-planning → skills/planning}/references/codebase-understanding.md +62 -62
- package/skills/{ck-planning → planning}/references/output-standards.md +141 -127
- package/{templates/repo/.github/skills/ck-planning → skills/planning}/references/plan-organization.md +160 -150
- package/skills/{ck-planning → planning}/references/research-phase.md +49 -49
- package/{templates/repo/.github/skills/ck-planning → skills/planning}/references/solution-design.md +63 -63
- package/skills/{ck-problem-solving → problem-solving}/SKILL.md +95 -95
- package/{templates/repo/.github/skills/ck-problem-solving → skills/problem-solving}/references/attribution.md +69 -69
- package/skills/{ck-problem-solving → problem-solving}/references/collision-zone-thinking.md +79 -79
- package/{templates/repo/.github/skills/ck-problem-solving → skills/problem-solving}/references/inversion-exercise.md +91 -91
- package/skills/{ck-problem-solving → problem-solving}/references/meta-pattern-recognition.md +87 -87
- package/skills/{ck-problem-solving → problem-solving}/references/scale-game.md +95 -95
- package/skills/{ck-problem-solving → problem-solving}/references/simplification-cascades.md +80 -80
- package/{templates/repo/.github/skills/ck-problem-solving → skills/problem-solving}/references/when-stuck.md +72 -72
- package/skills/repomix/SKILL.md +247 -0
- package/skills/repomix/references/configuration.md +211 -0
- package/skills/repomix/references/usage-patterns.md +232 -0
- package/skills/repomix/scripts/README.md +179 -0
- package/skills/repomix/scripts/repomix_batch.py +455 -0
- package/skills/repomix/scripts/repos.example.json +15 -0
- package/skills/repomix/scripts/requirements.txt +15 -0
- package/skills/research/SKILL.md +169 -0
- package/skills/scout/SKILL.md +78 -0
- package/skills/scout/references/external-scouting.md +140 -0
- package/skills/scout/references/internal-scouting.md +119 -0
- package/skills/{ck-sequential-thinking → sequential-thinking}/.env.example +8 -8
- package/skills/{ck-sequential-thinking → sequential-thinking}/README.md +183 -183
- package/{templates/repo/.github/skills/ck-sequential-thinking → skills/sequential-thinking}/SKILL.md +92 -92
- package/skills/{ck-sequential-thinking → sequential-thinking}/package.json +31 -31
- package/{templates/repo/.github/skills/ck-sequential-thinking → skills/sequential-thinking}/references/advanced-strategies.md +79 -79
- package/{templates/repo/.github/skills/ck-sequential-thinking → skills/sequential-thinking}/references/advanced-techniques.md +76 -76
- package/{templates/repo/.github/skills/ck-sequential-thinking → skills/sequential-thinking}/references/core-patterns.md +95 -95
- package/skills/{ck-sequential-thinking → sequential-thinking}/references/examples-api.md +88 -88
- package/skills/{ck-sequential-thinking → sequential-thinking}/references/examples-architecture.md +94 -94
- package/skills/{ck-sequential-thinking → sequential-thinking}/references/examples-debug.md +90 -90
- package/skills/{ck-sequential-thinking → sequential-thinking}/scripts/format-thought.js +159 -159
- package/{templates/repo/.github/skills/ck-sequential-thinking → skills/sequential-thinking}/scripts/process-thought.js +236 -236
- package/skills/ui-styling/LICENSE.txt +202 -0
- package/skills/ui-styling/SKILL.md +319 -0
- package/skills/ui-styling/canvas-fonts/ArsenalSC-OFL.txt +93 -0
- package/skills/ui-styling/canvas-fonts/ArsenalSC-Regular.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/BigShoulders-Bold.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/BigShoulders-OFL.txt +93 -0
- package/skills/ui-styling/canvas-fonts/BigShoulders-Regular.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/Boldonse-OFL.txt +93 -0
- package/skills/ui-styling/canvas-fonts/Boldonse-Regular.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/BricolageGrotesque-Bold.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/BricolageGrotesque-OFL.txt +93 -0
- package/skills/ui-styling/canvas-fonts/BricolageGrotesque-Regular.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/CrimsonPro-Bold.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/CrimsonPro-Italic.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/CrimsonPro-OFL.txt +93 -0
- package/skills/ui-styling/canvas-fonts/CrimsonPro-Regular.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/DMMono-OFL.txt +93 -0
- package/skills/ui-styling/canvas-fonts/DMMono-Regular.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/EricaOne-OFL.txt +94 -0
- package/skills/ui-styling/canvas-fonts/EricaOne-Regular.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/GeistMono-Bold.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/GeistMono-OFL.txt +93 -0
- package/skills/ui-styling/canvas-fonts/GeistMono-Regular.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/Gloock-OFL.txt +93 -0
- package/skills/ui-styling/canvas-fonts/Gloock-Regular.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/IBMPlexMono-Bold.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/IBMPlexMono-OFL.txt +93 -0
- package/skills/ui-styling/canvas-fonts/IBMPlexMono-Regular.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/IBMPlexSerif-Bold.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/IBMPlexSerif-BoldItalic.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/IBMPlexSerif-Italic.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/IBMPlexSerif-Regular.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/InstrumentSans-Bold.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/InstrumentSans-BoldItalic.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/InstrumentSans-Italic.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/InstrumentSans-OFL.txt +93 -0
- package/skills/ui-styling/canvas-fonts/InstrumentSans-Regular.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/InstrumentSerif-Italic.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/InstrumentSerif-Regular.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/Italiana-OFL.txt +93 -0
- package/skills/ui-styling/canvas-fonts/Italiana-Regular.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/JetBrainsMono-Bold.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/JetBrainsMono-OFL.txt +93 -0
- package/skills/ui-styling/canvas-fonts/JetBrainsMono-Regular.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/Jura-Light.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/Jura-Medium.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/Jura-OFL.txt +93 -0
- package/skills/ui-styling/canvas-fonts/LibreBaskerville-OFL.txt +93 -0
- package/skills/ui-styling/canvas-fonts/LibreBaskerville-Regular.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/Lora-Bold.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/Lora-BoldItalic.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/Lora-Italic.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/Lora-OFL.txt +93 -0
- package/skills/ui-styling/canvas-fonts/Lora-Regular.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/NationalPark-Bold.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/NationalPark-OFL.txt +93 -0
- package/skills/ui-styling/canvas-fonts/NationalPark-Regular.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/NothingYouCouldDo-OFL.txt +93 -0
- package/skills/ui-styling/canvas-fonts/NothingYouCouldDo-Regular.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/Outfit-Bold.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/Outfit-OFL.txt +93 -0
- package/skills/ui-styling/canvas-fonts/Outfit-Regular.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/PixelifySans-Medium.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/PixelifySans-OFL.txt +93 -0
- package/skills/ui-styling/canvas-fonts/PoiretOne-OFL.txt +93 -0
- package/skills/ui-styling/canvas-fonts/PoiretOne-Regular.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/RedHatMono-Bold.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/RedHatMono-OFL.txt +93 -0
- package/skills/ui-styling/canvas-fonts/RedHatMono-Regular.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/Silkscreen-OFL.txt +93 -0
- package/skills/ui-styling/canvas-fonts/Silkscreen-Regular.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/SmoochSans-Medium.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/SmoochSans-OFL.txt +93 -0
- package/skills/ui-styling/canvas-fonts/Tektur-Medium.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/Tektur-OFL.txt +93 -0
- package/skills/ui-styling/canvas-fonts/Tektur-Regular.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/WorkSans-Bold.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/WorkSans-BoldItalic.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/WorkSans-Italic.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/WorkSans-OFL.txt +93 -0
- package/skills/ui-styling/canvas-fonts/WorkSans-Regular.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/YoungSerif-OFL.txt +93 -0
- package/skills/ui-styling/canvas-fonts/YoungSerif-Regular.ttf +0 -0
- package/skills/ui-styling/references/canvas-design-system.md +320 -0
- package/skills/ui-styling/references/shadcn-accessibility.md +471 -0
- package/skills/ui-styling/references/shadcn-components.md +424 -0
- package/skills/ui-styling/references/shadcn-theming.md +373 -0
- package/skills/ui-styling/references/tailwind-customization.md +483 -0
- package/skills/ui-styling/references/tailwind-responsive.md +382 -0
- package/skills/ui-styling/references/tailwind-utilities.md +455 -0
- package/skills/ui-styling/scripts/requirements.txt +17 -0
- package/skills/ui-styling/scripts/shadcn_add.py +292 -0
- package/skills/ui-styling/scripts/tailwind_config_gen.py +456 -0
- package/skills/web-testing/SKILL.md +94 -0
- package/skills/web-testing/references/accessibility-testing.md +84 -0
- package/skills/web-testing/references/api-testing.md +78 -0
- package/skills/web-testing/references/ci-cd-testing-workflows.md +121 -0
- package/skills/web-testing/references/component-testing.md +94 -0
- package/skills/web-testing/references/contract-testing.md +146 -0
- package/skills/web-testing/references/cross-browser-checklist.md +72 -0
- package/skills/web-testing/references/database-testing.md +139 -0
- package/skills/web-testing/references/e2e-testing-playwright.md +119 -0
- package/skills/web-testing/references/functional-testing-checklist.md +88 -0
- package/skills/web-testing/references/interactive-testing-patterns.md +89 -0
- package/skills/web-testing/references/load-testing-k6.md +93 -0
- package/skills/web-testing/references/mobile-gesture-testing.md +85 -0
- package/skills/web-testing/references/performance-core-web-vitals.md +124 -0
- package/skills/web-testing/references/playwright-component-testing.md +115 -0
- package/skills/web-testing/references/pre-release-checklist.md +75 -0
- package/skills/web-testing/references/security-checklists.md +81 -0
- package/skills/web-testing/references/security-testing-overview.md +92 -0
- package/skills/web-testing/references/shadow-dom-testing.md +70 -0
- package/skills/web-testing/references/test-data-management.md +131 -0
- package/skills/web-testing/references/test-flakiness-mitigation.md +86 -0
- package/skills/web-testing/references/testing-pyramid-strategy.md +76 -0
- package/skills/web-testing/references/unit-integration-testing.md +138 -0
- package/skills/web-testing/references/visual-regression.md +92 -0
- package/skills/web-testing/references/vulnerability-payloads.md +93 -0
- package/skills/web-testing/scripts/analyze-test-results.js +280 -0
- package/skills/web-testing/scripts/init-playwright.js +233 -0
- package/src/commands/add.js +93 -93
- package/src/commands/doctor.js +117 -117
- package/src/commands/init.js +183 -183
- package/src/commands/list.js +91 -91
- package/src/commands/update.js +22 -22
- package/src/index.js +35 -35
- package/src/utils/colors.js +14 -14
- package/src/utils/copy.js +122 -122
- package/src/utils/paths.js +66 -66
- package/src/utils/update-checker.js +126 -126
- package/templates/repo/.github/AGENTS.md +103 -55
- package/templates/repo/.github/agents/brainstormer.agent.md +71 -71
- package/templates/repo/.github/agents/code-reviewer.agent.md +136 -136
- package/templates/repo/.github/agents/code-simplifier.agent.md +43 -0
- package/templates/repo/.github/agents/debugger.agent.md +128 -128
- package/templates/repo/.github/agents/docs-manager.agent.md +121 -121
- package/templates/repo/.github/agents/fullstack-developer.agent.md +52 -0
- package/templates/repo/.github/agents/git-manager.agent.md +390 -390
- package/templates/repo/.github/agents/planner.agent.md +94 -94
- package/templates/repo/.github/agents/researcher.agent.md +31 -32
- package/templates/repo/.github/agents/scout.agent.md +107 -107
- package/templates/repo/.github/agents/tester.agent.md +117 -117
- package/templates/repo/.github/agents/ui-ux-designer.agent.md +57 -0
- package/templates/repo/.github/collections/ck-core.collection.yml +28 -28
- package/templates/repo/.github/collections/ck-development-rules.collection.yml +18 -18
- package/templates/repo/.github/collections/ck-documentation.collection.yml +14 -14
- package/templates/repo/.github/collections/ck-git-workflow.collection.yml +12 -12
- package/templates/repo/.github/collections/ck-orchestration.collection.yml +16 -16
- package/templates/repo/.github/instructions/ck-backend.instructions.md +48 -48
- package/templates/repo/.github/instructions/ck-development.instructions.md +54 -54
- package/templates/repo/.github/instructions/ck-frontend.instructions.md +44 -44
- package/templates/repo/.github/instructions/ck-research.instructions.md +167 -167
- package/templates/repo/.github/instructions/ck-testing.instructions.md +36 -36
- package/templates/repo/.github/prompts/ck-ask.prompt.md +67 -57
- package/templates/repo/.github/prompts/ck-bootstrap.prompt.md +141 -136
- package/templates/repo/.github/prompts/ck-brainstorm.prompt.md +87 -105
- package/templates/repo/.github/prompts/ck-cook.prompt.md +96 -97
- package/templates/repo/.github/prompts/ck-debug.prompt.md +115 -14
- package/templates/repo/.github/prompts/ck-docs.prompt.md +102 -51
- package/templates/repo/.github/prompts/ck-fix-ci.prompt.md +46 -0
- package/templates/repo/.github/prompts/ck-fix-fast.prompt.md +44 -0
- package/templates/repo/.github/prompts/ck-fix-hard.prompt.md +60 -0
- package/templates/repo/.github/prompts/ck-fix-logs.prompt.md +53 -0
- package/templates/repo/.github/prompts/ck-fix-test.prompt.md +47 -0
- package/templates/repo/.github/prompts/ck-fix-types.prompt.md +29 -0
- package/templates/repo/.github/prompts/ck-fix-ui.prompt.md +50 -0
- package/templates/repo/.github/prompts/ck-fix.prompt.md +50 -44
- package/templates/repo/.github/prompts/ck-git.prompt.md +104 -79
- package/{prompts/ck-ck-help.prompt.md → templates/repo/.github/prompts/ck-help.prompt.md} +142 -112
- package/templates/repo/.github/prompts/ck-journal.prompt.md +19 -0
- package/templates/repo/.github/prompts/ck-plan-fast.prompt.md +106 -0
- package/templates/repo/.github/prompts/ck-plan-hard.prompt.md +133 -0
- package/templates/repo/.github/prompts/ck-plan-validate.prompt.md +209 -0
- package/templates/repo/.github/prompts/ck-plan.prompt.md +75 -80
- package/templates/repo/.github/prompts/ck-preview.prompt.md +77 -0
- package/{prompts/ck-review-codebase.prompt.md → templates/repo/.github/prompts/ck-review.prompt.md} +58 -44
- package/templates/repo/.github/prompts/ck-scout.prompt.md +85 -25
- package/templates/repo/.github/prompts/ck-simplify.prompt.md +46 -0
- package/templates/repo/.github/prompts/ck-spec-analyze.prompt.md +201 -0
- package/templates/repo/.github/prompts/ck-spec-checklist.prompt.md +308 -0
- package/templates/repo/.github/prompts/ck-spec-clarify.prompt.md +190 -0
- package/templates/repo/.github/prompts/ck-spec-constitution.prompt.md +92 -0
- package/templates/repo/.github/prompts/ck-spec-implement.prompt.md +157 -0
- package/templates/repo/.github/prompts/ck-spec-plan.prompt.md +95 -0
- package/templates/repo/.github/prompts/ck-spec-specify.prompt.md +260 -0
- package/templates/repo/.github/prompts/ck-spec-tasks.prompt.md +181 -0
- package/templates/repo/.github/prompts/ck-test.prompt.md +21 -10
- package/templates/repo/.github/prompts/ck-watzup.prompt.md +21 -0
- package/templates/repo/.github/skills/INSTALLATION.md +311 -0
- package/templates/repo/.github/skills/README.md +112 -0
- package/templates/repo/.github/skills/THIRD_PARTY_NOTICES.md +405 -0
- package/templates/repo/.github/skills/agent-browser/SKILL.md +291 -0
- package/templates/repo/.github/skills/agent-browser/references/.gitkeep +0 -0
- package/templates/repo/.github/skills/agent-browser/references/browserbase-cloud-setup.md +161 -0
- package/templates/repo/.github/skills/agent_skills_spec.md +55 -0
- package/templates/repo/.github/skills/{ck-backend-development → backend-development}/SKILL.md +94 -96
- package/templates/repo/.github/skills/{ck-backend-development → backend-development}/references/backend-api-design.md +697 -495
- package/{skills/ck-backend-development → templates/repo/.github/skills/backend-development}/references/backend-architecture.md +454 -454
- package/templates/repo/.github/skills/{ck-backend-development → backend-development}/references/backend-authentication.md +433 -338
- package/templates/repo/.github/skills/{ck-backend-development → backend-development}/references/backend-code-quality.md +659 -659
- package/{skills/ck-backend-development → templates/repo/.github/skills/backend-development}/references/backend-debugging.md +904 -904
- package/{skills/ck-backend-development → templates/repo/.github/skills/backend-development}/references/backend-devops.md +494 -494
- package/{skills/ck-backend-development → templates/repo/.github/skills/backend-development}/references/backend-mindset.md +387 -387
- package/templates/repo/.github/skills/{ck-backend-development → backend-development}/references/backend-performance.md +397 -397
- package/{skills/ck-backend-development → templates/repo/.github/skills/backend-development}/references/backend-security.md +340 -290
- package/{skills/ck-backend-development → templates/repo/.github/skills/backend-development}/references/backend-technologies.md +300 -290
- package/{skills/ck-backend-development → templates/repo/.github/skills/backend-development}/references/backend-testing.md +484 -561
- package/templates/repo/.github/skills/brainstorm/SKILL.md +74 -0
- package/templates/repo/.github/skills/{ck-code-review → code-review}/SKILL.md +143 -143
- package/templates/repo/.github/skills/{ck-code-review → code-review}/references/code-review-reception.md +208 -208
- package/templates/repo/.github/skills/{ck-code-review → code-review}/references/requesting-code-review.md +104 -104
- package/templates/repo/.github/skills/{ck-code-review → code-review}/references/verification-before-completion.md +138 -138
- package/templates/repo/.github/skills/common/README.md +120 -0
- package/templates/repo/.github/skills/common/api_key_helper.py +411 -0
- package/templates/repo/.github/skills/common/api_key_rotator.py +248 -0
- package/templates/repo/.github/skills/context-engineering/SKILL.md +106 -0
- package/templates/repo/.github/skills/context-engineering/references/context-compression.md +84 -0
- package/templates/repo/.github/skills/context-engineering/references/context-degradation.md +93 -0
- package/templates/repo/.github/skills/context-engineering/references/context-fundamentals.md +75 -0
- package/templates/repo/.github/skills/context-engineering/references/context-optimization.md +82 -0
- package/templates/repo/.github/skills/context-engineering/references/evaluation.md +89 -0
- package/templates/repo/.github/skills/context-engineering/references/memory-systems.md +88 -0
- package/templates/repo/.github/skills/context-engineering/references/multi-agent-patterns.md +90 -0
- package/templates/repo/.github/skills/context-engineering/references/project-development.md +97 -0
- package/templates/repo/.github/skills/context-engineering/references/runtime-awareness.md +202 -0
- package/templates/repo/.github/skills/context-engineering/references/tool-design.md +86 -0
- package/templates/repo/.github/skills/context-engineering/scripts/compression_evaluator.py +349 -0
- package/templates/repo/.github/skills/context-engineering/scripts/context_analyzer.py +317 -0
- package/templates/repo/.github/skills/cook/README.md +86 -0
- package/templates/repo/.github/skills/cook/SKILL.md +93 -0
- package/templates/repo/.github/skills/cook/references/agent-patterns.md +75 -0
- package/templates/repo/.github/skills/cook/references/intent-detection.md +101 -0
- package/templates/repo/.github/skills/cook/references/review-cycle.md +75 -0
- package/templates/repo/.github/skills/cook/references/workflow-steps.md +140 -0
- package/templates/repo/.github/skills/databases/SKILL.md +111 -0
- package/templates/repo/.github/skills/databases/analytics.md +198 -0
- package/templates/repo/.github/skills/databases/db-design.md +188 -0
- package/templates/repo/.github/skills/databases/incremental-etl.md +213 -0
- package/templates/repo/.github/skills/databases/references/mongodb-aggregation.md +447 -0
- package/templates/repo/.github/skills/databases/references/mongodb-atlas.md +465 -0
- package/templates/repo/.github/skills/databases/references/mongodb-crud.md +408 -0
- package/templates/repo/.github/skills/databases/references/mongodb-indexing.md +442 -0
- package/templates/repo/.github/skills/databases/references/postgresql-administration.md +594 -0
- package/templates/repo/.github/skills/databases/references/postgresql-performance.md +527 -0
- package/templates/repo/.github/skills/databases/references/postgresql-psql-cli.md +467 -0
- package/templates/repo/.github/skills/databases/references/postgresql-queries.md +475 -0
- package/templates/repo/.github/skills/databases/scripts/db_backup.py +502 -0
- package/templates/repo/.github/skills/databases/scripts/db_migrate.py +426 -0
- package/templates/repo/.github/skills/databases/scripts/db_performance_check.py +457 -0
- package/templates/repo/.github/skills/databases/scripts/requirements.txt +20 -0
- package/templates/repo/.github/skills/databases/stacks/bigquery.md +231 -0
- package/templates/repo/.github/skills/databases/stacks/d1_cloudflare.md +137 -0
- package/templates/repo/.github/skills/databases/stacks/mysql.md +216 -0
- package/templates/repo/.github/skills/databases/stacks/postgres.md +235 -0
- package/templates/repo/.github/skills/databases/stacks/sqlite.md +244 -0
- package/templates/repo/.github/skills/databases/transactional.md +176 -0
- package/{skills/ck-debugging → templates/repo/.github/skills/debug}/SKILL.md +83 -82
- package/{skills/ck-debugging → templates/repo/.github/skills/debug}/references/defense-in-depth.md +124 -124
- package/templates/repo/.github/skills/{ck-debugging → debug}/references/root-cause-tracing.md +122 -122
- package/{skills/ck-debugging → templates/repo/.github/skills/debug}/references/systematic-debugging.md +102 -102
- package/templates/repo/.github/skills/{ck-debugging → debug}/references/verification.md +123 -123
- package/{skills/ck-debugging → templates/repo/.github/skills/debug}/scripts/find-polluter.sh +63 -63
- package/{skills/ck-debugging → templates/repo/.github/skills/debug}/scripts/find-polluter.test.md +102 -102
- package/templates/repo/.github/skills/devops/.env.example +76 -0
- package/templates/repo/.github/skills/devops/SKILL.md +102 -0
- package/templates/repo/.github/skills/devops/references/browser-rendering.md +305 -0
- package/templates/repo/.github/skills/devops/references/cloudflare-d1-kv.md +123 -0
- package/templates/repo/.github/skills/devops/references/cloudflare-platform.md +271 -0
- package/templates/repo/.github/skills/devops/references/cloudflare-r2-storage.md +280 -0
- package/templates/repo/.github/skills/devops/references/cloudflare-workers-advanced.md +312 -0
- package/templates/repo/.github/skills/devops/references/cloudflare-workers-apis.md +309 -0
- package/templates/repo/.github/skills/devops/references/cloudflare-workers-basics.md +418 -0
- package/templates/repo/.github/skills/devops/references/docker-basics.md +297 -0
- package/templates/repo/.github/skills/devops/references/docker-compose.md +292 -0
- package/templates/repo/.github/skills/devops/references/gcloud-platform.md +297 -0
- package/templates/repo/.github/skills/devops/references/gcloud-services.md +304 -0
- package/templates/repo/.github/skills/devops/references/kubernetes-basics.md +99 -0
- package/templates/repo/.github/skills/devops/references/kubernetes-helm-advanced.md +75 -0
- package/templates/repo/.github/skills/devops/references/kubernetes-helm.md +81 -0
- package/templates/repo/.github/skills/devops/references/kubernetes-kubectl.md +74 -0
- package/templates/repo/.github/skills/devops/references/kubernetes-security-advanced.md +98 -0
- package/templates/repo/.github/skills/devops/references/kubernetes-security.md +95 -0
- package/templates/repo/.github/skills/devops/references/kubernetes-troubleshooting-advanced.md +74 -0
- package/templates/repo/.github/skills/devops/references/kubernetes-troubleshooting.md +49 -0
- package/templates/repo/.github/skills/devops/references/kubernetes-workflows-advanced.md +75 -0
- package/templates/repo/.github/skills/devops/references/kubernetes-workflows.md +78 -0
- package/templates/repo/.github/skills/devops/scripts/cloudflare_deploy.py +269 -0
- package/templates/repo/.github/skills/devops/scripts/docker_optimize.py +332 -0
- package/templates/repo/.github/skills/devops/scripts/requirements.txt +20 -0
- package/templates/repo/.github/skills/docs-seeker/.env.example +15 -0
- package/templates/repo/.github/skills/docs-seeker/SKILL.md +96 -0
- package/templates/repo/.github/skills/docs-seeker/package.json +25 -0
- package/templates/repo/.github/skills/docs-seeker/references/advanced.md +79 -0
- package/templates/repo/.github/skills/docs-seeker/references/context7-patterns.md +64 -0
- package/templates/repo/.github/skills/docs-seeker/references/errors.md +68 -0
- package/templates/repo/.github/skills/docs-seeker/scripts/analyze-llms-txt.js +211 -0
- package/templates/repo/.github/skills/docs-seeker/scripts/detect-topic.js +172 -0
- package/templates/repo/.github/skills/docs-seeker/scripts/fetch-docs.js +214 -0
- package/templates/repo/.github/skills/docs-seeker/scripts/utils/env-loader.js +94 -0
- package/templates/repo/.github/skills/docs-seeker/workflows/library-search.md +86 -0
- package/templates/repo/.github/skills/docs-seeker/workflows/repo-analysis.md +91 -0
- package/templates/repo/.github/skills/docs-seeker/workflows/topic-search.md +77 -0
- package/templates/repo/.github/skills/fix/SKILL.md +100 -0
- package/templates/repo/.github/skills/fix/references/complexity-assessment.md +61 -0
- package/templates/repo/.github/skills/fix/references/mode-selection.md +30 -0
- package/templates/repo/.github/skills/fix/references/parallel-exploration.md +77 -0
- package/templates/repo/.github/skills/fix/references/review-cycle.md +77 -0
- package/templates/repo/.github/skills/fix/references/skill-activation-matrix.md +65 -0
- package/templates/repo/.github/skills/fix/references/workflow-ci.md +28 -0
- package/templates/repo/.github/skills/fix/references/workflow-deep.md +91 -0
- package/templates/repo/.github/skills/fix/references/workflow-logs.md +36 -0
- package/templates/repo/.github/skills/fix/references/workflow-quick.md +59 -0
- package/templates/repo/.github/skills/fix/references/workflow-standard.md +86 -0
- package/templates/repo/.github/skills/fix/references/workflow-test.md +36 -0
- package/templates/repo/.github/skills/fix/references/workflow-types.md +33 -0
- package/templates/repo/.github/skills/fix/references/workflow-ui.md +34 -0
- package/templates/repo/.github/skills/frontend-design/SKILL.md +74 -0
- package/templates/repo/.github/skills/frontend-design/references/analysis-best-practices.md +80 -0
- package/templates/repo/.github/skills/frontend-design/references/analysis-prompts.md +141 -0
- package/templates/repo/.github/skills/frontend-design/references/analysis-techniques.md +118 -0
- package/templates/repo/.github/skills/frontend-design/references/animejs.md +396 -0
- package/templates/repo/.github/skills/frontend-design/references/asset-generation.md +161 -0
- package/templates/repo/.github/skills/frontend-design/references/design-extraction-overview.md +71 -0
- package/templates/repo/.github/skills/frontend-design/references/extraction-best-practices.md +141 -0
- package/templates/repo/.github/skills/frontend-design/references/extraction-output-templates.md +162 -0
- package/templates/repo/.github/skills/frontend-design/references/extraction-prompts.md +127 -0
- package/templates/repo/.github/skills/frontend-design/references/technical-accessibility.md +119 -0
- package/templates/repo/.github/skills/frontend-design/references/technical-best-practices.md +97 -0
- package/templates/repo/.github/skills/frontend-design/references/technical-optimization.md +44 -0
- package/templates/repo/.github/skills/frontend-design/references/technical-overview.md +90 -0
- package/templates/repo/.github/skills/frontend-design/references/technical-workflows.md +150 -0
- package/templates/repo/.github/skills/frontend-design/references/visual-analysis-overview.md +95 -0
- package/templates/repo/.github/skills/frontend-design/references/workflow-describe.md +86 -0
- package/templates/repo/.github/skills/frontend-design/references/workflow-quick.md +54 -0
- package/templates/repo/.github/skills/frontend-design/references/workflow-screenshot.md +62 -0
- package/templates/repo/.github/skills/git/SKILL.md +99 -0
- package/templates/repo/.github/skills/git/references/branch-management.md +88 -0
- package/templates/repo/.github/skills/git/references/commit-standards.md +46 -0
- package/templates/repo/.github/skills/git/references/gh-cli-guide.md +109 -0
- package/templates/repo/.github/skills/git/references/safety-protocols.md +69 -0
- package/templates/repo/.github/skills/git/references/workflow-commit.md +58 -0
- package/templates/repo/.github/skills/git/references/workflow-merge.md +48 -0
- package/templates/repo/.github/skills/git/references/workflow-pr.md +58 -0
- package/templates/repo/.github/skills/git/references/workflow-push.md +52 -0
- package/templates/repo/.github/skills/install.ps1 +1247 -0
- package/templates/repo/.github/skills/install.sh +1300 -0
- package/templates/repo/.github/skills/mcp-management/README.md +219 -0
- package/templates/repo/.github/skills/mcp-management/SKILL.md +209 -0
- package/templates/repo/.github/skills/mcp-management/assets/tools.json +3146 -0
- package/templates/repo/.github/skills/mcp-management/references/configuration.md +114 -0
- package/templates/repo/.github/skills/mcp-management/references/gemini-cli-integration.md +221 -0
- package/templates/repo/.github/skills/mcp-management/references/mcp-protocol.md +116 -0
- package/templates/repo/.github/skills/mcp-management/scripts/.env.example +10 -0
- package/templates/repo/.github/skills/mcp-management/scripts/cli.ts +195 -0
- package/templates/repo/.github/skills/mcp-management/scripts/dist/analyze-tools.js +70 -0
- package/templates/repo/.github/skills/mcp-management/scripts/dist/cli.js +160 -0
- package/templates/repo/.github/skills/mcp-management/scripts/dist/mcp-client.js +183 -0
- package/templates/repo/.github/skills/mcp-management/scripts/mcp-client.ts +230 -0
- package/templates/repo/.github/skills/mcp-management/scripts/package.json +20 -0
- package/templates/repo/.github/skills/mcp-management/scripts/tsconfig.json +15 -0
- package/templates/repo/.github/skills/mermaidjs-v11/SKILL.md +115 -0
- package/templates/repo/.github/skills/mermaidjs-v11/references/cli-usage.md +228 -0
- package/templates/repo/.github/skills/mermaidjs-v11/references/configuration.md +232 -0
- package/templates/repo/.github/skills/mermaidjs-v11/references/diagram-types.md +315 -0
- package/templates/repo/.github/skills/mermaidjs-v11/references/examples.md +344 -0
- package/templates/repo/.github/skills/mermaidjs-v11/references/integration.md +310 -0
- package/templates/repo/.github/skills/{ck-planning → planning}/SKILL.md +131 -112
- package/{skills/ck-planning → templates/repo/.github/skills/planning}/references/codebase-understanding.md +62 -62
- package/templates/repo/.github/skills/{ck-planning → planning}/references/output-standards.md +141 -127
- package/{skills/ck-planning → templates/repo/.github/skills/planning}/references/plan-organization.md +160 -150
- package/templates/repo/.github/skills/{ck-planning → planning}/references/research-phase.md +49 -49
- package/{skills/ck-planning → templates/repo/.github/skills/planning}/references/solution-design.md +63 -63
- package/templates/repo/.github/skills/{ck-problem-solving → problem-solving}/SKILL.md +95 -95
- package/{skills/ck-problem-solving → templates/repo/.github/skills/problem-solving}/references/attribution.md +69 -69
- package/templates/repo/.github/skills/{ck-problem-solving → problem-solving}/references/collision-zone-thinking.md +79 -79
- package/{skills/ck-problem-solving → templates/repo/.github/skills/problem-solving}/references/inversion-exercise.md +91 -91
- package/templates/repo/.github/skills/{ck-problem-solving → problem-solving}/references/meta-pattern-recognition.md +87 -87
- package/templates/repo/.github/skills/{ck-problem-solving → problem-solving}/references/scale-game.md +95 -95
- package/templates/repo/.github/skills/{ck-problem-solving → problem-solving}/references/simplification-cascades.md +80 -80
- package/{skills/ck-problem-solving → templates/repo/.github/skills/problem-solving}/references/when-stuck.md +72 -72
- package/templates/repo/.github/skills/repomix/SKILL.md +247 -0
- package/templates/repo/.github/skills/repomix/references/configuration.md +211 -0
- package/templates/repo/.github/skills/repomix/references/usage-patterns.md +232 -0
- package/templates/repo/.github/skills/repomix/scripts/README.md +179 -0
- package/templates/repo/.github/skills/repomix/scripts/repomix_batch.py +455 -0
- package/templates/repo/.github/skills/repomix/scripts/repos.example.json +15 -0
- package/templates/repo/.github/skills/repomix/scripts/requirements.txt +15 -0
- package/templates/repo/.github/skills/research/SKILL.md +169 -0
- package/templates/repo/.github/skills/scout/SKILL.md +78 -0
- package/templates/repo/.github/skills/scout/references/external-scouting.md +140 -0
- package/templates/repo/.github/skills/scout/references/internal-scouting.md +119 -0
- package/templates/repo/.github/skills/{ck-sequential-thinking → sequential-thinking}/.env.example +8 -8
- package/templates/repo/.github/skills/{ck-sequential-thinking → sequential-thinking}/README.md +183 -183
- package/{skills/ck-sequential-thinking → templates/repo/.github/skills/sequential-thinking}/SKILL.md +92 -92
- package/templates/repo/.github/skills/{ck-sequential-thinking → sequential-thinking}/package.json +31 -31
- package/{skills/ck-sequential-thinking → templates/repo/.github/skills/sequential-thinking}/references/advanced-strategies.md +79 -79
- package/{skills/ck-sequential-thinking → templates/repo/.github/skills/sequential-thinking}/references/advanced-techniques.md +76 -76
- package/{skills/ck-sequential-thinking → templates/repo/.github/skills/sequential-thinking}/references/core-patterns.md +95 -95
- package/templates/repo/.github/skills/{ck-sequential-thinking → sequential-thinking}/references/examples-api.md +88 -88
- package/templates/repo/.github/skills/{ck-sequential-thinking → sequential-thinking}/references/examples-architecture.md +94 -94
- package/templates/repo/.github/skills/{ck-sequential-thinking → sequential-thinking}/references/examples-debug.md +90 -90
- package/templates/repo/.github/skills/{ck-sequential-thinking → sequential-thinking}/scripts/format-thought.js +159 -159
- package/{skills/ck-sequential-thinking → templates/repo/.github/skills/sequential-thinking}/scripts/process-thought.js +236 -236
- package/templates/repo/.github/skills/ui-styling/LICENSE.txt +202 -0
- package/templates/repo/.github/skills/ui-styling/SKILL.md +319 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/ArsenalSC-OFL.txt +93 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/ArsenalSC-Regular.ttf +0 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/BigShoulders-Bold.ttf +0 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/BigShoulders-OFL.txt +93 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/BigShoulders-Regular.ttf +0 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/Boldonse-OFL.txt +93 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/Boldonse-Regular.ttf +0 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/BricolageGrotesque-Bold.ttf +0 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/BricolageGrotesque-OFL.txt +93 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/BricolageGrotesque-Regular.ttf +0 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/CrimsonPro-Bold.ttf +0 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/CrimsonPro-Italic.ttf +0 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/CrimsonPro-OFL.txt +93 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/CrimsonPro-Regular.ttf +0 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/DMMono-OFL.txt +93 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/DMMono-Regular.ttf +0 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/EricaOne-OFL.txt +94 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/EricaOne-Regular.ttf +0 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/GeistMono-Bold.ttf +0 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/GeistMono-OFL.txt +93 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/GeistMono-Regular.ttf +0 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/Gloock-OFL.txt +93 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/Gloock-Regular.ttf +0 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/IBMPlexMono-Bold.ttf +0 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/IBMPlexMono-OFL.txt +93 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/IBMPlexMono-Regular.ttf +0 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/IBMPlexSerif-Bold.ttf +0 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/IBMPlexSerif-BoldItalic.ttf +0 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/IBMPlexSerif-Italic.ttf +0 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/IBMPlexSerif-Regular.ttf +0 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/InstrumentSans-Bold.ttf +0 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/InstrumentSans-BoldItalic.ttf +0 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/InstrumentSans-Italic.ttf +0 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/InstrumentSans-OFL.txt +93 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/InstrumentSans-Regular.ttf +0 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/InstrumentSerif-Italic.ttf +0 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/InstrumentSerif-Regular.ttf +0 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/Italiana-OFL.txt +93 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/Italiana-Regular.ttf +0 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/JetBrainsMono-Bold.ttf +0 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/JetBrainsMono-OFL.txt +93 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/JetBrainsMono-Regular.ttf +0 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/Jura-Light.ttf +0 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/Jura-Medium.ttf +0 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/Jura-OFL.txt +93 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/LibreBaskerville-OFL.txt +93 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/LibreBaskerville-Regular.ttf +0 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/Lora-Bold.ttf +0 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/Lora-BoldItalic.ttf +0 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/Lora-Italic.ttf +0 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/Lora-OFL.txt +93 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/Lora-Regular.ttf +0 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/NationalPark-Bold.ttf +0 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/NationalPark-OFL.txt +93 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/NationalPark-Regular.ttf +0 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/NothingYouCouldDo-OFL.txt +93 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/NothingYouCouldDo-Regular.ttf +0 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/Outfit-Bold.ttf +0 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/Outfit-OFL.txt +93 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/Outfit-Regular.ttf +0 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/PixelifySans-Medium.ttf +0 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/PixelifySans-OFL.txt +93 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/PoiretOne-OFL.txt +93 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/PoiretOne-Regular.ttf +0 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/RedHatMono-Bold.ttf +0 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/RedHatMono-OFL.txt +93 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/RedHatMono-Regular.ttf +0 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/Silkscreen-OFL.txt +93 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/Silkscreen-Regular.ttf +0 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/SmoochSans-Medium.ttf +0 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/SmoochSans-OFL.txt +93 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/Tektur-Medium.ttf +0 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/Tektur-OFL.txt +93 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/Tektur-Regular.ttf +0 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/WorkSans-Bold.ttf +0 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/WorkSans-BoldItalic.ttf +0 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/WorkSans-Italic.ttf +0 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/WorkSans-OFL.txt +93 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/WorkSans-Regular.ttf +0 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/YoungSerif-OFL.txt +93 -0
- package/templates/repo/.github/skills/ui-styling/canvas-fonts/YoungSerif-Regular.ttf +0 -0
- package/templates/repo/.github/skills/ui-styling/references/canvas-design-system.md +320 -0
- package/templates/repo/.github/skills/ui-styling/references/shadcn-accessibility.md +471 -0
- package/templates/repo/.github/skills/ui-styling/references/shadcn-components.md +424 -0
- package/templates/repo/.github/skills/ui-styling/references/shadcn-theming.md +373 -0
- package/templates/repo/.github/skills/ui-styling/references/tailwind-customization.md +483 -0
- package/templates/repo/.github/skills/ui-styling/references/tailwind-responsive.md +382 -0
- package/templates/repo/.github/skills/ui-styling/references/tailwind-utilities.md +455 -0
- package/templates/repo/.github/skills/ui-styling/scripts/requirements.txt +17 -0
- package/templates/repo/.github/skills/ui-styling/scripts/shadcn_add.py +292 -0
- package/templates/repo/.github/skills/ui-styling/scripts/tailwind_config_gen.py +456 -0
- package/templates/repo/.github/skills/web-testing/SKILL.md +94 -0
- package/templates/repo/.github/skills/web-testing/references/accessibility-testing.md +84 -0
- package/templates/repo/.github/skills/web-testing/references/api-testing.md +78 -0
- package/templates/repo/.github/skills/web-testing/references/ci-cd-testing-workflows.md +121 -0
- package/templates/repo/.github/skills/web-testing/references/component-testing.md +94 -0
- package/templates/repo/.github/skills/web-testing/references/contract-testing.md +146 -0
- package/templates/repo/.github/skills/web-testing/references/cross-browser-checklist.md +72 -0
- package/templates/repo/.github/skills/web-testing/references/database-testing.md +139 -0
- package/templates/repo/.github/skills/web-testing/references/e2e-testing-playwright.md +119 -0
- package/templates/repo/.github/skills/web-testing/references/functional-testing-checklist.md +88 -0
- package/templates/repo/.github/skills/web-testing/references/interactive-testing-patterns.md +89 -0
- package/templates/repo/.github/skills/web-testing/references/load-testing-k6.md +93 -0
- package/templates/repo/.github/skills/web-testing/references/mobile-gesture-testing.md +85 -0
- package/templates/repo/.github/skills/web-testing/references/performance-core-web-vitals.md +124 -0
- package/templates/repo/.github/skills/web-testing/references/playwright-component-testing.md +115 -0
- package/templates/repo/.github/skills/web-testing/references/pre-release-checklist.md +75 -0
- package/templates/repo/.github/skills/web-testing/references/security-checklists.md +81 -0
- package/templates/repo/.github/skills/web-testing/references/security-testing-overview.md +92 -0
- package/templates/repo/.github/skills/web-testing/references/shadow-dom-testing.md +70 -0
- package/templates/repo/.github/skills/web-testing/references/test-data-management.md +131 -0
- package/templates/repo/.github/skills/web-testing/references/test-flakiness-mitigation.md +86 -0
- package/templates/repo/.github/skills/web-testing/references/testing-pyramid-strategy.md +76 -0
- package/templates/repo/.github/skills/web-testing/references/unit-integration-testing.md +138 -0
- package/templates/repo/.github/skills/web-testing/references/visual-regression.md +92 -0
- package/templates/repo/.github/skills/web-testing/references/vulnerability-payloads.md +93 -0
- package/templates/repo/.github/skills/web-testing/scripts/analyze-test-results.js +280 -0
- package/templates/repo/.github/skills/web-testing/scripts/init-playwright.js +233 -0
- package/templates/repo/.github/spec-kit/memory/constitution.md +50 -0
- package/templates/repo/.github/spec-kit/scripts/bash/check-prerequisites.sh +166 -0
- package/templates/repo/.github/spec-kit/scripts/bash/common.sh +156 -0
- package/templates/repo/.github/spec-kit/scripts/bash/create-new-feature.sh +297 -0
- package/templates/repo/.github/spec-kit/scripts/bash/setup-plan.sh +61 -0
- package/templates/repo/.github/spec-kit/scripts/bash/update-agent-context.sh +799 -0
- package/templates/repo/.github/spec-kit/scripts/powershell/check-prerequisites.ps1 +148 -0
- package/templates/repo/.github/spec-kit/scripts/powershell/common.ps1 +137 -0
- package/templates/repo/.github/spec-kit/scripts/powershell/create-new-feature.ps1 +283 -0
- package/templates/repo/.github/spec-kit/scripts/powershell/setup-plan.ps1 +61 -0
- package/templates/repo/.github/spec-kit/scripts/powershell/update-agent-context.ps1 +448 -0
- package/templates/repo/.github/spec-kit/templates/agent-file-template.md +28 -0
- package/templates/repo/.github/spec-kit/templates/checklist-template.md +40 -0
- package/templates/repo/.github/spec-kit/templates/commands/analyze.md +187 -0
- package/templates/repo/.github/spec-kit/templates/commands/checklist.md +297 -0
- package/templates/repo/.github/spec-kit/templates/commands/clarify.md +184 -0
- package/templates/repo/.github/spec-kit/templates/commands/constitution.md +82 -0
- package/templates/repo/.github/spec-kit/templates/commands/implement.md +138 -0
- package/templates/repo/.github/spec-kit/templates/commands/plan.md +95 -0
- package/templates/repo/.github/spec-kit/templates/commands/specify.md +261 -0
- package/templates/repo/.github/spec-kit/templates/commands/tasks.md +140 -0
- package/templates/repo/.github/spec-kit/templates/commands/taskstoissues.md +33 -0
- package/templates/repo/.github/spec-kit/templates/plan-template.md +104 -0
- package/templates/repo/.github/spec-kit/templates/spec-template.md +115 -0
- package/templates/repo/.github/spec-kit/templates/tasks-phase-template.md +42 -0
- package/templates/repo/.github/spec-kit/templates/tasks-template.md +268 -0
- package/templates/repo/.github/spec-kit/templates/vscode-settings.json +14 -0
- package/templates/repo/.vscode/settings.json +70 -70
- package/.vscode/settings.json +0 -70
- package/AGENTS.md +0 -103
- package/FAQ.md +0 -101
- package/INIT.md +0 -154
- package/QUICK-START.md +0 -37
- package/changelogs/1.0.8.md +0 -77
- package/changelogs/1.0.9.md +0 -173
- package/plans/reports/docs-manager-260120-0854-documentation-update.md +0 -323
- package/prompts/ck-code.prompt.md +0 -178
- package/repomix-output.xml +0 -40725
- package/rules/README.agents.md +0 -55
- package/rules/README.collections.md +0 -78
- package/rules/README.copilot-instructions.md +0 -66
- package/rules/README.instructions.md +0 -73
- package/rules/README.md +0 -39
- package/rules/README.prompts.md +0 -76
- package/rules/README.skills.md +0 -71
- package/skills/ck-frontend-development/SKILL.md +0 -399
- package/skills/ck-frontend-development/resources/common-patterns.md +0 -331
- package/skills/ck-frontend-development/resources/complete-examples.md +0 -872
- package/skills/ck-frontend-development/resources/component-patterns.md +0 -502
- package/skills/ck-frontend-development/resources/data-fetching.md +0 -767
- package/skills/ck-frontend-development/resources/file-organization.md +0 -502
- package/skills/ck-frontend-development/resources/loading-and-error-states.md +0 -501
- package/skills/ck-frontend-development/resources/performance.md +0 -406
- package/skills/ck-frontend-development/resources/routing-guide.md +0 -364
- package/skills/ck-frontend-development/resources/styling-guide.md +0 -428
- package/skills/ck-frontend-development/resources/typescript-standards.md +0 -418
- package/skills/ck-sequential-thinking/tests/format-thought.test.js +0 -133
- package/skills/ck-sequential-thinking/tests/process-thought.test.js +0 -215
- package/templates/repo/.github/.cokit-version +0 -4
- package/templates/repo/.github/copilot-instructions.md +0 -45
- package/templates/repo/.github/prompts/ck-code.prompt.md +0 -178
- package/templates/repo/.github/skills/ck-frontend-development/SKILL.md +0 -399
- package/templates/repo/.github/skills/ck-frontend-development/resources/common-patterns.md +0 -331
- package/templates/repo/.github/skills/ck-frontend-development/resources/complete-examples.md +0 -872
- package/templates/repo/.github/skills/ck-frontend-development/resources/component-patterns.md +0 -502
- package/templates/repo/.github/skills/ck-frontend-development/resources/data-fetching.md +0 -767
- package/templates/repo/.github/skills/ck-frontend-development/resources/file-organization.md +0 -502
- package/templates/repo/.github/skills/ck-frontend-development/resources/loading-and-error-states.md +0 -501
- package/templates/repo/.github/skills/ck-frontend-development/resources/performance.md +0 -406
- package/templates/repo/.github/skills/ck-frontend-development/resources/routing-guide.md +0 -364
- package/templates/repo/.github/skills/ck-frontend-development/resources/styling-guide.md +0 -428
- package/templates/repo/.github/skills/ck-frontend-development/resources/typescript-standards.md +0 -418
- package/templates/repo/.github/skills/ck-sequential-thinking/tests/format-thought.test.js +0 -133
- package/templates/repo/.github/skills/ck-sequential-thinking/tests/process-thought.test.js +0 -215
- /package/skills/{ck-code-review → code-review}/references/verification-before-completion.md +0 -0
package/templates/repo/.github/skills/ck-frontend-development/resources/complete-examples.md
DELETED
|
@@ -1,872 +0,0 @@
|
|
|
1
|
-
# Complete Examples
|
|
2
|
-
|
|
3
|
-
Full working examples combining all modern patterns: React.FC, lazy loading, Suspense, useSuspenseQuery, styling, routing, and error handling.
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## Example 1: Complete Modern Component
|
|
8
|
-
|
|
9
|
-
Combines: React.FC, useSuspenseQuery, cache-first, useCallback, styling, error handling
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
/**
|
|
13
|
-
* User profile display component
|
|
14
|
-
* Demonstrates modern patterns with Suspense and TanStack Query
|
|
15
|
-
*/
|
|
16
|
-
import React, { useState, useCallback, useMemo } from 'react';
|
|
17
|
-
import { Box, Paper, Typography, Button, Avatar } from '@mui/material';
|
|
18
|
-
import type { SxProps, Theme } from '@mui/material';
|
|
19
|
-
import { useSuspenseQuery, useMutation, useQueryClient } from '@tanstack/react-query';
|
|
20
|
-
import { userApi } from '../api/userApi';
|
|
21
|
-
import { useMuiSnackbar } from '@/hooks/useMuiSnackbar';
|
|
22
|
-
import type { User } from '~types/user';
|
|
23
|
-
|
|
24
|
-
// Styles object
|
|
25
|
-
const componentStyles: Record<string, SxProps<Theme>> = {
|
|
26
|
-
container: {
|
|
27
|
-
p: 3,
|
|
28
|
-
maxWidth: 600,
|
|
29
|
-
margin: '0 auto',
|
|
30
|
-
},
|
|
31
|
-
header: {
|
|
32
|
-
display: 'flex',
|
|
33
|
-
alignItems: 'center',
|
|
34
|
-
gap: 2,
|
|
35
|
-
mb: 3,
|
|
36
|
-
},
|
|
37
|
-
content: {
|
|
38
|
-
display: 'flex',
|
|
39
|
-
flexDirection: 'column',
|
|
40
|
-
gap: 2,
|
|
41
|
-
},
|
|
42
|
-
actions: {
|
|
43
|
-
display: 'flex',
|
|
44
|
-
gap: 1,
|
|
45
|
-
mt: 2,
|
|
46
|
-
},
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
interface UserProfileProps {
|
|
50
|
-
userId: string;
|
|
51
|
-
onUpdate?: () => void;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export const UserProfile: React.FC<UserProfileProps> = ({ userId, onUpdate }) => {
|
|
55
|
-
const queryClient = useQueryClient();
|
|
56
|
-
const { showSuccess, showError } = useMuiSnackbar();
|
|
57
|
-
const [isEditing, setIsEditing] = useState(false);
|
|
58
|
-
|
|
59
|
-
// Suspense query - no isLoading needed!
|
|
60
|
-
const { data: user } = useSuspenseQuery({
|
|
61
|
-
queryKey: ['user', userId],
|
|
62
|
-
queryFn: () => userApi.getUser(userId),
|
|
63
|
-
staleTime: 5 * 60 * 1000,
|
|
64
|
-
});
|
|
65
|
-
|
|
66
|
-
// Update mutation
|
|
67
|
-
const updateMutation = useMutation({
|
|
68
|
-
mutationFn: (updates: Partial<User>) =>
|
|
69
|
-
userApi.updateUser(userId, updates),
|
|
70
|
-
|
|
71
|
-
onSuccess: () => {
|
|
72
|
-
queryClient.invalidateQueries({ queryKey: ['user', userId] });
|
|
73
|
-
showSuccess('Profile updated');
|
|
74
|
-
setIsEditing(false);
|
|
75
|
-
onUpdate?.();
|
|
76
|
-
},
|
|
77
|
-
|
|
78
|
-
onError: () => {
|
|
79
|
-
showError('Failed to update profile');
|
|
80
|
-
},
|
|
81
|
-
});
|
|
82
|
-
|
|
83
|
-
// Memoized computed value
|
|
84
|
-
const fullName = useMemo(() => {
|
|
85
|
-
return `${user.firstName} ${user.lastName}`;
|
|
86
|
-
}, [user.firstName, user.lastName]);
|
|
87
|
-
|
|
88
|
-
// Event handlers with useCallback
|
|
89
|
-
const handleEdit = useCallback(() => {
|
|
90
|
-
setIsEditing(true);
|
|
91
|
-
}, []);
|
|
92
|
-
|
|
93
|
-
const handleSave = useCallback(() => {
|
|
94
|
-
updateMutation.mutate({
|
|
95
|
-
firstName: user.firstName,
|
|
96
|
-
lastName: user.lastName,
|
|
97
|
-
});
|
|
98
|
-
}, [user, updateMutation]);
|
|
99
|
-
|
|
100
|
-
const handleCancel = useCallback(() => {
|
|
101
|
-
setIsEditing(false);
|
|
102
|
-
}, []);
|
|
103
|
-
|
|
104
|
-
return (
|
|
105
|
-
<Paper sx={componentStyles.container}>
|
|
106
|
-
<Box sx={componentStyles.header}>
|
|
107
|
-
<Avatar sx={{ width: 64, height: 64 }}>
|
|
108
|
-
{user.firstName[0]}{user.lastName[0]}
|
|
109
|
-
</Avatar>
|
|
110
|
-
<Box>
|
|
111
|
-
<Typography variant='h5'>{fullName}</Typography>
|
|
112
|
-
<Typography color='text.secondary'>{user.email}</Typography>
|
|
113
|
-
</Box>
|
|
114
|
-
</Box>
|
|
115
|
-
|
|
116
|
-
<Box sx={componentStyles.content}>
|
|
117
|
-
<Typography>Username: {user.username}</Typography>
|
|
118
|
-
<Typography>Roles: {user.roles.join(', ')}</Typography>
|
|
119
|
-
</Box>
|
|
120
|
-
|
|
121
|
-
<Box sx={componentStyles.actions}>
|
|
122
|
-
{!isEditing ? (
|
|
123
|
-
<Button variant='contained' onClick={handleEdit}>
|
|
124
|
-
Edit Profile
|
|
125
|
-
</Button>
|
|
126
|
-
) : (
|
|
127
|
-
<>
|
|
128
|
-
<Button
|
|
129
|
-
variant='contained'
|
|
130
|
-
onClick={handleSave}
|
|
131
|
-
disabled={updateMutation.isPending}
|
|
132
|
-
>
|
|
133
|
-
{updateMutation.isPending ? 'Saving...' : 'Save'}
|
|
134
|
-
</Button>
|
|
135
|
-
<Button onClick={handleCancel}>
|
|
136
|
-
Cancel
|
|
137
|
-
</Button>
|
|
138
|
-
</>
|
|
139
|
-
)}
|
|
140
|
-
</Box>
|
|
141
|
-
</Paper>
|
|
142
|
-
);
|
|
143
|
-
};
|
|
144
|
-
|
|
145
|
-
export default UserProfile;
|
|
146
|
-
```
|
|
147
|
-
|
|
148
|
-
**Usage:**
|
|
149
|
-
```typescript
|
|
150
|
-
<SuspenseLoader>
|
|
151
|
-
<UserProfile userId='123' onUpdate={() => console.log('Updated')} />
|
|
152
|
-
</SuspenseLoader>
|
|
153
|
-
```
|
|
154
|
-
|
|
155
|
-
---
|
|
156
|
-
|
|
157
|
-
## Example 2: Complete Feature Structure
|
|
158
|
-
|
|
159
|
-
Real example based on `features/posts/`:
|
|
160
|
-
|
|
161
|
-
```
|
|
162
|
-
features/
|
|
163
|
-
users/
|
|
164
|
-
api/
|
|
165
|
-
userApi.ts # API service layer
|
|
166
|
-
components/
|
|
167
|
-
UserProfile.tsx # Main component (from Example 1)
|
|
168
|
-
UserList.tsx # List component
|
|
169
|
-
UserBlog.tsx # Blog component
|
|
170
|
-
modals/
|
|
171
|
-
DeleteUserModal.tsx # Modal component
|
|
172
|
-
hooks/
|
|
173
|
-
useSuspenseUser.ts # Suspense query hook
|
|
174
|
-
useUserMutations.ts # Mutation hooks
|
|
175
|
-
useUserPermissions.ts # Feature-specific hook
|
|
176
|
-
helpers/
|
|
177
|
-
userHelpers.ts # Utility functions
|
|
178
|
-
validation.ts # Validation logic
|
|
179
|
-
types/
|
|
180
|
-
index.ts # TypeScript interfaces
|
|
181
|
-
index.ts # Public API exports
|
|
182
|
-
```
|
|
183
|
-
|
|
184
|
-
### API Service (userApi.ts)
|
|
185
|
-
|
|
186
|
-
```typescript
|
|
187
|
-
import apiClient from '@/lib/apiClient';
|
|
188
|
-
import type { User, CreateUserPayload, UpdateUserPayload } from '../types';
|
|
189
|
-
|
|
190
|
-
export const userApi = {
|
|
191
|
-
getUser: async (userId: string): Promise<User> => {
|
|
192
|
-
const { data } = await apiClient.get(`/users/${userId}`);
|
|
193
|
-
return data;
|
|
194
|
-
},
|
|
195
|
-
|
|
196
|
-
getUsers: async (): Promise<User[]> => {
|
|
197
|
-
const { data } = await apiClient.get('/users');
|
|
198
|
-
return data;
|
|
199
|
-
},
|
|
200
|
-
|
|
201
|
-
createUser: async (payload: CreateUserPayload): Promise<User> => {
|
|
202
|
-
const { data } = await apiClient.post('/users', payload);
|
|
203
|
-
return data;
|
|
204
|
-
},
|
|
205
|
-
|
|
206
|
-
updateUser: async (userId: string, payload: UpdateUserPayload): Promise<User> => {
|
|
207
|
-
const { data } = await apiClient.put(`/users/${userId}`, payload);
|
|
208
|
-
return data;
|
|
209
|
-
},
|
|
210
|
-
|
|
211
|
-
deleteUser: async (userId: string): Promise<void> => {
|
|
212
|
-
await apiClient.delete(`/users/${userId}`);
|
|
213
|
-
},
|
|
214
|
-
};
|
|
215
|
-
```
|
|
216
|
-
|
|
217
|
-
### Suspense Hook (useSuspenseUser.ts)
|
|
218
|
-
|
|
219
|
-
```typescript
|
|
220
|
-
import { useSuspenseQuery } from '@tanstack/react-query';
|
|
221
|
-
import { userApi } from '../api/userApi';
|
|
222
|
-
import type { User } from '../types';
|
|
223
|
-
|
|
224
|
-
export function useSuspenseUser(userId: string) {
|
|
225
|
-
return useSuspenseQuery<User, Error>({
|
|
226
|
-
queryKey: ['user', userId],
|
|
227
|
-
queryFn: () => userApi.getUser(userId),
|
|
228
|
-
staleTime: 5 * 60 * 1000,
|
|
229
|
-
gcTime: 10 * 60 * 1000,
|
|
230
|
-
});
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
export function useSuspenseUsers() {
|
|
234
|
-
return useSuspenseQuery<User[], Error>({
|
|
235
|
-
queryKey: ['users'],
|
|
236
|
-
queryFn: () => userApi.getUsers(),
|
|
237
|
-
staleTime: 1 * 60 * 1000, // Shorter for list
|
|
238
|
-
});
|
|
239
|
-
}
|
|
240
|
-
```
|
|
241
|
-
|
|
242
|
-
### Types (types/index.ts)
|
|
243
|
-
|
|
244
|
-
```typescript
|
|
245
|
-
export interface User {
|
|
246
|
-
id: string;
|
|
247
|
-
username: string;
|
|
248
|
-
email: string;
|
|
249
|
-
firstName: string;
|
|
250
|
-
lastName: string;
|
|
251
|
-
roles: string[];
|
|
252
|
-
createdAt: string;
|
|
253
|
-
updatedAt: string;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
export interface CreateUserPayload {
|
|
257
|
-
username: string;
|
|
258
|
-
email: string;
|
|
259
|
-
firstName: string;
|
|
260
|
-
lastName: string;
|
|
261
|
-
password: string;
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
export type UpdateUserPayload = Partial<Omit<User, 'id' | 'createdAt' | 'updatedAt'>>;
|
|
265
|
-
```
|
|
266
|
-
|
|
267
|
-
### Public Exports (index.ts)
|
|
268
|
-
|
|
269
|
-
```typescript
|
|
270
|
-
// Export components
|
|
271
|
-
export { UserProfile } from './components/UserProfile';
|
|
272
|
-
export { UserList } from './components/UserList';
|
|
273
|
-
|
|
274
|
-
// Export hooks
|
|
275
|
-
export { useSuspenseUser, useSuspenseUsers } from './hooks/useSuspenseUser';
|
|
276
|
-
export { useUserMutations } from './hooks/useUserMutations';
|
|
277
|
-
|
|
278
|
-
// Export API
|
|
279
|
-
export { userApi } from './api/userApi';
|
|
280
|
-
|
|
281
|
-
// Export types
|
|
282
|
-
export type { User, CreateUserPayload, UpdateUserPayload } from './types';
|
|
283
|
-
```
|
|
284
|
-
|
|
285
|
-
---
|
|
286
|
-
|
|
287
|
-
## Example 3: Complete Route with Lazy Loading
|
|
288
|
-
|
|
289
|
-
```typescript
|
|
290
|
-
/**
|
|
291
|
-
* User profile route
|
|
292
|
-
* Path: /users/:userId
|
|
293
|
-
*/
|
|
294
|
-
|
|
295
|
-
import { createFileRoute } from '@tanstack/react-router';
|
|
296
|
-
import { lazy } from 'react';
|
|
297
|
-
import { SuspenseLoader } from '~components/SuspenseLoader';
|
|
298
|
-
|
|
299
|
-
// Lazy load the UserProfile component
|
|
300
|
-
const UserProfile = lazy(() =>
|
|
301
|
-
import('@/features/users/components/UserProfile').then(
|
|
302
|
-
(module) => ({ default: module.UserProfile })
|
|
303
|
-
)
|
|
304
|
-
);
|
|
305
|
-
|
|
306
|
-
export const Route = createFileRoute('/users/$userId')({
|
|
307
|
-
component: UserProfilePage,
|
|
308
|
-
loader: ({ params }) => ({
|
|
309
|
-
crumb: `User ${params.userId}`,
|
|
310
|
-
}),
|
|
311
|
-
});
|
|
312
|
-
|
|
313
|
-
function UserProfilePage() {
|
|
314
|
-
const { userId } = Route.useParams();
|
|
315
|
-
|
|
316
|
-
return (
|
|
317
|
-
<SuspenseLoader>
|
|
318
|
-
<UserProfile
|
|
319
|
-
userId={userId}
|
|
320
|
-
onUpdate={() => console.log('Profile updated')}
|
|
321
|
-
/>
|
|
322
|
-
</SuspenseLoader>
|
|
323
|
-
);
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
export default UserProfilePage;
|
|
327
|
-
```
|
|
328
|
-
|
|
329
|
-
---
|
|
330
|
-
|
|
331
|
-
## Example 4: List with Search and Filtering
|
|
332
|
-
|
|
333
|
-
```typescript
|
|
334
|
-
import React, { useState, useMemo } from 'react';
|
|
335
|
-
import { Box, TextField, List, ListItem } from '@mui/material';
|
|
336
|
-
import { useDebounce } from 'use-debounce';
|
|
337
|
-
import { useSuspenseQuery } from '@tanstack/react-query';
|
|
338
|
-
import { userApi } from '../api/userApi';
|
|
339
|
-
|
|
340
|
-
export const UserList: React.FC = () => {
|
|
341
|
-
const [searchTerm, setSearchTerm] = useState('');
|
|
342
|
-
const [debouncedSearch] = useDebounce(searchTerm, 300);
|
|
343
|
-
|
|
344
|
-
const { data: users } = useSuspenseQuery({
|
|
345
|
-
queryKey: ['users'],
|
|
346
|
-
queryFn: () => userApi.getUsers(),
|
|
347
|
-
});
|
|
348
|
-
|
|
349
|
-
// Memoized filtering
|
|
350
|
-
const filteredUsers = useMemo(() => {
|
|
351
|
-
if (!debouncedSearch) return users;
|
|
352
|
-
|
|
353
|
-
return users.filter(user =>
|
|
354
|
-
user.name.toLowerCase().includes(debouncedSearch.toLowerCase()) ||
|
|
355
|
-
user.email.toLowerCase().includes(debouncedSearch.toLowerCase())
|
|
356
|
-
);
|
|
357
|
-
}, [users, debouncedSearch]);
|
|
358
|
-
|
|
359
|
-
return (
|
|
360
|
-
<Box>
|
|
361
|
-
<TextField
|
|
362
|
-
value={searchTerm}
|
|
363
|
-
onChange={(e) => setSearchTerm(e.target.value)}
|
|
364
|
-
placeholder='Search users...'
|
|
365
|
-
fullWidth
|
|
366
|
-
sx={{ mb: 2 }}
|
|
367
|
-
/>
|
|
368
|
-
|
|
369
|
-
<List>
|
|
370
|
-
{filteredUsers.map(user => (
|
|
371
|
-
<ListItem key={user.id}>
|
|
372
|
-
{user.name} - {user.email}
|
|
373
|
-
</ListItem>
|
|
374
|
-
))}
|
|
375
|
-
</List>
|
|
376
|
-
</Box>
|
|
377
|
-
);
|
|
378
|
-
};
|
|
379
|
-
```
|
|
380
|
-
|
|
381
|
-
---
|
|
382
|
-
|
|
383
|
-
## Example 5: Blog with Validation
|
|
384
|
-
|
|
385
|
-
```typescript
|
|
386
|
-
import React from 'react';
|
|
387
|
-
import { Box, TextField, Button, Paper } from '@mui/material';
|
|
388
|
-
import { useBlog } from 'react-hook-blog';
|
|
389
|
-
import { zodResolver } from '@hookblog/resolvers/zod';
|
|
390
|
-
import { z } from 'zod';
|
|
391
|
-
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
392
|
-
import { userApi } from '../api/userApi';
|
|
393
|
-
import { useMuiSnackbar } from '@/hooks/useMuiSnackbar';
|
|
394
|
-
|
|
395
|
-
const userSchema = z.object({
|
|
396
|
-
username: z.string().min(3).max(50),
|
|
397
|
-
email: z.string().email(),
|
|
398
|
-
firstName: z.string().min(1),
|
|
399
|
-
lastName: z.string().min(1),
|
|
400
|
-
});
|
|
401
|
-
|
|
402
|
-
type UserBlogData = z.infer<typeof userSchema>;
|
|
403
|
-
|
|
404
|
-
interface CreateUserBlogProps {
|
|
405
|
-
onSuccess?: () => void;
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
export const CreateUserBlog: React.FC<CreateUserBlogProps> = ({ onSuccess }) => {
|
|
409
|
-
const queryClient = useQueryClient();
|
|
410
|
-
const { showSuccess, showError } = useMuiSnackbar();
|
|
411
|
-
|
|
412
|
-
const { register, handleSubmit, blogState: { errors }, reset } = useBlog<UserBlogData>({
|
|
413
|
-
resolver: zodResolver(userSchema),
|
|
414
|
-
defaultValues: {
|
|
415
|
-
username: '',
|
|
416
|
-
email: '',
|
|
417
|
-
firstName: '',
|
|
418
|
-
lastName: '',
|
|
419
|
-
},
|
|
420
|
-
});
|
|
421
|
-
|
|
422
|
-
const createMutation = useMutation({
|
|
423
|
-
mutationFn: (data: UserBlogData) => userApi.createUser(data),
|
|
424
|
-
|
|
425
|
-
onSuccess: () => {
|
|
426
|
-
queryClient.invalidateQueries({ queryKey: ['users'] });
|
|
427
|
-
showSuccess('User created successfully');
|
|
428
|
-
reset();
|
|
429
|
-
onSuccess?.();
|
|
430
|
-
},
|
|
431
|
-
|
|
432
|
-
onError: () => {
|
|
433
|
-
showError('Failed to create user');
|
|
434
|
-
},
|
|
435
|
-
});
|
|
436
|
-
|
|
437
|
-
const onSubmit = (data: UserBlogData) => {
|
|
438
|
-
createMutation.mutate(data);
|
|
439
|
-
};
|
|
440
|
-
|
|
441
|
-
return (
|
|
442
|
-
<Paper sx={{ p: 3, maxWidth: 500 }}>
|
|
443
|
-
<blog onSubmit={handleSubmit(onSubmit)}>
|
|
444
|
-
<Box sx={{ display: 'flex', flexDirection: 'column', gap: 2 }}>
|
|
445
|
-
<TextField
|
|
446
|
-
{...register('username')}
|
|
447
|
-
label='Username'
|
|
448
|
-
error={!!errors.username}
|
|
449
|
-
helperText={errors.username?.message}
|
|
450
|
-
fullWidth
|
|
451
|
-
/>
|
|
452
|
-
|
|
453
|
-
<TextField
|
|
454
|
-
{...register('email')}
|
|
455
|
-
label='Email'
|
|
456
|
-
type='email'
|
|
457
|
-
error={!!errors.email}
|
|
458
|
-
helperText={errors.email?.message}
|
|
459
|
-
fullWidth
|
|
460
|
-
/>
|
|
461
|
-
|
|
462
|
-
<TextField
|
|
463
|
-
{...register('firstName')}
|
|
464
|
-
label='First Name'
|
|
465
|
-
error={!!errors.firstName}
|
|
466
|
-
helperText={errors.firstName?.message}
|
|
467
|
-
fullWidth
|
|
468
|
-
/>
|
|
469
|
-
|
|
470
|
-
<TextField
|
|
471
|
-
{...register('lastName')}
|
|
472
|
-
label='Last Name'
|
|
473
|
-
error={!!errors.lastName}
|
|
474
|
-
helperText={errors.lastName?.message}
|
|
475
|
-
fullWidth
|
|
476
|
-
/>
|
|
477
|
-
|
|
478
|
-
<Button
|
|
479
|
-
type='submit'
|
|
480
|
-
variant='contained'
|
|
481
|
-
disabled={createMutation.isPending}
|
|
482
|
-
>
|
|
483
|
-
{createMutation.isPending ? 'Creating...' : 'Create User'}
|
|
484
|
-
</Button>
|
|
485
|
-
</Box>
|
|
486
|
-
</blog>
|
|
487
|
-
</Paper>
|
|
488
|
-
);
|
|
489
|
-
};
|
|
490
|
-
|
|
491
|
-
export default CreateUserBlog;
|
|
492
|
-
```
|
|
493
|
-
|
|
494
|
-
---
|
|
495
|
-
|
|
496
|
-
## Example 2: Parent Container with Lazy Loading
|
|
497
|
-
|
|
498
|
-
```typescript
|
|
499
|
-
import React from 'react';
|
|
500
|
-
import { Box } from '@mui/material';
|
|
501
|
-
import { SuspenseLoader } from '~components/SuspenseLoader';
|
|
502
|
-
|
|
503
|
-
// Lazy load heavy components
|
|
504
|
-
const UserList = React.lazy(() => import('./UserList'));
|
|
505
|
-
const UserStats = React.lazy(() => import('./UserStats'));
|
|
506
|
-
const ActivityFeed = React.lazy(() => import('./ActivityFeed'));
|
|
507
|
-
|
|
508
|
-
export const UserDashboard: React.FC = () => {
|
|
509
|
-
return (
|
|
510
|
-
<Box sx={{ p: 2 }}>
|
|
511
|
-
<SuspenseLoader>
|
|
512
|
-
<UserStats />
|
|
513
|
-
</SuspenseLoader>
|
|
514
|
-
|
|
515
|
-
<Box sx={{ display: 'flex', gap: 2, mt: 2 }}>
|
|
516
|
-
<Box sx={{ flex: 2 }}>
|
|
517
|
-
<SuspenseLoader>
|
|
518
|
-
<UserList />
|
|
519
|
-
</SuspenseLoader>
|
|
520
|
-
</Box>
|
|
521
|
-
|
|
522
|
-
<Box sx={{ flex: 1 }}>
|
|
523
|
-
<SuspenseLoader>
|
|
524
|
-
<ActivityFeed />
|
|
525
|
-
</SuspenseLoader>
|
|
526
|
-
</Box>
|
|
527
|
-
</Box>
|
|
528
|
-
</Box>
|
|
529
|
-
);
|
|
530
|
-
};
|
|
531
|
-
|
|
532
|
-
export default UserDashboard;
|
|
533
|
-
```
|
|
534
|
-
|
|
535
|
-
**Benefits:**
|
|
536
|
-
- Each section loads independently
|
|
537
|
-
- User sees partial content sooner
|
|
538
|
-
- Better perceived perblogance
|
|
539
|
-
|
|
540
|
-
---
|
|
541
|
-
|
|
542
|
-
## Example 3: Cache-First Strategy Implementation
|
|
543
|
-
|
|
544
|
-
Complete example based on useSuspensePost.ts:
|
|
545
|
-
|
|
546
|
-
```typescript
|
|
547
|
-
import { useSuspenseQuery, useQueryClient } from '@tanstack/react-query';
|
|
548
|
-
import { postApi } from '../api/postApi';
|
|
549
|
-
import type { Post } from '../types';
|
|
550
|
-
|
|
551
|
-
/**
|
|
552
|
-
* Smart post hook with cache-first strategy
|
|
553
|
-
* Reuses data from grid cache when available
|
|
554
|
-
*/
|
|
555
|
-
export function useSuspensePost(blogId: number, postId: number) {
|
|
556
|
-
const queryClient = useQueryClient();
|
|
557
|
-
|
|
558
|
-
return useSuspenseQuery<Post, Error>({
|
|
559
|
-
queryKey: ['post', blogId, postId],
|
|
560
|
-
queryFn: async () => {
|
|
561
|
-
// Strategy 1: Check grid cache first (avoids API call)
|
|
562
|
-
const gridCache = queryClient.getQueryData<{ rows: Post[] }>([
|
|
563
|
-
'posts-v2',
|
|
564
|
-
blogId,
|
|
565
|
-
'summary'
|
|
566
|
-
]) || queryClient.getQueryData<{ rows: Post[] }>([
|
|
567
|
-
'posts-v2',
|
|
568
|
-
blogId,
|
|
569
|
-
'flat'
|
|
570
|
-
]);
|
|
571
|
-
|
|
572
|
-
if (gridCache?.rows) {
|
|
573
|
-
const cached = gridCache.rows.find(
|
|
574
|
-
(row) => row.S_ID === postId
|
|
575
|
-
);
|
|
576
|
-
|
|
577
|
-
if (cached) {
|
|
578
|
-
return cached; // Return from cache - no API call!
|
|
579
|
-
}
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
// Strategy 2: Not in cache, fetch from API
|
|
583
|
-
return postApi.getPost(blogId, postId);
|
|
584
|
-
},
|
|
585
|
-
staleTime: 5 * 60 * 1000, // Fresh for 5 minutes
|
|
586
|
-
gcTime: 10 * 60 * 1000, // Cache for 10 minutes
|
|
587
|
-
refetchOnWindowFocus: false, // Don't refetch on focus
|
|
588
|
-
});
|
|
589
|
-
}
|
|
590
|
-
```
|
|
591
|
-
|
|
592
|
-
**Why this pattern:**
|
|
593
|
-
- Checks grid cache before API
|
|
594
|
-
- Instant data if user came from grid
|
|
595
|
-
- Falls back to API if not cached
|
|
596
|
-
- Configurable cache times
|
|
597
|
-
|
|
598
|
-
---
|
|
599
|
-
|
|
600
|
-
## Example 4: Complete Route File
|
|
601
|
-
|
|
602
|
-
```typescript
|
|
603
|
-
/**
|
|
604
|
-
* Project catalog route
|
|
605
|
-
* Path: /project-catalog
|
|
606
|
-
*/
|
|
607
|
-
|
|
608
|
-
import { createFileRoute } from '@tanstack/react-router';
|
|
609
|
-
import { lazy } from 'react';
|
|
610
|
-
|
|
611
|
-
// Lazy load the PostTable component
|
|
612
|
-
const PostTable = lazy(() =>
|
|
613
|
-
import('@/features/posts/components/PostTable').then(
|
|
614
|
-
(module) => ({ default: module.PostTable })
|
|
615
|
-
)
|
|
616
|
-
);
|
|
617
|
-
|
|
618
|
-
// Route constants
|
|
619
|
-
const PROJECT_CATALOG_FORM_ID = 744;
|
|
620
|
-
const PROJECT_CATALOG_PROJECT_ID = 225;
|
|
621
|
-
|
|
622
|
-
export const Route = createFileRoute('/project-catalog/')({
|
|
623
|
-
component: ProjectCatalogPage,
|
|
624
|
-
loader: () => ({
|
|
625
|
-
crumb: 'Projects', // Breadcrumb title
|
|
626
|
-
}),
|
|
627
|
-
});
|
|
628
|
-
|
|
629
|
-
function ProjectCatalogPage() {
|
|
630
|
-
return (
|
|
631
|
-
<PostTable
|
|
632
|
-
blogId={PROJECT_CATALOG_FORM_ID}
|
|
633
|
-
projectId={PROJECT_CATALOG_PROJECT_ID}
|
|
634
|
-
tableType='active_projects'
|
|
635
|
-
title='Blog Dashboard'
|
|
636
|
-
/>
|
|
637
|
-
);
|
|
638
|
-
}
|
|
639
|
-
|
|
640
|
-
export default ProjectCatalogPage;
|
|
641
|
-
```
|
|
642
|
-
|
|
643
|
-
---
|
|
644
|
-
|
|
645
|
-
## Example 5: Dialog with Blog
|
|
646
|
-
|
|
647
|
-
```typescript
|
|
648
|
-
import React from 'react';
|
|
649
|
-
import {
|
|
650
|
-
Dialog,
|
|
651
|
-
DialogTitle,
|
|
652
|
-
DialogContent,
|
|
653
|
-
DialogActions,
|
|
654
|
-
Button,
|
|
655
|
-
TextField,
|
|
656
|
-
Box,
|
|
657
|
-
IconButton,
|
|
658
|
-
} from '@mui/material';
|
|
659
|
-
import { Close, PersonAdd } from '@mui/icons-material';
|
|
660
|
-
import { useBlog } from 'react-hook-blog';
|
|
661
|
-
import { zodResolver } from '@hookblog/resolvers/zod';
|
|
662
|
-
import { z } from 'zod';
|
|
663
|
-
|
|
664
|
-
const blogSchema = z.object({
|
|
665
|
-
name: z.string().min(1),
|
|
666
|
-
email: z.string().email(),
|
|
667
|
-
});
|
|
668
|
-
|
|
669
|
-
type BlogData = z.infer<typeof blogSchema>;
|
|
670
|
-
|
|
671
|
-
interface AddUserDialogProps {
|
|
672
|
-
open: boolean;
|
|
673
|
-
onClose: () => void;
|
|
674
|
-
onSubmit: (data: BlogData) => Promise<void>;
|
|
675
|
-
}
|
|
676
|
-
|
|
677
|
-
export const AddUserDialog: React.FC<AddUserDialogProps> = ({
|
|
678
|
-
open,
|
|
679
|
-
onClose,
|
|
680
|
-
onSubmit,
|
|
681
|
-
}) => {
|
|
682
|
-
const { register, handleSubmit, blogState: { errors }, reset } = useBlog<BlogData>({
|
|
683
|
-
resolver: zodResolver(blogSchema),
|
|
684
|
-
});
|
|
685
|
-
|
|
686
|
-
const handleClose = () => {
|
|
687
|
-
reset();
|
|
688
|
-
onClose();
|
|
689
|
-
};
|
|
690
|
-
|
|
691
|
-
const handleBlogSubmit = async (data: BlogData) => {
|
|
692
|
-
await onSubmit(data);
|
|
693
|
-
handleClose();
|
|
694
|
-
};
|
|
695
|
-
|
|
696
|
-
return (
|
|
697
|
-
<Dialog open={open} onClose={handleClose} maxWidth='sm' fullWidth>
|
|
698
|
-
<DialogTitle>
|
|
699
|
-
<Box sx={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between' }}>
|
|
700
|
-
<Box sx={{ display: 'flex', alignItems: 'center', gap: 1 }}>
|
|
701
|
-
<PersonAdd color='primary' />
|
|
702
|
-
Add User
|
|
703
|
-
</Box>
|
|
704
|
-
<IconButton onClick={handleClose} size='small'>
|
|
705
|
-
<Close />
|
|
706
|
-
</IconButton>
|
|
707
|
-
</Box>
|
|
708
|
-
</DialogTitle>
|
|
709
|
-
|
|
710
|
-
<blog onSubmit={handleSubmit(handleBlogSubmit)}>
|
|
711
|
-
<DialogContent>
|
|
712
|
-
<Box sx={{ display: 'flex', flexDirection: 'column', gap: 2 }}>
|
|
713
|
-
<TextField
|
|
714
|
-
{...register('name')}
|
|
715
|
-
label='Name'
|
|
716
|
-
error={!!errors.name}
|
|
717
|
-
helperText={errors.name?.message}
|
|
718
|
-
fullWidth
|
|
719
|
-
autoFocus
|
|
720
|
-
/>
|
|
721
|
-
|
|
722
|
-
<TextField
|
|
723
|
-
{...register('email')}
|
|
724
|
-
label='Email'
|
|
725
|
-
type='email'
|
|
726
|
-
error={!!errors.email}
|
|
727
|
-
helperText={errors.email?.message}
|
|
728
|
-
fullWidth
|
|
729
|
-
/>
|
|
730
|
-
</Box>
|
|
731
|
-
</DialogContent>
|
|
732
|
-
|
|
733
|
-
<DialogActions>
|
|
734
|
-
<Button onClick={handleClose}>Cancel</Button>
|
|
735
|
-
<Button type='submit' variant='contained'>
|
|
736
|
-
Add User
|
|
737
|
-
</Button>
|
|
738
|
-
</DialogActions>
|
|
739
|
-
</blog>
|
|
740
|
-
</Dialog>
|
|
741
|
-
);
|
|
742
|
-
};
|
|
743
|
-
```
|
|
744
|
-
|
|
745
|
-
---
|
|
746
|
-
|
|
747
|
-
## Example 6: Parallel Data Fetching
|
|
748
|
-
|
|
749
|
-
```typescript
|
|
750
|
-
import React from 'react';
|
|
751
|
-
import { Box, Grid, Paper } from '@mui/material';
|
|
752
|
-
import { useSuspenseQueries } from '@tanstack/react-query';
|
|
753
|
-
import { userApi } from '../api/userApi';
|
|
754
|
-
import { statsApi } from '../api/statsApi';
|
|
755
|
-
import { activityApi } from '../api/activityApi';
|
|
756
|
-
|
|
757
|
-
export const Dashboard: React.FC = () => {
|
|
758
|
-
// Fetch all data in parallel with Suspense
|
|
759
|
-
const [statsQuery, usersQuery, activityQuery] = useSuspenseQueries({
|
|
760
|
-
queries: [
|
|
761
|
-
{
|
|
762
|
-
queryKey: ['stats'],
|
|
763
|
-
queryFn: () => statsApi.getStats(),
|
|
764
|
-
},
|
|
765
|
-
{
|
|
766
|
-
queryKey: ['users', 'active'],
|
|
767
|
-
queryFn: () => userApi.getActiveUsers(),
|
|
768
|
-
},
|
|
769
|
-
{
|
|
770
|
-
queryKey: ['activity', 'recent'],
|
|
771
|
-
queryFn: () => activityApi.getRecent(),
|
|
772
|
-
},
|
|
773
|
-
],
|
|
774
|
-
});
|
|
775
|
-
|
|
776
|
-
return (
|
|
777
|
-
<Box sx={{ p: 2 }}>
|
|
778
|
-
<Grid container spacing={2}>
|
|
779
|
-
<Grid size={{ xs: 12, md: 4 }}>
|
|
780
|
-
<Paper sx={{ p: 2 }}>
|
|
781
|
-
<h3>Stats</h3>
|
|
782
|
-
<p>Total: {statsQuery.data.total}</p>
|
|
783
|
-
</Paper>
|
|
784
|
-
</Grid>
|
|
785
|
-
|
|
786
|
-
<Grid size={{ xs: 12, md: 4 }}>
|
|
787
|
-
<Paper sx={{ p: 2 }}>
|
|
788
|
-
<h3>Active Users</h3>
|
|
789
|
-
<p>Count: {usersQuery.data.length}</p>
|
|
790
|
-
</Paper>
|
|
791
|
-
</Grid>
|
|
792
|
-
|
|
793
|
-
<Grid size={{ xs: 12, md: 4 }}>
|
|
794
|
-
<Paper sx={{ p: 2 }}>
|
|
795
|
-
<h3>Recent Activity</h3>
|
|
796
|
-
<p>Events: {activityQuery.data.length}</p>
|
|
797
|
-
</Paper>
|
|
798
|
-
</Grid>
|
|
799
|
-
</Grid>
|
|
800
|
-
</Box>
|
|
801
|
-
);
|
|
802
|
-
};
|
|
803
|
-
|
|
804
|
-
// Usage with Suspense
|
|
805
|
-
<SuspenseLoader>
|
|
806
|
-
<Dashboard />
|
|
807
|
-
</SuspenseLoader>
|
|
808
|
-
```
|
|
809
|
-
|
|
810
|
-
---
|
|
811
|
-
|
|
812
|
-
## Example 7: Optimistic Update
|
|
813
|
-
|
|
814
|
-
```typescript
|
|
815
|
-
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
816
|
-
import type { User } from '../types';
|
|
817
|
-
|
|
818
|
-
export const useToggleUserStatus = () => {
|
|
819
|
-
const queryClient = useQueryClient();
|
|
820
|
-
|
|
821
|
-
return useMutation({
|
|
822
|
-
mutationFn: (userId: string) => userApi.toggleStatus(userId),
|
|
823
|
-
|
|
824
|
-
// Optimistic update
|
|
825
|
-
onMutate: async (userId) => {
|
|
826
|
-
// Cancel outgoing refetches
|
|
827
|
-
await queryClient.cancelQueries({ queryKey: ['users'] });
|
|
828
|
-
|
|
829
|
-
// Snapshot previous value
|
|
830
|
-
const previousUsers = queryClient.getQueryData<User[]>(['users']);
|
|
831
|
-
|
|
832
|
-
// Optimistically update UI
|
|
833
|
-
queryClient.setQueryData<User[]>(['users'], (old) => {
|
|
834
|
-
return old?.map(user =>
|
|
835
|
-
user.id === userId
|
|
836
|
-
? { ...user, active: !user.active }
|
|
837
|
-
: user
|
|
838
|
-
) || [];
|
|
839
|
-
});
|
|
840
|
-
|
|
841
|
-
return { previousUsers };
|
|
842
|
-
},
|
|
843
|
-
|
|
844
|
-
// Rollback on error
|
|
845
|
-
onError: (err, userId, context) => {
|
|
846
|
-
queryClient.setQueryData(['users'], context?.previousUsers);
|
|
847
|
-
},
|
|
848
|
-
|
|
849
|
-
// Refetch after mutation
|
|
850
|
-
onSettled: () => {
|
|
851
|
-
queryClient.invalidateQueries({ queryKey: ['users'] });
|
|
852
|
-
},
|
|
853
|
-
});
|
|
854
|
-
};
|
|
855
|
-
```
|
|
856
|
-
|
|
857
|
-
---
|
|
858
|
-
|
|
859
|
-
## Summary
|
|
860
|
-
|
|
861
|
-
**Key Takeaways:**
|
|
862
|
-
|
|
863
|
-
1. **Component Pattern**: React.FC + lazy + Suspense + useSuspenseQuery
|
|
864
|
-
2. **Feature Structure**: Organized subdirectories (api/, components/, hooks/, etc.)
|
|
865
|
-
3. **Routing**: Folder-based with lazy loading
|
|
866
|
-
4. **Data Fetching**: useSuspenseQuery with cache-first strategy
|
|
867
|
-
5. **Blogs**: React Hook Blog + Zod validation
|
|
868
|
-
6. **Error Handling**: useMuiSnackbar + onError callbacks
|
|
869
|
-
7. **Perblogance**: useMemo, useCallback, React.memo, debouncing
|
|
870
|
-
8. **Styling**: Inline <100 lines, sx prop, MUI v7 syntax
|
|
871
|
-
|
|
872
|
-
**See other resources for detailed explanations of each pattern.**
|