@kensaurus/skills 0.0.0-stage → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +53 -0
- package/.claude-plugin/plugin.json +40 -0
- package/.cursor-plugin/plugin.json +38 -0
- package/.mcp.json +28 -0
- package/CHANGELOG.md +1790 -0
- package/LICENSE +21 -0
- package/LICENSE-APACHE +62 -0
- package/NOTICE +13 -0
- package/README.md +821 -2
- package/SECURITY.md +55 -0
- package/agents/code-reviewer.md +60 -0
- package/agents/completion-judge.md +89 -0
- package/agents/db-migrator.md +125 -0
- package/agents/debugger.md +47 -0
- package/agents/deploy-checker.md +100 -0
- package/agents/perf-monitor.md +74 -0
- package/assets/favicon.png +0 -0
- package/assets/logo-light.png +0 -0
- package/assets/logo.png +0 -0
- package/assets/logo.svg +6 -0
- package/assets/og.png +0 -0
- package/bin/install.mjs +1127 -0
- package/bin/kenji.js +2 -0
- package/commands/adr.md +17 -0
- package/commands/aeo-plan.md +18 -0
- package/commands/arch-boundaries.md +17 -0
- package/commands/aso-plan.md +18 -0
- package/commands/auth-flows.md +19 -0
- package/commands/backup-plan.md +17 -0
- package/commands/burndown-full.md +25 -0
- package/commands/capacitor-plan.md +18 -0
- package/commands/codemod-safety.md +22 -0
- package/commands/commit.md +18 -0
- package/commands/complete-everything.md +40 -0
- package/commands/cost-plan.md +19 -0
- package/commands/deadcode-plan.md +26 -0
- package/commands/deadcode.md +32 -0
- package/commands/debug-issue.md +17 -0
- package/commands/deps-plan.md +18 -0
- package/commands/docs-plan.md +17 -0
- package/commands/doctrine.md +19 -0
- package/commands/error-plan.md +19 -0
- package/commands/feedback-to-closure.md +36 -0
- package/commands/fix-issue.md +76 -0
- package/commands/gate-logic.md +26 -0
- package/commands/green-repo.md +36 -0
- package/commands/grill-me.md +19 -0
- package/commands/gtm-plan.md +21 -0
- package/commands/gtm-weekly.md +17 -0
- package/commands/gtm.md +22 -0
- package/commands/handoff.md +15 -0
- package/commands/housekeep-backlog.md +18 -0
- package/commands/housekeep-files.md +22 -0
- package/commands/housekeep-gates.md +18 -0
- package/commands/instant-nav.md +11 -0
- package/commands/integrity-plan.md +19 -0
- package/commands/launch-kit.md +16 -0
- package/commands/mcp-guide.md +40 -0
- package/commands/mobile-plan.md +19 -0
- package/commands/native-rn-monorepo/README.md +78 -0
- package/commands/native-rn-monorepo/android-build.md +26 -0
- package/commands/native-rn-monorepo/android-install.md +32 -0
- package/commands/native-rn-monorepo/android-logcat.md +37 -0
- package/commands/native-rn-monorepo/ios-ci-logs.md +56 -0
- package/commands/native-rn-monorepo/ios-ci-status.md +52 -0
- package/commands/native-rn-monorepo/ios-ci-trigger.md +59 -0
- package/commands/native-rn-monorepo/rn-reset.md +50 -0
- package/commands/native-rn-monorepo/rn-ship-ios.md +67 -0
- package/commands/native-rn-monorepo/rn-verify.md +53 -0
- package/commands/perf-plan.md +18 -0
- package/commands/plan-mode.md +74 -0
- package/commands/pr.md +16 -0
- package/commands/pricing-plan.md +20 -0
- package/commands/privacy-plan.md +18 -0
- package/commands/readability.md +12 -0
- package/commands/readme.md +15 -0
- package/commands/refactor.md +15 -0
- package/commands/release-prep.md +17 -0
- package/commands/research.md +25 -0
- package/commands/responsive-audit.md +21 -0
- package/commands/review-code.md +18 -0
- package/commands/rls-plan.md +18 -0
- package/commands/secrets-plan.md +18 -0
- package/commands/security-plan.md +19 -0
- package/commands/ship-and-observe.md +36 -0
- package/commands/skill-conflicts.md +19 -0
- package/commands/slop-plan.md +18 -0
- package/commands/stub-plan.md +18 -0
- package/commands/test-mutation.md +16 -0
- package/commands/test-plan.md +17 -0
- package/commands/test.md +29 -0
- package/commands/thirdparty-web-interface-guidelines.md +185 -0
- package/commands/uiux-plan.md +18 -0
- package/commands/uiux.md +45 -0
- package/commands/update-deps.md +21 -0
- package/commands/validation-plan.md +19 -0
- package/commands-portable/fix-issue.md +72 -0
- package/commands-portable/plan-mode.md +92 -0
- package/commands-portable/research.md +91 -0
- package/docs/screenshots/README.md +5 -0
- package/docs/screenshots/audit-dark.png +0 -0
- package/docs/screenshots/build-dark.png +0 -0
- package/docs/screenshots/grill-dark.png +0 -0
- package/docs/screenshots/hero-dark.png +0 -0
- package/docs/screenshots/hero-light.png +0 -0
- package/docs/screenshots/ship-dark.png +0 -0
- package/docs/screenshots/src/showcase.html +320 -0
- package/hooks/completion-gate.mjs +258 -0
- package/hooks/cursor-hooks.json +13 -0
- package/hooks/hooks.json +15 -0
- package/install.sh +21 -0
- package/llms.txt +40 -0
- package/mcp/README.md +266 -0
- package/mcp/VERSIONS.md +41 -0
- package/mcp/mcp-full.json.template +124 -0
- package/mcp/mcp.json.template +29 -0
- package/mcp/pinned-versions.json +27 -0
- package/package.json +94 -4
- package/rules/approved-plan-execution.mdc +65 -0
- package/rules/full-stack-ship-discipline.mdc +37 -0
- package/rules/native-rn-monorepo/README.md +63 -0
- package/rules/native-rn-monorepo/_project.mdc +69 -0
- package/rules/native-rn-monorepo/native-android.mdc +72 -0
- package/rules/native-rn-monorepo/native-ios.mdc +61 -0
- package/rules/native-rn-monorepo/react-native-js.mdc +78 -0
- package/rules/native-rn-monorepo/web.mdc +60 -0
- package/rules/project-starter/components.mdc +54 -0
- package/rules/project-starter/data-fetching.mdc +77 -0
- package/rules/project-starter/git.mdc +41 -0
- package/rules/project-starter/supabase.mdc +37 -0
- package/rules/project-starter/tailwind.mdc +48 -0
- package/rules/project-starter/typescript.mdc +36 -0
- package/rules/project-starter/web-performance.mdc +42 -0
- package/rules/senior-engineer.mdc +30 -0
- package/rules/shell-first-search.mdc +19 -0
- package/rules/skill-workflows.mdc +35 -0
- package/rules/verification-before-completion.mdc +57 -0
- package/skills/audit-accessibility/SKILL.md +441 -0
- package/skills/audit-agent-speed/SKILL.md +181 -0
- package/skills/audit-agent-speed/scripts/stop-typecheck.mjs +151 -0
- package/skills/audit-analytics/SKILL.md +138 -0
- package/skills/audit-auth-flows/SKILL.md +267 -0
- package/skills/audit-backend-architecture/SKILL.md +266 -0
- package/skills/audit-backend-architecture/references/patterns.md +386 -0
- package/skills/audit-bundle-size/SKILL.md +295 -0
- package/skills/audit-cicd/SKILL.md +218 -0
- package/skills/audit-code-quality/SKILL.md +314 -0
- package/skills/audit-code-review/SKILL.md +289 -0
- package/skills/audit-codemod-safety/SKILL.md +159 -0
- package/skills/audit-db-schema/SKILL.md +465 -0
- package/skills/audit-db-schema/references/details.md +110 -0
- package/skills/audit-doctrine/SKILL.md +189 -0
- package/skills/audit-env-parity/SKILL.md +133 -0
- package/skills/audit-fe-api/SKILL.md +458 -0
- package/skills/audit-gate-logic/SKILL.md +219 -0
- package/skills/audit-i18n/SKILL.md +339 -0
- package/skills/audit-infra-cost/SKILL.md +142 -0
- package/skills/audit-langfuse-llm/SKILL.md +468 -0
- package/skills/audit-langfuse-llm/references/details.md +226 -0
- package/skills/audit-llm-security/SKILL.md +147 -0
- package/skills/audit-monetization-iap/SKILL.md +137 -0
- package/skills/audit-payment-system/SKILL.md +268 -0
- package/skills/audit-payment-system/references/checklist.md +283 -0
- package/skills/audit-performance/SKILL.md +383 -0
- package/skills/audit-performance/references/loading-priority-2026.md +81 -0
- package/skills/audit-realworld/SKILL.md +287 -0
- package/skills/audit-registry-listing/SKILL.md +122 -0
- package/skills/audit-resilience/SKILL.md +153 -0
- package/skills/audit-responsive/SKILL.md +221 -0
- package/skills/audit-responsive/references/checklist.md +166 -0
- package/skills/audit-security/SKILL.md +289 -0
- package/skills/audit-skill-conflicts/SKILL.md +178 -0
- package/skills/audit-ui-states/SKILL.md +146 -0
- package/skills/audit-uiux-design-system/SKILL.md +475 -0
- package/skills/audit-uiux-design-system/references/details.md +71 -0
- package/skills/audit-ux/SKILL.md +381 -0
- package/skills/audit-ux/references/details.md +245 -0
- package/skills/audit-ux-journeys/SKILL.md +215 -0
- package/skills/audit-ux-journeys/references/checklist.md +179 -0
- package/skills/backend-db-performance/SKILL.md +441 -0
- package/skills/backend-error-handling/SKILL.md +489 -0
- package/skills/backend-error-handling/references/details.md +58 -0
- package/skills/backend-observability/SKILL.md +88 -0
- package/skills/backend-patterns/SKILL.md +499 -0
- package/skills/backend-patterns/references/architecture-patterns.md +298 -0
- package/skills/backend-realtime/SKILL.md +403 -0
- package/skills/backend-realtime/references/patterns.md +74 -0
- package/skills/burndown-full/SKILL.md +174 -0
- package/skills/complete-everything/SKILL.md +295 -0
- package/skills/data-pipeline/SKILL.md +109 -0
- package/skills/data-visualization/SKILL.md +488 -0
- package/skills/debug-error/SKILL.md +322 -0
- package/skills/debug-fe-be-integration/SKILL.md +459 -0
- package/skills/debug-sentry-monitor/SKILL.md +497 -0
- package/skills/debug-sentry-monitor/references/details.md +165 -0
- package/skills/deploy-npm/SKILL.md +394 -0
- package/skills/deploy-npm/references/example-mushi-mushi.md +52 -0
- package/skills/deploy-verify/SKILL.md +489 -0
- package/skills/design-api/SKILL.md +379 -0
- package/skills/design-canvas/SKILL.md +155 -0
- package/skills/design-email/SKILL.md +370 -0
- package/skills/design-frontend/SKILL.md +143 -0
- package/skills/design-generative-art/SKILL.md +474 -0
- package/skills/design-mobile-first/SKILL.md +506 -0
- package/skills/design-motion/SKILL.md +333 -0
- package/skills/design-motion/references/delight-interactions.md +191 -0
- package/skills/design-prd/SKILL.md +443 -0
- package/skills/design-system/SKILL.md +457 -0
- package/skills/design-theme/SKILL.md +226 -0
- package/skills/design-theme/themes/tsumagoi-ranch.md +150 -0
- package/skills/docs-adr/SKILL.md +168 -0
- package/skills/docs-coauthor/SKILL.md +368 -0
- package/skills/docs-comparison-pages/SKILL.md +117 -0
- package/skills/docs-domain-modeling/SKILL.md +97 -0
- package/skills/docs-launch-kit/SKILL.md +139 -0
- package/skills/docs-writer/SKILL.md +469 -0
- package/skills/enhance-agent-guardrails/SKILL.md +164 -0
- package/skills/enhance-arch-boundaries/SKILL.md +154 -0
- package/skills/enhance-capacitor-ui/SKILL.md +463 -0
- package/skills/enhance-capacitor-ui/references/details.md +750 -0
- package/skills/enhance-email-deliverability/SKILL.md +143 -0
- package/skills/enhance-growth-loops/SKILL.md +122 -0
- package/skills/enhance-lifecycle-email/SKILL.md +130 -0
- package/skills/enhance-motion/SKILL.md +193 -0
- package/skills/enhance-onboarding/SKILL.md +148 -0
- package/skills/enhance-pwa/SKILL.md +303 -0
- package/skills/enhance-readability/SKILL.md +146 -0
- package/skills/enhance-readme/SKILL.md +496 -0
- package/skills/enhance-readme/package-lock.json +187 -0
- package/skills/enhance-readme/package.json +17 -0
- package/skills/enhance-readme/scripts/generate-readme-blocks.mjs +199 -0
- package/skills/enhance-readme/scripts/record-readme-tour.mjs +442 -0
- package/skills/enhance-skill-prompts/SKILL.md +167 -0
- package/skills/enhance-skill-prompts/references/exemplar-audit-auth-flows.md +311 -0
- package/skills/enhance-ux-laws/SKILL.md +409 -0
- package/skills/enhance-web-conversion/SKILL.md +155 -0
- package/skills/enhance-web-forms/SKILL.md +154 -0
- package/skills/enhance-web-instant-nav/SKILL.md +138 -0
- package/skills/enhance-web-instant-nav/references/bfcache-blockers.md +23 -0
- package/skills/enhance-web-instant-nav/references/early-hints.md +33 -0
- package/skills/enhance-web-instant-nav/references/speculation-rules.md +44 -0
- package/skills/enhance-web-landing/SKILL.md +459 -0
- package/skills/enhance-web-landing/references/details.md +773 -0
- package/skills/enhance-web-redesign/SKILL.md +228 -0
- package/skills/enhance-web-seo/SKILL.md +276 -0
- package/skills/enhance-web-ui/SKILL.md +473 -0
- package/skills/enhance-web-ui/references/details.md +674 -0
- package/skills/enhance-web-ux/HEURISTICS.md +248 -0
- package/skills/enhance-web-ux/PATTERNS.md +375 -0
- package/skills/enhance-web-ux/SKILL.md +464 -0
- package/skills/enhance-web-ux/examples.md +222 -0
- package/skills/enhance-web-ux/references/details.md +406 -0
- package/skills/enhance-web-web3d/SKILL.md +397 -0
- package/skills/enhance-web-web3d/references/css-canvas-effects.md +180 -0
- package/skills/handoff/SKILL.md +66 -0
- package/skills/housekeep-backlog/SKILL.md +149 -0
- package/skills/housekeep-dead-code/SKILL.md +387 -0
- package/skills/housekeep-dead-code/references/ratchet-ci.md +205 -0
- package/skills/housekeep-dead-code/references/supabase-hygiene.md +152 -0
- package/skills/housekeep-design/SKILL.md +207 -0
- package/skills/housekeep-files/SKILL.md +220 -0
- package/skills/housekeep-files/references/naming-and-catalog.md +86 -0
- package/skills/housekeep-files/scripts/housekeep-files.ps1 +360 -0
- package/skills/housekeep-files/scripts/housekeep-files.sh +238 -0
- package/skills/housekeep-gates/SKILL.md +174 -0
- package/skills/iterate-agent-harness/SKILL.md +137 -0
- package/skills/iterate-gtm-weekly/SKILL.md +103 -0
- package/skills/iterate-post-launch/SKILL.md +292 -0
- package/skills/meta-mcp-builder/SKILL.md +313 -0
- package/skills/meta-skill-creator/SKILL.md +304 -0
- package/skills/mobile-capacitor-platform/SKILL.md +103 -0
- package/skills/mobile-emulator-start/SKILL.md +296 -0
- package/skills/mobile-emulator-test/SKILL.md +491 -0
- package/skills/mobile-emulator-test/references/details.md +478 -0
- package/skills/mobile-rn-performance/SKILL.md +107 -0
- package/skills/mobile-rn-screen/SKILL.md +476 -0
- package/skills/mobile-rn-screen/references/details.md +785 -0
- package/skills/mushi-health/SKILL.md +206 -0
- package/skills/mushi-integration/SKILL.md +257 -0
- package/skills/plan-aeo-readiness/SKILL.md +166 -0
- package/skills/plan-antislop/SKILL.md +281 -0
- package/skills/plan-aso/SKILL.md +149 -0
- package/skills/plan-backup-dr/SKILL.md +131 -0
- package/skills/plan-capacitor-hardening/SKILL.md +217 -0
- package/skills/plan-data-integrity/SKILL.md +187 -0
- package/skills/plan-dead-code/SKILL.md +386 -0
- package/skills/plan-dead-code/references/knip-config.md +214 -0
- package/skills/plan-dead-code/references/output-templates.md +133 -0
- package/skills/plan-dead-code/references/preservation-contract.md +50 -0
- package/skills/plan-dead-code/references/residue-greps.md +84 -0
- package/skills/plan-dependency-provenance/SKILL.md +200 -0
- package/skills/plan-docs-sync/SKILL.md +143 -0
- package/skills/plan-docs-sync/references/drift-taxonomy.md +43 -0
- package/skills/plan-docs-sync/references/output-templates.md +33 -0
- package/skills/plan-docs-sync/references/preservation-contract.md +17 -0
- package/skills/plan-error-handling/SKILL.md +205 -0
- package/skills/plan-gtm/SKILL.md +276 -0
- package/skills/plan-gtm/references/benchmarks-2026.md +183 -0
- package/skills/plan-input-validation/SKILL.md +179 -0
- package/skills/plan-llm-cost-guardrails/SKILL.md +176 -0
- package/skills/plan-mobile-readiness/SKILL.md +171 -0
- package/skills/plan-perf-audit/SKILL.md +145 -0
- package/skills/plan-perf-audit/references/audit-scope.md +51 -0
- package/skills/plan-perf-audit/references/output-templates.md +33 -0
- package/skills/plan-perf-audit/references/preservation-contract.md +13 -0
- package/skills/plan-pricing/SKILL.md +173 -0
- package/skills/plan-privacy-compliance/SKILL.md +148 -0
- package/skills/plan-rls-audit/SKILL.md +231 -0
- package/skills/plan-secrets-audit/SKILL.md +181 -0
- package/skills/plan-security-audit/SKILL.md +168 -0
- package/skills/plan-security-audit/references/output-templates.md +36 -0
- package/skills/plan-security-audit/references/owasp-supabase-scope.md +55 -0
- package/skills/plan-security-audit/references/preservation-contract.md +18 -0
- package/skills/plan-stub-checker/SKILL.md +216 -0
- package/skills/plan-stub-checker/references/detection-methodology.md +75 -0
- package/skills/plan-stub-checker/references/detection-taxonomy.md +34 -0
- package/skills/plan-stub-checker/references/output-templates.md +63 -0
- package/skills/plan-stub-checker/references/preservation-contract.md +24 -0
- package/skills/plan-test-coverage/SKILL.md +170 -0
- package/skills/plan-test-coverage/references/methodology.md +54 -0
- package/skills/plan-test-coverage/references/output-templates.md +34 -0
- package/skills/plan-test-coverage/references/preservation-contract.md +15 -0
- package/skills/plan-uiux-unification/SKILL.md +230 -0
- package/skills/plan-uiux-unification/references/output-templates.md +67 -0
- package/skills/plan-uiux-unification/references/phase-workbook.md +85 -0
- package/skills/plan-uiux-unification/references/preservation-contract.md +24 -0
- package/skills/protocol-browser-anti-stall/SKILL.md +211 -0
- package/skills/protocol-browser-anti-stall/references/mcp-to-cli-map.md +113 -0
- package/skills/protocol-browser-anti-stall/references/playwright-session-coordination.md +170 -0
- package/skills/research/SKILL.md +422 -0
- package/skills/test-exploratory/SKILL.md +165 -0
- package/skills/test-exploratory/references/charter-template.md +29 -0
- package/skills/test-load/SKILL.md +126 -0
- package/skills/test-mutation/SKILL.md +160 -0
- package/skills/test-playwright/SKILL.md +354 -0
- package/skills/test-qa/SKILL.md +364 -0
- package/skills/test-qa/references/details.md +268 -0
- package/skills/test-red-team/SKILL.md +386 -0
- package/skills/test-red-team/references/owasp-attack-checklist.md +193 -0
- package/skills/test-unit/SKILL.md +259 -0
- package/skills/test-unit/references/details.md +267 -0
- package/skills/test-visual-regression/SKILL.md +132 -0
- package/skills/thirdparty-emil-design-eng/ATTRIBUTION.md +20 -0
- package/skills/thirdparty-emil-design-eng/SKILL.md +21 -0
- package/skills/thirdparty-emil-design-eng/references/emil-design-eng.md +676 -0
- package/skills/thirdparty-ui-ux-pro-max/ATTRIBUTION.md +22 -0
- package/skills/thirdparty-ui-ux-pro-max/SKILL.md +304 -0
- package/skills/thirdparty-ui-ux-pro-max/data/charts.csv +26 -0
- package/skills/thirdparty-ui-ux-pro-max/data/colors.csv +97 -0
- package/skills/thirdparty-ui-ux-pro-max/data/icons.csv +101 -0
- package/skills/thirdparty-ui-ux-pro-max/data/landing.csv +31 -0
- package/skills/thirdparty-ui-ux-pro-max/data/products.csv +97 -0
- package/skills/thirdparty-ui-ux-pro-max/data/react-performance.csv +45 -0
- package/skills/thirdparty-ui-ux-pro-max/data/stacks/astro.csv +54 -0
- package/skills/thirdparty-ui-ux-pro-max/data/stacks/flutter.csv +53 -0
- package/skills/thirdparty-ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
- package/skills/thirdparty-ui-ux-pro-max/data/stacks/jetpack-compose.csv +53 -0
- package/skills/thirdparty-ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
- package/skills/thirdparty-ui-ux-pro-max/data/stacks/nuxt-ui.csv +51 -0
- package/skills/thirdparty-ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
- package/skills/thirdparty-ui-ux-pro-max/data/stacks/react-native.csv +52 -0
- package/skills/thirdparty-ui-ux-pro-max/data/stacks/react.csv +54 -0
- package/skills/thirdparty-ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
- package/skills/thirdparty-ui-ux-pro-max/data/stacks/svelte.csv +54 -0
- package/skills/thirdparty-ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
- package/skills/thirdparty-ui-ux-pro-max/data/stacks/vue.csv +50 -0
- package/skills/thirdparty-ui-ux-pro-max/data/styles.csv +68 -0
- package/skills/thirdparty-ui-ux-pro-max/data/typography.csv +58 -0
- package/skills/thirdparty-ui-ux-pro-max/data/ui-reasoning.csv +101 -0
- package/skills/thirdparty-ui-ux-pro-max/data/ux-guidelines.csv +100 -0
- package/skills/thirdparty-ui-ux-pro-max/data/web-interface.csv +31 -0
- package/skills/thirdparty-ui-ux-pro-max/scripts/core.py +253 -0
- package/skills/thirdparty-ui-ux-pro-max/scripts/design_system.py +1067 -0
- package/skills/thirdparty-ui-ux-pro-max/scripts/search.py +114 -0
- package/skills/thirdparty-web-interface-guidelines/ATTRIBUTION.md +23 -0
- package/skills/thirdparty-web-interface-guidelines/SKILL.md +190 -0
- package/skills/workflow-build-feature/SKILL.md +118 -0
- package/skills/workflow-coding-discipline/SKILL.md +140 -0
- package/skills/workflow-environment-ready/SKILL.md +128 -0
- package/skills/workflow-feature-flag/SKILL.md +262 -0
- package/skills/workflow-feedback-to-closure/SKILL.md +165 -0
- package/skills/workflow-fix-and-ship/SKILL.md +136 -0
- package/skills/workflow-git-commit/SKILL.md +200 -0
- package/skills/workflow-green-repo/SKILL.md +166 -0
- package/skills/workflow-grilling/SKILL.md +73 -0
- package/skills/workflow-gtm/SKILL.md +153 -0
- package/skills/workflow-housekeep/SKILL.md +453 -0
- package/skills/workflow-housekeep/references/templates.md +109 -0
- package/skills/workflow-launch-ready/SKILL.md +145 -0
- package/skills/workflow-merge-conflicts/SKILL.md +62 -0
- package/skills/workflow-onboard/SKILL.md +99 -0
- package/skills/workflow-parallel-agents/SKILL.md +164 -0
- package/skills/workflow-pr/SKILL.md +197 -0
- package/skills/workflow-quality-gate/SKILL.md +147 -0
- package/skills/workflow-refactor/SKILL.md +274 -0
- package/skills/workflow-release-prep/SKILL.md +207 -0
- package/skills/workflow-ship-and-observe/SKILL.md +164 -0
- package/skills/workflow-spec-tdd/SKILL.md +141 -0
- package/skills/workflow-spec-tdd/references/spec-template.md +126 -0
- package/skills/workflow-spec-tdd/references/tdd-patterns.md +167 -0
- package/skills-cursor/babysit/SKILL.md +17 -0
- package/skills-cursor/canvas/SKILL.md +142 -0
- package/skills-cursor/canvas/sdk/canvas-tokens.d.ts +235 -0
- package/skills-cursor/canvas/sdk/chart-primitives.d.ts +200 -0
- package/skills-cursor/canvas/sdk/dag-layout.d.ts +102 -0
- package/skills-cursor/canvas/sdk/diff-view.d.ts +130 -0
- package/skills-cursor/canvas/sdk/form-primitives.d.ts +194 -0
- package/skills-cursor/canvas/sdk/hooks.d.ts +117 -0
- package/skills-cursor/canvas/sdk/index.d.ts +47 -0
- package/skills-cursor/canvas/sdk/theme.d.ts +61 -0
- package/skills-cursor/canvas/sdk/todo-list.d.ts +49 -0
- package/skills-cursor/canvas/sdk/ui-primitives.d.ts +549 -0
- package/skills-cursor/canvas/sdk/ui-primitives.test.d.ts +2 -0
- package/skills-cursor/create-hook/SKILL.md +238 -0
- package/skills-cursor/create-rule/SKILL.md +185 -0
- package/skills-cursor/create-skill/SKILL.md +269 -0
- package/skills-cursor/create-skill/references/authoring-guide.md +182 -0
- package/skills-cursor/create-subagent/SKILL.md +228 -0
- package/skills-cursor/migrate-to-skills/SKILL.md +121 -0
- package/skills-cursor/shell/SKILL.md +22 -0
- package/skills-cursor/split-to-prs/SKILL.md +47 -0
- package/skills-cursor/statusline/SKILL.md +193 -0
- package/skills-cursor/update-cli-config/SKILL.md +85 -0
- package/skills-cursor/update-cursor-settings/SKILL.md +137 -0
- package/skills.sh.json +297 -0
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
# Skill Authoring Guide (reference)
|
|
2
|
+
|
|
3
|
+
Extended patterns, workflows, and checklists for `create-skill`. Read when drafting
|
|
4
|
+
non-trivial skills.
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Common Patterns
|
|
9
|
+
|
|
10
|
+
### Template Pattern
|
|
11
|
+
|
|
12
|
+
Provide output format templates:
|
|
13
|
+
|
|
14
|
+
```markdown
|
|
15
|
+
## Report structure
|
|
16
|
+
|
|
17
|
+
Use this template:
|
|
18
|
+
|
|
19
|
+
# [Analysis Title]
|
|
20
|
+
|
|
21
|
+
## Executive summary
|
|
22
|
+
[One-paragraph overview of key findings]
|
|
23
|
+
|
|
24
|
+
## Key findings
|
|
25
|
+
- Finding 1 with supporting data
|
|
26
|
+
|
|
27
|
+
## Recommendations
|
|
28
|
+
1. Specific actionable recommendation
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### Examples Pattern
|
|
32
|
+
|
|
33
|
+
For skills where output quality depends on seeing examples:
|
|
34
|
+
|
|
35
|
+
```markdown
|
|
36
|
+
## Commit message format
|
|
37
|
+
|
|
38
|
+
**Example 1:**
|
|
39
|
+
Input: Added user authentication with JWT tokens
|
|
40
|
+
Output:
|
|
41
|
+
feat(auth): implement JWT-based authentication
|
|
42
|
+
|
|
43
|
+
Add login endpoint and token validation middleware
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Workflow Pattern
|
|
47
|
+
|
|
48
|
+
Use numbered steps with a checklist only where order is load-bearing (migrations, auth flows, destructive ops, baseline capture). For judgment work, state the outcome, the constraints, and how to verify - the agent's own plan beats a hand-written script:
|
|
49
|
+
|
|
50
|
+
```markdown
|
|
51
|
+
Task Progress:
|
|
52
|
+
- [ ] Step 1: Analyze the form
|
|
53
|
+
- [ ] Step 2: Create field mapping
|
|
54
|
+
- [ ] Step 3: Validate mapping
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### Conditional Workflow Pattern
|
|
58
|
+
|
|
59
|
+
Guide through decision points — creation vs editing branches.
|
|
60
|
+
|
|
61
|
+
### Feedback Loop Pattern
|
|
62
|
+
|
|
63
|
+
For quality-critical tasks: edit → validate script → fix → re-validate before proceeding.
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
## Utility Scripts
|
|
68
|
+
|
|
69
|
+
Pre-made scripts offer advantages over generated code:
|
|
70
|
+
- More reliable than generated code
|
|
71
|
+
- Save tokens (no code in context)
|
|
72
|
+
- Ensure consistency across uses
|
|
73
|
+
|
|
74
|
+
Make clear whether the agent should **execute** the script (most common) or **read** it as reference.
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## Anti-Patterns to Avoid
|
|
79
|
+
|
|
80
|
+
### 1. Windows-Style Paths
|
|
81
|
+
- ✅ Use: `scripts/helper.py`
|
|
82
|
+
- ❌ Avoid: `scripts\helper.py`
|
|
83
|
+
|
|
84
|
+
### 2. Too Many Options
|
|
85
|
+
Provide a default with one escape hatch, not a menu of equals.
|
|
86
|
+
|
|
87
|
+
### 3. Time-Sensitive Information
|
|
88
|
+
Use "Current method" + collapsible "Old patterns (deprecated)" instead of dates in prose.
|
|
89
|
+
|
|
90
|
+
### 4. Inconsistent Terminology
|
|
91
|
+
Choose one term and use it throughout (e.g. always "API endpoint").
|
|
92
|
+
|
|
93
|
+
### 5. Vague Skill Names
|
|
94
|
+
- ✅ Good: `processing-pdfs`, `analyzing-spreadsheets`
|
|
95
|
+
- ❌ Avoid: `helper`, `utils`, `tools`
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
## Skill Creation Workflow
|
|
100
|
+
|
|
101
|
+
### Phase 1: Discovery
|
|
102
|
+
|
|
103
|
+
Gather: purpose, storage location, trigger scenarios, constraints, existing patterns.
|
|
104
|
+
|
|
105
|
+
### Phase 2: Design
|
|
106
|
+
|
|
107
|
+
1. Draft skill name (lowercase, hyphens, max 64 chars)
|
|
108
|
+
2. Write specific third-person description
|
|
109
|
+
3. Outline main sections
|
|
110
|
+
4. Identify supporting files or scripts
|
|
111
|
+
|
|
112
|
+
### Phase 3: Implementation
|
|
113
|
+
|
|
114
|
+
1. Create directory structure
|
|
115
|
+
2. Write SKILL.md with frontmatter (`name`, `description`; when the skill also ships to Claude Code, add `effort: high` for audit / plan / security / judge work and `effort: low` for mechanical fixed-sequence work - the model default is medium, Claude Code honors the key, Cursor ignores it)
|
|
116
|
+
3. Create reference files
|
|
117
|
+
4. Create utility scripts if needed
|
|
118
|
+
|
|
119
|
+
### Phase 4: Verification
|
|
120
|
+
|
|
121
|
+
1. SKILL.md under 500 lines
|
|
122
|
+
2. Description specific with trigger terms
|
|
123
|
+
3. Consistent terminology
|
|
124
|
+
4. File references one level deep
|
|
125
|
+
5. Test discovery and application
|
|
126
|
+
|
|
127
|
+
---
|
|
128
|
+
|
|
129
|
+
## Complete Example
|
|
130
|
+
|
|
131
|
+
**Directory structure:**
|
|
132
|
+
|
|
133
|
+
```
|
|
134
|
+
code-review/
|
|
135
|
+
├── SKILL.md
|
|
136
|
+
├── STANDARDS.md
|
|
137
|
+
└── examples.md
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
**SKILL.md skeleton:**
|
|
141
|
+
|
|
142
|
+
```markdown
|
|
143
|
+
---
|
|
144
|
+
name: code-review
|
|
145
|
+
description: Review code for quality, security, and maintainability. Use when reviewing PRs or when the user asks for a code review.
|
|
146
|
+
---
|
|
147
|
+
|
|
148
|
+
# Code Review
|
|
149
|
+
|
|
150
|
+
## What a review covers
|
|
151
|
+
Correctness and edge cases, security, readability, and whether the tests
|
|
152
|
+
prove the change. Report each finding as file:line, the defect, and the
|
|
153
|
+
input that triggers it.
|
|
154
|
+
|
|
155
|
+
## Additional Resources
|
|
156
|
+
- [STANDARDS.md](STANDARDS.md)
|
|
157
|
+
- [examples.md](examples.md)
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
---
|
|
161
|
+
|
|
162
|
+
## Summary Checklist
|
|
163
|
+
|
|
164
|
+
### Core Quality
|
|
165
|
+
- [ ] Description is specific and includes key terms
|
|
166
|
+
- [ ] Description includes both WHAT and WHEN
|
|
167
|
+
- [ ] Written in third person
|
|
168
|
+
- [ ] SKILL.md body is under 500 lines
|
|
169
|
+
- [ ] Consistent terminology throughout
|
|
170
|
+
- [ ] Examples are concrete, not abstract
|
|
171
|
+
|
|
172
|
+
### Structure
|
|
173
|
+
- [ ] File references are one level deep
|
|
174
|
+
- [ ] Progressive disclosure used appropriately
|
|
175
|
+
- [ ] Numbered steps only where order is load-bearing; outcomes and constraints elsewhere
|
|
176
|
+
- [ ] No time-sensitive information
|
|
177
|
+
|
|
178
|
+
### If Including Scripts
|
|
179
|
+
- [ ] Scripts solve problems rather than punt
|
|
180
|
+
- [ ] Required packages are documented
|
|
181
|
+
- [ ] Error handling is explicit and helpful
|
|
182
|
+
- [ ] No Windows-style paths
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: create-subagent
|
|
3
|
+
description: Create custom subagents for specialized AI tasks. Use when the user wants to create a new type of subagent, set up task-specific agents, configure code reviewers, debuggers, or domain-specific assistants with custom prompts.
|
|
4
|
+
disable-model-invocation: true
|
|
5
|
+
---
|
|
6
|
+
# Creating Custom Subagents
|
|
7
|
+
|
|
8
|
+
This skill guides you through creating custom subagents for Cursor. Subagents are specialized AI assistants that run in isolated contexts with custom system prompts.
|
|
9
|
+
|
|
10
|
+
## When to Use Subagents
|
|
11
|
+
|
|
12
|
+
Subagents help you:
|
|
13
|
+
- **Preserve context** by isolating exploration from your main conversation
|
|
14
|
+
- **Specialize behavior** with focused system prompts for specific domains
|
|
15
|
+
- **Reuse configurations** across projects with user-level subagents
|
|
16
|
+
|
|
17
|
+
Delegate when the track is sizeable and independent, or when its output is verbose and the main context does not need it; launch independent subagents in one message. A handful of tool calls is cheaper inline. Brief each subagent precisely once and commit to the delegation.
|
|
18
|
+
|
|
19
|
+
### Inferring from Context
|
|
20
|
+
|
|
21
|
+
If you have previous conversation context, infer the subagent's purpose and behavior from what was discussed. Create the subagent based on specialized tasks or workflows that emerged in the conversation.
|
|
22
|
+
|
|
23
|
+
## Subagent Locations
|
|
24
|
+
|
|
25
|
+
| Location | Scope | Priority |
|
|
26
|
+
|----------|-------|----------|
|
|
27
|
+
| `.cursor/agents/` | Current project | Higher |
|
|
28
|
+
| `~/.cursor/agents/` | All your projects | Lower |
|
|
29
|
+
|
|
30
|
+
When multiple subagents share the same name, the higher-priority location wins.
|
|
31
|
+
|
|
32
|
+
**Project subagents** (`.cursor/agents/`): Ideal for codebase-specific agents. Check into version control to share with your team.
|
|
33
|
+
|
|
34
|
+
**User subagents** (`~/.cursor/agents/`): Personal agents available across all your projects.
|
|
35
|
+
|
|
36
|
+
## Subagent File Format
|
|
37
|
+
|
|
38
|
+
Create a `.md` file with YAML frontmatter and a markdown body (the system prompt):
|
|
39
|
+
|
|
40
|
+
```markdown
|
|
41
|
+
---
|
|
42
|
+
name: code-reviewer
|
|
43
|
+
description: Reviews code for quality and best practices
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
You are a code reviewer. When invoked, analyze the code and provide
|
|
47
|
+
specific, actionable feedback on quality, security, and best practices.
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### Required Fields
|
|
51
|
+
|
|
52
|
+
| Field | Description |
|
|
53
|
+
|-------|-------------|
|
|
54
|
+
| `name` | Unique identifier (lowercase letters and hyphens only) |
|
|
55
|
+
| `description` | When to delegate to this subagent (be specific!) |
|
|
56
|
+
|
|
57
|
+
### Optional fields (Claude Code)
|
|
58
|
+
|
|
59
|
+
Claude Code reads the same format from `.claude/agents/` and `~/.claude/agents/` and honors these; Cursor ignores keys it does not know.
|
|
60
|
+
|
|
61
|
+
| Field | Use |
|
|
62
|
+
|-------|-----|
|
|
63
|
+
| `effort` | `low` / `medium` / `high` / `xhigh` / `max`. Opus 5.5 defaults to `medium`; set `high` for reviewer, judge, security, and architecture agents, `low` for read-only inventory or handoff agents. Prose like "think carefully" does nothing — this is the control. |
|
|
64
|
+
| `model` | Pin a model alias (`opus`, `sonnet`, `haiku`); omit to inherit. |
|
|
65
|
+
| `tools` | Restrict the tool set (read-only reviewers get no edit tools). |
|
|
66
|
+
| `maxTurns` | Cap turns for bounded jobs. |
|
|
67
|
+
| `memory`, `isolation`, `omitClaudeMd` | Persistent memory, worktree isolation, skip loading CLAUDE.md. |
|
|
68
|
+
|
|
69
|
+
## Writing Effective Descriptions
|
|
70
|
+
|
|
71
|
+
The description is **critical** - the AI uses it to decide when to delegate.
|
|
72
|
+
|
|
73
|
+
```yaml
|
|
74
|
+
# ❌ Too vague
|
|
75
|
+
description: Helps with code
|
|
76
|
+
|
|
77
|
+
# ✅ Specific and actionable
|
|
78
|
+
description: Expert code review specialist. Proactively reviews code for quality, security, and maintainability. Use immediately after writing or modifying code.
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
Say when delegating pays — a sizeable, independent track, or verbose output the main context does not need. Add "use proactively" only when the agent visibly under-delegates; current models delegate readily, and a blanket booster pulls small tasks into subagents.
|
|
82
|
+
|
|
83
|
+
## Example Subagents
|
|
84
|
+
|
|
85
|
+
### Code Reviewer
|
|
86
|
+
|
|
87
|
+
```markdown
|
|
88
|
+
---
|
|
89
|
+
name: code-reviewer
|
|
90
|
+
description: Expert code review specialist. Proactively reviews code for quality, security, and maintainability. Use immediately after writing or modifying code.
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
You are a senior code reviewer ensuring high standards of code quality and security.
|
|
94
|
+
|
|
95
|
+
When invoked:
|
|
96
|
+
1. Run git diff to see recent changes
|
|
97
|
+
2. Focus on modified files
|
|
98
|
+
3. Begin review immediately
|
|
99
|
+
|
|
100
|
+
Review for correctness and requirement gaps: logic errors, unhandled failure paths, exposed secrets or keys, missing input validation, and behavior the task asked for that is absent. Mention style only where it hides a bug. Tie each finding to a file and line and say what input or state makes it fail.
|
|
101
|
+
|
|
102
|
+
Provide feedback organized by priority:
|
|
103
|
+
- Critical issues (must fix)
|
|
104
|
+
- Warnings (should fix)
|
|
105
|
+
- Suggestions (consider improving)
|
|
106
|
+
|
|
107
|
+
Include specific examples of how to fix issues.
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
### Debugger
|
|
111
|
+
|
|
112
|
+
```markdown
|
|
113
|
+
---
|
|
114
|
+
name: debugger
|
|
115
|
+
description: Debugging specialist for errors, test failures, and unexpected behavior. Use proactively when encountering any issues.
|
|
116
|
+
---
|
|
117
|
+
|
|
118
|
+
You are an expert debugger specializing in root cause analysis.
|
|
119
|
+
|
|
120
|
+
When invoked:
|
|
121
|
+
1. Capture error message and stack trace
|
|
122
|
+
2. Identify reproduction steps
|
|
123
|
+
3. Isolate the failure location
|
|
124
|
+
4. Implement minimal fix
|
|
125
|
+
5. Verify solution works
|
|
126
|
+
|
|
127
|
+
Debugging process:
|
|
128
|
+
- Analyze error messages and logs
|
|
129
|
+
- Check recent code changes
|
|
130
|
+
- Form and test hypotheses
|
|
131
|
+
- Add strategic debug logging
|
|
132
|
+
- Inspect variable states
|
|
133
|
+
|
|
134
|
+
For each issue, provide:
|
|
135
|
+
- Root cause explanation
|
|
136
|
+
- Evidence supporting the diagnosis
|
|
137
|
+
- Specific code fix
|
|
138
|
+
- Testing approach
|
|
139
|
+
- Prevention recommendations
|
|
140
|
+
|
|
141
|
+
Focus on fixing the underlying issue, not the symptoms.
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
### Data Scientist
|
|
145
|
+
|
|
146
|
+
```markdown
|
|
147
|
+
---
|
|
148
|
+
name: data-scientist
|
|
149
|
+
description: Data analysis expert for SQL queries, BigQuery operations, and data insights. Use proactively for data analysis tasks and queries.
|
|
150
|
+
---
|
|
151
|
+
|
|
152
|
+
You are a data scientist specializing in SQL and BigQuery analysis.
|
|
153
|
+
|
|
154
|
+
When invoked:
|
|
155
|
+
1. Understand the data analysis requirement
|
|
156
|
+
2. Write efficient SQL queries
|
|
157
|
+
3. Use BigQuery command line tools (bq) when appropriate
|
|
158
|
+
4. Analyze and summarize results
|
|
159
|
+
5. Present findings clearly
|
|
160
|
+
|
|
161
|
+
Key practices:
|
|
162
|
+
- Write optimized SQL queries with proper filters
|
|
163
|
+
- Use appropriate aggregations and joins
|
|
164
|
+
- Include comments explaining complex logic
|
|
165
|
+
- Format results for readability
|
|
166
|
+
- Provide data-driven recommendations
|
|
167
|
+
|
|
168
|
+
For each analysis:
|
|
169
|
+
- Explain the query approach
|
|
170
|
+
- Document any assumptions
|
|
171
|
+
- Highlight key findings
|
|
172
|
+
- Suggest next steps based on data
|
|
173
|
+
|
|
174
|
+
Always ensure queries are efficient and cost-effective.
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
## Subagent Creation Workflow
|
|
178
|
+
|
|
179
|
+
### Step 1: Decide the Scope
|
|
180
|
+
|
|
181
|
+
- **Project-level** (`.cursor/agents/`): For codebase-specific agents shared with team
|
|
182
|
+
- **User-level** (`~/.cursor/agents/`): For personal agents across all projects
|
|
183
|
+
|
|
184
|
+
### Step 2: Create the File
|
|
185
|
+
|
|
186
|
+
```bash
|
|
187
|
+
# For project-level
|
|
188
|
+
mkdir -p .cursor/agents
|
|
189
|
+
touch .cursor/agents/my-agent.md
|
|
190
|
+
|
|
191
|
+
# For user-level
|
|
192
|
+
mkdir -p ~/.cursor/agents
|
|
193
|
+
touch ~/.cursor/agents/my-agent.md
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
### Step 3: Define Configuration
|
|
197
|
+
|
|
198
|
+
Write the frontmatter with the required fields (`name` and `description`).
|
|
199
|
+
|
|
200
|
+
### Step 4: Write the System Prompt
|
|
201
|
+
|
|
202
|
+
The body becomes the system prompt. Be specific about:
|
|
203
|
+
- What the agent should do when invoked
|
|
204
|
+
- Outcomes, constraints, and how to verify (exact steps only for fragile operations); reviewer and judge agents flag only correctness and requirement gaps
|
|
205
|
+
- Output format and structure
|
|
206
|
+
- Any constraints or guidelines
|
|
207
|
+
|
|
208
|
+
### Step 5: Test the Agent
|
|
209
|
+
|
|
210
|
+
Ask the AI to use your new agent:
|
|
211
|
+
|
|
212
|
+
```
|
|
213
|
+
Use the my-agent subagent to [task description]
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
## Best Practices
|
|
217
|
+
|
|
218
|
+
1. **Design focused subagents**: Each should excel at one specific task
|
|
219
|
+
2. **Write detailed descriptions**: Include trigger terms so the AI knows when to delegate
|
|
220
|
+
3. **Check into version control**: Share project subagents with your team
|
|
221
|
+
4. **Describe when delegation pays**: the description is what the main agent reads to decide; state the track size and independence it needs, not a blanket "use proactively"
|
|
222
|
+
|
|
223
|
+
## Troubleshooting
|
|
224
|
+
|
|
225
|
+
### Subagent Not Found
|
|
226
|
+
- Ensure file is in `.cursor/agents/` or `~/.cursor/agents/`
|
|
227
|
+
- Check file has `.md` extension
|
|
228
|
+
- Verify YAML frontmatter syntax is valid
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: migrate-to-skills
|
|
3
|
+
description: Convert 'Applied intelligently' Cursor rules (.cursor/rules/*.mdc) and slash commands (.cursor/commands/*.md) to Agent Skills format (.cursor/skills/). Use when the user wants to migrate rules or commands to skills, convert .mdc rules to SKILL.md format, or consolidate commands into the skills directory.
|
|
4
|
+
disable-model-invocation: true
|
|
5
|
+
effort: low
|
|
6
|
+
---
|
|
7
|
+
# Migrate Rules and Slash Commands to Skills
|
|
8
|
+
|
|
9
|
+
Convert Cursor rules ("Applied intelligently") and slash commands to Agent Skills format.
|
|
10
|
+
|
|
11
|
+
Copy each body verbatim — byte for byte, whitespace and typos included. The content is the user's, and an exact copy is what makes the migration reversible.
|
|
12
|
+
|
|
13
|
+
## Locations
|
|
14
|
+
|
|
15
|
+
| Level | Source | Destination |
|
|
16
|
+
|-------|--------|-------------|
|
|
17
|
+
| Project | `{workspaceFolder}/**/.cursor/rules/*.mdc`, `{workspaceFolder}/.cursor/commands/*.md` |
|
|
18
|
+
| User | `~/.cursor/commands/*.md` |
|
|
19
|
+
|
|
20
|
+
Notes:
|
|
21
|
+
- Cursor rules inside the project can live in nested directories; glob `**/.cursor/rules/*.mdc` from the workspace root so none are missed.
|
|
22
|
+
- Ignore anything in ~/.cursor/worktrees
|
|
23
|
+
- Ignore anything in ~/.cursor/skills-cursor. This is reserved for Cursor's internal built-in skills and is managed automatically by the system.
|
|
24
|
+
|
|
25
|
+
## Finding Files to Migrate
|
|
26
|
+
|
|
27
|
+
**Rules**: Migrate if rule has a `description` but NO `globs` and NO `alwaysApply: true`.
|
|
28
|
+
|
|
29
|
+
**Commands**: Migrate all - they're plain markdown without frontmatter.
|
|
30
|
+
|
|
31
|
+
## Conversion Format
|
|
32
|
+
|
|
33
|
+
### Rules: .mdc → SKILL.md
|
|
34
|
+
|
|
35
|
+
```markdown
|
|
36
|
+
# Before: .cursor/rules/my-rule.mdc
|
|
37
|
+
---
|
|
38
|
+
description: What this rule does
|
|
39
|
+
globs:
|
|
40
|
+
alwaysApply: false
|
|
41
|
+
---
|
|
42
|
+
# Title
|
|
43
|
+
Body content...
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
```markdown
|
|
47
|
+
# After: .cursor/skills/my-rule/SKILL.md
|
|
48
|
+
---
|
|
49
|
+
name: my-rule
|
|
50
|
+
description: What this rule does
|
|
51
|
+
---
|
|
52
|
+
# Title
|
|
53
|
+
Body content...
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Changes: Add `name` field, remove `globs`/`alwaysApply`, keep body exactly.
|
|
57
|
+
|
|
58
|
+
### Commands: .md → SKILL.md
|
|
59
|
+
|
|
60
|
+
```markdown
|
|
61
|
+
# Before: .cursor/commands/commit.md
|
|
62
|
+
# Commit current work
|
|
63
|
+
Instructions here...
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
```markdown
|
|
67
|
+
# After: .cursor/skills/commit/SKILL.md
|
|
68
|
+
---
|
|
69
|
+
name: commit
|
|
70
|
+
description: Commit current work with standardized message format
|
|
71
|
+
disable-model-invocation: true
|
|
72
|
+
---
|
|
73
|
+
# Commit current work
|
|
74
|
+
Instructions here...
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Changes: Add frontmatter with `name` (from filename), `description` (infer from content), and `disable-model-invocation: true`, keep body exactly.
|
|
78
|
+
|
|
79
|
+
**Note:** `disable-model-invocation: true` keeps the model from invoking the skill on its own and keeps its description out of the always-on skill roster that every request pays for. Slash commands are user-triggered from the `/` menu, so migrated commands carry it.
|
|
80
|
+
|
|
81
|
+
## Notes
|
|
82
|
+
|
|
83
|
+
- `name` must be lowercase with hyphens only
|
|
84
|
+
- `description` is critical for skill discovery
|
|
85
|
+
- The workflow below deletes originals after the skill file is written; the user can ask to undo, which restores them
|
|
86
|
+
|
|
87
|
+
### Migrate a Rule (.mdc → SKILL.md)
|
|
88
|
+
|
|
89
|
+
1. Read the rule file
|
|
90
|
+
2. Extract the `description` from the frontmatter
|
|
91
|
+
3. Extract the body content (everything after the closing `---` of the frontmatter)
|
|
92
|
+
4. Create the skill directory: `.cursor/skills/{skill-name}/` (skill name = filename without .mdc)
|
|
93
|
+
5. Write `SKILL.md` with new frontmatter (`name` and `description`) + the EXACT original body content (preserve all whitespace, formatting, code blocks verbatim)
|
|
94
|
+
6. Delete the original rule file
|
|
95
|
+
|
|
96
|
+
### Migrate a Command (.md → SKILL.md)
|
|
97
|
+
|
|
98
|
+
1. Read the command file
|
|
99
|
+
2. Extract description from the first heading (remove `#` prefix)
|
|
100
|
+
3. Create the skill directory: `.cursor/skills/{skill-name}/` (skill name = filename without .md)
|
|
101
|
+
4. Write `SKILL.md` with new frontmatter (`name`, `description`, and `disable-model-invocation: true`) + blank line + the EXACT original file content (preserve all whitespace, formatting, code blocks verbatim)
|
|
102
|
+
5. Delete the original command file
|
|
103
|
+
|
|
104
|
+
## Workflow
|
|
105
|
+
|
|
106
|
+
Use the read, edit, and delete tools for these files rather than the terminal: they preserve bytes exactly and keep every change undoable.
|
|
107
|
+
|
|
108
|
+
If you have the Task tool available, delegate the file work so the main context stays free of file contents. Dispatch three general-purpose subagents in parallel (not Explore — it is read-only), one each for project rules (`{workspaceFolder}/**/.cursor/rules/*.mdc`), user commands (`~/.cursor/commands/*.md`), and project commands (`{workspaceFolder}/**/.cursor/commands/*.md`). The work is mechanical; low effort is enough. Each subagent:
|
|
109
|
+
I. [ ] Finds files to migrate in its pattern
|
|
110
|
+
II. [ ] For rules, keeps only "applied intelligently" rules (has `description`, no `globs`, no `alwaysApply: true`). Commands are always migrated.
|
|
111
|
+
III. [ ] Lists the files to migrate. If empty, done.
|
|
112
|
+
IV. [ ] For each file, reads it, then writes the new skill file with the body verbatim.
|
|
113
|
+
V. [ ] Deletes the original file.
|
|
114
|
+
VI. [ ] Returns the migrated skill paths with their original paths.
|
|
115
|
+
|
|
116
|
+
1. [ ] Create the skills directories if they don't exist (`.cursor/skills/` for project, `~/.cursor/skills/` for user)
|
|
117
|
+
2. [ ] Dispatch the subagents and wait for all of them
|
|
118
|
+
3. [ ] Summarize the results and tell the user they can ask you to undo the migration
|
|
119
|
+
4. [ ] If asked to undo, reverse the steps to restore the original files
|
|
120
|
+
|
|
121
|
+
If you don't have the Task tool available, do step 1, then I–V yourself across both project (`.cursor/`) and user (`~/.cursor/`) directories, then steps 3–4.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: shell
|
|
3
|
+
description: Run the rest of a /shell request as a literal shell command. Use only when the user explicitly invokes /shell and wants the following text executed directly in the terminal.
|
|
4
|
+
disable-model-invocation: true
|
|
5
|
+
effort: low
|
|
6
|
+
---
|
|
7
|
+
# Run Shell Commands
|
|
8
|
+
|
|
9
|
+
Use this skill only when the user explicitly invokes `/shell`.
|
|
10
|
+
|
|
11
|
+
## Behavior
|
|
12
|
+
|
|
13
|
+
1. Treat all user text after the `/shell` invocation as the literal shell command to run.
|
|
14
|
+
2. Execute that command immediately with the terminal tool.
|
|
15
|
+
3. Do not rewrite, explain, or "improve" the command before running it.
|
|
16
|
+
4. Do not inspect the repository first unless the command itself requires repository context.
|
|
17
|
+
5. If the user invokes `/shell` without any following text, ask them which command to run.
|
|
18
|
+
|
|
19
|
+
## Response
|
|
20
|
+
|
|
21
|
+
- Run the command first.
|
|
22
|
+
- Then briefly report the exit status and any important stdout or stderr.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: split-to-prs
|
|
3
|
+
description: >
|
|
4
|
+
Split current work into small reviewable PRs. Use when the user asks
|
|
5
|
+
to split a chat, branch, or change set. Whole dirty tree to one
|
|
6
|
+
merge-ready PR → workflow-release-prep.
|
|
7
|
+
disable-model-invocation: true
|
|
8
|
+
---
|
|
9
|
+
# Split to PRs
|
|
10
|
+
|
|
11
|
+
Turn one pile of work into a few small PRs.
|
|
12
|
+
|
|
13
|
+
## Hard rules
|
|
14
|
+
|
|
15
|
+
- Do not create branches, commit, push, or open PRs until the user approves the split plan.
|
|
16
|
+
- Never discard user work. No destructive git commands (`reset --hard`, `clean -fdx`, branch deletion, force-push, history rewrite) without explicit approval.
|
|
17
|
+
- Always save a recoverable snapshot before moving work around. This often starts from dirty work on `main`, so do not assume there is already a safe branch.
|
|
18
|
+
- Stage only named files or hunks. No `git add .` / `git add -A`.
|
|
19
|
+
|
|
20
|
+
## 1. Check the state
|
|
21
|
+
|
|
22
|
+
Compare the current work to the repo's default branch, including committed and uncommitted changes. Summarize the real slices you see, and use the chat history to recover intent.
|
|
23
|
+
|
|
24
|
+
## 2. Propose the split
|
|
25
|
+
|
|
26
|
+
Use judgment on detail. Usually PR titles are enough. Add a one-line scope note only when a title is unclear. Show a Mermaid diagram when there are multiple slices.
|
|
27
|
+
|
|
28
|
+
Default to independent PRs off the default branch. Stack PRs only when the dependency is real.
|
|
29
|
+
|
|
30
|
+
Ask for approval before starting.
|
|
31
|
+
|
|
32
|
+
## 3. Execute the split
|
|
33
|
+
|
|
34
|
+
- If there is uncommitted work, save a recoverable snapshot without changing the working tree:
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
SHA=$(git stash create "pre-split")
|
|
38
|
+
if [ -n "$SHA" ]; then
|
|
39
|
+
git update-ref "refs/backup/pre-split-$(date +%s)" "$SHA"
|
|
40
|
+
fi
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
- For each approved slice, create a branch from the right base, stage and commit only the planned files or hunks, then push and open the PR.
|
|
44
|
+
|
|
45
|
+
## 4. Report back
|
|
46
|
+
|
|
47
|
+
Keep it short: PR titles and URLs, plus anything left on the starting branch or working tree. Do not delete the backup ref or original branch unless the user asks.
|