shmakk 1.1.0 → 1.2.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/README.md +16 -1
- package/package.json +6 -3
- package/scripts/import-skills.js +536 -0
- package/scripts/install-skills.js +64 -0
- package/skills/ai-elements.md +482 -0
- package/skills/architecture.md +151 -0
- package/skills/backend-adapter-aws-lambda.md +204 -0
- package/skills/backend-adapter-express.md +177 -0
- package/skills/backend-adapter-fastify.md +222 -0
- package/skills/backend-adapter-fetch.md +200 -0
- package/skills/backend-api-docs.md +22 -0
- package/skills/backend-aspire.md +232 -0
- package/skills/backend-aspnet-core.md +62 -0
- package/skills/backend-build-chatgpt-app.md +321 -0
- package/skills/backend-build-mcp-app.md +393 -0
- package/skills/backend-build-mcp-server.md +222 -0
- package/skills/backend-build-mcpb.md +200 -0
- package/skills/backend-building-ai-agent-on-cloudflare.md +401 -0
- package/skills/backend-caching.md +206 -0
- package/skills/backend-chatgpt-app-submission.md +157 -0
- package/skills/backend-chatgpt-apps.md +321 -0
- package/skills/backend-client-setup.md +318 -0
- package/skills/backend-containerize-aspnet-framework.md +455 -0
- package/skills/backend-create-spring-boot-java-project.md +164 -0
- package/skills/backend-create-spring-boot-kotlin-project.md +148 -0
- package/skills/backend-csharp-async.md +50 -0
- package/skills/backend-csharp-docs.md +63 -0
- package/skills/backend-csharp-mcp-server-generator.md +60 -0
- package/skills/backend-dotenv.md +201 -0
- package/skills/backend-dotenvx.md +119 -0
- package/skills/backend-env-vars.md +259 -0
- package/skills/backend-error-handling.md +254 -0
- package/skills/backend-fastapi.md +437 -0
- package/skills/backend-go-mcp-server-generator.md +335 -0
- package/skills/backend-java-mcp-server-generator.md +757 -0
- package/skills/backend-kotlin-mcp-server-generator.md +450 -0
- package/skills/backend-middlewares.md +243 -0
- package/skills/backend-multi-stage-dockerfile.md +47 -0
- package/skills/backend-nestjs.md +192 -0
- package/skills/backend-next-forge.md +375 -0
- package/skills/backend-nextjs.md +746 -0
- package/skills/backend-openapi-to-application-code.md +113 -0
- package/skills/backend-php-mcp-server-generator.md +523 -0
- package/skills/backend-python-mcp-server-generator.md +106 -0
- package/skills/backend-routing-middleware.md +251 -0
- package/skills/backend-ruby-mcp-server-generator.md +661 -0
- package/skills/backend-rust-mcp-server-generator.md +578 -0
- package/skills/backend-semantic-kernel.md +57 -0
- package/skills/backend-server-setup.md +379 -0
- package/skills/backend-server-side-calls.md +250 -0
- package/skills/backend-subscriptions.md +407 -0
- package/skills/backend-swift-mcp-server-generator.md +670 -0
- package/skills/backend-trpc-router.md +152 -0
- package/skills/backend-typescript-mcp-server-generator.md +91 -0
- package/skills/backend-validators.md +229 -0
- package/skills/backend.md +76 -0
- package/skills/backup.md +165 -0
- package/skills/budget.md +140 -0
- package/skills/business-gtm-0-to-1-launch.md +322 -0
- package/skills/business-gtm-operating-cadence.md +421 -0
- package/skills/business-gtm-positioning-strategy.md +439 -0
- package/skills/business-gtm-product-led-growth.md +340 -0
- package/skills/calendar.md +95 -0
- package/skills/code-review.md +130 -0
- package/skills/compliance.md +168 -0
- package/skills/contracts.md +130 -0
- package/skills/daily-job-run.md +46 -0
- package/skills/daily-webdesign.md +187 -0
- package/skills/database-bigquery-pipeline-audit.md +130 -0
- package/skills/database-cosmosdb-datamodeling.md +1046 -0
- package/skills/database-durable-objects.md +187 -0
- package/skills/database-ef-core.md +76 -0
- package/skills/database-fabric-lakehouse.md +107 -0
- package/skills/database-neon-postgres-egress-optimizer.md +213 -0
- package/skills/database-neon-postgres.md +218 -0
- package/skills/database-postgresql-code-review.md +213 -0
- package/skills/database-postgresql-optimization.md +405 -0
- package/skills/database-sql-code-review.md +302 -0
- package/skills/database-sql-optimization.md +297 -0
- package/skills/dependency-audit.md +165 -0
- package/skills/design-kami-landing.md +234 -0
- package/skills/design.md +221 -0
- package/skills/dev-acquire-codebase-knowledge.md +175 -0
- package/skills/dev-add-educational-comments.md +129 -0
- package/skills/dev-add-model-descriptions.md +74 -0
- package/skills/dev-adr-review.md +56 -0
- package/skills/dev-boost-prompt.md +26 -0
- package/skills/dev-build-run-debug.md +130 -0
- package/skills/dev-chunk.md +49 -0
- package/skills/dev-claude-md-improver.md +180 -0
- package/skills/dev-code-exemplars-blueprint-generator.md +127 -0
- package/skills/dev-code-tour.md +434 -0
- package/skills/dev-comment-code-generate-a-tutorial.md +27 -0
- package/skills/dev-commit.md +81 -0
- package/skills/dev-context-map.md +53 -0
- package/skills/dev-conventional-commit.md +73 -0
- package/skills/dev-create-architectural-decision-record.md +98 -0
- package/skills/dev-create-draft-pr.md +17 -0
- package/skills/dev-create-pr.md +17 -0
- package/skills/dev-create-readme.md +22 -0
- package/skills/dev-csharp-mstest.md +479 -0
- package/skills/dev-csharp-nunit.md +72 -0
- package/skills/dev-csharp-tunit.md +101 -0
- package/skills/dev-csharp-xunit.md +69 -0
- package/skills/dev-debug-failing-test.md +90 -0
- package/skills/dev-diff-analyze.md +32 -0
- package/skills/dev-diffs.md +24 -0
- package/skills/dev-dotnet-best-practices.md +86 -0
- package/skills/dev-dotnet-design-pattern-review.md +43 -0
- package/skills/dev-dotnet-timezone.md +110 -0
- package/skills/dev-dotnet-upgrade.md +117 -0
- package/skills/dev-doublecheck.md +278 -0
- package/skills/dev-explain-error.md +15 -0
- package/skills/dev-finding-discovery.md +164 -0
- package/skills/dev-fix-finding.md +111 -0
- package/skills/dev-full-file-edit.md +25 -0
- package/skills/dev-git-commit.md +125 -0
- package/skills/dev-git-flow-branch-creator.md +293 -0
- package/skills/dev-git-workflow.md +46 -0
- package/skills/dev-github-automation.md +64 -0
- package/skills/dev-github-code-review.md +1140 -0
- package/skills/dev-github-issues.md +202 -0
- package/skills/dev-gpt-5-4-prompting.md +55 -0
- package/skills/dev-investigation-mode.md +277 -0
- package/skills/dev-java-add-graalvm-native-image-support.md +450 -0
- package/skills/dev-java-docs.md +24 -0
- package/skills/dev-java-refactoring-extract-method.md +105 -0
- package/skills/dev-java-refactoring-remove-parameter.md +85 -0
- package/skills/dev-merge.md +73 -0
- package/skills/dev-migrate-create.md +36 -0
- package/skills/dev-migrate-validate.md +36 -0
- package/skills/dev-my-issues.md +9 -0
- package/skills/dev-my-pull-requests.md +15 -0
- package/skills/dev-planning-oracle-to-postgres-migration-integration-testing.md +45 -0
- package/skills/dev-playwright-generate-test.md +18 -0
- package/skills/dev-playwright.md +148 -0
- package/skills/dev-prompt-builder.md +142 -0
- package/skills/dev-pytest-coverage.md +29 -0
- package/skills/dev-python-manager-discovery.md +330 -0
- package/skills/dev-python-pypi-package-builder.md +445 -0
- package/skills/dev-readme-blueprint-generator.md +79 -0
- package/skills/dev-refactor-method-complexity-reduce.md +99 -0
- package/skills/dev-refactor-plan.md +66 -0
- package/skills/dev-refactor.md +646 -0
- package/skills/dev-review-and-refactor.md +16 -0
- package/skills/dev-reviewing-oracle-to-postgres-migration.md +68 -0
- package/skills/dev-ruff-recursive-fix.md +201 -0
- package/skills/dev-run-e2e-tests.md +126 -0
- package/skills/dev-run-pre-commit-checks.md +133 -0
- package/skills/dev-run-smoke-tests.md +127 -0
- package/skills/dev-scaffolding-oracle-to-postgres-migration-test-project.md +55 -0
- package/skills/dev-spring-boot-testing.md +190 -0
- package/skills/dev-sync-upstream.md +32 -0
- package/skills/dev-sync.md +74 -0
- package/skills/dev-tdd-workflow.md +23 -0
- package/skills/dev-terraform-azurerm-set-diff-analyzer.md +49 -0
- package/skills/dev-test-driven-development.md +372 -0
- package/skills/dev-test-gaps.md +18 -0
- package/skills/dev-test-triage.md +55 -0
- package/skills/dev-typer.md +267 -0
- package/skills/dev-typescript-setup.md +25 -0
- package/skills/dev-unified-diff-edit.md +16 -0
- package/skills/dev-unit-test-vue-pinia.md +198 -0
- package/skills/dev-using-git-worktrees.md +216 -0
- package/skills/dev-validation.md +99 -0
- package/skills/dev-verification.md +168 -0
- package/skills/dev-webapp-testing.md +134 -0
- package/skills/dev-write-coding-standards-from-file.md +317 -0
- package/skills/dev-write-tests.md +16 -0
- package/skills/devops-appinsights-instrumentation.md +49 -0
- package/skills/devops-az-cost-optimize.md +306 -0
- package/skills/devops-chronicle.md +154 -0
- package/skills/devops-deployments-cicd.md +331 -0
- package/skills/devops-devops-rollout-plan.md +118 -0
- package/skills/devops-geistdocs.md +276 -0
- package/skills/devops-observability.md +774 -0
- package/skills/devops-observe-metrics.md +35 -0
- package/skills/devops-observe-trace.md +30 -0
- package/skills/devops-phoenix-cli.md +163 -0
- package/skills/devops-phoenix-tracing.md +140 -0
- package/skills/devops-publish-to-pages.md +108 -0
- package/skills/devops-telemetry.md +87 -0
- package/skills/devops-update-avm-modules-in-bicep.md +61 -0
- package/skills/devops.md +81 -0
- package/skills/diagrams-canvas.md +204 -0
- package/skills/diagrams-draw-io-diagram-generator.md +463 -0
- package/skills/diagrams-excalidraw-diagram-generator.md +614 -0
- package/skills/diagrams-graphify.md +1277 -0
- package/skills/docs-bear-notes.md +108 -0
- package/skills/docs-create-llms.md +211 -0
- package/skills/docs-doc-gen.md +20 -0
- package/skills/docs-documentation-writer.md +46 -0
- package/skills/docs-llm-config.md +33 -0
- package/skills/docs-mkdocs-translations.md +109 -0
- package/skills/docs-obsidian-vault-maintainer.md +14 -0
- package/skills/docs-obsidian.md +82 -0
- package/skills/docs-prose.md +324 -0
- package/skills/docs-update-llms.md +217 -0
- package/skills/docs-update-markdown-file-index.md +77 -0
- package/skills/docs-wiki-maintainer.md +20 -0
- package/skills/documents.md +120 -0
- package/skills/email.md +113 -0
- package/skills/expenses.md +140 -0
- package/skills/file-ops.md +149 -0
- package/skills/files-convert-plaintext-to-md.md +363 -0
- package/skills/files-doc.md +81 -0
- package/skills/files-docx.md +594 -0
- package/skills/files-markdown-to-html.md +917 -0
- package/skills/files-nano-pdf.md +39 -0
- package/skills/files-pdf.md +315 -0
- package/skills/files-pdftk-server.md +163 -0
- package/skills/files-pptx-html-fidelity-audit.md +255 -0
- package/skills/files-pptx.md +231 -0
- package/skills/files-xlsx.md +301 -0
- package/skills/find-jobs.md +78 -0
- package/skills/format-conversion.md +157 -0
- package/skills/frontend-ai-elements.md +483 -0
- package/skills/frontend-ai-gateway.md +563 -0
- package/skills/frontend-ai-generation-persistence.md +242 -0
- package/skills/frontend-ai-sdk.md +799 -0
- package/skills/frontend-ai-visibility.md +127 -0
- package/skills/frontend-angular-developer.md +130 -0
- package/skills/frontend-aspnet-minimal-api-openapi.md +42 -0
- package/skills/frontend-bencium-innovative-ux-designer.md +719 -0
- package/skills/frontend-chat-sdk.md +666 -0
- package/skills/frontend-chrome-devtools.md +98 -0
- package/skills/frontend-frontend-app-builder.md +186 -0
- package/skills/frontend-frontend-design.md +43 -0
- package/skills/frontend-frontend-testing-debugging.md +143 -0
- package/skills/frontend-gsap-framer-scroll-animation.md +152 -0
- package/skills/frontend-internal-linking.md +109 -0
- package/skills/frontend-json-render.md +335 -0
- package/skills/frontend-keyword-clustering.md +118 -0
- package/skills/frontend-next-intl-add-language.md +20 -0
- package/skills/frontend-on-page-seo.md +112 -0
- package/skills/frontend-premium-frontend-ui.md +114 -0
- package/skills/frontend-react-best-practices.md +143 -0
- package/skills/frontend-schema-markup.md +160 -0
- package/skills/frontend-seo-audit.md +110 -0
- package/skills/frontend-swr.md +215 -0
- package/skills/frontend-technical-seo.md +162 -0
- package/skills/frontend-use-dom.md +418 -0
- package/skills/frontend-web-coder.md +564 -0
- package/skills/frontend-web-design-reviewer.md +369 -0
- package/skills/frontend-web-perf.md +202 -0
- package/skills/frontend.md +125 -0
- package/skills/general-adapter-standalone.md +199 -0
- package/skills/general-auth.md +356 -0
- package/skills/general-containerize-aspnetcore.md +393 -0
- package/skills/general-create-technical-spike.md +231 -0
- package/skills/general-cron-jobs.md +72 -0
- package/skills/general-ddd-aggregate.md +52 -0
- package/skills/general-ddd-context.md +46 -0
- package/skills/general-ddd-validate.md +51 -0
- package/skills/general-dependency-check.md +26 -0
- package/skills/general-email-marketing.md +86 -0
- package/skills/general-healthcheck.md +246 -0
- package/skills/general-import-infrastructure-as-code.md +368 -0
- package/skills/general-init.md +49 -0
- package/skills/general-java-junit.md +64 -0
- package/skills/general-java-springboot.md +66 -0
- package/skills/general-javascript-typescript-jest.md +45 -0
- package/skills/general-kotlin-springboot.md +71 -0
- package/skills/general-make-repo-contribution.md +91 -0
- package/skills/general-market-research.md +78 -0
- package/skills/general-marketplace.md +468 -0
- package/skills/general-model-recommendation.md +673 -0
- package/skills/general-payments.md +352 -0
- package/skills/general-quality-playbook.md +480 -0
- package/skills/general-run-integration-tests.md +113 -0
- package/skills/general-superjson.md +274 -0
- package/skills/general-swiftpm-macos.md +51 -0
- package/skills/general-threat-model.md +61 -0
- package/skills/invoices.md +167 -0
- package/skills/licenses.md +159 -0
- package/skills/logs.md +156 -0
- package/skills/marketing.md +139 -0
- package/skills/media-image-manipulation-image-magick.md +253 -0
- package/skills/media-imagegen.md +357 -0
- package/skills/media-openai-whisper-api.md +63 -0
- package/skills/media-openai-whisper.md +39 -0
- package/skills/media-peekaboo.md +191 -0
- package/skills/media-screenshot.md +268 -0
- package/skills/media-speech.md +145 -0
- package/skills/media-transcribe.md +82 -0
- package/skills/media-video-frames.md +47 -0
- package/skills/mobile-android-emulator-qa.md +81 -0
- package/skills/mobile-android-performance.md +280 -0
- package/skills/mobile-building-mcp-server-on-cloudflare.md +267 -0
- package/skills/mobile-building-native-ui.md +322 -0
- package/skills/mobile-expo-api-routes.md +369 -0
- package/skills/mobile-expo-cicd-workflows.md +92 -0
- package/skills/mobile-expo-deployment.md +191 -0
- package/skills/mobile-expo-dev-client.md +165 -0
- package/skills/mobile-expo-module.md +177 -0
- package/skills/mobile-expo-tailwind-setup.md +481 -0
- package/skills/mobile-expo-ui-jetpack-compose.md +41 -0
- package/skills/mobile-expo-ui-swift-ui.md +40 -0
- package/skills/mobile-ios-app-intents.md +78 -0
- package/skills/mobile-ios-debugger-agent.md +52 -0
- package/skills/mobile-ios-ettrace-performance.md +198 -0
- package/skills/mobile-ios-memgraph-leaks.md +77 -0
- package/skills/mobile-native-data-fetching.md +508 -0
- package/skills/mobile-packaging-notarization.md +48 -0
- package/skills/mobile-react-native-architecture.md +672 -0
- package/skills/mobile-react-native-mobile-design.md +438 -0
- package/skills/mobile-signing-entitlements.md +59 -0
- package/skills/mobile-swiftui-liquid-glass.md +91 -0
- package/skills/mobile-swiftui-patterns.md +210 -0
- package/skills/mobile-swiftui-performance-audit.md +108 -0
- package/skills/mobile-swiftui-ui-patterns.md +97 -0
- package/skills/mobile-swiftui-view-refactor.md +204 -0
- package/skills/mobile-upgrading-expo.md +134 -0
- package/skills/mobile.md +183 -0
- package/skills/notes.md +106 -0
- package/skills/planning-adr-create.md +62 -0
- package/skills/planning-adr-index.md +67 -0
- package/skills/planning-architecture-blueprint-generator.md +323 -0
- package/skills/planning-brainstorming.md +165 -0
- package/skills/planning-breakdown-epic-arch.md +67 -0
- package/skills/planning-breakdown-epic-pm.md +59 -0
- package/skills/planning-breakdown-feature-implementation.md +129 -0
- package/skills/planning-breakdown-feature-prd.md +62 -0
- package/skills/planning-breakdown-plan.md +510 -0
- package/skills/planning-breakdown-test.md +366 -0
- package/skills/planning-cloud-design-patterns.md +63 -0
- package/skills/planning-content-brief.md +128 -0
- package/skills/planning-content-strategy.md +138 -0
- package/skills/planning-content-translation.md +143 -0
- package/skills/planning-create-github-action-workflow-specification.md +277 -0
- package/skills/planning-create-github-issues-feature-from-implementation-plan.md +29 -0
- package/skills/planning-create-github-issues-for-unmet-specification-requirements.md +36 -0
- package/skills/planning-create-github-pull-request-from-specification.md +25 -0
- package/skills/planning-create-implementation-plan.md +158 -0
- package/skills/planning-create-specification.md +128 -0
- package/skills/planning-first-ask.md +31 -0
- package/skills/planning-folder-structure-blueprint-generator.md +406 -0
- package/skills/planning-gen-specs-as-issues.md +166 -0
- package/skills/planning-generate-snapshot.md +144 -0
- package/skills/planning-generate-status-report.md +336 -0
- package/skills/planning-metric-pack-designer.md +27 -0
- package/skills/planning-pm-spec.md +53 -0
- package/skills/planning-prd.md +144 -0
- package/skills/planning-project-assessment.md +182 -0
- package/skills/planning-project-setup-info-local.md +128 -0
- package/skills/planning-project-workflow-analysis-blueprint-generator.md +294 -0
- package/skills/planning-service-oriented-architecture.md +248 -0
- package/skills/planning-spec-to-backlog.md +544 -0
- package/skills/planning-technology-stack-blueprint-generator.md +243 -0
- package/skills/planning-update-implementation-plan.md +158 -0
- package/skills/planning-update-specification.md +128 -0
- package/skills/planning-what-context-needed.md +40 -0
- package/skills/planning-writing-plans.md +153 -0
- package/skills/prepare-application.md +81 -0
- package/skills/productivity-apple-notes.md +78 -0
- package/skills/productivity-apple-reminders.md +119 -0
- package/skills/productivity-capture-tasks-from-meeting-notes.md +680 -0
- package/skills/productivity-daily-prep.md +156 -0
- package/skills/productivity-email-drafter.md +101 -0
- package/skills/productivity-hr-onboarding.md +53 -0
- package/skills/productivity-things-mac.md +87 -0
- package/skills/productivity-update.md +169 -0
- package/skills/reminders.md +109 -0
- package/skills/research-dossier-collect.md +71 -0
- package/skills/research-kg-extract.md +37 -0
- package/skills/research-openai-docs.md +89 -0
- package/skills/research-research-add-items.md +31 -0
- package/skills/research-research-report.md +94 -0
- package/skills/research-research-synthesize.md +63 -0
- package/skills/research-summarize.md +88 -0
- package/skills/research-transformers-js.md +635 -0
- package/skills/research.md +119 -0
- package/skills/security-ai-prompt-engineering-safety-review.md +231 -0
- package/skills/security-attack-path-analysis.md +182 -0
- package/skills/security-gdpr-compliant.md +284 -0
- package/skills/security-mcp-security-audit.md +279 -0
- package/skills/security-pii-detect.md +31 -0
- package/skills/security-secret-scanning.md +243 -0
- package/skills/security-security-best-practices.md +87 -0
- package/skills/security-security-ownership-map.md +207 -0
- package/skills/security-security-review.md +169 -0
- package/skills/security-security-scan.md +138 -0
- package/skills/security-security-threat-model.md +82 -0
- package/skills/security-threat-model-analyst.md +76 -0
- package/skills/sysmon.md +181 -0
- package/skills/system-arch-linux-triage.md +32 -0
- package/skills/system-centos-linux-triage.md +32 -0
- package/skills/system-debian-linux-triage.md +32 -0
- package/skills/system-fedora-linux-triage.md +32 -0
- package/skills/system-geofeed-tuner.md +865 -0
- package/skills/system-iot-anomalies.md +15 -0
- package/skills/system-iot-firmware.md +16 -0
- package/skills/system-iot-fleet.md +14 -0
- package/skills/system-iot-register.md +19 -0
- package/skills/system-iot-witness-verify.md +15 -0
- package/skills/system-tmux.md +171 -0
- package/skills/system-window-management.md +228 -0
- package/skills/task-management.md +90 -0
- package/skills/tasks.md +102 -0
- package/skills/test-coverage.md +188 -0
- package/skills/ux-ui.md +128 -0
- package/skills/web.md +186 -0
- package/skills/workflow-act-on-feedback.md +15 -0
- package/skills/workflow-automate-this.md +245 -0
- package/skills/workflow-autoresearch.md +276 -0
- package/skills/workflow-coding-agent.md +317 -0
- package/skills/workflow-deep-research.md +44 -0
- package/skills/workflow-dispatching-parallel-agents.md +183 -0
- package/skills/workflow-eval-driven-dev.md +148 -0
- package/skills/workflow-executing-plans.md +71 -0
- package/skills/workflow-mentoring-juniors.md +311 -0
- package/skills/workflow-receiving-code-review.md +214 -0
- package/skills/workflow-repo-story-time.md +155 -0
- package/skills/workflow-requesting-code-review.md +104 -0
- package/skills/workflow-session-report.md +43 -0
- package/skills/workflow-structured-autonomy-generate.md +126 -0
- package/skills/workflow-subagent-driven-development.md +280 -0
- package/skills/writing.md +106 -0
- package/src/agent.js +0 -0
- package/src/browser.js +297 -0
- package/src/cli.js +25 -4
- package/src/code-reviewer.js +119 -0
- package/src/completions.js +1 -1
- package/src/control.js +222 -30
- package/src/coordinator.js +303 -0
- package/src/correction.js +29 -8
- package/src/edit-tracker.js +21 -0
- package/src/edit-viewer.js +414 -0
- package/src/endpoints.js +64 -15
- package/src/index.js +45 -11
- package/src/llm.js +86 -2
- package/src/mcp-client.js +416 -0
- package/src/memory.js +182 -0
- package/src/planner.js +216 -0
- package/src/rules.js +90 -0
- package/src/self-commands.js +757 -0
- package/src/services/voice.js +10 -7
- package/src/session-search.js +427 -0
- package/src/session.js +487 -99
- package/src/shmakk-server.js +91 -0
- package/src/skills.js +410 -3
- package/src/subagent.js +4 -1
- package/src/system-prompt.js +13 -5
- package/src/task-file.js +114 -0
- package/src/taskClassifier.js +246 -0
- package/src/team.js +752 -0
- package/src/tools.js +142 -21
- package/src/web.js +35 -5
- package/src/workflows.js +261 -0
- package/src/workspace-index.js +25 -6
package/README.md
CHANGED
|
@@ -93,6 +93,20 @@ Switch profiles mid-session:
|
|
|
93
93
|
shmakk --profile-set deep
|
|
94
94
|
```
|
|
95
95
|
|
|
96
|
+
## Skills
|
|
97
|
+
|
|
98
|
+
Skills are task-specific markdown files loaded into the agent's context on demand. The `skills/` directory contains 32 built-in skills covering areas like `code-review`, `research`, `backend`, `devops`, `sysmon`, `logs`, and more.
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
shmakk --install-skill <name> # install a skill from the built-in library
|
|
102
|
+
shmakk --load-skill <name> # load an installed skill for this session
|
|
103
|
+
shmakk --list-skills # show currently loaded skills
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
## Coordinator & Multi-step workflows
|
|
107
|
+
|
|
108
|
+
The coordinator system enables complex, multi-step task execution with plan-first workflows. When tackling large projects or intricate tasks, shmakk breaks them into manageable steps, validates each stage, and maintains context across the entire workflow.
|
|
109
|
+
|
|
96
110
|
## Environment variables
|
|
97
111
|
|
|
98
112
|
| Variable | Description |
|
|
@@ -110,7 +124,8 @@ shmakk --profile-set deep
|
|
|
110
124
|
| `shmakk --status` | Check if inside shmakk |
|
|
111
125
|
| `shmakk --stats` | Session statistics |
|
|
112
126
|
| `shmakk --compact` | Clear conversation history |
|
|
113
|
-
| `shmakk --
|
|
127
|
+
| `shmakk --install-skill <name>` | Install a skill from the built-in library |
|
|
128
|
+
| `shmakk --load-skill <name>` | Load an installed skill for this session |
|
|
114
129
|
| `shmakk --list-skills` | List loaded skills |
|
|
115
130
|
| `shmakk --reset` | Reset conversation + task journal |
|
|
116
131
|
| `shmakk --restart` | Restart the inner shell |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shmakk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "AI-supervised terminal wrapper — command correction, tool-driven tasks, safety controls",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"files": [
|
|
20
20
|
"bin/",
|
|
21
21
|
"src/",
|
|
22
|
+
"skills/",
|
|
22
23
|
"scripts/",
|
|
23
24
|
"docs/",
|
|
24
25
|
"README.md",
|
|
@@ -28,7 +29,7 @@
|
|
|
28
29
|
"main": "src/index.js",
|
|
29
30
|
"type": "commonjs",
|
|
30
31
|
"scripts": {
|
|
31
|
-
"postinstall": "node scripts/patch-onnxruntime.js",
|
|
32
|
+
"postinstall": "node scripts/install-skills.js && node scripts/patch-onnxruntime.js",
|
|
32
33
|
"start": "node bin/shmakk.js",
|
|
33
34
|
"dev": "node bin/shmakk.js --debug",
|
|
34
35
|
"test": "node test/units.js",
|
|
@@ -53,6 +54,8 @@
|
|
|
53
54
|
},
|
|
54
55
|
"optionalDependencies": {
|
|
55
56
|
"@huggingface/transformers": "^4.2.0",
|
|
56
|
-
"
|
|
57
|
+
"better-sqlite3": "^11.0.0",
|
|
58
|
+
"kokoro-js": "^1.2.1",
|
|
59
|
+
"playwright": "^1.40.0"
|
|
57
60
|
}
|
|
58
61
|
}
|
|
@@ -0,0 +1,536 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Selective skill importer.
|
|
3
|
+
//
|
|
4
|
+
// Scans /home/marcus/collect_all_skills/ for skill markdown files, filters
|
|
5
|
+
// out:
|
|
6
|
+
// - placeholders (e.g. "Agent skill for X - invoke with $agent-X")
|
|
7
|
+
// - tiny/empty content
|
|
8
|
+
// - duplicates of shmakk's bundled skills
|
|
9
|
+
// - claude-code-specific skills that won't run inside shmakk (reference
|
|
10
|
+
// .claude/, AGENTS.md, copilot-specific frontmatter, plugin manifest, etc.)
|
|
11
|
+
// - vendor-locked skills that require external API keys shmakk doesn't have
|
|
12
|
+
// (Twilio, SendGrid, Stripe Connect, Vercel deploy APIs, etc.)
|
|
13
|
+
//
|
|
14
|
+
// Then categorizes each by name pattern and writes to
|
|
15
|
+
// ~/.config/shmakk/skills/<category>/<name>.md
|
|
16
|
+
//
|
|
17
|
+
// Dry run by default:
|
|
18
|
+
// node scripts/import-skills.js
|
|
19
|
+
// Apply changes:
|
|
20
|
+
// node scripts/import-skills.js --apply
|
|
21
|
+
|
|
22
|
+
const fs = require('fs');
|
|
23
|
+
const os = require('os');
|
|
24
|
+
const path = require('path');
|
|
25
|
+
|
|
26
|
+
const SRC = '/home/marcus/collect_all_skills';
|
|
27
|
+
const DEST = path.join(os.homedir(), '.config', 'shmakk', 'skills');
|
|
28
|
+
const SHMAKK_SKILLS_DIR = path.join(__dirname, '..', 'skills');
|
|
29
|
+
const APPLY = process.argv.includes('--apply');
|
|
30
|
+
|
|
31
|
+
// ── Existing shmakk skills (do not duplicate) ──────────────────────────────
|
|
32
|
+
const SHMAKK_SKILLS = new Set(
|
|
33
|
+
fs.readdirSync(SHMAKK_SKILLS_DIR)
|
|
34
|
+
.filter((f) => f.endsWith('.md'))
|
|
35
|
+
.map((f) => path.basename(f, '.md'))
|
|
36
|
+
);
|
|
37
|
+
|
|
38
|
+
// ── Compatibility filters ─────────────────────────────────────────────────
|
|
39
|
+
const PLACEHOLDER_DESC = /^Agent skill for \S+\s*-\s*invoke with \$agent-/i;
|
|
40
|
+
// These patterns make a skill *primarily* incompatible (it's about another
|
|
41
|
+
// ecosystem). A passing mention of AGENTS.md in body text is fine — we used
|
|
42
|
+
// to flag those by mistake, dropping useful security/research skills.
|
|
43
|
+
const INCOMPAT_PATTERNS = [
|
|
44
|
+
/\.claude\/(?:skills|agents|commands)/i, // Claude Code plugin paths
|
|
45
|
+
/\bClaudePluginsRepo\b/, // Claude Code plugin manifests
|
|
46
|
+
/\bclaude-code-plugins\b/,
|
|
47
|
+
/\bclaude-flow@/i, // claude-flow CLI dependency
|
|
48
|
+
/npx (?:claude-flow|ruv-swarm)@/i, // claude-flow CLI dependency
|
|
49
|
+
/\bagentic-flow hooks\b/i, // agentic-flow CLI dependency
|
|
50
|
+
/\$\{CLAUDE_PLUGIN_ROOT\}/,
|
|
51
|
+
/^applyTo:/m, // VS Code skill frontmatter
|
|
52
|
+
/^chatmode:/m, // Copilot chatmode
|
|
53
|
+
];
|
|
54
|
+
|
|
55
|
+
// ── Vendor-locked skills to skip (need external API keys/auth) ─────────────
|
|
56
|
+
const VENDOR_PREFIXES = [
|
|
57
|
+
'twilio-', 'twilio_',
|
|
58
|
+
'vercel-', 'netlify-', 'render-', 'render_', 'cloudflare', 'wrangler',
|
|
59
|
+
'supabase', 'stripe', 'salesforce-',
|
|
60
|
+
'sharepoint', 'outlook-', 'teams-', 'gmail', 'google-',
|
|
61
|
+
'dataverse-', 'power-bi-', 'powerbi-', 'power-platform-', 'power-apps-', 'flowstudio-',
|
|
62
|
+
'azure-', 'aws-cdk-', 'oracle', 'msstore-', 'fluentui-',
|
|
63
|
+
'github-copilot-', 'copilot-', 'copilot_',
|
|
64
|
+
'canva-', 'figma', 'figma-',
|
|
65
|
+
'notion', 'notion-',
|
|
66
|
+
'slack', 'slack-',
|
|
67
|
+
'sherpa-onnx-', 'spotify-player', 'openhue', 'wacli', 'xurl',
|
|
68
|
+
'discord', 'bluebubbles',
|
|
69
|
+
// AI / observability vendors with paid SaaS
|
|
70
|
+
'arize-',
|
|
71
|
+
'aidefence-',
|
|
72
|
+
'qdrant-',
|
|
73
|
+
'foundry-',
|
|
74
|
+
'feishu-', 'box-', 'box_', 'trello',
|
|
75
|
+
'horizon-', 'taskflow', 'taskflow-',
|
|
76
|
+
// Device-specific
|
|
77
|
+
'cardputer-', 'cardputer_', 'm5-',
|
|
78
|
+
// Single-vendor / niche frameworks
|
|
79
|
+
'gradio', 'remotion', 'transformers.js', 'wasm-gallery', 'wasm-agent',
|
|
80
|
+
'turborepo', 'turbopack', 'beta', 'alpha',
|
|
81
|
+
'1password',
|
|
82
|
+
'sentry',
|
|
83
|
+
'temporal-developer',
|
|
84
|
+
'jupyter-notebook',
|
|
85
|
+
'shadcn',
|
|
86
|
+
'vision-trainer',
|
|
87
|
+
// Microsoft-specific stacks
|
|
88
|
+
'mcp-create-', 'mcp-deploy-', 'mcp-cli',
|
|
89
|
+
'winapp-', 'winmd-', 'winui-', 'winui3-',
|
|
90
|
+
'microsoft-', 'aspect-',
|
|
91
|
+
'msstore', 'mcp-integration', 'mcp-create-declarative-agent', 'mcp-create-adaptive-cards',
|
|
92
|
+
// Salesforce/Slack/Atlassian/Trello/Notion etc
|
|
93
|
+
'paddle', 'patterns-fix',
|
|
94
|
+
];
|
|
95
|
+
|
|
96
|
+
// ── Pure templates / non-knowledge skills to skip ─────────────────────────
|
|
97
|
+
const TEMPLATE_PREFIXES = [
|
|
98
|
+
'html-ppt-', 'html-ppt',
|
|
99
|
+
'dating-web', 'gamified-app', 'finance-report', 'magazine-poster',
|
|
100
|
+
'web-prototype', 'kami-deck', 'replit-deck',
|
|
101
|
+
'mobile-onboarding', 'saas-landing', 'pricing-page',
|
|
102
|
+
'social-carousel', 'design-brief', 'ad-campaign-best-practices',
|
|
103
|
+
'liquid-glass', 'docs-page', 'dashboard',
|
|
104
|
+
];
|
|
105
|
+
|
|
106
|
+
// ── Placeholder-style agent stubs ──────────────────────────────────────────
|
|
107
|
+
const AGENT_STUB_PREFIX = 'agent-'; // Most agent-X are stubs but some are real
|
|
108
|
+
// We'll check description for the placeholder pattern explicitly.
|
|
109
|
+
|
|
110
|
+
// Skip bio-databases (1-line wrappers for biology APIs)
|
|
111
|
+
const BIO_PATTERNS = [
|
|
112
|
+
/-skill$/, // catches alphafold-skill, chembl-skill, etc. (all suffix)
|
|
113
|
+
];
|
|
114
|
+
|
|
115
|
+
// ── Always-skip: explicitly known not-useful ───────────────────────────────
|
|
116
|
+
const HARD_SKIP = new Set([
|
|
117
|
+
'README',
|
|
118
|
+
'open-design-landing', // has yaml parse error
|
|
119
|
+
'browser-scrape', // deprecated shim
|
|
120
|
+
// Browser-* skills overlap with shmakk's built-in browser tool
|
|
121
|
+
'browser-auth-flow', 'browser-extract', 'browser-form-fill', 'browser-login',
|
|
122
|
+
'browser-record', 'browser-replay', 'browser-screenshot-diff', 'browser-test',
|
|
123
|
+
'browser', 'playwright-explore-website', 'playwright-automation-fill-in-form',
|
|
124
|
+
'playwright-interactive',
|
|
125
|
+
// Misc niche / placeholder
|
|
126
|
+
'finnish-humanizer', 'linkedin-post-formatter', 'sponsor-finder',
|
|
127
|
+
'configure', 'sag', 'banner-design', 'blog-post', 'critique',
|
|
128
|
+
'camsnap', 'blogwatcher', 'paper-publisher', 'audio-jingle',
|
|
129
|
+
// Already-handled-by-shmakk concepts (cost tracking, memory, audit)
|
|
130
|
+
'cost-track', 'cost-summary', 'cost-conversation', 'cost-budget-check',
|
|
131
|
+
'cost-benchmark', 'cost-booster-edit', 'cost-compact-context', 'cost-export',
|
|
132
|
+
'cost-federation', 'cost-optimize', 'cost-trend',
|
|
133
|
+
// Niche claude-flow / agent-flow specific (would need their CLI)
|
|
134
|
+
'hive-mind', 'flow-nexus-platform', 'flow-nexus-neural', 'flow-nexus-swarm',
|
|
135
|
+
'workflow-create', 'workflow-automation', 'workflow',
|
|
136
|
+
'swarm-init', 'swarm-orchestration', 'swarm-advanced',
|
|
137
|
+
'memory-bridge', 'memory-merger', 'memory-search', 'memory-management',
|
|
138
|
+
'consolidate-memory',
|
|
139
|
+
'agentdb-advanced', 'agentdb-learning', 'agentdb-optimization', 'agentdb-query',
|
|
140
|
+
'federation-init', 'federation-audit', 'agent-coordination',
|
|
141
|
+
'chat-format', 'cognitive-pattern', 'cron-schedule', 'stream-chain',
|
|
142
|
+
'goal-plan', 'github-project-management', 'github-workflow-automation',
|
|
143
|
+
'agentic-eval', 'rvf-manage', 'declarative-agents', 'tweaks',
|
|
144
|
+
'autopilot-loop', 'autopilot-predict',
|
|
145
|
+
'reasoningbank-intelligence', 'reasoningbank-with-agentdb',
|
|
146
|
+
'mcp-create-adaptive-cards', 'mcp-create-declarative-agent', 'mcp-deploy-manage-agents',
|
|
147
|
+
'_chain-audit', 'chain-audit',
|
|
148
|
+
// v3-* are usually project-specific milestones
|
|
149
|
+
'v3-cli-modernization', 'v3-core-implementation', 'v3-ddd-architecture',
|
|
150
|
+
'v3-deep-integration', 'v3-integration-deep', 'v3-mcp-optimization',
|
|
151
|
+
'v3-memory-unification', 'v3-performance-optimization', 'v3-security-overhaul',
|
|
152
|
+
'v3-swarm-coordination',
|
|
153
|
+
// Trading bot stuff (not in shmakk's scope)
|
|
154
|
+
'trader-backtest', 'trader-portfolio', 'trader-regime', 'trader-risk',
|
|
155
|
+
'trader-signal', 'trader-train',
|
|
156
|
+
'market-ingest', 'market-pattern', 'market-skill',
|
|
157
|
+
// Skill / plugin ecosystem meta (specific to Claude Code / Copilot)
|
|
158
|
+
'using-superpowers', 'skill-creator', 'skill-builder', 'skill-development',
|
|
159
|
+
'skill-installer', 'skill-audit', 'skills-tutorial', 'find-skills',
|
|
160
|
+
'skillflag', 'update-skills', 'evaluate-skill', 'example-skill',
|
|
161
|
+
'agent-customization', 'agent-development', 'command-development', 'hook-development',
|
|
162
|
+
'create-hook', 'create-agent', 'create-plugin', 'create-cowork-plugin',
|
|
163
|
+
'create-prompt', 'create-instructions', 'create-agentsmd', 'plugin-creator',
|
|
164
|
+
'plugin-eval', 'plugin-settings', 'validate-plugin', 'evaluate-plugin',
|
|
165
|
+
'community-evals',
|
|
166
|
+
'minimal-plugin-skill', 'example-command', 'make-skill-template',
|
|
167
|
+
'tldr-prompt', 'create-tldr-page',
|
|
168
|
+
'declarative-agents', 'agents-sdk', 'mcp-create-declarative-agent',
|
|
169
|
+
'install-vscode-extension',
|
|
170
|
+
'lsp-setup', 'vscode-ext-localization', 'settings-precedence',
|
|
171
|
+
'roundup', 'roundup-setup',
|
|
172
|
+
'troubleshoot', // there's also our own troubleshoot — keep ours
|
|
173
|
+
// Specific game/media tools
|
|
174
|
+
'phaser-2d-game', 'three-webgl-game', 'react-three-fiber-game',
|
|
175
|
+
'web-3d-asset-pipeline', 'web-game-foundations', 'game-engine', 'game-studio',
|
|
176
|
+
'game-ui-frontend', 'develop-web-game',
|
|
177
|
+
'sprite-animation', 'sora', 'website-to-hyperframes', 'hyperframes', 'hyperframes-cli',
|
|
178
|
+
'transloadit-media-processing', 'video-shortform', 'image-poster', 'motion-frames',
|
|
179
|
+
// Niche editor tools
|
|
180
|
+
'tmux', // We already add this from top tier as user-editable system tool — but tmux skill ships with shmakk anyway
|
|
181
|
+
// Note: keep tmux off here so it isn't double-handled; we'll just rely on the source file
|
|
182
|
+
// Already implemented as features in shmakk
|
|
183
|
+
'remember', 'remember-interactive-programming',
|
|
184
|
+
'session-persist', 'session-logs',
|
|
185
|
+
// SPARC methodology stuff (claude-flow specific)
|
|
186
|
+
'sparc-methodology', 'sparc-spec', 'sparc-refine',
|
|
187
|
+
// Highly specific frameworks/methodologies we won't support cleanly
|
|
188
|
+
'micro', 'himalaya', 'sonoscli',
|
|
189
|
+
'plantuml-ascii', // very specific
|
|
190
|
+
'react-audit-grep-patterns', // overly narrow
|
|
191
|
+
'react18-batching-patterns', 'react18-enzyme-to-rtl', 'react18-legacy-context',
|
|
192
|
+
'react18-lifecycle-patterns', 'react18-string-refs',
|
|
193
|
+
'react19-concurrent-patterns', 'react19-source-patterns',
|
|
194
|
+
// Things we'd want a different version of (we already have / replaced)
|
|
195
|
+
'consolidate-memory', // shmakk's memory.md replaces this
|
|
196
|
+
]);
|
|
197
|
+
|
|
198
|
+
// Long-tail vendor / niche / template / unknown CLI tools that slipped through
|
|
199
|
+
[
|
|
200
|
+
// ckm:* claude-flow workflow namespace
|
|
201
|
+
'ckm:slides', 'ckm:ui-styling', 'ckm:design-system', 'ckm:design', 'ckm:brand',
|
|
202
|
+
'ckm:banner-design',
|
|
203
|
+
// Vendor-specific
|
|
204
|
+
'sentry', 'tavily', 'satori', 'sign-in-with-vercel', 'v0-dev',
|
|
205
|
+
'snowflake-semanticview', 'huggingface-trackio', 'huggingface-vision-trainer',
|
|
206
|
+
'web-artifacts-builder',
|
|
207
|
+
'theme-factory', // claude.ai artifact theming
|
|
208
|
+
'worker-benchmarks', 'worker-integration', 'workers-best-practices', // Cloudflare workers
|
|
209
|
+
'sandbox-sdk', 'sandbox-npm-install', // Vercel Sandbox
|
|
210
|
+
// Vector DB / RAG vendor noise
|
|
211
|
+
'vector-cluster', 'vector-embed', 'vector-hyperbolic', 'vector-search', 'vector-setup',
|
|
212
|
+
// TypeSpec / MS Typespec
|
|
213
|
+
'typespec-api-operations', 'typespec-create-agent', 'typespec-create-api-plugin',
|
|
214
|
+
// Templates / decks
|
|
215
|
+
'simple-deck', 'kami-deck', 'weekly-update', 'wireframe-sketch',
|
|
216
|
+
// Niche CLI tools / unknowns
|
|
217
|
+
'songsee', 'sprite-pipeline', 'sprite-animation', 'ruflo-doctor', 'ruflo-tutor',
|
|
218
|
+
'yeet', 'safety-scan', 'scoutqa-test', 'workflow-run', 'workiq-copilot',
|
|
219
|
+
'voice-call', 'weather', 'zotero', 'conversation-intelligence',
|
|
220
|
+
'box-content-api', 'vscode-ext-commands', 'shuffle-json-data',
|
|
221
|
+
'setup-cowork', 'foundry-agent-sync', 'foundry-spaces',
|
|
222
|
+
'search-company-knowledge', 'suggest-awesome-github-copilot-skills',
|
|
223
|
+
'suggest-awesome-github-copilot-agents',
|
|
224
|
+
// SPARC methodology variants we already filter — quotes-stripped names
|
|
225
|
+
'sparc-implement',
|
|
226
|
+
// VS Code / IDE specific
|
|
227
|
+
'install-vscode-extension', 'vscode-ext-localization', 'vscode-ext-commands',
|
|
228
|
+
// Improve-skill operates on Codex skills
|
|
229
|
+
'improve-skill',
|
|
230
|
+
// Web prototype taste variants
|
|
231
|
+
'web-prototype', 'open-design-landing-deck',
|
|
232
|
+
// Microsoft AI Foundry / Copilot SDK
|
|
233
|
+
'microsoft-agent-framework', 'microsoft-code-reference', 'microsoft-docs',
|
|
234
|
+
'copilot-spaces', 'copilot-usage-metrics', 'gh-issues',
|
|
235
|
+
// Aggressive — these aren't broadly useful
|
|
236
|
+
'paddle', 'patterns-fix', 'paper-publisher', 'broken-links',
|
|
237
|
+
'access', 'claims', 'finishing-a-development-branch',
|
|
238
|
+
'jobs', // looks like a CLI tool, not a workflow
|
|
239
|
+
'gh-fix-ci', 'gh-address-comments', // copilot-specific PR workflows
|
|
240
|
+
'apple-appstore-reviewer',
|
|
241
|
+
// Twilio-adjacent
|
|
242
|
+
'taskflow', 'taskflow-inbox-triage',
|
|
243
|
+
].forEach((n) => HARD_SKIP.add(n));
|
|
244
|
+
|
|
245
|
+
// Final cleanup pass for items still in 'general' that are vendor/niche
|
|
246
|
+
[
|
|
247
|
+
// claude-flow / agentdb internals
|
|
248
|
+
'agentdb-advanced-features', 'agentdb-learning-plugins', 'agentdb-memory-patterns',
|
|
249
|
+
'agentdb-performance-optimization', 'agentdb-vector-search', 'agentic-jujutsu',
|
|
250
|
+
'federation-status', 'finalize-agent-prompt', 'cost-booster-route', 'cost-report',
|
|
251
|
+
'intelligence-route', 'intelligence-transfer', 'loop-worker', 'router-debug',
|
|
252
|
+
'neural-train', 'neural-training', 'phoenix-evals',
|
|
253
|
+
// Vendor SDKs / clouds
|
|
254
|
+
'appkit-interop', 'circleci-builds', 'circleci-config', 'codeql', 'codex-expo-run-actions',
|
|
255
|
+
'codex-result-handling', 'dependabot', 'gh-cli', 'github', 'geist', 'gemini',
|
|
256
|
+
'gog', 'goplaces', 'gsap', 'huggingface-community-evals', 'huggingface-gradio',
|
|
257
|
+
'huggingface-jobs', 'huggingface-llm-trainer', 'huggingface-paper-publisher',
|
|
258
|
+
'huggingface-papers', 'hf-cli', 'hyperframes-registry', 'integrate-context-matic',
|
|
259
|
+
'onboard-context-matic', 'linear', 'live-artifact', 'mcp-copilot-studio-server-generator',
|
|
260
|
+
'mcporter', 'model-usage', 'monitor-stream', 'nano-banana-pro-openrouter',
|
|
261
|
+
'ncc', 'nuget-manager', 'openai-api-troubleshooting', 'openai-platform-api-key',
|
|
262
|
+
'penpot-uiux-design', 'qqbot-channel', 'qqbot-media', 'qqbot-remind',
|
|
263
|
+
'sandbox-sdk', 'sandbox-npm-install',
|
|
264
|
+
// Empty / vague / unknown CLI tools
|
|
265
|
+
'acp-router', 'acpx', 'blucli', 'bootstrap', 'cli-creator', 'cli-mastery', 'cms',
|
|
266
|
+
'clawhub', 'contributing', 'cowork-plugin-customizer', 'cross-platform-paths',
|
|
267
|
+
'daa-agent', 'datasets', 'digital-eguide', 'discover-plugins', 'eightctl',
|
|
268
|
+
'embeddings', 'eng-runbook', 'entra-agent-user', 'exam-ready',
|
|
269
|
+
'freecad-scripts', 'from-the-other-side-vega', 'game-playtest', 'generate-custom-instructions-from-codebase',
|
|
270
|
+
'generate-run-commands', 'get-search-view-results', 'gifgrep', 'hatch-pet',
|
|
271
|
+
'imsg', 'init-project', 'invoice', 'issue-fields-migration', 'kanban-board', 'kg-traverse',
|
|
272
|
+
'legacy-circuit-mockups', 'links', 'magazine-web-ppt',
|
|
273
|
+
'math-olympiad', 'meeting-minutes', 'meeting-notes', 'mobile-app',
|
|
274
|
+
'napkin', 'node-connect', 'non-json-content-types', 'noob-mode', 'oo-component-documentation',
|
|
275
|
+
'ordercli', 'penpot-uiux-design', 'playground', 'polyglot-test-agent',
|
|
276
|
+
'project-setup-info-context7', 'quasi-coder', 'readme', 'research-add-fields',
|
|
277
|
+
'runtime-cache', 'schedule', 'secure-review', 'security-audit',
|
|
278
|
+
'structured-autonomy-implement', 'structured-autonomy-plan', 'systematic-debugging',
|
|
279
|
+
'team-okrs', 'teams', 'triage-issue', 'ui-ux-pro-max', 'update-pr',
|
|
280
|
+
'upgrade-stripe', 'verification-before-completion', 'view-refactor',
|
|
281
|
+
// Version-pinned react patterns (too narrow)
|
|
282
|
+
'react18-dep-compatibility', 'react19-test-patterns',
|
|
283
|
+
// Oracle migration project series (very project specific)
|
|
284
|
+
'creating-oracle-to-postgres-master-migration-plan',
|
|
285
|
+
'creating-oracle-to-postgres-migration-bug-report',
|
|
286
|
+
'creating-oracle-to-postgres-migration-integration-tests',
|
|
287
|
+
'migrating-oracle-to-postgres-stored-procedures',
|
|
288
|
+
'create-github-issue-feature-from-specification',
|
|
289
|
+
// Niche / not broadly useful
|
|
290
|
+
'datanalysis-credit-risk', 'editorconfig',
|
|
291
|
+
].forEach((n) => HARD_SKIP.add(n));
|
|
292
|
+
|
|
293
|
+
// Re-allow tmux explicitly (we want this as a system skill)
|
|
294
|
+
HARD_SKIP.delete('tmux');
|
|
295
|
+
|
|
296
|
+
// ── GTM (business strategy) — bring as 'business' but only the strongest ───
|
|
297
|
+
const GTM_KEEP = new Set([
|
|
298
|
+
'gtm-0-to-1-launch', 'gtm-positioning-strategy', 'gtm-product-led-growth',
|
|
299
|
+
'gtm-operating-cadence', // operating cadence is broadly useful
|
|
300
|
+
]);
|
|
301
|
+
|
|
302
|
+
// Map weird frontmatter categories from upstream skills to our scheme
|
|
303
|
+
const CATEGORY_REMAP = {
|
|
304
|
+
'brand-deck': 'design', 'brand-page': 'design',
|
|
305
|
+
'github': 'dev', 'machine-learning': 'research',
|
|
306
|
+
'testing': 'dev', 'web-prototype': 'frontend',
|
|
307
|
+
'document-creation': 'docs',
|
|
308
|
+
};
|
|
309
|
+
|
|
310
|
+
// ── Category resolver ─────────────────────────────────────────────────────
|
|
311
|
+
function categorize(name, frontmatterCat) {
|
|
312
|
+
const n = name.toLowerCase();
|
|
313
|
+
|
|
314
|
+
// Explicit frontmatter wins if recognized — but remap odd values
|
|
315
|
+
if (frontmatterCat) {
|
|
316
|
+
const fc = String(frontmatterCat).toLowerCase().trim();
|
|
317
|
+
return CATEGORY_REMAP[fc] || fc;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
// Highest priority specific patterns
|
|
321
|
+
if (/-linux-triage$/.test(n)) return 'system';
|
|
322
|
+
if (n === 'tmux') return 'system';
|
|
323
|
+
if (/^(commit|conventional-commit|git-commit|git-workflow|git-flow-branch-creator|using-git-worktrees|create-pr|create-draft-pr|gh-fix-ci|gh-address-comments|gh-issues|github-code-review|github-multi-repo|github-automation|github-issues|finishing-a-development-branch|sync-upstream|merge|diff-analyze|diffs|sync)$/.test(n)) return 'dev';
|
|
324
|
+
if (/^(refactor|refactor-plan|refactor-method-complexity-reduce|review-and-refactor|debug|debugging|debug-failing-test|test-triage|test-gaps|fix-finding|finding-discovery|explain-error|context-map|investigation-mode|doublecheck|validation|verification|verification-quality|claude-md-improver|chunk|create-readme|readme-blueprint-generator|create-architectural-decision-record|adr-review|run-pre-commit-checks|run-smoke-tests|run-e2e-tests|java-refactoring-extract-method|java-refactoring-remove-parameter|ruff-recursive-fix|unified-diff-edit|full-file-edit|comment-code-generate-a-tutorial|write-coding-standards-from-file)$/.test(n)) return 'dev';
|
|
325
|
+
if (/^test-driven|^tdd-|^write-tests$|^pytest-coverage$|^webapp-testing$|^csharp-(mstest|tunit|nunit|xunit)$|^spring-boot-testing$|^unit-test-/.test(n)) return 'dev';
|
|
326
|
+
if (/^(security-scan|security-best-practices|security-ownership-map|security-review|security-threat-model|threat-model-analyst|attack-path-analysis|mcp-security-audit|gdpr-compliant|pii-detect|ai-prompt-engineering-safety-review|secret-scanning)$/.test(n)) return 'security';
|
|
327
|
+
if (/^(pdf|pdftk-server|nano-pdf|xlsx|pptx|pptx-html-fidelity-audit|docx|doc|markdown-to-html|convert-plaintext-to-md)$/.test(n)) return 'files';
|
|
328
|
+
if (/^(transcribe|video-frames|image-manipulation-image-magick|imagegen|image-poster|motion-frames|speech|openai-whisper|openai-whisper-api|audio-jingle|sora|peekaboo|screenshot)$/.test(n)) return 'media';
|
|
329
|
+
if (/^(sql-|postgresql-|neon-postgres|ef-core|cosmosdb-datamodeling|bigquery-pipeline-audit|durable-objects|fabric-lakehouse|indexing-performance-optimization|search-speed-optimization)/.test(n)) return 'database';
|
|
330
|
+
if (/^playwright/.test(n) || /^webapp-testing$/.test(n)) return 'dev';
|
|
331
|
+
if (/^(brainstorming|prd|breakdown-|generate-snapshot|generate-status-report|project-assessment|folder-structure-blueprint-generator|technology-stack-blueprint-generator|architecture-blueprint-generator|project-workflow-analysis-blueprint-generator|cloud-design-patterns|service-oriented-architecture|design-system|design-brief|content-brief|content-strategy|content-translation|create-implementation-plan|create-specification|update-specification|update-implementation-plan|spec-to-backlog|paper-publisher|writing-plans|writing-rules|jobs|first-ask|what-context-needed|search-strategies|investigation-mode)$/.test(n)) return 'planning';
|
|
332
|
+
if (/^(pair-programming|subagent-driven-development|troubleshoot|session-report|session-logs|session-persist|automate-this|autoresearch|deep-research|coding-agent|dispatching-parallel-agents|executing-plans|mentoring-juniors|requesting-code-review|receiving-code-review|repo-story-time|structured-autonomy-generate|verification-quality|sparc-methodology|sparc-spec|sparc-refine|eval-driven-dev|debugging|investigation-mode|first-ask|search-strategies|what-context-needed)$/.test(n)) return 'workflow';
|
|
333
|
+
if (/^(multi-stage-dockerfile|fastapi|nestjs|build-mcp-server|build-mcp-app|build-mcpb|build-chatgpt-app|chatgpt-apps|chatgpt-app-submission|adapter-express|adapter-fastify|adapter-aws-lambda|adapter-fetch|aspnet-core|aspire|spring-boot-testing|create-spring-boot-(kotlin|java)-project|containerize-aspnet-framework|csharp-async|csharp-docs|temporal-developer|trpc-router|api-docs|server-side-calls|server-setup|client-setup|middlewares|routing-middleware|caching|env-vars|dotenv|dotenvx|http-server|http-helpers|subscriptions|next-forge|nextjs|openapi-to-application-code|error-handling|validators|access|claims)$/.test(n)) return 'backend';
|
|
334
|
+
if (/(?:python|java|ruby|swift|rust|kotlin|php|csharp|go|typescript)-mcp-server-generator$/.test(n)) return 'backend';
|
|
335
|
+
if (/^(react-best-practices|react18-|react19-|web-perf|web-design-reviewer|web-coder|chrome-devtools|frontend-testing-debugging|swr|use-dom|json-render|shadcn|shadcn-best-practices|gsap-framer-scroll-animation|next-intl-add-language|frontend-design|frontend-skill|frontend-app-builder|premium-frontend-ui|turbopack|turborepo|ai-elements|ai-sdk|on-page-seo|technical-seo|seo-audit|schema-markup|keyword-clustering|ai-visibility|internal-linking)$/.test(n)) return 'frontend';
|
|
336
|
+
if (/^(excalidraw-diagram-generator|draw-io-diagram-generator|plantuml-ascii|graphify|canvas|mermaid)$/.test(n)) return 'diagrams';
|
|
337
|
+
if (/^(wiki-maintainer|obsidian|obsidian-vault-maintainer|documentation-writer|doc-gen|create-llms|update-llms|mkdocs-translations|update-markdown-file-index|llm-config)$/.test(n)) return 'docs';
|
|
338
|
+
if (/^(deep-research|research|research-add-items|research-report|research-router-skill|research-synthesize|summarize|kg-extract|dossier-collect)$/.test(n)) return 'research';
|
|
339
|
+
if (/^(calendar|tasks|task-management|reminders|notes|email|email-drafter|apple-notes|apple-reminders|things-mac|capture-tasks-from-meeting-notes|update)$/.test(n)) return 'productivity';
|
|
340
|
+
if (/^(gtm-)/.test(n)) return 'business';
|
|
341
|
+
if (/^acquire-codebase-knowledge$|^code-tour$|^code-exemplars-blueprint-generator$|^analyze-code-quality$/.test(n)) return 'dev';
|
|
342
|
+
if (/^(typescript-setup|python-pypi-package-builder|python-manager-discovery|jupyter-notebook|dotnet-best-practices|dotnet-design-pattern-review|dotnet-upgrade|dotnet-timezone|java-add-graalvm-native-image-support|java-docs|aspire|csharp-(async|docs))$/.test(n)) return 'dev';
|
|
343
|
+
if (/^ios-|^swiftui-|^android-performance$|^use-dom$|^expo-|^upgrading-expo$|^react-native-|^building-native-ui$|^native-data-fetching$|^building-mcp-server-on-cloudflare$|^remotion$|^packaging-notarization$|^signing-entitlements$|^msstore-cli$|^apple-appstore-reviewer$/.test(n)) return 'mobile';
|
|
344
|
+
if (/^(observability|observe-trace|observe-metrics|telemetry|sentry|arize-|phoenix-cli|phoenix-tracing|az-cost-optimize)$/.test(n)) return 'devops';
|
|
345
|
+
if (/^(deployments-cicd|devops-rollout-plan|wrangler|build-mcpb)$/.test(n)) return 'devops';
|
|
346
|
+
|
|
347
|
+
// Fallback by suffix
|
|
348
|
+
if (/^iot-/.test(n)) return 'system';
|
|
349
|
+
|
|
350
|
+
// Bulk fallbacks for the long tail
|
|
351
|
+
if (/^(angular-developer|aspnet-(minimal-api-openapi|core)|aspire|chat-sdk|ai-(elements|sdk|gateway|generation-persistence)|next-(forge|intl-add-language)|nextjs|use-dom|swr|chatgpt-apps|chatgpt-app-submission|chat-format|gradio|transformers\.js)$/.test(n)) return 'frontend';
|
|
352
|
+
if (/^(api-docs|caching|ef-core|express|adapter-|aspire|aspnet|durable-objects|env-vars|dotenv|dotenvx|temporal-developer|trpc-router|subscriptions|server-side-calls|server-setup|client-setup|middlewares|routing-middleware|http-helpers|http-server|http-helpers|http-helpers|validators|access|claims|error-handling|next-forge|nextjs|graphql|aspect-|microsoft-agent-framework|semantic-kernel|webhook|webhook-development|openapi-to-application-code|fluentui-blazor|build-mcp-server|build-mcp-app|build-mcpb|build-chatgpt-app|building-mcp-server-on-cloudflare|building-ai-agent-on-cloudflare|cosmosdb-datamodeling|bigquery-pipeline-audit)$/.test(n)) return 'backend';
|
|
353
|
+
if (/(?:python|java|ruby|swift|rust|kotlin|php|csharp|go|typescript)-mcp-server-generator$/.test(n)) return 'backend';
|
|
354
|
+
if (/^(arch-linux-triage|debian-linux-triage|centos-linux-triage|m5-onboard|peekaboo|geofeed-tuner|window-management|server-side-calls|server-setup)$/.test(n)) return 'system';
|
|
355
|
+
if (/^(security-best-practices|security-ownership-map|security-review|security-threat-model|threat-model-analyst|attack-path-analysis|secret-scanning|secret-scan|mcp-security-audit|ai-prompt-engineering-safety-review|aidefence-|federation-audit|pii-detect|gdpr-compliant|find-secrets)$/.test(n)) return 'security';
|
|
356
|
+
if (/^(adr-(create|index|review)|create-architectural-decision-record|breakdown-(epic-arch|epic-pm|feature-implementation|feature-prd|plan|test|spec)|brainstorming|prd|pm-spec|project-assessment|project-setup-info-local|generate-snapshot|generate-status-report|folder-structure-blueprint-generator|technology-stack-blueprint-generator|architecture-blueprint-generator|copilot-instructions-blueprint-generator|readme-blueprint-generator|project-workflow-analysis-blueprint-generator|service-oriented-architecture|cloud-design-patterns|design-system|create-readme|create-implementation-plan|create-specification|update-specification|update-implementation-plan|spec-to-backlog|writing-plans|writing-rules|jobs|first-ask|what-context-needed|search-strategies|investigation-mode|content-strategy|content-brief|content-translation|capture-tasks-from-meeting-notes|breakdown-epic-arch|breakdown-epic-pm|adr-create|adr-index|adr-review|create-github-issues-feature-from-implementation-plan|create-github-issues-for-unmet-specification-requirements|create-github-action-workflow-specification|create-github-pull-request-from-specification|gen-specs-as-issues|notion-spec-to-implementation|metric-pack-designer|design-brief)$/.test(n)) return 'planning';
|
|
357
|
+
if (/^(autoresearch|deep-research|research|research-add-items|research-report|research-router-skill|research-synthesize|summarize|kg-extract|dossier-collect|paper-publisher|microsoft-docs|openai-docs)$/.test(n)) return 'research';
|
|
358
|
+
if (/^(commit|conventional-commit|git-commit|git-workflow|git-flow-branch-creator|using-git-worktrees|create-pr|create-draft-pr|finishing-a-development-branch|sync|sync-upstream|merge|diff-analyze|diffs|gen-specs-as-issues|github-multi-repo|github-automation|github-issues|github-code-review|my-issues|my-pull-requests|gh-issues|gh-fix-ci|gh-address-comments|repo-story-time|broken-links|build-run-debug|run-pre-commit-checks|run-smoke-tests|run-e2e-tests|refactor|refactor-plan|refactor-method-complexity-reduce|review-and-refactor|debug|debugging|debug-failing-test|debug-test-failure|debugging-tests|test-triage|test-gaps|fix-finding|finding-discovery|explain-error|context-map|investigation-mode|doublecheck|validation|verification|verification-quality|claude-md-improver|chunk|create-readme|run-pre-commit-checks|java-refactoring-(extract-method|remove-parameter)|ruff-recursive-fix|unified-diff-edit|full-file-edit|comment-code-generate-a-tutorial|write-coding-standards-from-file|acquire-codebase-knowledge|code-tour|code-exemplars-blueprint-generator|analyze-code-quality|reviewing-oracle-to-postgres-migration|migrate-create|migrate-validate|scaffolding-oracle-to-postgres-migration-test-project|planning-oracle-to-postgres-migration-integration-testing|terraform-azurerm-set-diff-analyzer)$/.test(n)) return 'dev';
|
|
359
|
+
if (/^test-driven|^tdd-|^write-tests$|^pytest-coverage$|^webapp-testing$|^csharp-(mstest|tunit|nunit|xunit)$|^spring-boot-testing$|^unit-test-/.test(n)) return 'dev';
|
|
360
|
+
if (/^playwright/.test(n)) return 'dev';
|
|
361
|
+
if (/^(boost-prompt|sandbox-(npm-install|sdk)|create-spring-boot-(kotlin|java)-project|containerize-aspnet-framework|update-llms|create-llms|llm-config|typer|typescript-setup|aws-cdk-python-setup|python-pypi-package-builder|python-manager-discovery|java-add-graalvm-native-image-support|java-docs|csharp-(async|docs|mstest|tunit|nunit|xunit|docs)|dotnet-(best-practices|design-pattern-review|upgrade|timezone)|signing-entitlements|packaging-notarization|next-intl-add-language|winui3-migration-guide|broken-links|conventional-commit|gpt-5-4-prompting|prompt-builder|add-educational-comments|add-model-descriptions)$/.test(n)) return 'dev';
|
|
362
|
+
if (/^(observability|observe-trace|observe-metrics|telemetry|appinsights-instrumentation|deployments-cicd|devops-rollout-plan|chronicle|sherpa-onnx-tts|update-avm-modules-in-bicep|geistdocs|publish-to-pages|building-mcp-server-on-cloudflare|building-ai-agent-on-cloudflare|build-mcpb|render-workflows|github-release-management|github-multi-repo|github-automation|github-issues|hooks-automation|gh-issues|gh-address-comments|gh-fix-ci)$/.test(n)) return 'devops';
|
|
363
|
+
if (/^(documentation-writer|doc-gen|create-llms|update-llms|mkdocs-translations|update-markdown-file-index|llm-config|json-render|api-docs|create-readme|readme-blueprint-generator|copilot-instructions-blueprint-generator)$/.test(n)) return 'docs';
|
|
364
|
+
if (/^(wiki-maintainer|obsidian|obsidian-vault-maintainer|bear-notes|apple-notes|prose|notion|update)$/.test(n)) return 'docs';
|
|
365
|
+
if (/^(chrome-devtools|frontend-testing-debugging|web-perf|web-design-reviewer|web-coder|technical-seo|seo-audit|on-page-seo|schema-markup|keyword-clustering|ai-visibility|internal-linking|gsap-framer-scroll-animation|premium-frontend-ui|frontend-app-builder|frontend-design|frontend-skill|shadcn-best-practices|swr|use-dom|json-render|json-render-react|next-intl-add-language|nextjs|next-forge|chat-sdk|ai-(elements|sdk|gateway|generation-persistence)|angular-developer|aspnet-(minimal-api-openapi|core)|aspire|turbopack|turborepo|fluentui-blazor|bencium-innovative-ux-designer|critique)$/.test(n)) return 'frontend';
|
|
366
|
+
if (/^(pair-programming|subagent-driven-development|session-report|automate-this|coding-agent|dispatching-parallel-agents|executing-plans|mentoring-juniors|requesting-code-review|receiving-code-review|repo-story-time|structured-autonomy-generate|sparc-methodology|sparc-spec|sparc-refine|eval-driven-dev|jobs|first-ask|search-strategies|what-context-needed|investigation-mode|debugging|finishing-a-development-branch|conventional-commit|doublecheck|validation|verification|verification-quality|chronicle|act-on-feedback|breakdown-feature-implementation|breakdown-feature-prd|breakdown-plan|breakdown-test|claude-md-improver|create-tldr-page|update|update-skills|finishing-a-development-branch|create-pr|create-draft-pr|using-git-worktrees|micro)$/.test(n)) return 'workflow';
|
|
367
|
+
if (/^(calendar|tasks|task-management|reminders|notes|email|email-drafter|apple-(notes|reminders|appstore-reviewer)|things-mac|capture-tasks-from-meeting-notes|update|hr-onboarding|daily-prep)$/.test(n)) return 'productivity';
|
|
368
|
+
if (/^ios-|^swiftui-|^android-performance$|^android-emulator-qa$|^use-dom$|^expo-|^upgrading-expo$|^react-native-|^building-native-ui$|^native-data-fetching$|^packaging-notarization$|^signing-entitlements$|^msstore-cli$|^apple-appstore-reviewer$/.test(n)) return 'mobile';
|
|
369
|
+
|
|
370
|
+
return 'general';
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
// ── Helpers ──────────────────────────────────────────────────────────────
|
|
374
|
+
function parseFrontmatter(raw) {
|
|
375
|
+
const m = /^---\n([\s\S]*?)\n---\n?([\s\S]*)$/m.exec(String(raw || ''));
|
|
376
|
+
if (!m) return { meta: {}, body: String(raw || '') };
|
|
377
|
+
const meta = {};
|
|
378
|
+
for (const line of m[1].split(/\r?\n/)) {
|
|
379
|
+
const mm = /^([a-zA-Z0-9_-]+)\s*:\s*(.+)$/.exec(line.trim());
|
|
380
|
+
if (!mm) continue;
|
|
381
|
+
let v = mm[2].trim();
|
|
382
|
+
// Strip surrounding quotes (some skills wrap names/categories in "...")
|
|
383
|
+
if ((v.startsWith('"') && v.endsWith('"')) || (v.startsWith("'") && v.endsWith("'"))) {
|
|
384
|
+
v = v.slice(1, -1).trim();
|
|
385
|
+
}
|
|
386
|
+
meta[mm[1].toLowerCase()] = v;
|
|
387
|
+
}
|
|
388
|
+
return { meta, body: m[2] };
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
function shouldSkip(name, raw, fm) {
|
|
392
|
+
const n = name.toLowerCase();
|
|
393
|
+
if (HARD_SKIP.has(name) || HARD_SKIP.has(n)) return 'hard-skip';
|
|
394
|
+
if (SHMAKK_SKILLS.has(n)) return 'redundant (in shmakk)';
|
|
395
|
+
if (!raw || raw.trim().length < 200) return 'too small/empty';
|
|
396
|
+
|
|
397
|
+
// GTM filter (keep only the broad ones)
|
|
398
|
+
if (/^gtm-/.test(n) && !GTM_KEEP.has(n)) return 'gtm-not-in-keep-list';
|
|
399
|
+
|
|
400
|
+
// Placeholder agent stubs
|
|
401
|
+
const desc = String(fm.meta.description || '');
|
|
402
|
+
if (PLACEHOLDER_DESC.test(desc)) return 'placeholder';
|
|
403
|
+
if (/^agent-/.test(n)) {
|
|
404
|
+
// Almost all agent-* are claude-flow internals or stubs
|
|
405
|
+
return 'agent-stub';
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
// Vendor-locked
|
|
409
|
+
for (const p of VENDOR_PREFIXES) {
|
|
410
|
+
if (n.startsWith(p)) return `vendor (${p})`;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
// Templates
|
|
414
|
+
for (const p of TEMPLATE_PREFIXES) {
|
|
415
|
+
if (n.startsWith(p) || n === p.replace(/-$/, '')) return `template (${p})`;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
// Bio databases
|
|
419
|
+
for (const re of BIO_PATTERNS) {
|
|
420
|
+
if (re.test(n)) return 'bio-db';
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
// Compatibility patterns
|
|
424
|
+
for (const re of INCOMPAT_PATTERNS) {
|
|
425
|
+
if (re.test(raw)) return 'incompat (claude-code/copilot specific)';
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
return null;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
function ensureCategory(raw, fm, category) {
|
|
432
|
+
// If frontmatter has no category, inject it
|
|
433
|
+
if (fm.meta.category) return raw;
|
|
434
|
+
const fmEnd = raw.indexOf('\n---', 4);
|
|
435
|
+
if (raw.startsWith('---\n') && fmEnd > 0) {
|
|
436
|
+
return raw.slice(0, fmEnd) + `\ncategory: ${category}` + raw.slice(fmEnd);
|
|
437
|
+
}
|
|
438
|
+
// No frontmatter — add it
|
|
439
|
+
return `---\nname: ${fm.meta.name || ''}\ncategory: ${category}\n---\n\n${raw}`;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
// ── Main ─────────────────────────────────────────────────────────────────
|
|
443
|
+
function main() {
|
|
444
|
+
const files = fs.readdirSync(SRC).filter((f) => f.endsWith('.md') && f !== 'README.md');
|
|
445
|
+
const byCategory = new Map();
|
|
446
|
+
const skipped = { reasons: {}, examples: {} };
|
|
447
|
+
let kept = 0;
|
|
448
|
+
|
|
449
|
+
for (const file of files) {
|
|
450
|
+
const filePath = path.join(SRC, file);
|
|
451
|
+
let raw;
|
|
452
|
+
try { raw = fs.readFileSync(filePath, 'utf8'); } catch { continue; }
|
|
453
|
+
const fm = parseFrontmatter(raw);
|
|
454
|
+
const name = String(fm.meta.name || path.basename(file, '.md')).toLowerCase().trim().replace(/\s+/g, '-');
|
|
455
|
+
|
|
456
|
+
const skip = shouldSkip(name, raw, fm);
|
|
457
|
+
if (skip) {
|
|
458
|
+
skipped.reasons[skip] = (skipped.reasons[skip] || 0) + 1;
|
|
459
|
+
if (!skipped.examples[skip]) skipped.examples[skip] = [];
|
|
460
|
+
if (skipped.examples[skip].length < 3) skipped.examples[skip].push(name);
|
|
461
|
+
continue;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
const category = categorize(name, fm.meta.category);
|
|
465
|
+
|
|
466
|
+
// Bundled skills use flat category-prefixed filenames (e.g. backend-api-docs.md).
|
|
467
|
+
// Check that too so we don't re-import a skill already bundled under its category prefix.
|
|
468
|
+
if (SHMAKK_SKILLS.has(category + '-' + name)) {
|
|
469
|
+
const reason = 'redundant (in shmakk, category-prefixed)';
|
|
470
|
+
skipped.reasons[reason] = (skipped.reasons[reason] || 0) + 1;
|
|
471
|
+
if (!skipped.examples[reason]) skipped.examples[reason] = [];
|
|
472
|
+
if (skipped.examples[reason].length < 3) skipped.examples[reason].push(category + '/' + name);
|
|
473
|
+
continue;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
const entry = { name, category, filePath, raw, fm };
|
|
477
|
+
if (!byCategory.has(category)) byCategory.set(category, []);
|
|
478
|
+
byCategory.get(category).push(entry);
|
|
479
|
+
kept++;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
// Report
|
|
483
|
+
console.log(`\n=== Import plan ===`);
|
|
484
|
+
console.log(`Source: ${SRC} (${files.length} files)`);
|
|
485
|
+
console.log(`Destination: ${DEST}`);
|
|
486
|
+
console.log(`Kept: ${kept}`);
|
|
487
|
+
console.log(`Skipped: ${files.length - kept}`);
|
|
488
|
+
console.log(`\nSkip reasons:`);
|
|
489
|
+
for (const [reason, count] of Object.entries(skipped.reasons).sort((a, b) => b[1] - a[1])) {
|
|
490
|
+
console.log(` ${String(count).padStart(4)} ${reason} ${(skipped.examples[reason] || []).slice(0, 3).join(', ')}`);
|
|
491
|
+
}
|
|
492
|
+
console.log(`\nBy category:`);
|
|
493
|
+
const sortedCats = Array.from(byCategory.keys()).sort();
|
|
494
|
+
for (const cat of sortedCats) {
|
|
495
|
+
console.log(` ${cat.padEnd(14)} ${byCategory.get(cat).length} skills`);
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
if (process.argv.includes('--dump')) {
|
|
499
|
+
const target = process.argv[process.argv.indexOf('--dump') + 1] || 'general';
|
|
500
|
+
const list = byCategory.get(target) || [];
|
|
501
|
+
console.log(`\n=== ${target} (${list.length}) ===`);
|
|
502
|
+
for (const e of list) console.log(` ${e.name}`);
|
|
503
|
+
return;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
if (!APPLY) {
|
|
507
|
+
console.log(`\nDry run. Run with --apply to copy files.`);
|
|
508
|
+
return;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
// Apply: write all entries
|
|
512
|
+
let written = 0;
|
|
513
|
+
let collisions = 0;
|
|
514
|
+
for (const [cat, entries] of byCategory) {
|
|
515
|
+
const catDir = path.join(DEST, cat);
|
|
516
|
+
fs.mkdirSync(catDir, { recursive: true });
|
|
517
|
+
for (const e of entries) {
|
|
518
|
+
const destFile = path.join(catDir, `${e.name}.md`);
|
|
519
|
+
const content = ensureCategory(e.raw, e.fm, cat);
|
|
520
|
+
if (fs.existsSync(destFile)) {
|
|
521
|
+
// Already there — only write if checksum differs
|
|
522
|
+
const existing = fs.readFileSync(destFile, 'utf8');
|
|
523
|
+
if (existing === content) continue;
|
|
524
|
+
collisions++;
|
|
525
|
+
}
|
|
526
|
+
fs.writeFileSync(destFile, content, 'utf8');
|
|
527
|
+
written++;
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
console.log(`\nWrote ${written} files (${collisions} replacements). Total catalog under ${DEST}.`);
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
try { main(); } catch (e) {
|
|
534
|
+
console.error(`[import-skills] ${e.message}`);
|
|
535
|
+
process.exit(1);
|
|
536
|
+
}
|