claude-skill-lord 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +19 -0
- package/.claude-plugin/plugin.json +54 -0
- package/CLAUDE.md +81 -0
- package/LICENSE +33 -0
- package/LICENSE-ui-ux-pro-max.txt +21 -0
- package/README.md +294 -0
- package/agents/architect.md +211 -0
- package/agents/brainstormer.md +103 -0
- package/agents/build-error-resolver.md +114 -0
- package/agents/chief-of-staff.md +151 -0
- package/agents/code-reviewer.md +285 -0
- package/agents/copywriter.md +111 -0
- package/agents/database-admin.md +91 -0
- package/agents/debugger.md +135 -0
- package/agents/docs-manager.md +119 -0
- package/agents/e2e-runner.md +107 -0
- package/agents/git-manager.md +199 -0
- package/agents/harness-optimizer.md +35 -0
- package/agents/loop-operator.md +36 -0
- package/agents/planner.md +245 -0
- package/agents/project-manager.md +117 -0
- package/agents/quality-gate.md +173 -0
- package/agents/refactor-cleaner.md +85 -0
- package/agents/scout.md +105 -0
- package/agents/security-reviewer.md +108 -0
- package/agents/skill-router.md +112 -0
- package/agents/tdd-guide.md +91 -0
- package/agents/ui-ux-designer.md +220 -0
- package/assets/canvas-fonts/ArsenalSC-OFL.txt +93 -0
- package/assets/canvas-fonts/ArsenalSC-Regular.ttf +0 -0
- package/assets/canvas-fonts/BigShoulders-Bold.ttf +0 -0
- package/assets/canvas-fonts/BigShoulders-OFL.txt +93 -0
- package/assets/canvas-fonts/BigShoulders-Regular.ttf +0 -0
- package/assets/canvas-fonts/Boldonse-OFL.txt +93 -0
- package/assets/canvas-fonts/Boldonse-Regular.ttf +0 -0
- package/assets/canvas-fonts/BricolageGrotesque-Bold.ttf +0 -0
- package/assets/canvas-fonts/BricolageGrotesque-OFL.txt +93 -0
- package/assets/canvas-fonts/BricolageGrotesque-Regular.ttf +0 -0
- package/assets/canvas-fonts/CrimsonPro-Bold.ttf +0 -0
- package/assets/canvas-fonts/CrimsonPro-Italic.ttf +0 -0
- package/assets/canvas-fonts/CrimsonPro-OFL.txt +93 -0
- package/assets/canvas-fonts/CrimsonPro-Regular.ttf +0 -0
- package/assets/canvas-fonts/DMMono-OFL.txt +93 -0
- package/assets/canvas-fonts/DMMono-Regular.ttf +0 -0
- package/assets/canvas-fonts/EricaOne-OFL.txt +94 -0
- package/assets/canvas-fonts/EricaOne-Regular.ttf +0 -0
- package/assets/canvas-fonts/GeistMono-Bold.ttf +0 -0
- package/assets/canvas-fonts/GeistMono-OFL.txt +93 -0
- package/assets/canvas-fonts/GeistMono-Regular.ttf +0 -0
- package/assets/canvas-fonts/Gloock-OFL.txt +93 -0
- package/assets/canvas-fonts/Gloock-Regular.ttf +0 -0
- package/assets/canvas-fonts/IBMPlexMono-Bold.ttf +0 -0
- package/assets/canvas-fonts/IBMPlexMono-OFL.txt +93 -0
- package/assets/canvas-fonts/IBMPlexMono-Regular.ttf +0 -0
- package/assets/canvas-fonts/IBMPlexSerif-Bold.ttf +0 -0
- package/assets/canvas-fonts/IBMPlexSerif-BoldItalic.ttf +0 -0
- package/assets/canvas-fonts/IBMPlexSerif-Italic.ttf +0 -0
- package/assets/canvas-fonts/IBMPlexSerif-Regular.ttf +0 -0
- package/assets/canvas-fonts/InstrumentSans-Bold.ttf +0 -0
- package/assets/canvas-fonts/InstrumentSans-BoldItalic.ttf +0 -0
- package/assets/canvas-fonts/InstrumentSans-Italic.ttf +0 -0
- package/assets/canvas-fonts/InstrumentSans-OFL.txt +93 -0
- package/assets/canvas-fonts/InstrumentSans-Regular.ttf +0 -0
- package/assets/canvas-fonts/InstrumentSerif-Italic.ttf +0 -0
- package/assets/canvas-fonts/InstrumentSerif-Regular.ttf +0 -0
- package/assets/canvas-fonts/Italiana-OFL.txt +93 -0
- package/assets/canvas-fonts/Italiana-Regular.ttf +0 -0
- package/assets/canvas-fonts/JetBrainsMono-Bold.ttf +0 -0
- package/assets/canvas-fonts/JetBrainsMono-OFL.txt +93 -0
- package/assets/canvas-fonts/JetBrainsMono-Regular.ttf +0 -0
- package/assets/canvas-fonts/Jura-Light.ttf +0 -0
- package/assets/canvas-fonts/Jura-Medium.ttf +0 -0
- package/assets/canvas-fonts/Jura-OFL.txt +93 -0
- package/assets/canvas-fonts/LibreBaskerville-OFL.txt +93 -0
- package/assets/canvas-fonts/LibreBaskerville-Regular.ttf +0 -0
- package/assets/canvas-fonts/Lora-Bold.ttf +0 -0
- package/assets/canvas-fonts/Lora-BoldItalic.ttf +0 -0
- package/assets/canvas-fonts/Lora-Italic.ttf +0 -0
- package/assets/canvas-fonts/Lora-OFL.txt +93 -0
- package/assets/canvas-fonts/Lora-Regular.ttf +0 -0
- package/assets/canvas-fonts/NationalPark-Bold.ttf +0 -0
- package/assets/canvas-fonts/NationalPark-OFL.txt +93 -0
- package/assets/canvas-fonts/NationalPark-Regular.ttf +0 -0
- package/assets/canvas-fonts/NothingYouCouldDo-OFL.txt +93 -0
- package/assets/canvas-fonts/NothingYouCouldDo-Regular.ttf +0 -0
- package/assets/canvas-fonts/Outfit-Bold.ttf +0 -0
- package/assets/canvas-fonts/Outfit-OFL.txt +93 -0
- package/assets/canvas-fonts/Outfit-Regular.ttf +0 -0
- package/assets/canvas-fonts/PixelifySans-Medium.ttf +0 -0
- package/assets/canvas-fonts/PixelifySans-OFL.txt +93 -0
- package/assets/canvas-fonts/PoiretOne-OFL.txt +93 -0
- package/assets/canvas-fonts/PoiretOne-Regular.ttf +0 -0
- package/assets/canvas-fonts/RedHatMono-Bold.ttf +0 -0
- package/assets/canvas-fonts/RedHatMono-OFL.txt +93 -0
- package/assets/canvas-fonts/RedHatMono-Regular.ttf +0 -0
- package/assets/canvas-fonts/Silkscreen-OFL.txt +93 -0
- package/assets/canvas-fonts/Silkscreen-Regular.ttf +0 -0
- package/assets/canvas-fonts/SmoochSans-Medium.ttf +0 -0
- package/assets/canvas-fonts/SmoochSans-OFL.txt +93 -0
- package/assets/canvas-fonts/Tektur-Medium.ttf +0 -0
- package/assets/canvas-fonts/Tektur-OFL.txt +93 -0
- package/assets/canvas-fonts/Tektur-Regular.ttf +0 -0
- package/assets/canvas-fonts/WorkSans-Bold.ttf +0 -0
- package/assets/canvas-fonts/WorkSans-BoldItalic.ttf +0 -0
- package/assets/canvas-fonts/WorkSans-Italic.ttf +0 -0
- package/assets/canvas-fonts/WorkSans-OFL.txt +93 -0
- package/assets/canvas-fonts/WorkSans-Regular.ttf +0 -0
- package/assets/canvas-fonts/YoungSerif-OFL.txt +93 -0
- package/assets/canvas-fonts/YoungSerif-Regular.ttf +0 -0
- package/commands/ask.md +56 -0
- package/commands/audit.md +25 -0
- package/commands/bootstrap/auto/fast.md +111 -0
- package/commands/bootstrap/auto.md +115 -0
- package/commands/bootstrap.md +137 -0
- package/commands/brainstorm.md +69 -0
- package/commands/build-fix.md +66 -0
- package/commands/code-review.md +44 -0
- package/commands/code.md +93 -0
- package/commands/commit_gen.md +44 -0
- package/commands/content/cro.md +43 -0
- package/commands/content/enhance.md +14 -0
- package/commands/content/fast.md +13 -0
- package/commands/content/good.md +16 -0
- package/commands/cook/auto/fast.md +26 -0
- package/commands/cook/auto.md +15 -0
- package/commands/cook.md +105 -0
- package/commands/debug.md +13 -0
- package/commands/design/3d.md +74 -0
- package/commands/design/describe.md +21 -0
- package/commands/design/fast.md +22 -0
- package/commands/design/good.md +26 -0
- package/commands/design/screenshot.md +32 -0
- package/commands/design/video.md +32 -0
- package/commands/docs/init.md +15 -0
- package/commands/docs/summarize.md +22 -0
- package/commands/docs/update.md +23 -0
- package/commands/e2e.md +365 -0
- package/commands/evolve.md +178 -0
- package/commands/fix/ci.md +20 -0
- package/commands/fix/fast.md +19 -0
- package/commands/fix/hard.md +43 -0
- package/commands/fix/logs.md +20 -0
- package/commands/fix/test.md +20 -0
- package/commands/fix/types.md +9 -0
- package/commands/fix/ui.md +35 -0
- package/commands/fix.md +12 -0
- package/commands/git/cm.md +11 -0
- package/commands/git/cp.md +9 -0
- package/commands/git/pr.md +15 -0
- package/commands/integrate/polar.md +28 -0
- package/commands/integrate/sepay.md +28 -0
- package/commands/journal.md +5 -0
- package/commands/learn.md +74 -0
- package/commands/loop-start.md +36 -0
- package/commands/loop-status.md +28 -0
- package/commands/model-route.md +30 -0
- package/commands/plan.md +115 -0
- package/commands/prompt-optimize.md +38 -0
- package/commands/quality-gate.md +33 -0
- package/commands/refactor-clean.md +84 -0
- package/commands/review/codebase.md +49 -0
- package/commands/route.md +28 -0
- package/commands/scout/ext.md +35 -0
- package/commands/scout.md +28 -0
- package/commands/skill/add.md +29 -0
- package/commands/skill/create.md +22 -0
- package/commands/skill/fix-logs.md +21 -0
- package/commands/skill/optimize.md +28 -0
- package/commands/skill-create.md +174 -0
- package/commands/tdd.md +328 -0
- package/commands/test.md +8 -0
- package/commands/verify.md +63 -0
- package/commands/watzup.md +8 -0
- package/hooks/hooks.json +86 -0
- package/hooks/scripts/block-no-verify.js +19 -0
- package/hooks/scripts/check-console-log.js +71 -0
- package/hooks/scripts/check-hook-enabled.js +12 -0
- package/hooks/scripts/config-protection.js +125 -0
- package/hooks/scripts/post-edit-console-warn.js +54 -0
- package/hooks/scripts/post-edit-format.js +109 -0
- package/hooks/scripts/post-edit-typecheck.js +96 -0
- package/hooks/scripts/quality-gate.js +168 -0
- package/hooks/scripts/run-with-flags-shell.sh +32 -0
- package/hooks/scripts/run-with-flags.js +120 -0
- package/hooks/scripts/session-end.js +301 -0
- package/hooks/scripts/session-start.js +98 -0
- package/manifests/install-modules.json +96 -0
- package/manifests/install-profiles.json +17 -0
- package/package.json +52 -0
- package/scripts/install.js +144 -0
- package/scripts/lib/hook-flags.js +74 -0
- package/scripts/lib/profile-utils.js +97 -0
- package/scripts/lib/resolve-formatter.js +185 -0
- package/scripts/lib/resolve-root.js +89 -0
- package/scripts/lib/utils.js +564 -0
- package/scripts/sl.js +677 -0
- package/skills/manifest.json +493 -0
- package/skills/tier-1/api-design/SKILL.md +523 -0
- package/skills/tier-1/backend-development/SKILL.md +95 -0
- package/skills/tier-1/backend-development/references/backend-api-design.md +495 -0
- package/skills/tier-1/backend-development/references/backend-architecture.md +454 -0
- package/skills/tier-1/backend-development/references/backend-authentication.md +338 -0
- package/skills/tier-1/backend-development/references/backend-code-quality.md +659 -0
- package/skills/tier-1/backend-development/references/backend-debugging.md +904 -0
- package/skills/tier-1/backend-development/references/backend-devops.md +494 -0
- package/skills/tier-1/backend-development/references/backend-mindset.md +387 -0
- package/skills/tier-1/backend-development/references/backend-performance.md +397 -0
- package/skills/tier-1/backend-development/references/backend-security.md +290 -0
- package/skills/tier-1/backend-development/references/backend-technologies.md +256 -0
- package/skills/tier-1/backend-development/references/backend-testing.md +429 -0
- package/skills/tier-1/code-review/SKILL.md +143 -0
- package/skills/tier-1/code-review/references/code-review-reception.md +209 -0
- package/skills/tier-1/code-review/references/requesting-code-review.md +105 -0
- package/skills/tier-1/code-review/references/verification-before-completion.md +139 -0
- package/skills/tier-1/databases/SKILL.md +232 -0
- package/skills/tier-1/databases/references/mongodb-aggregation.md +447 -0
- package/skills/tier-1/databases/references/mongodb-atlas.md +465 -0
- package/skills/tier-1/databases/references/mongodb-crud.md +408 -0
- package/skills/tier-1/databases/references/mongodb-indexing.md +442 -0
- package/skills/tier-1/databases/references/postgresql-administration.md +594 -0
- package/skills/tier-1/databases/references/postgresql-performance.md +527 -0
- package/skills/tier-1/databases/references/postgresql-psql-cli.md +467 -0
- package/skills/tier-1/databases/references/postgresql-queries.md +475 -0
- package/skills/tier-1/databases/scripts/.coverage +0 -0
- package/skills/tier-1/databases/scripts/db_backup.py +502 -0
- package/skills/tier-1/databases/scripts/db_migrate.py +414 -0
- package/skills/tier-1/databases/scripts/db_performance_check.py +444 -0
- package/skills/tier-1/databases/scripts/requirements.txt +20 -0
- package/skills/tier-1/databases/scripts/tests/coverage-db.json +1 -0
- package/skills/tier-1/databases/scripts/tests/requirements.txt +4 -0
- package/skills/tier-1/databases/scripts/tests/test_db_backup.py +340 -0
- package/skills/tier-1/databases/scripts/tests/test_db_migrate.py +277 -0
- package/skills/tier-1/databases/scripts/tests/test_db_performance_check.py +370 -0
- package/skills/tier-1/debugging/SKILL.md +84 -0
- package/skills/tier-1/debugging/references/defense-in-depth.md +124 -0
- package/skills/tier-1/debugging/references/root-cause-tracing.md +122 -0
- package/skills/tier-1/debugging/references/systematic-debugging.md +102 -0
- package/skills/tier-1/debugging/references/verification.md +123 -0
- package/skills/tier-1/debugging/scripts/find-polluter.sh +63 -0
- package/skills/tier-1/debugging/scripts/find-polluter.test.md +102 -0
- package/skills/tier-1/devops/.env.example +76 -0
- package/skills/tier-1/devops/SKILL.md +285 -0
- package/skills/tier-1/devops/references/browser-rendering.md +305 -0
- package/skills/tier-1/devops/references/cloudflare-d1-kv.md +123 -0
- package/skills/tier-1/devops/references/cloudflare-platform.md +271 -0
- package/skills/tier-1/devops/references/cloudflare-r2-storage.md +280 -0
- package/skills/tier-1/devops/references/cloudflare-workers-advanced.md +312 -0
- package/skills/tier-1/devops/references/cloudflare-workers-apis.md +309 -0
- package/skills/tier-1/devops/references/cloudflare-workers-basics.md +418 -0
- package/skills/tier-1/devops/references/docker-basics.md +297 -0
- package/skills/tier-1/devops/references/docker-compose.md +292 -0
- package/skills/tier-1/devops/references/gcloud-platform.md +297 -0
- package/skills/tier-1/devops/references/gcloud-services.md +304 -0
- package/skills/tier-1/devops/scripts/cloudflare_deploy.py +269 -0
- package/skills/tier-1/devops/scripts/docker_optimize.py +320 -0
- package/skills/tier-1/devops/scripts/requirements.txt +20 -0
- package/skills/tier-1/devops/scripts/tests/requirements.txt +3 -0
- package/skills/tier-1/devops/scripts/tests/test_cloudflare_deploy.py +285 -0
- package/skills/tier-1/devops/scripts/tests/test_docker_optimize.py +436 -0
- package/skills/tier-1/frontend-development/SKILL.md +399 -0
- package/skills/tier-1/frontend-development/resources/common-patterns.md +331 -0
- package/skills/tier-1/frontend-development/resources/complete-examples.md +872 -0
- package/skills/tier-1/frontend-development/resources/component-patterns.md +502 -0
- package/skills/tier-1/frontend-development/resources/data-fetching.md +767 -0
- package/skills/tier-1/frontend-development/resources/file-organization.md +502 -0
- package/skills/tier-1/frontend-development/resources/loading-and-error-states.md +501 -0
- package/skills/tier-1/frontend-development/resources/performance.md +406 -0
- package/skills/tier-1/frontend-development/resources/routing-guide.md +364 -0
- package/skills/tier-1/frontend-development/resources/styling-guide.md +428 -0
- package/skills/tier-1/frontend-development/resources/typescript-standards.md +418 -0
- package/skills/tier-1/react-best-practices/AGENTS.md +2410 -0
- package/skills/tier-1/react-best-practices/README.md +123 -0
- package/skills/tier-1/react-best-practices/SKILL.md +125 -0
- package/skills/tier-1/react-best-practices/metadata.json +15 -0
- package/skills/tier-1/react-best-practices/rules/_sections.md +46 -0
- package/skills/tier-1/react-best-practices/rules/_template.md +28 -0
- package/skills/tier-1/react-best-practices/rules/advanced-event-handler-refs.md +55 -0
- package/skills/tier-1/react-best-practices/rules/advanced-use-latest.md +49 -0
- package/skills/tier-1/react-best-practices/rules/async-api-routes.md +38 -0
- package/skills/tier-1/react-best-practices/rules/async-defer-await.md +80 -0
- package/skills/tier-1/react-best-practices/rules/async-dependencies.md +36 -0
- package/skills/tier-1/react-best-practices/rules/async-parallel.md +28 -0
- package/skills/tier-1/react-best-practices/rules/async-suspense-boundaries.md +99 -0
- package/skills/tier-1/react-best-practices/rules/bundle-barrel-imports.md +59 -0
- package/skills/tier-1/react-best-practices/rules/bundle-conditional.md +31 -0
- package/skills/tier-1/react-best-practices/rules/bundle-defer-third-party.md +49 -0
- package/skills/tier-1/react-best-practices/rules/bundle-dynamic-imports.md +35 -0
- package/skills/tier-1/react-best-practices/rules/bundle-preload.md +50 -0
- package/skills/tier-1/react-best-practices/rules/client-event-listeners.md +74 -0
- package/skills/tier-1/react-best-practices/rules/client-localstorage-schema.md +71 -0
- package/skills/tier-1/react-best-practices/rules/client-passive-event-listeners.md +48 -0
- package/skills/tier-1/react-best-practices/rules/client-swr-dedup.md +56 -0
- package/skills/tier-1/react-best-practices/rules/js-batch-dom-css.md +82 -0
- package/skills/tier-1/react-best-practices/rules/js-cache-function-results.md +80 -0
- package/skills/tier-1/react-best-practices/rules/js-cache-property-access.md +28 -0
- package/skills/tier-1/react-best-practices/rules/js-cache-storage.md +70 -0
- package/skills/tier-1/react-best-practices/rules/js-combine-iterations.md +32 -0
- package/skills/tier-1/react-best-practices/rules/js-early-exit.md +50 -0
- package/skills/tier-1/react-best-practices/rules/js-hoist-regexp.md +45 -0
- package/skills/tier-1/react-best-practices/rules/js-index-maps.md +37 -0
- package/skills/tier-1/react-best-practices/rules/js-length-check-first.md +49 -0
- package/skills/tier-1/react-best-practices/rules/js-min-max-loop.md +82 -0
- package/skills/tier-1/react-best-practices/rules/js-set-map-lookups.md +24 -0
- package/skills/tier-1/react-best-practices/rules/js-tosorted-immutable.md +57 -0
- package/skills/tier-1/react-best-practices/rules/rendering-activity.md +26 -0
- package/skills/tier-1/react-best-practices/rules/rendering-animate-svg-wrapper.md +47 -0
- package/skills/tier-1/react-best-practices/rules/rendering-conditional-render.md +40 -0
- package/skills/tier-1/react-best-practices/rules/rendering-content-visibility.md +38 -0
- package/skills/tier-1/react-best-practices/rules/rendering-hoist-jsx.md +46 -0
- package/skills/tier-1/react-best-practices/rules/rendering-hydration-no-flicker.md +82 -0
- package/skills/tier-1/react-best-practices/rules/rendering-svg-precision.md +28 -0
- package/skills/tier-1/react-best-practices/rules/rerender-defer-reads.md +39 -0
- package/skills/tier-1/react-best-practices/rules/rerender-dependencies.md +45 -0
- package/skills/tier-1/react-best-practices/rules/rerender-derived-state.md +29 -0
- package/skills/tier-1/react-best-practices/rules/rerender-functional-setstate.md +74 -0
- package/skills/tier-1/react-best-practices/rules/rerender-lazy-state-init.md +58 -0
- package/skills/tier-1/react-best-practices/rules/rerender-memo.md +44 -0
- package/skills/tier-1/react-best-practices/rules/rerender-transitions.md +40 -0
- package/skills/tier-1/react-best-practices/rules/server-after-nonblocking.md +73 -0
- package/skills/tier-1/react-best-practices/rules/server-cache-lru.md +41 -0
- package/skills/tier-1/react-best-practices/rules/server-cache-react.md +76 -0
- package/skills/tier-1/react-best-practices/rules/server-parallel-fetching.md +83 -0
- package/skills/tier-1/react-best-practices/rules/server-serialization.md +38 -0
- package/skills/tier-1/research/SKILL.md +168 -0
- package/skills/tier-1/security-review/SKILL.md +495 -0
- package/skills/tier-1/security-review/cloud-infrastructure-security.md +361 -0
- package/skills/tier-1/sequential-thinking/.env.example +8 -0
- package/skills/tier-1/sequential-thinking/README.md +183 -0
- package/skills/tier-1/sequential-thinking/SKILL.md +94 -0
- package/skills/tier-1/sequential-thinking/package.json +31 -0
- package/skills/tier-1/sequential-thinking/references/advanced-strategies.md +79 -0
- package/skills/tier-1/sequential-thinking/references/advanced-techniques.md +76 -0
- package/skills/tier-1/sequential-thinking/references/core-patterns.md +95 -0
- package/skills/tier-1/sequential-thinking/references/examples-api.md +88 -0
- package/skills/tier-1/sequential-thinking/references/examples-architecture.md +94 -0
- package/skills/tier-1/sequential-thinking/references/examples-debug.md +90 -0
- package/skills/tier-1/sequential-thinking/scripts/format-thought.js +159 -0
- package/skills/tier-1/sequential-thinking/scripts/process-thought.js +236 -0
- package/skills/tier-1/sequential-thinking/tests/format-thought.test.js +133 -0
- package/skills/tier-1/sequential-thinking/tests/process-thought.test.js +215 -0
- package/skills/tier-1/tdd-workflow/SKILL.md +410 -0
- package/skills/tier-1/testing/SKILL.md +56 -0
- package/skills/tier-1/ui-styling/LICENSE.txt +202 -0
- package/skills/tier-1/ui-styling/SKILL.md +321 -0
- package/skills/tier-1/ui-styling/references/canvas-design-system.md +320 -0
- package/skills/tier-1/ui-styling/references/shadcn-accessibility.md +471 -0
- package/skills/tier-1/ui-styling/references/shadcn-components.md +424 -0
- package/skills/tier-1/ui-styling/references/shadcn-theming.md +373 -0
- package/skills/tier-1/ui-styling/references/tailwind-customization.md +483 -0
- package/skills/tier-1/ui-styling/references/tailwind-responsive.md +382 -0
- package/skills/tier-1/ui-styling/references/tailwind-utilities.md +455 -0
- package/skills/tier-1/ui-styling/scripts/.coverage +0 -0
- package/skills/tier-1/ui-styling/scripts/requirements.txt +17 -0
- package/skills/tier-1/ui-styling/scripts/shadcn_add.py +292 -0
- package/skills/tier-1/ui-styling/scripts/tailwind_config_gen.py +456 -0
- package/skills/tier-1/ui-styling/scripts/tests/coverage-ui.json +1 -0
- package/skills/tier-1/ui-styling/scripts/tests/requirements.txt +3 -0
- package/skills/tier-1/ui-styling/scripts/tests/test_shadcn_add.py +266 -0
- package/skills/tier-1/ui-styling/scripts/tests/test_tailwind_config_gen.py +336 -0
- package/skills/tier-1/ui-ux-pro-max/SKILL.md +659 -0
- package/skills/tier-1/ui-ux-pro-max/data/_sync_all.py +414 -0
- package/skills/tier-1/ui-ux-pro-max/data/app-interface.csv +31 -0
- package/skills/tier-1/ui-ux-pro-max/data/charts.csv +26 -0
- package/skills/tier-1/ui-ux-pro-max/data/colors.csv +162 -0
- package/skills/tier-1/ui-ux-pro-max/data/design.csv +1776 -0
- package/skills/tier-1/ui-ux-pro-max/data/draft.csv +1779 -0
- package/skills/tier-1/ui-ux-pro-max/data/google-fonts.csv +1924 -0
- package/skills/tier-1/ui-ux-pro-max/data/icons.csv +106 -0
- package/skills/tier-1/ui-ux-pro-max/data/landing.csv +35 -0
- package/skills/tier-1/ui-ux-pro-max/data/products.csv +162 -0
- package/skills/tier-1/ui-ux-pro-max/data/react-performance.csv +45 -0
- package/skills/tier-1/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
- package/skills/tier-1/ui-ux-pro-max/data/styles.csv +85 -0
- package/skills/tier-1/ui-ux-pro-max/data/typography.csv +74 -0
- package/skills/tier-1/ui-ux-pro-max/data/ui-reasoning.csv +162 -0
- package/skills/tier-1/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
- package/skills/tier-1/ui-ux-pro-max/scripts/core.py +247 -0
- package/skills/tier-1/ui-ux-pro-max/scripts/design_system.py +1067 -0
- package/skills/tier-1/ui-ux-pro-max/scripts/search.py +114 -0
- package/skills/tier-1/ui-ux-pro-max/templates/base/quick-reference.md +297 -0
- package/skills/tier-1/ui-ux-pro-max/templates/base/skill-content.md +358 -0
- package/skills/tier-1/ui-ux-pro-max/templates/platforms/agent.json +21 -0
- package/skills/tier-1/ui-ux-pro-max/templates/platforms/claude.json +21 -0
- package/skills/tier-1/ui-ux-pro-max/templates/platforms/codebuddy.json +21 -0
- package/skills/tier-1/ui-ux-pro-max/templates/platforms/codex.json +21 -0
- package/skills/tier-1/ui-ux-pro-max/templates/platforms/continue.json +21 -0
- package/skills/tier-1/ui-ux-pro-max/templates/platforms/copilot.json +18 -0
- package/skills/tier-1/ui-ux-pro-max/templates/platforms/cursor.json +18 -0
- package/skills/tier-1/ui-ux-pro-max/templates/platforms/droid.json +21 -0
- package/skills/tier-1/ui-ux-pro-max/templates/platforms/gemini.json +21 -0
- package/skills/tier-1/ui-ux-pro-max/templates/platforms/kiro.json +18 -0
- package/skills/tier-1/ui-ux-pro-max/templates/platforms/opencode.json +21 -0
- package/skills/tier-1/ui-ux-pro-max/templates/platforms/qoder.json +21 -0
- package/skills/tier-1/ui-ux-pro-max/templates/platforms/roocode.json +18 -0
- package/skills/tier-1/ui-ux-pro-max/templates/platforms/trae.json +21 -0
- package/skills/tier-1/ui-ux-pro-max/templates/platforms/windsurf.json +18 -0
- package/skills/tier-1/web-frameworks/SKILL.md +324 -0
- package/skills/tier-1/web-frameworks/references/nextjs-app-router.md +465 -0
- package/skills/tier-1/web-frameworks/references/nextjs-data-fetching.md +459 -0
- package/skills/tier-1/web-frameworks/references/nextjs-optimization.md +511 -0
- package/skills/tier-1/web-frameworks/references/nextjs-server-components.md +495 -0
- package/skills/tier-1/web-frameworks/references/remix-icon-integration.md +603 -0
- package/skills/tier-1/web-frameworks/references/turborepo-caching.md +551 -0
- package/skills/tier-1/web-frameworks/references/turborepo-pipelines.md +517 -0
- package/skills/tier-1/web-frameworks/references/turborepo-setup.md +542 -0
- package/skills/tier-1/web-frameworks/scripts/.coverage +0 -0
- package/skills/tier-1/web-frameworks/scripts/__init__.py +0 -0
- package/skills/tier-1/web-frameworks/scripts/nextjs_init.py +547 -0
- package/skills/tier-1/web-frameworks/scripts/requirements.txt +16 -0
- package/skills/tier-1/web-frameworks/scripts/tests/coverage-web.json +1 -0
- package/skills/tier-1/web-frameworks/scripts/tests/requirements.txt +3 -0
- package/skills/tier-1/web-frameworks/scripts/tests/test_nextjs_init.py +319 -0
- package/skills/tier-1/web-frameworks/scripts/tests/test_turborepo_migrate.py +374 -0
- package/skills/tier-1/web-frameworks/scripts/turborepo_migrate.py +394 -0
- package/skills/tier-2/ai-multimodal/.env.example +97 -0
- package/skills/tier-2/ai-multimodal/SKILL.md +353 -0
- package/skills/tier-2/ai-multimodal/references/audio-processing.md +373 -0
- package/skills/tier-2/ai-multimodal/references/image-generation.md +558 -0
- package/skills/tier-2/ai-multimodal/references/video-analysis.md +498 -0
- package/skills/tier-2/ai-multimodal/references/vision-understanding.md +479 -0
- package/skills/tier-2/ai-multimodal/scripts/.coverage +0 -0
- package/skills/tier-2/ai-multimodal/scripts/document_converter.py +395 -0
- package/skills/tier-2/ai-multimodal/scripts/gemini_batch_process.py +480 -0
- package/skills/tier-2/ai-multimodal/scripts/media_optimizer.py +506 -0
- package/skills/tier-2/ai-multimodal/scripts/requirements.txt +26 -0
- package/skills/tier-2/ai-multimodal/scripts/tests/.coverage +0 -0
- package/skills/tier-2/ai-multimodal/scripts/tests/requirements.txt +20 -0
- package/skills/tier-2/ai-multimodal/scripts/tests/test_document_converter.py +74 -0
- package/skills/tier-2/ai-multimodal/scripts/tests/test_failures.log +258 -0
- package/skills/tier-2/ai-multimodal/scripts/tests/test_gemini_batch_process.py +362 -0
- package/skills/tier-2/ai-multimodal/scripts/tests/test_media_optimizer.py +373 -0
- package/skills/tier-2/autonomous-loops/SKILL.md +610 -0
- package/skills/tier-2/backend-patterns/SKILL.md +598 -0
- package/skills/tier-2/better-auth/SKILL.md +204 -0
- package/skills/tier-2/better-auth/references/advanced-features.md +553 -0
- package/skills/tier-2/better-auth/references/database-integration.md +577 -0
- package/skills/tier-2/better-auth/references/email-password-auth.md +416 -0
- package/skills/tier-2/better-auth/references/oauth-providers.md +430 -0
- package/skills/tier-2/better-auth/scripts/.coverage +0 -0
- package/skills/tier-2/better-auth/scripts/better_auth_init.py +521 -0
- package/skills/tier-2/better-auth/scripts/requirements.txt +15 -0
- package/skills/tier-2/better-auth/scripts/tests/.coverage +0 -0
- package/skills/tier-2/better-auth/scripts/tests/test_better_auth_init.py +421 -0
- package/skills/tier-2/brand/SKILL.md +97 -0
- package/skills/tier-2/brand/references/approval-checklist.md +169 -0
- package/skills/tier-2/brand/references/asset-organization.md +157 -0
- package/skills/tier-2/brand/references/brand-guideline-template.md +140 -0
- package/skills/tier-2/brand/references/color-palette-management.md +186 -0
- package/skills/tier-2/brand/references/consistency-checklist.md +94 -0
- package/skills/tier-2/brand/references/logo-usage-rules.md +185 -0
- package/skills/tier-2/brand/references/messaging-framework.md +85 -0
- package/skills/tier-2/brand/references/typography-specifications.md +214 -0
- package/skills/tier-2/brand/references/update.md +118 -0
- package/skills/tier-2/brand/references/visual-identity.md +96 -0
- package/skills/tier-2/brand/references/voice-framework.md +88 -0
- package/skills/tier-2/brand/scripts/extract-colors.cjs +341 -0
- package/skills/tier-2/brand/scripts/inject-brand-context.cjs +349 -0
- package/skills/tier-2/brand/scripts/sync-brand-to-tokens.cjs +266 -0
- package/skills/tier-2/brand/scripts/validate-asset.cjs +387 -0
- package/skills/tier-2/brand/templates/brand-guidelines-starter.md +275 -0
- package/skills/tier-2/claude-code/SKILL.md +188 -0
- package/skills/tier-2/claude-code/references/advanced-features.md +399 -0
- package/skills/tier-2/claude-code/references/agent-skills.md +399 -0
- package/skills/tier-2/claude-code/references/api-reference.md +498 -0
- package/skills/tier-2/claude-code/references/best-practices.md +447 -0
- package/skills/tier-2/claude-code/references/cicd-integration.md +428 -0
- package/skills/tier-2/claude-code/references/configuration.md +480 -0
- package/skills/tier-2/claude-code/references/enterprise-features.md +472 -0
- package/skills/tier-2/claude-code/references/getting-started.md +252 -0
- package/skills/tier-2/claude-code/references/hooks-and-plugins.md +441 -0
- package/skills/tier-2/claude-code/references/ide-integration.md +316 -0
- package/skills/tier-2/claude-code/references/mcp-integration.md +386 -0
- package/skills/tier-2/claude-code/references/slash-commands.md +489 -0
- package/skills/tier-2/claude-code/references/troubleshooting.md +456 -0
- package/skills/tier-2/codebase-onboarding/SKILL.md +233 -0
- package/skills/tier-2/coding-standards/SKILL.md +530 -0
- package/skills/tier-2/continuous-learning/SKILL.md +365 -0
- package/skills/tier-2/continuous-learning/agents/observer-loop.sh +191 -0
- package/skills/tier-2/continuous-learning/agents/observer.md +198 -0
- package/skills/tier-2/continuous-learning/agents/session-guardian.sh +150 -0
- package/skills/tier-2/continuous-learning/agents/start-observer.sh +240 -0
- package/skills/tier-2/continuous-learning/config.json +8 -0
- package/skills/tier-2/continuous-learning/hooks/observe.sh +412 -0
- package/skills/tier-2/continuous-learning/scripts/detect-project.sh +228 -0
- package/skills/tier-2/continuous-learning/scripts/instinct-cli.py +1426 -0
- package/skills/tier-2/continuous-learning/scripts/test_parse_instinct.py +984 -0
- package/skills/tier-2/database-migrations/SKILL.md +429 -0
- package/skills/tier-2/deployment-patterns/SKILL.md +427 -0
- package/skills/tier-2/design/SKILL.md +302 -0
- package/skills/tier-2/design/data/cip/deliverables.csv +51 -0
- package/skills/tier-2/design/data/cip/industries.csv +21 -0
- package/skills/tier-2/design/data/cip/mockup-contexts.csv +21 -0
- package/skills/tier-2/design/data/cip/styles.csv +21 -0
- package/skills/tier-2/design/data/icon/styles.csv +16 -0
- package/skills/tier-2/design/data/logo/colors.csv +56 -0
- package/skills/tier-2/design/data/logo/industries.csv +56 -0
- package/skills/tier-2/design/data/logo/styles.csv +56 -0
- package/skills/tier-2/design/references/banner-sizes-and-styles.md +118 -0
- package/skills/tier-2/design/references/cip-deliverable-guide.md +95 -0
- package/skills/tier-2/design/references/cip-design.md +121 -0
- package/skills/tier-2/design/references/cip-prompt-engineering.md +84 -0
- package/skills/tier-2/design/references/cip-style-guide.md +68 -0
- package/skills/tier-2/design/references/design-routing.md +207 -0
- package/skills/tier-2/design/references/icon-design.md +122 -0
- package/skills/tier-2/design/references/logo-color-psychology.md +101 -0
- package/skills/tier-2/design/references/logo-design.md +92 -0
- package/skills/tier-2/design/references/logo-prompt-engineering.md +158 -0
- package/skills/tier-2/design/references/logo-style-guide.md +109 -0
- package/skills/tier-2/design/references/slides-copywriting-formulas.md +84 -0
- package/skills/tier-2/design/references/slides-create.md +4 -0
- package/skills/tier-2/design/references/slides-html-template.md +295 -0
- package/skills/tier-2/design/references/slides-layout-patterns.md +137 -0
- package/skills/tier-2/design/references/slides-strategies.md +94 -0
- package/skills/tier-2/design/references/slides.md +42 -0
- package/skills/tier-2/design/references/social-photos-design.md +329 -0
- package/skills/tier-2/design/scripts/cip/core.py +215 -0
- package/skills/tier-2/design/scripts/cip/generate.py +484 -0
- package/skills/tier-2/design/scripts/cip/render-html.py +424 -0
- package/skills/tier-2/design/scripts/cip/search.py +127 -0
- package/skills/tier-2/design/scripts/icon/generate.py +487 -0
- package/skills/tier-2/design/scripts/logo/core.py +175 -0
- package/skills/tier-2/design/scripts/logo/generate.py +362 -0
- package/skills/tier-2/design/scripts/logo/search.py +114 -0
- package/skills/tier-2/design-system/SKILL.md +244 -0
- package/skills/tier-2/design-system/data/slide-backgrounds.csv +11 -0
- package/skills/tier-2/design-system/data/slide-charts.csv +26 -0
- package/skills/tier-2/design-system/data/slide-color-logic.csv +14 -0
- package/skills/tier-2/design-system/data/slide-copy.csv +26 -0
- package/skills/tier-2/design-system/data/slide-layout-logic.csv +16 -0
- package/skills/tier-2/design-system/data/slide-layouts.csv +26 -0
- package/skills/tier-2/design-system/data/slide-strategies.csv +16 -0
- package/skills/tier-2/design-system/data/slide-typography.csv +15 -0
- package/skills/tier-2/design-system/references/component-specs.md +236 -0
- package/skills/tier-2/design-system/references/component-tokens.md +214 -0
- package/skills/tier-2/design-system/references/primitive-tokens.md +203 -0
- package/skills/tier-2/design-system/references/semantic-tokens.md +215 -0
- package/skills/tier-2/design-system/references/states-and-variants.md +241 -0
- package/skills/tier-2/design-system/references/tailwind-integration.md +251 -0
- package/skills/tier-2/design-system/references/token-architecture.md +224 -0
- package/skills/tier-2/design-system/scripts/embed-tokens.cjs +99 -0
- package/skills/tier-2/design-system/scripts/fetch-background.py +317 -0
- package/skills/tier-2/design-system/scripts/generate-slide.py +753 -0
- package/skills/tier-2/design-system/scripts/generate-tokens.cjs +205 -0
- package/skills/tier-2/design-system/scripts/html-token-validator.py +327 -0
- package/skills/tier-2/design-system/scripts/search-slides.py +218 -0
- package/skills/tier-2/design-system/scripts/slide-token-validator.py +35 -0
- package/skills/tier-2/design-system/scripts/slide_search_core.py +453 -0
- package/skills/tier-2/design-system/scripts/validate-tokens.cjs +251 -0
- package/skills/tier-2/design-system/templates/design-tokens-starter.json +143 -0
- package/skills/tier-2/docker-patterns/SKILL.md +364 -0
- package/skills/tier-2/e2e-testing/SKILL.md +326 -0
- package/skills/tier-2/eval-harness/SKILL.md +270 -0
- package/skills/tier-2/frontend-patterns/SKILL.md +642 -0
- package/skills/tier-2/google-adk-python/SKILL.md +242 -0
- package/skills/tier-2/mcp-management/README.md +219 -0
- package/skills/tier-2/mcp-management/SKILL.md +209 -0
- package/skills/tier-2/mcp-management/assets/tools.json +3146 -0
- package/skills/tier-2/mcp-management/references/configuration.md +114 -0
- package/skills/tier-2/mcp-management/references/gemini-cli-integration.md +215 -0
- package/skills/tier-2/mcp-management/references/mcp-protocol.md +116 -0
- package/skills/tier-2/mcp-management/scripts/.env.example +10 -0
- package/skills/tier-2/mcp-management/scripts/cli.ts +195 -0
- package/skills/tier-2/mcp-management/scripts/dist/analyze-tools.js +70 -0
- package/skills/tier-2/mcp-management/scripts/dist/cli.js +127 -0
- package/skills/tier-2/mcp-management/scripts/dist/mcp-client.js +115 -0
- package/skills/tier-2/mcp-management/scripts/mcp-client.ts +230 -0
- package/skills/tier-2/mcp-management/scripts/package.json +20 -0
- package/skills/tier-2/mcp-management/scripts/tsconfig.json +15 -0
- package/skills/tier-2/mcp-server-patterns/SKILL.md +67 -0
- package/skills/tier-2/media-processing/SKILL.md +358 -0
- package/skills/tier-2/media-processing/references/ffmpeg-encoding.md +358 -0
- package/skills/tier-2/media-processing/references/ffmpeg-filters.md +503 -0
- package/skills/tier-2/media-processing/references/ffmpeg-streaming.md +403 -0
- package/skills/tier-2/media-processing/references/format-compatibility.md +375 -0
- package/skills/tier-2/media-processing/references/imagemagick-batch.md +612 -0
- package/skills/tier-2/media-processing/references/imagemagick-editing.md +623 -0
- package/skills/tier-2/media-processing/scripts/batch_resize.py +342 -0
- package/skills/tier-2/media-processing/scripts/media_convert.py +311 -0
- package/skills/tier-2/media-processing/scripts/requirements.txt +24 -0
- package/skills/tier-2/media-processing/scripts/tests/.coverage +0 -0
- package/skills/tier-2/media-processing/scripts/tests/requirements.txt +2 -0
- package/skills/tier-2/media-processing/scripts/tests/test_batch_resize.py +372 -0
- package/skills/tier-2/media-processing/scripts/tests/test_media_convert.py +259 -0
- package/skills/tier-2/media-processing/scripts/tests/test_video_optimize.py +397 -0
- package/skills/tier-2/media-processing/scripts/video_optimize.py +414 -0
- package/skills/tier-2/mobile-development/SKILL.md +212 -0
- package/skills/tier-2/mobile-development/references/mobile-android.md +604 -0
- package/skills/tier-2/mobile-development/references/mobile-best-practices.md +545 -0
- package/skills/tier-2/mobile-development/references/mobile-debugging.md +1089 -0
- package/skills/tier-2/mobile-development/references/mobile-frameworks.md +465 -0
- package/skills/tier-2/mobile-development/references/mobile-ios.md +496 -0
- package/skills/tier-2/mobile-development/references/mobile-mindset.md +544 -0
- package/skills/tier-2/payment-integration/README.md +185 -0
- package/skills/tier-2/payment-integration/SKILL.md +118 -0
- package/skills/tier-2/payment-integration/references/polar/benefits.md +396 -0
- package/skills/tier-2/payment-integration/references/polar/best-practices.md +482 -0
- package/skills/tier-2/payment-integration/references/polar/checkouts.md +266 -0
- package/skills/tier-2/payment-integration/references/polar/overview.md +184 -0
- package/skills/tier-2/payment-integration/references/polar/products.md +244 -0
- package/skills/tier-2/payment-integration/references/polar/sdk.md +436 -0
- package/skills/tier-2/payment-integration/references/polar/subscriptions.md +340 -0
- package/skills/tier-2/payment-integration/references/polar/webhooks.md +405 -0
- package/skills/tier-2/payment-integration/references/sepay/api.md +140 -0
- package/skills/tier-2/payment-integration/references/sepay/best-practices.md +337 -0
- package/skills/tier-2/payment-integration/references/sepay/overview.md +138 -0
- package/skills/tier-2/payment-integration/references/sepay/qr-codes.md +228 -0
- package/skills/tier-2/payment-integration/references/sepay/sdk.md +213 -0
- package/skills/tier-2/payment-integration/references/sepay/webhooks.md +208 -0
- package/skills/tier-2/payment-integration/scripts/.env.example +20 -0
- package/skills/tier-2/payment-integration/scripts/checkout-helper.js +244 -0
- package/skills/tier-2/payment-integration/scripts/package.json +17 -0
- package/skills/tier-2/payment-integration/scripts/polar-webhook-verify.js +202 -0
- package/skills/tier-2/payment-integration/scripts/sepay-webhook-verify.js +193 -0
- package/skills/tier-2/payment-integration/scripts/test-scripts.js +237 -0
- package/skills/tier-2/planning/SKILL.md +88 -0
- package/skills/tier-2/planning/references/codebase-understanding.md +62 -0
- package/skills/tier-2/planning/references/output-standards.md +87 -0
- package/skills/tier-2/planning/references/plan-organization.md +100 -0
- package/skills/tier-2/planning/references/research-phase.md +49 -0
- package/skills/tier-2/planning/references/solution-design.md +63 -0
- package/skills/tier-2/postgres-patterns/SKILL.md +147 -0
- package/skills/tier-2/problem-solving/SKILL.md +96 -0
- package/skills/tier-2/problem-solving/references/attribution.md +69 -0
- package/skills/tier-2/problem-solving/references/collision-zone-thinking.md +79 -0
- package/skills/tier-2/problem-solving/references/inversion-exercise.md +91 -0
- package/skills/tier-2/problem-solving/references/meta-pattern-recognition.md +87 -0
- package/skills/tier-2/problem-solving/references/scale-game.md +95 -0
- package/skills/tier-2/problem-solving/references/simplification-cascades.md +80 -0
- package/skills/tier-2/problem-solving/references/when-stuck.md +72 -0
- package/skills/tier-2/strategic-compact/SKILL.md +131 -0
- package/skills/tier-2/strategic-compact/suggest-compact.sh +54 -0
- package/skills/tier-2/verification-loop/SKILL.md +126 -0
- package/skills/tier-3/agentic-engineering/SKILL.md +63 -0
- package/skills/tier-3/banner-design/SKILL.md +192 -0
- package/skills/tier-3/banner-design/references/banner-sizes-and-styles.md +118 -0
- package/skills/tier-3/cost-aware-llm-pipeline/SKILL.md +183 -0
- package/skills/tier-3/django-patterns/SKILL.md +734 -0
- package/skills/tier-3/golang-patterns/SKILL.md +674 -0
- package/skills/tier-3/kotlin-patterns/SKILL.md +711 -0
- package/skills/tier-3/laravel-patterns/SKILL.md +415 -0
- package/skills/tier-3/prompt-optimizer/SKILL.md +397 -0
- package/skills/tier-3/python-patterns/SKILL.md +750 -0
- package/skills/tier-3/pytorch-patterns/SKILL.md +396 -0
- package/skills/tier-3/rust-patterns/SKILL.md +499 -0
- package/skills/tier-3/shopify/README.md +66 -0
- package/skills/tier-3/shopify/SKILL.md +319 -0
- package/skills/tier-3/shopify/references/app-development.md +470 -0
- package/skills/tier-3/shopify/references/extensions.md +493 -0
- package/skills/tier-3/shopify/references/themes.md +498 -0
- package/skills/tier-3/shopify/scripts/.coverage +0 -0
- package/skills/tier-3/shopify/scripts/requirements.txt +19 -0
- package/skills/tier-3/shopify/scripts/shopify_init.py +423 -0
- package/skills/tier-3/shopify/scripts/tests/.coverage +0 -0
- package/skills/tier-3/shopify/scripts/tests/test_shopify_init.py +385 -0
- package/skills/tier-3/slides/SKILL.md +42 -0
- package/skills/tier-3/slides/references/copywriting-formulas.md +84 -0
- package/skills/tier-3/slides/references/create.md +4 -0
- package/skills/tier-3/slides/references/html-template.md +295 -0
- package/skills/tier-3/slides/references/layout-patterns.md +137 -0
- package/skills/tier-3/slides/references/slide-strategies.md +94 -0
- package/skills/tier-3/springboot-patterns/SKILL.md +314 -0
- package/skills/tier-3/swiftui-patterns/SKILL.md +259 -0
- package/skills/tier-3/threejs/SKILL.md +89 -0
- package/skills/tier-3/threejs/references/01-getting-started.md +177 -0
- package/skills/tier-3/threejs/references/02-loaders.md +169 -0
- package/skills/tier-3/threejs/references/03-textures.md +170 -0
- package/skills/tier-3/threejs/references/04-cameras.md +195 -0
- package/skills/tier-3/threejs/references/05-lights.md +183 -0
- package/skills/tier-3/threejs/references/06-animations.md +214 -0
- package/skills/tier-3/threejs/references/07-math.md +260 -0
- package/skills/tier-3/threejs/references/08-interaction.md +267 -0
- package/skills/tier-3/threejs/references/09-postprocessing.md +240 -0
- package/skills/tier-3/threejs/references/10-controls.md +259 -0
- package/skills/tier-3/threejs/references/11-materials-advanced.md +270 -0
- package/skills/tier-3/threejs/references/12-performance.md +269 -0
- package/skills/tier-3/threejs/references/13-node-materials.md +298 -0
- package/skills/tier-3/threejs/references/14-physics-vr.md +304 -0
- package/skills/tier-3/threejs/references/15-specialized-loaders.md +333 -0
- package/skills/tier-3/threejs/references/16-webgpu.md +302 -0
- package/skills/tier-3/vercel-deploy/SKILL.md +112 -0
- package/skills/tier-3/vercel-deploy/scripts/deploy.sh +249 -0
- package/workflows/development-rules.md +49 -0
- package/workflows/orchestration-protocol.md +16 -0
- package/workflows/primary-workflow.md +52 -0
package/scripts/sl.js
ADDED
|
@@ -0,0 +1,677 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Claude Skill Lord CLI
|
|
5
|
+
* Usage: csl <command> [options]
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
const { execSync } = require('child_process');
|
|
9
|
+
const fs = require('fs');
|
|
10
|
+
const path = require('path');
|
|
11
|
+
const readline = require('readline');
|
|
12
|
+
|
|
13
|
+
const rootDir = path.resolve(__dirname, '..');
|
|
14
|
+
const args = process.argv.slice(2);
|
|
15
|
+
const command = args[0];
|
|
16
|
+
const subArgs = args.slice(1);
|
|
17
|
+
const PKG_NAME = 'claude-skill-lord';
|
|
18
|
+
|
|
19
|
+
// --- Helpers ---
|
|
20
|
+
|
|
21
|
+
const { collectFiles, collectModuleFiles } = require('./lib/profile-utils');
|
|
22
|
+
|
|
23
|
+
function ask(question) {
|
|
24
|
+
const rl = readline.createInterface({ input: process.stdin, output: process.stdout });
|
|
25
|
+
return new Promise(resolve => rl.question(question, answer => { rl.close(); resolve(answer.trim()); }));
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
function getInstalledVersion() {
|
|
29
|
+
const pkg = require(path.join(rootDir, 'package.json'));
|
|
30
|
+
return pkg.version;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
function getLatestVersion() {
|
|
34
|
+
try {
|
|
35
|
+
return execSync(`npm view ${PKG_NAME} version`, { stdio: 'pipe' }).toString().trim();
|
|
36
|
+
} catch {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// --- Commands ---
|
|
42
|
+
|
|
43
|
+
const commands = {
|
|
44
|
+
version: () => {
|
|
45
|
+
console.log(`Claude Skill Lord v${getInstalledVersion()}`);
|
|
46
|
+
},
|
|
47
|
+
|
|
48
|
+
init: async () => {
|
|
49
|
+
let profile = subArgs.find(a => !a.startsWith('-')) || null;
|
|
50
|
+
const hasTarget = subArgs.includes('--target');
|
|
51
|
+
const dryRun = subArgs.includes('--dry-run');
|
|
52
|
+
const fresh = subArgs.includes('--fresh');
|
|
53
|
+
|
|
54
|
+
// Interactive mode if no profile specified and not in CI
|
|
55
|
+
if (!profile && !process.env.CI) {
|
|
56
|
+
console.log(`\n Claude Skill Lord — Project Setup\n`);
|
|
57
|
+
console.log(' Profiles:');
|
|
58
|
+
console.log(' 1) core — 16 skills, 7 agents (lightweight)');
|
|
59
|
+
console.log(' 2) developer — 44 skills, 22 agents (recommended)');
|
|
60
|
+
console.log(' 3) full — 61 skills, 22 agents (everything)\n');
|
|
61
|
+
|
|
62
|
+
const choice = await ask(' Choose profile [1/2/3] (default: 2): ');
|
|
63
|
+
profile = { '1': 'core', '2': 'developer', '3': 'full' }[choice] || 'developer';
|
|
64
|
+
|
|
65
|
+
const confirmTarget = await ask(` Target directory [.]: `);
|
|
66
|
+
const target = confirmTarget || '.';
|
|
67
|
+
|
|
68
|
+
const confirm = await ask(`\n Install "${profile}" profile to "${path.resolve(target)}"? [Y/n]: `);
|
|
69
|
+
if (confirm.toLowerCase() === 'n') {
|
|
70
|
+
console.log(' Cancelled.\n');
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
process.argv = ['node', 'install.js', profile, '--target', target];
|
|
75
|
+
if (dryRun) process.argv.push('--dry-run');
|
|
76
|
+
if (fresh) process.argv.push('--fresh');
|
|
77
|
+
} else {
|
|
78
|
+
profile = profile || 'developer';
|
|
79
|
+
const initArgs = hasTarget ? subArgs : [...subArgs, '--target', '.'];
|
|
80
|
+
process.argv = ['node', 'install.js', ...initArgs];
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
// Handle --fresh: remove existing .claude/ before install
|
|
84
|
+
if (fresh) {
|
|
85
|
+
const targetIdx = process.argv.indexOf('--target');
|
|
86
|
+
const targetDir = targetIdx >= 0 ? process.argv[targetIdx + 1] : '.';
|
|
87
|
+
const claudeDir = path.join(path.resolve(targetDir), '.claude');
|
|
88
|
+
if (fs.existsSync(claudeDir)) {
|
|
89
|
+
fs.rmSync(claudeDir, { recursive: true, force: true });
|
|
90
|
+
console.log(` Removed existing ${claudeDir}`);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
// B2 + B7: Check existing installation for upgrade/downgrade/same-profile warnings
|
|
95
|
+
if (!fresh && !dryRun) {
|
|
96
|
+
const { detectInstalledProfile, readPluginJson } = require('./lib/profile-utils');
|
|
97
|
+
const targetIdx = process.argv.indexOf('--target');
|
|
98
|
+
const targetPath = targetIdx >= 0 ? path.resolve(process.argv[targetIdx + 1]) : path.resolve('.');
|
|
99
|
+
const existingClaudeDir = path.join(targetPath, '.claude');
|
|
100
|
+
const existingPlugin = readPluginJson(existingClaudeDir);
|
|
101
|
+
|
|
102
|
+
if (existingPlugin) {
|
|
103
|
+
const existingProfile = existingPlugin.profile || detectInstalledProfile(existingClaudeDir);
|
|
104
|
+
|
|
105
|
+
if (existingProfile === profile) {
|
|
106
|
+
// B7: Same profile re-init
|
|
107
|
+
console.log(`\n Already installed: ${profile} profile (v${existingPlugin.version})`);
|
|
108
|
+
console.log(` Use "csl init ${profile} --fresh" to reinstall from scratch.\n`);
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
const profileOrder = { core: 1, developer: 2, full: 3 };
|
|
113
|
+
const isDowngrade = profileOrder[profile] < profileOrder[existingProfile];
|
|
114
|
+
|
|
115
|
+
if (isDowngrade && !process.env.CI) {
|
|
116
|
+
// B2: Downgrade warning
|
|
117
|
+
const agentCount = existingPlugin.agents ? existingPlugin.agents.length : '?';
|
|
118
|
+
console.log(`\n WARNING: Downgrade detected`);
|
|
119
|
+
console.log(` Current: ${existingProfile} (${agentCount} agents)`);
|
|
120
|
+
console.log(` Target: ${profile}`);
|
|
121
|
+
console.log(` Extra agents/skills will become unreferenced.\n`);
|
|
122
|
+
|
|
123
|
+
const confirm = await ask(` Continue with downgrade? [y/N]: `);
|
|
124
|
+
if (confirm.toLowerCase() !== 'y') {
|
|
125
|
+
console.log(' Cancelled.\n');
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
} else if (!isDowngrade) {
|
|
129
|
+
// Upgrade info
|
|
130
|
+
console.log(`\n Upgrading: ${existingProfile} -> ${profile}`);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
require('./install.js');
|
|
136
|
+
},
|
|
137
|
+
|
|
138
|
+
update: () => {
|
|
139
|
+
console.log(`\n Claude Skill Lord — Update\n`);
|
|
140
|
+
const current = getInstalledVersion();
|
|
141
|
+
console.log(` Current version: ${current}`);
|
|
142
|
+
|
|
143
|
+
const latest = getLatestVersion();
|
|
144
|
+
if (!latest) {
|
|
145
|
+
console.log(' Could not check latest version. Are you online?\n');
|
|
146
|
+
process.exit(1);
|
|
147
|
+
}
|
|
148
|
+
console.log(` Latest version: ${latest}`);
|
|
149
|
+
|
|
150
|
+
if (current === latest) {
|
|
151
|
+
console.log('\n Already up to date!\n');
|
|
152
|
+
return;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
console.log(`\n Updating ${current} → ${latest}...`);
|
|
156
|
+
try {
|
|
157
|
+
execSync(`npm i -g ${PKG_NAME}@latest`, { stdio: 'inherit' });
|
|
158
|
+
console.log(`\n Updated to ${latest}!`);
|
|
159
|
+
console.log(' Run "csl migrate" in your projects to update installed files.\n');
|
|
160
|
+
} catch (e) {
|
|
161
|
+
console.error(`\n Update failed: ${e.message}\n`);
|
|
162
|
+
process.exit(1);
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
|
|
166
|
+
migrate: () => {
|
|
167
|
+
console.log(`\n Claude Skill Lord — Migrate\n`);
|
|
168
|
+
|
|
169
|
+
const targetDir = path.resolve(subArgs.includes('--target')
|
|
170
|
+
? subArgs[subArgs.indexOf('--target') + 1]
|
|
171
|
+
: '.');
|
|
172
|
+
const claudeDir = path.join(targetDir, '.claude');
|
|
173
|
+
const dryRun = subArgs.includes('--dry-run');
|
|
174
|
+
|
|
175
|
+
if (!fs.existsSync(claudeDir)) {
|
|
176
|
+
console.log(` No .claude/ directory found in ${targetDir}`);
|
|
177
|
+
console.log(' Run "csl init" first.\n');
|
|
178
|
+
process.exit(1);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
// Read installed plugin.json to determine profile
|
|
182
|
+
const pluginPath = path.join(claudeDir, 'plugin.json');
|
|
183
|
+
if (!fs.existsSync(pluginPath)) {
|
|
184
|
+
console.log(' No plugin.json found. Run "csl init" first.\n');
|
|
185
|
+
process.exit(1);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
const pluginJson = JSON.parse(fs.readFileSync(pluginPath, 'utf8'));
|
|
189
|
+
const currentVersion = pluginJson.version || 'unknown';
|
|
190
|
+
const newVersion = getInstalledVersion();
|
|
191
|
+
|
|
192
|
+
console.log(` Project: ${targetDir}`);
|
|
193
|
+
console.log(` Installed version: ${currentVersion}`);
|
|
194
|
+
console.log(` New version: ${newVersion}`);
|
|
195
|
+
|
|
196
|
+
// Collect files from source
|
|
197
|
+
const profiles = JSON.parse(fs.readFileSync(path.join(rootDir, 'manifests', 'install-profiles.json'), 'utf8'));
|
|
198
|
+
const modules = JSON.parse(fs.readFileSync(path.join(rootDir, 'manifests', 'install-modules.json'), 'utf8'));
|
|
199
|
+
|
|
200
|
+
// Detect which profile is installed based on skill directories
|
|
201
|
+
const installedSkillDirs = fs.existsSync(path.join(claudeDir, 'skills'))
|
|
202
|
+
? fs.readdirSync(path.join(claudeDir, 'skills'), { withFileTypes: true })
|
|
203
|
+
.filter(e => e.isDirectory()).map(e => e.name)
|
|
204
|
+
: [];
|
|
205
|
+
const hasTier3 = installedSkillDirs.includes('tier-3');
|
|
206
|
+
const hasTier2 = installedSkillDirs.includes('tier-2');
|
|
207
|
+
const detectedProfile = hasTier3 ? 'full' : hasTier2 ? 'developer' : 'core';
|
|
208
|
+
|
|
209
|
+
console.log(` Detected profile: ${detectedProfile}`);
|
|
210
|
+
|
|
211
|
+
const selectedProfile = profiles.profiles[detectedProfile];
|
|
212
|
+
const selectedModules = modules.modules.filter(m => selectedProfile.modules.includes(m.id));
|
|
213
|
+
|
|
214
|
+
// Collect all source files
|
|
215
|
+
const sourceFiles = collectModuleFiles(selectedModules);
|
|
216
|
+
|
|
217
|
+
// Compare and find files to update
|
|
218
|
+
let added = 0;
|
|
219
|
+
let updated = 0;
|
|
220
|
+
let unchanged = 0;
|
|
221
|
+
|
|
222
|
+
for (const f of sourceFiles) {
|
|
223
|
+
const destPath = path.join(claudeDir, f.rel);
|
|
224
|
+
if (!fs.existsSync(destPath)) {
|
|
225
|
+
if (dryRun) console.log(` + NEW: ${f.rel}`);
|
|
226
|
+
else {
|
|
227
|
+
const destDir = path.dirname(destPath);
|
|
228
|
+
if (!fs.existsSync(destDir)) fs.mkdirSync(destDir, { recursive: true });
|
|
229
|
+
fs.copyFileSync(f.src, destPath);
|
|
230
|
+
}
|
|
231
|
+
added++;
|
|
232
|
+
} else {
|
|
233
|
+
const srcContent = fs.readFileSync(f.src);
|
|
234
|
+
const destContent = fs.readFileSync(destPath);
|
|
235
|
+
if (!srcContent.equals(destContent)) {
|
|
236
|
+
if (dryRun) console.log(` ~ UPDATED: ${f.rel}`);
|
|
237
|
+
else fs.copyFileSync(f.src, destPath);
|
|
238
|
+
updated++;
|
|
239
|
+
} else {
|
|
240
|
+
unchanged++;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
// Rebuild plugin.json with correct agents/skills for detected profile
|
|
246
|
+
const { buildPluginJson } = require('./lib/profile-utils');
|
|
247
|
+
if (!dryRun) {
|
|
248
|
+
const rebuilt = buildPluginJson(detectedProfile, sourceFiles, newVersion);
|
|
249
|
+
fs.writeFileSync(pluginPath, JSON.stringify(rebuilt, null, 2));
|
|
250
|
+
console.log(` Rebuilt plugin.json (${rebuilt.agents.length} agents, ${rebuilt.skills.length} skill dirs)`);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
console.log(`\n ${dryRun ? '[DRY RUN] ' : ''}Results:`);
|
|
254
|
+
console.log(` New files: ${added}`);
|
|
255
|
+
console.log(` Updated: ${updated}`);
|
|
256
|
+
console.log(` Unchanged: ${unchanged}`);
|
|
257
|
+
console.log(` Total: ${sourceFiles.length}\n`);
|
|
258
|
+
},
|
|
259
|
+
|
|
260
|
+
uninstall: async () => {
|
|
261
|
+
const targetDir = path.resolve(subArgs.includes('--target')
|
|
262
|
+
? subArgs[subArgs.indexOf('--target') + 1]
|
|
263
|
+
: '.');
|
|
264
|
+
const claudeDir = path.join(targetDir, '.claude');
|
|
265
|
+
|
|
266
|
+
if (!fs.existsSync(claudeDir)) {
|
|
267
|
+
console.log(`\n No .claude/ directory found in ${targetDir}\n`);
|
|
268
|
+
return;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
const force = subArgs.includes('--force') || subArgs.includes('-f');
|
|
272
|
+
if (!force && !process.env.CI) {
|
|
273
|
+
const confirm = await ask(`\n Remove ${claudeDir}? This cannot be undone. [y/N]: `);
|
|
274
|
+
if (confirm.toLowerCase() !== 'y') {
|
|
275
|
+
console.log(' Cancelled.\n');
|
|
276
|
+
return;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
fs.rmSync(claudeDir, { recursive: true, force: true });
|
|
281
|
+
console.log(`\n Removed ${claudeDir}`);
|
|
282
|
+
console.log(' Claude Skill Lord has been uninstalled from this project.\n');
|
|
283
|
+
},
|
|
284
|
+
|
|
285
|
+
upgrade: async () => {
|
|
286
|
+
const { detectInstalledProfile, buildPluginJson, loadManifests } = require('./lib/profile-utils');
|
|
287
|
+
const targetProfile = subArgs.find(a => !a.startsWith('-')) || null;
|
|
288
|
+
const targetDir = path.resolve(subArgs.includes('--target')
|
|
289
|
+
? subArgs[subArgs.indexOf('--target') + 1] : '.');
|
|
290
|
+
const claudeDir = path.join(targetDir, '.claude');
|
|
291
|
+
const dryRun = subArgs.includes('--dry-run');
|
|
292
|
+
|
|
293
|
+
if (!fs.existsSync(claudeDir)) {
|
|
294
|
+
console.log(`\n No .claude/ found. Run "csl init" first.\n`);
|
|
295
|
+
process.exit(1);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
const currentProfile = detectInstalledProfile(claudeDir);
|
|
299
|
+
if (!currentProfile) {
|
|
300
|
+
console.log(`\n Could not detect current profile. Run "csl init" first.\n`);
|
|
301
|
+
return;
|
|
302
|
+
}
|
|
303
|
+
const newProfile = targetProfile || currentProfile;
|
|
304
|
+
const profileOrder = { core: 1, developer: 2, full: 3 };
|
|
305
|
+
|
|
306
|
+
if (!profileOrder[newProfile]) {
|
|
307
|
+
console.log(`\n Unknown profile "${newProfile}". Available: core, developer, full\n`);
|
|
308
|
+
return;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
if (profileOrder[newProfile] < profileOrder[currentProfile]) {
|
|
312
|
+
console.log(`\n Cannot downgrade with upgrade. Use "csl init ${newProfile} --fresh" instead.\n`);
|
|
313
|
+
return;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
console.log(`\n Claude Skill Lord — Upgrade\n`);
|
|
317
|
+
console.log(` Current: ${currentProfile}`);
|
|
318
|
+
console.log(` Target: ${newProfile}`);
|
|
319
|
+
|
|
320
|
+
const { profiles, modules } = loadManifests();
|
|
321
|
+
const selectedProfile = profiles.profiles[newProfile];
|
|
322
|
+
const selectedModules = modules.modules.filter(m => selectedProfile.modules.includes(m.id));
|
|
323
|
+
|
|
324
|
+
const filesToCopy = collectModuleFiles(selectedModules);
|
|
325
|
+
|
|
326
|
+
let added = 0;
|
|
327
|
+
for (const f of filesToCopy) {
|
|
328
|
+
const destPath = path.join(claudeDir, f.rel);
|
|
329
|
+
if (!fs.existsSync(destPath)) {
|
|
330
|
+
if (dryRun) { console.log(` + ${f.rel}`); }
|
|
331
|
+
else {
|
|
332
|
+
const destDir = path.dirname(destPath);
|
|
333
|
+
if (!fs.existsSync(destDir)) fs.mkdirSync(destDir, { recursive: true });
|
|
334
|
+
fs.copyFileSync(f.src, destPath);
|
|
335
|
+
}
|
|
336
|
+
added++;
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
if (!dryRun) {
|
|
341
|
+
const pkg = require(path.join(rootDir, 'package.json'));
|
|
342
|
+
const pluginJson = buildPluginJson(newProfile, filesToCopy, pkg.version);
|
|
343
|
+
fs.writeFileSync(path.join(claudeDir, 'plugin.json'), JSON.stringify(pluginJson, null, 2));
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
console.log(`\n ${dryRun ? '[DRY RUN] ' : ''}Added ${added} new files`);
|
|
347
|
+
console.log(` Profile: ${currentProfile} -> ${newProfile}\n`);
|
|
348
|
+
},
|
|
349
|
+
|
|
350
|
+
diff: () => {
|
|
351
|
+
const { detectInstalledProfile, loadManifests } = require('./lib/profile-utils');
|
|
352
|
+
const targetDir = path.resolve(subArgs.includes('--target')
|
|
353
|
+
? subArgs[subArgs.indexOf('--target') + 1] : '.');
|
|
354
|
+
const claudeDir = path.join(targetDir, '.claude');
|
|
355
|
+
|
|
356
|
+
if (!fs.existsSync(claudeDir)) {
|
|
357
|
+
console.log(`\n No .claude/ found in ${targetDir}\n`);
|
|
358
|
+
process.exit(1);
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
const profile = detectInstalledProfile(claudeDir);
|
|
362
|
+
console.log(`\n Claude Skill Lord — Diff (${profile} profile)\n`);
|
|
363
|
+
|
|
364
|
+
const { profiles, modules } = loadManifests();
|
|
365
|
+
const selectedProfile = profiles.profiles[profile];
|
|
366
|
+
const selectedModules = modules.modules.filter(m => selectedProfile.modules.includes(m.id));
|
|
367
|
+
|
|
368
|
+
const sourceFiles = collectModuleFiles(selectedModules);
|
|
369
|
+
|
|
370
|
+
let modified = 0, unchanged = 0, missing = 0;
|
|
371
|
+
for (const f of sourceFiles) {
|
|
372
|
+
const destPath = path.join(claudeDir, f.rel);
|
|
373
|
+
if (!fs.existsSync(destPath)) {
|
|
374
|
+
console.log(` - MISSING: ${f.rel}`);
|
|
375
|
+
missing++;
|
|
376
|
+
} else {
|
|
377
|
+
const srcBuf = fs.readFileSync(f.src);
|
|
378
|
+
const destBuf = fs.readFileSync(destPath);
|
|
379
|
+
if (!srcBuf.equals(destBuf)) {
|
|
380
|
+
console.log(` ~ MODIFIED: ${f.rel}`);
|
|
381
|
+
modified++;
|
|
382
|
+
} else {
|
|
383
|
+
unchanged++;
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
const sourceRels = new Set(sourceFiles.map(f => f.rel));
|
|
389
|
+
const projectFiles = [];
|
|
390
|
+
const knownDirs = ['agents', 'skills', 'commands', 'workflows', 'hooks'];
|
|
391
|
+
for (const dir of knownDirs) {
|
|
392
|
+
const dirPath = path.join(claudeDir, dir);
|
|
393
|
+
if (fs.existsSync(dirPath)) collectFiles(dirPath, dir, projectFiles);
|
|
394
|
+
}
|
|
395
|
+
const extra = projectFiles.filter(f => !sourceRels.has(f.rel));
|
|
396
|
+
|
|
397
|
+
if (extra.length > 0) {
|
|
398
|
+
extra.forEach(f => console.log(` + EXTRA: ${f.rel}`));
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
console.log(`\n Modified: ${modified} | Unchanged: ${unchanged} | Missing: ${missing} | Extra: ${extra.length}\n`);
|
|
402
|
+
},
|
|
403
|
+
|
|
404
|
+
list: () => {
|
|
405
|
+
const { readPluginJson, detectInstalledProfile } = require('./lib/profile-utils');
|
|
406
|
+
const manifest = JSON.parse(
|
|
407
|
+
fs.readFileSync(path.join(rootDir, 'skills', 'manifest.json'), 'utf8')
|
|
408
|
+
);
|
|
409
|
+
const agents = fs.readdirSync(path.join(rootDir, 'agents')).filter(f => f.endsWith('.md'));
|
|
410
|
+
|
|
411
|
+
// Detect installed state from project
|
|
412
|
+
const projectClaudeDir = path.join(process.cwd(), '.claude');
|
|
413
|
+
const projectPlugin = readPluginJson(projectClaudeDir);
|
|
414
|
+
const installedAgents = projectPlugin
|
|
415
|
+
? new Set((projectPlugin.agents || []).map(a => a.replace('./', '').replace('.md', '')))
|
|
416
|
+
: null;
|
|
417
|
+
const installedSkillDirs = projectPlugin
|
|
418
|
+
? new Set((projectPlugin.skills || []).map(s => s.replace('./', '').replace(/\/$/, '')))
|
|
419
|
+
: null;
|
|
420
|
+
|
|
421
|
+
const tag = (name, set) => set ? (set.has(name) ? ' [installed]' : ' [available]') : '';
|
|
422
|
+
|
|
423
|
+
console.log(`\n Claude Skill Lord Components\n`);
|
|
424
|
+
|
|
425
|
+
if (projectPlugin) {
|
|
426
|
+
const profile = projectPlugin.profile || detectInstalledProfile(projectClaudeDir) || '?';
|
|
427
|
+
console.log(` Project profile: ${profile} (v${projectPlugin.version || '?'})\n`);
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
console.log(` Agents: ${agents.length}`);
|
|
431
|
+
agents.forEach(a => {
|
|
432
|
+
const name = a.replace('.md', '');
|
|
433
|
+
console.log(` - ${name}${tag(`agents/${name}`, installedAgents)}`);
|
|
434
|
+
});
|
|
435
|
+
|
|
436
|
+
console.log(`\n Skills: ${manifest.skills.length}`);
|
|
437
|
+
[1, 2, 3].forEach(tier => {
|
|
438
|
+
const skills = manifest.skills.filter(s => s.tier === tier);
|
|
439
|
+
const tierDir = `skills/tier-${tier}`;
|
|
440
|
+
const tierInstalled = installedSkillDirs ? installedSkillDirs.has(tierDir) : null;
|
|
441
|
+
const tierTag = tierInstalled === null ? '' : tierInstalled ? ' [installed]' : ' [available]';
|
|
442
|
+
console.log(`\n Tier ${tier}${tierTag} (${skills.length}):`);
|
|
443
|
+
skills.forEach(s => console.log(` - ${s.name}: ${s.description}`));
|
|
444
|
+
});
|
|
445
|
+
|
|
446
|
+
const cmds = [];
|
|
447
|
+
const collectCmds = (dir) => {
|
|
448
|
+
if (!fs.existsSync(dir)) return;
|
|
449
|
+
fs.readdirSync(dir, { withFileTypes: true }).forEach(e => {
|
|
450
|
+
if (e.isFile() && e.name.endsWith('.md')) cmds.push(e.name.replace('.md', ''));
|
|
451
|
+
if (e.isDirectory()) collectCmds(path.join(dir, e.name));
|
|
452
|
+
});
|
|
453
|
+
};
|
|
454
|
+
collectCmds(path.join(rootDir, 'commands'));
|
|
455
|
+
console.log(`\n Commands: ${cmds.length}\n`);
|
|
456
|
+
},
|
|
457
|
+
|
|
458
|
+
doctor: () => {
|
|
459
|
+
console.log(`\n Claude Skill Lord Doctor\n`);
|
|
460
|
+
let ok = 0;
|
|
461
|
+
let fail = 0;
|
|
462
|
+
let warn = 0;
|
|
463
|
+
|
|
464
|
+
const check = (name, fn) => {
|
|
465
|
+
try {
|
|
466
|
+
fn();
|
|
467
|
+
console.log(` ✓ ${name}`);
|
|
468
|
+
ok++;
|
|
469
|
+
} catch (e) {
|
|
470
|
+
console.log(` ✗ ${name}: ${e.message}`);
|
|
471
|
+
fail++;
|
|
472
|
+
}
|
|
473
|
+
};
|
|
474
|
+
|
|
475
|
+
const info = (name, fn) => {
|
|
476
|
+
try {
|
|
477
|
+
fn();
|
|
478
|
+
console.log(` ✓ ${name}`);
|
|
479
|
+
ok++;
|
|
480
|
+
} catch (e) {
|
|
481
|
+
console.log(` ⚠ ${name}: ${e.message}`);
|
|
482
|
+
warn++;
|
|
483
|
+
}
|
|
484
|
+
};
|
|
485
|
+
|
|
486
|
+
// --- System checks ---
|
|
487
|
+
console.log(' System:');
|
|
488
|
+
|
|
489
|
+
check('Node.js >= 18', () => {
|
|
490
|
+
const v = parseInt(process.versions.node.split('.')[0]);
|
|
491
|
+
if (v < 18) throw new Error(`Node ${process.versions.node}, need >= 18`);
|
|
492
|
+
});
|
|
493
|
+
|
|
494
|
+
info('Python 3 available', () => {
|
|
495
|
+
try {
|
|
496
|
+
execSync('python3 --version', { stdio: 'pipe' });
|
|
497
|
+
} catch {
|
|
498
|
+
throw new Error('not found (needed for ui-ux-pro-max skill)');
|
|
499
|
+
}
|
|
500
|
+
});
|
|
501
|
+
|
|
502
|
+
// --- Package checks ---
|
|
503
|
+
console.log('\n Package:');
|
|
504
|
+
|
|
505
|
+
check('plugin.json exists', () => {
|
|
506
|
+
if (!fs.existsSync(path.join(rootDir, '.claude-plugin', 'plugin.json')))
|
|
507
|
+
throw new Error('not found');
|
|
508
|
+
});
|
|
509
|
+
|
|
510
|
+
check('plugin.json valid', () => {
|
|
511
|
+
const p = JSON.parse(fs.readFileSync(path.join(rootDir, '.claude-plugin', 'plugin.json'), 'utf8'));
|
|
512
|
+
if (!p.version) throw new Error('missing version');
|
|
513
|
+
if (!Array.isArray(p.agents)) throw new Error('agents not array');
|
|
514
|
+
});
|
|
515
|
+
|
|
516
|
+
check('All agent files exist', () => {
|
|
517
|
+
const p = JSON.parse(fs.readFileSync(path.join(rootDir, '.claude-plugin', 'plugin.json'), 'utf8'));
|
|
518
|
+
const missing = p.agents.filter(a => !fs.existsSync(path.join(rootDir, a.replace('./', ''))));
|
|
519
|
+
if (missing.length) throw new Error(`missing: ${missing.join(', ')}`);
|
|
520
|
+
});
|
|
521
|
+
|
|
522
|
+
check('manifest.json valid', () => {
|
|
523
|
+
const m = JSON.parse(fs.readFileSync(path.join(rootDir, 'skills', 'manifest.json'), 'utf8'));
|
|
524
|
+
if (!m.skills || m.skills.length === 0) throw new Error('no skills');
|
|
525
|
+
});
|
|
526
|
+
|
|
527
|
+
check('hooks.json valid', () => {
|
|
528
|
+
JSON.parse(fs.readFileSync(path.join(rootDir, 'hooks', 'hooks.json'), 'utf8'));
|
|
529
|
+
});
|
|
530
|
+
|
|
531
|
+
// --- Project checks ---
|
|
532
|
+
const projectClaudeDir = path.join(process.cwd(), '.claude');
|
|
533
|
+
console.log('\n Project:');
|
|
534
|
+
|
|
535
|
+
info('Project .claude/ exists', () => {
|
|
536
|
+
if (!fs.existsSync(projectClaudeDir))
|
|
537
|
+
throw new Error(`not found in ${process.cwd()}. Run: csl init`);
|
|
538
|
+
});
|
|
539
|
+
|
|
540
|
+
if (fs.existsSync(projectClaudeDir)) {
|
|
541
|
+
info('Project plugin.json valid', () => {
|
|
542
|
+
const pPath = path.join(projectClaudeDir, 'plugin.json');
|
|
543
|
+
if (!fs.existsSync(pPath)) throw new Error('not found');
|
|
544
|
+
const p = JSON.parse(fs.readFileSync(pPath, 'utf8'));
|
|
545
|
+
const agentCount = p.agents ? p.agents.length : 0;
|
|
546
|
+
const skillDirs = p.skills ? p.skills.length : 0;
|
|
547
|
+
console.log(` (${agentCount} agents, ${skillDirs} skill dirs, v${p.version || '?'})`);
|
|
548
|
+
});
|
|
549
|
+
|
|
550
|
+
info('Project agents intact', () => {
|
|
551
|
+
const pPath = path.join(projectClaudeDir, 'plugin.json');
|
|
552
|
+
if (!fs.existsSync(pPath)) throw new Error('no plugin.json');
|
|
553
|
+
const p = JSON.parse(fs.readFileSync(pPath, 'utf8'));
|
|
554
|
+
const missing = (p.agents || []).filter(a =>
|
|
555
|
+
!fs.existsSync(path.join(projectClaudeDir, a.replace('./', '')))
|
|
556
|
+
);
|
|
557
|
+
if (missing.length) throw new Error(`missing: ${missing.join(', ')}`);
|
|
558
|
+
});
|
|
559
|
+
|
|
560
|
+
// B5: Profile consistency checks
|
|
561
|
+
info('Profile consistency', () => {
|
|
562
|
+
const pPath = path.join(projectClaudeDir, 'plugin.json');
|
|
563
|
+
if (!fs.existsSync(pPath)) throw new Error('no plugin.json');
|
|
564
|
+
const p = JSON.parse(fs.readFileSync(pPath, 'utf8'));
|
|
565
|
+
|
|
566
|
+
const declaredAgents = (p.agents || []).map(a => a.replace('./', ''));
|
|
567
|
+
const agentsDir = path.join(projectClaudeDir, 'agents');
|
|
568
|
+
const diskAgents = fs.existsSync(agentsDir)
|
|
569
|
+
? fs.readdirSync(agentsDir).filter(f => f.endsWith('.md'))
|
|
570
|
+
: [];
|
|
571
|
+
const orphaned = diskAgents.filter(f => !declaredAgents.includes(`agents/${f}`));
|
|
572
|
+
|
|
573
|
+
const declaredSkillDirs = (p.skills || []).map(s => s.replace('./', '').replace(/\/$/, ''));
|
|
574
|
+
const missingSkillDirs = declaredSkillDirs.filter(d => !fs.existsSync(path.join(projectClaudeDir, d)));
|
|
575
|
+
|
|
576
|
+
if (missingSkillDirs.length > 0) {
|
|
577
|
+
throw new Error(`${missingSkillDirs.length} declared skill dirs missing: ${missingSkillDirs.join(', ')}`);
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
const details = [];
|
|
581
|
+
if (orphaned.length > 0) details.push(`${orphaned.length} orphaned agent files`);
|
|
582
|
+
if (p.profile) details.push(`profile: ${p.profile}`);
|
|
583
|
+
if (details.length) console.log(` (${details.join(', ')})`);
|
|
584
|
+
});
|
|
585
|
+
|
|
586
|
+
info('Profile metadata', () => {
|
|
587
|
+
const pPath = path.join(projectClaudeDir, 'plugin.json');
|
|
588
|
+
const p = JSON.parse(fs.readFileSync(pPath, 'utf8'));
|
|
589
|
+
if (!p.profile) {
|
|
590
|
+
throw new Error('no profile field in plugin.json. Run "csl migrate" to fix.');
|
|
591
|
+
}
|
|
592
|
+
const { detectInstalledProfile } = require('./lib/profile-utils');
|
|
593
|
+
const detected = detectInstalledProfile(projectClaudeDir);
|
|
594
|
+
if (detected && detected !== p.profile) {
|
|
595
|
+
throw new Error(`plugin.json says "${p.profile}" but disk shows "${detected}". Run "csl migrate" to fix.`);
|
|
596
|
+
}
|
|
597
|
+
});
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
// Check for updates
|
|
601
|
+
check('Up to date', () => {
|
|
602
|
+
const current = getInstalledVersion();
|
|
603
|
+
const latest = getLatestVersion();
|
|
604
|
+
if (latest && current !== latest)
|
|
605
|
+
throw new Error(`${current} installed, ${latest} available. Run: csl update`);
|
|
606
|
+
});
|
|
607
|
+
|
|
608
|
+
console.log(`\n Results: ${ok} passed, ${fail} failed${warn ? `, ${warn} warnings` : ''}\n`);
|
|
609
|
+
if (fail > 0) process.exit(1);
|
|
610
|
+
},
|
|
611
|
+
|
|
612
|
+
help: () => {
|
|
613
|
+
console.log(`
|
|
614
|
+
Claude Skill Lord — Curated Claude Code Plugin
|
|
615
|
+
https://github.com/donganhvuphp/Claude-Skills-Lord
|
|
616
|
+
|
|
617
|
+
Usage: csl <command> [options]
|
|
618
|
+
|
|
619
|
+
Commands:
|
|
620
|
+
init [profile] Set up in current project (interactive if no profile given)
|
|
621
|
+
upgrade [profile] Upgrade to a higher profile (additive, no overwrites)
|
|
622
|
+
update Update CLI to latest version
|
|
623
|
+
migrate Update installed files to match current CLI version
|
|
624
|
+
diff Compare project files with source package
|
|
625
|
+
uninstall Remove Claude Skill Lord from a project
|
|
626
|
+
list List all agents, skills, and commands
|
|
627
|
+
doctor Check installation health + updates
|
|
628
|
+
version Show version
|
|
629
|
+
help Show this help
|
|
630
|
+
|
|
631
|
+
Init Options:
|
|
632
|
+
--target <path> Target directory (default: current directory)
|
|
633
|
+
--dry-run Preview without copying
|
|
634
|
+
--fresh Clean reinstall (remove existing .claude/ first)
|
|
635
|
+
|
|
636
|
+
Upgrade Options:
|
|
637
|
+
--target <path> Target directory (default: current directory)
|
|
638
|
+
--dry-run Preview what would be added
|
|
639
|
+
|
|
640
|
+
Migrate Options:
|
|
641
|
+
--target <path> Target directory (default: current directory)
|
|
642
|
+
--dry-run Preview changes without applying
|
|
643
|
+
|
|
644
|
+
Diff Options:
|
|
645
|
+
--target <path> Target directory (default: current directory)
|
|
646
|
+
|
|
647
|
+
Uninstall Options:
|
|
648
|
+
--target <path> Target directory (default: current directory)
|
|
649
|
+
--force, -f Skip confirmation prompt
|
|
650
|
+
|
|
651
|
+
Profiles:
|
|
652
|
+
core 16 skills, 7 agents — lightweight
|
|
653
|
+
developer 44 skills, 22 agents — recommended
|
|
654
|
+
full 61 skills, 22 agents — everything
|
|
655
|
+
|
|
656
|
+
Examples:
|
|
657
|
+
csl init # Interactive setup
|
|
658
|
+
csl init full # Install everything, no questions
|
|
659
|
+
csl init core --dry-run # Preview core profile
|
|
660
|
+
csl upgrade full # Upgrade to full profile (additive)
|
|
661
|
+
csl update # Update to latest version
|
|
662
|
+
csl migrate # Update project files after csl update
|
|
663
|
+
csl migrate --dry-run # Preview what would change
|
|
664
|
+
csl diff # Show modified/missing/extra files
|
|
665
|
+
csl uninstall # Remove from current project
|
|
666
|
+
csl doctor # Check health + updates
|
|
667
|
+
csl list # Show all components
|
|
668
|
+
`);
|
|
669
|
+
},
|
|
670
|
+
};
|
|
671
|
+
|
|
672
|
+
// Run command (handle async)
|
|
673
|
+
const handler = commands[command] || commands.help;
|
|
674
|
+
const result = handler();
|
|
675
|
+
if (result && typeof result.catch === 'function') {
|
|
676
|
+
result.catch(e => { console.error(e.message); process.exit(1); });
|
|
677
|
+
}
|