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/skills/design.md
ADDED
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: design
|
|
3
|
+
version: 1
|
|
4
|
+
category: design
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Visual Design & Design Systems
|
|
8
|
+
|
|
9
|
+
Build and audit design systems, design tokens, typography, color, spacing, component libraries, and CSS architecture.
|
|
10
|
+
|
|
11
|
+
## When to use this skill
|
|
12
|
+
|
|
13
|
+
- User wants to set up or extend a design system
|
|
14
|
+
- User asks about design tokens, CSS variables, or theming
|
|
15
|
+
- User wants consistent spacing, typography, or color usage across a project
|
|
16
|
+
- User asks about Tailwind configuration, CSS architecture (BEM, ITCSS, utility-first)
|
|
17
|
+
- User wants to add or support dark mode
|
|
18
|
+
- User mentions Figma, Storybook, or component documentation
|
|
19
|
+
- User wants to audit visual inconsistencies across a UI
|
|
20
|
+
|
|
21
|
+
## Procedure
|
|
22
|
+
|
|
23
|
+
### Step 1: Audit existing design decisions
|
|
24
|
+
|
|
25
|
+
Before introducing anything new, map what already exists:
|
|
26
|
+
```bash
|
|
27
|
+
# Find CSS custom properties (design tokens)
|
|
28
|
+
grep -rn "^ --" src/ --include="*.css" --include="*.scss" | head -30
|
|
29
|
+
|
|
30
|
+
# Find hardcoded colors (potential tokens)
|
|
31
|
+
grep -rn "#[0-9a-fA-F]\{3,6\}\|rgb(\|rgba(\|hsl(" src/ --include="*.css" --include="*.scss" --include="*.tsx" | head -20
|
|
32
|
+
|
|
33
|
+
# Find hardcoded spacing (potential tokens)
|
|
34
|
+
grep -rn "margin:\|padding:\|gap:" src/ --include="*.css" | grep -E "[0-9]+px" | head -20
|
|
35
|
+
|
|
36
|
+
# Check Tailwind config
|
|
37
|
+
cat tailwind.config.ts 2>/dev/null || cat tailwind.config.js 2>/dev/null
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### Step 2: Design token architecture
|
|
41
|
+
|
|
42
|
+
Tokens should follow a three-tier structure:
|
|
43
|
+
1. **Primitive tokens** — raw values, no semantic meaning
|
|
44
|
+
2. **Semantic tokens** — named by purpose, reference primitives
|
|
45
|
+
3. **Component tokens** — specific to one component, reference semantic
|
|
46
|
+
|
|
47
|
+
```css
|
|
48
|
+
/* 1. Primitive tokens */
|
|
49
|
+
:root {
|
|
50
|
+
--color-blue-500: #3b82f6;
|
|
51
|
+
--color-blue-600: #2563eb;
|
|
52
|
+
--space-4: 1rem;
|
|
53
|
+
--space-6: 1.5rem;
|
|
54
|
+
--radius-md: 0.375rem;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* 2. Semantic tokens */
|
|
58
|
+
:root {
|
|
59
|
+
--color-primary: var(--color-blue-500);
|
|
60
|
+
--color-primary-hover: var(--color-blue-600);
|
|
61
|
+
--space-button-padding-x: var(--space-4);
|
|
62
|
+
--radius-button: var(--radius-md);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* 3. Component tokens (optional, for complex components) */
|
|
66
|
+
.card {
|
|
67
|
+
--card-padding: var(--space-6);
|
|
68
|
+
--card-radius: var(--radius-md);
|
|
69
|
+
}
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### Step 3: Typography system
|
|
73
|
+
|
|
74
|
+
A well-defined type scale has:
|
|
75
|
+
- 5–8 size steps (following a ratio: 1.25, 1.333, or 1.5)
|
|
76
|
+
- Defined line-height per size (larger text = tighter line-height)
|
|
77
|
+
- Maximum content width: 60–75 characters per line (`max-width: 65ch`)
|
|
78
|
+
- Correct font-weight usage (not just bold/normal)
|
|
79
|
+
|
|
80
|
+
```css
|
|
81
|
+
:root {
|
|
82
|
+
--font-size-xs: 0.75rem; /* 12px */
|
|
83
|
+
--font-size-sm: 0.875rem; /* 14px */
|
|
84
|
+
--font-size-base: 1rem; /* 16px */
|
|
85
|
+
--font-size-lg: 1.125rem; /* 18px */
|
|
86
|
+
--font-size-xl: 1.25rem; /* 20px */
|
|
87
|
+
--font-size-2xl: 1.5rem; /* 24px */
|
|
88
|
+
--font-size-3xl: 1.875rem; /* 30px */
|
|
89
|
+
--font-size-4xl: 2.25rem; /* 36px */
|
|
90
|
+
}
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
Check font loading:
|
|
94
|
+
```bash
|
|
95
|
+
grep -rn "font-family\|@font-face\|font-display" src/ public/ --include="*.css" | head -10
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### Step 4: Color system
|
|
99
|
+
|
|
100
|
+
Every color system needs:
|
|
101
|
+
1. **Brand palette**: primary, secondary, accent
|
|
102
|
+
2. **Semantic colors**: success (green), warning (yellow/amber), danger (red), info (blue)
|
|
103
|
+
3. **Neutral scale**: 8–12 steps from white to black (gray-50 through gray-950)
|
|
104
|
+
4. **Surface colors**: background, foreground, border, overlay
|
|
105
|
+
|
|
106
|
+
Contrast requirements (WCAG AA):
|
|
107
|
+
- Normal text (< 18pt): ≥ 4.5:1
|
|
108
|
+
- Large text (≥ 18pt or bold ≥ 14pt): ≥ 3:1
|
|
109
|
+
- UI components and icons: ≥ 3:1
|
|
110
|
+
|
|
111
|
+
```bash
|
|
112
|
+
# Test contrast programmatically
|
|
113
|
+
node -e "
|
|
114
|
+
const l = (hex) => {
|
|
115
|
+
const r = parseInt(hex.slice(1,3),16)/255;
|
|
116
|
+
const g = parseInt(hex.slice(3,5),16)/255;
|
|
117
|
+
const b = parseInt(hex.slice(5,7),16)/255;
|
|
118
|
+
const toLinear = c => c <= 0.03928 ? c/12.92 : Math.pow((c+0.055)/1.055, 2.4);
|
|
119
|
+
return 0.2126*toLinear(r) + 0.7152*toLinear(g) + 0.0722*toLinear(b);
|
|
120
|
+
};
|
|
121
|
+
const contrast = (fg, bg) => {
|
|
122
|
+
const l1 = Math.max(l(fg), l(bg)), l2 = Math.min(l(fg), l(bg));
|
|
123
|
+
return ((l1 + 0.05) / (l2 + 0.05)).toFixed(2);
|
|
124
|
+
};
|
|
125
|
+
// Example:
|
|
126
|
+
console.log('Contrast ratio:', contrast('#1e293b', '#f8fafc'));
|
|
127
|
+
"
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
### Step 5: Spacing system
|
|
131
|
+
|
|
132
|
+
Use a consistent scale. Options:
|
|
133
|
+
- **4px base** (Tailwind default): 4, 8, 12, 16, 20, 24, 32, 40, 48, 64...
|
|
134
|
+
- **8px base**: 8, 16, 24, 32, 48, 64, 96...
|
|
135
|
+
|
|
136
|
+
Check for inconsistencies:
|
|
137
|
+
```bash
|
|
138
|
+
# Find spacing values not on the scale
|
|
139
|
+
grep -rn "margin\|padding\|gap" src/ --include="*.css" --include="*.scss" | grep -E "[0-9]+(px)" | grep -vE "(0px|4px|8px|12px|16px|20px|24px|32px|40px|48px|64px|80px|96px)" | head -10
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
### Step 6: Dark mode
|
|
143
|
+
|
|
144
|
+
If dark mode is needed:
|
|
145
|
+
1. Use CSS custom properties (design tokens) — never hardcode colors
|
|
146
|
+
2. Use `prefers-color-scheme` media query OR data attribute (`data-theme="dark"`)
|
|
147
|
+
3. Every semantic token needs a light and dark value
|
|
148
|
+
|
|
149
|
+
```css
|
|
150
|
+
:root {
|
|
151
|
+
--color-background: #ffffff;
|
|
152
|
+
--color-foreground: #0f172a;
|
|
153
|
+
--color-surface: #f8fafc;
|
|
154
|
+
--color-border: #e2e8f0;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
@media (prefers-color-scheme: dark) {
|
|
158
|
+
:root {
|
|
159
|
+
--color-background: #0f172a;
|
|
160
|
+
--color-foreground: #f8fafc;
|
|
161
|
+
--color-surface: #1e293b;
|
|
162
|
+
--color-border: #334155;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
### Step 7: Component documentation (Storybook)
|
|
168
|
+
|
|
169
|
+
For any component with variants:
|
|
170
|
+
```bash
|
|
171
|
+
npx storybook init # if not set up
|
|
172
|
+
npm run storybook # start dev server
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
Every component story should cover:
|
|
176
|
+
- Default state
|
|
177
|
+
- All variants (size, color, style)
|
|
178
|
+
- Interactive states (hover, focus, active, disabled)
|
|
179
|
+
- Edge cases (long text, empty content, error state)
|
|
180
|
+
|
|
181
|
+
## Common patterns
|
|
182
|
+
|
|
183
|
+
### Tailwind: extend the theme, don't override
|
|
184
|
+
```ts
|
|
185
|
+
// tailwind.config.ts
|
|
186
|
+
export default {
|
|
187
|
+
theme: {
|
|
188
|
+
extend: { // ← extend, not replace
|
|
189
|
+
colors: {
|
|
190
|
+
brand: { 500: '#6366f1', 600: '#4f46e5' },
|
|
191
|
+
},
|
|
192
|
+
fontFamily: {
|
|
193
|
+
sans: ['Inter var', 'system-ui', 'sans-serif'],
|
|
194
|
+
},
|
|
195
|
+
},
|
|
196
|
+
},
|
|
197
|
+
}
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
### CSS custom properties for theming
|
|
201
|
+
```css
|
|
202
|
+
/* Use in components */
|
|
203
|
+
.button-primary {
|
|
204
|
+
background: var(--color-primary);
|
|
205
|
+
color: var(--color-on-primary);
|
|
206
|
+
padding: var(--space-button-padding-y) var(--space-button-padding-x);
|
|
207
|
+
border-radius: var(--radius-button);
|
|
208
|
+
}
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
## Red flags to report
|
|
212
|
+
|
|
213
|
+
- Hardcoded hex colors in component files (should be token references)
|
|
214
|
+
- Multiple slightly-different grays with no systematic relationship
|
|
215
|
+
- Spacing values that don't follow any grid (e.g., 7px, 11px, 22px)
|
|
216
|
+
- No dark mode support despite the project targeting multiple contexts
|
|
217
|
+
- Font loaded without `font-display: swap` (causes invisible text while loading)
|
|
218
|
+
- Text color that doesn't meet 4.5:1 contrast on its background
|
|
219
|
+
- No Storybook or isolated component documentation for a UI library
|
|
220
|
+
- Design decisions made in multiple places (no single source of truth)
|
|
221
|
+
- CSS specificity wars — overrides piled on overrides instead of a clean architecture
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: acquire-codebase-knowledge
|
|
3
|
+
description: 'Use this skill when the user explicitly asks to map, document, or onboard into an existing codebase. Trigger for prompts like "map this codebase", "document this architecture", "onboard me to this repo", or "create codebase docs". Do not trigger for routine feature implementation, bug fixes, or narrow code edits unless the user asks for repository-level discovery.'
|
|
4
|
+
license: MIT
|
|
5
|
+
compatibility: 'Cross-platform. Requires Python 3.8+ and git. Run scripts/scan.py from the target project root.'
|
|
6
|
+
metadata:
|
|
7
|
+
version: "1.3"
|
|
8
|
+
enhancements:
|
|
9
|
+
- Multi-language manifest detection (25+ languages supported)
|
|
10
|
+
- CI/CD pipeline detection (10+ platforms)
|
|
11
|
+
- Container & orchestration detection
|
|
12
|
+
- Code metrics by language
|
|
13
|
+
- Security & compliance config detection
|
|
14
|
+
- Performance testing markers
|
|
15
|
+
argument-hint: 'Optional: specific area to focus on, e.g. "architecture only", "testing and concerns"'
|
|
16
|
+
category: dev
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
# Acquire Codebase Knowledge
|
|
20
|
+
|
|
21
|
+
Produces seven populated documents in `docs/codebase/` covering everything needed to work effectively on the project. Only document what is verifiable from files or terminal output — never infer or assume.
|
|
22
|
+
|
|
23
|
+
## Output Contract (Required)
|
|
24
|
+
|
|
25
|
+
Before finishing, all of the following must be true:
|
|
26
|
+
|
|
27
|
+
1. Exactly these files exist in `docs/codebase/`: `STACK.md`, `STRUCTURE.md`, `ARCHITECTURE.md`, `CONVENTIONS.md`, `INTEGRATIONS.md`, `TESTING.md`, `CONCERNS.md`.
|
|
28
|
+
2. Every claim is traceable to source files, config, or terminal output.
|
|
29
|
+
3. Unknowns are marked as `[TODO]`; intent-dependent decisions are marked `[ASK USER]`.
|
|
30
|
+
4. Every document includes a short "evidence" list with concrete file paths.
|
|
31
|
+
5. Final response includes numbered `[ASK USER]` questions and intent-vs-reality divergences.
|
|
32
|
+
|
|
33
|
+
## Workflow
|
|
34
|
+
|
|
35
|
+
Copy and track this checklist:
|
|
36
|
+
|
|
37
|
+
```
|
|
38
|
+
- [ ] Phase 1: Run scan, read intent documents
|
|
39
|
+
- [ ] Phase 2: Investigate each documentation area
|
|
40
|
+
- [ ] Phase 3: Populate all seven docs in docs/codebase/
|
|
41
|
+
- [ ] Phase 4: Validate docs, present findings, resolve all [ASK USER] items
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Focus Area Mode
|
|
45
|
+
|
|
46
|
+
If the user supplies a focus area (for example: "architecture only" or "testing and concerns"):
|
|
47
|
+
|
|
48
|
+
1. Always run Phase 1 in full.
|
|
49
|
+
2. Fully complete focus-area documents first.
|
|
50
|
+
3. For non-focus documents not yet analyzed, keep required sections present and mark unknowns as `[TODO]`.
|
|
51
|
+
4. Still run the Phase 4 validation loop on all seven documents before final output.
|
|
52
|
+
|
|
53
|
+
### Phase 1: Scan and Read Intent
|
|
54
|
+
|
|
55
|
+
1. Run the scan script from the target project root:
|
|
56
|
+
```bash
|
|
57
|
+
python3 "$SKILL_ROOT/scripts/scan.py" --output docs/codebase/.codebase-scan.txt
|
|
58
|
+
```
|
|
59
|
+
Where `$SKILL_ROOT` is the absolute path to the skill folder. Works on Windows, macOS, and Linux.
|
|
60
|
+
|
|
61
|
+
**Quick start:** If you have the path inline:
|
|
62
|
+
```bash
|
|
63
|
+
python3 /absolute/path/to/skills/acquire-codebase-knowledge/scripts/scan.py --output docs/codebase/.codebase-scan.txt
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
2. Search for `PRD`, `TRD`, `README`, `ROADMAP`, `SPEC`, `DESIGN` files and read them.
|
|
67
|
+
3. Summarise the stated project intent before reading any source code.
|
|
68
|
+
|
|
69
|
+
### Phase 2: Investigate
|
|
70
|
+
|
|
71
|
+
Use the scan output to answer questions for each of the seven templates. Load [`references/inquiry-checkpoints.md`](references/inquiry-checkpoints.md) for the full per-template question list.
|
|
72
|
+
|
|
73
|
+
If the stack is ambiguous (multiple manifest files, unfamiliar file types, no `package.json`), load [`references/stack-detection.md`](references/stack-detection.md).
|
|
74
|
+
|
|
75
|
+
### Phase 3: Populate Templates
|
|
76
|
+
|
|
77
|
+
Copy each template from `assets/templates/` into `docs/codebase/`. Fill in this order:
|
|
78
|
+
|
|
79
|
+
1. [STACK.md](assets/templates/STACK.md) — language, runtime, frameworks, all dependencies
|
|
80
|
+
2. [STRUCTURE.md](assets/templates/STRUCTURE.md) — directory layout, entry points, key files
|
|
81
|
+
3. [ARCHITECTURE.md](assets/templates/ARCHITECTURE.md) — layers, patterns, data flow
|
|
82
|
+
4. [CONVENTIONS.md](assets/templates/CONVENTIONS.md) — naming, formatting, error handling, imports
|
|
83
|
+
5. [INTEGRATIONS.md](assets/templates/INTEGRATIONS.md) — external APIs, databases, auth, monitoring
|
|
84
|
+
6. [TESTING.md](assets/templates/TESTING.md) — frameworks, file organization, mocking strategy
|
|
85
|
+
7. [CONCERNS.md](assets/templates/CONCERNS.md) — tech debt, bugs, security risks, perf bottlenecks
|
|
86
|
+
|
|
87
|
+
Use `[TODO]` for anything that cannot be determined from code. Use `[ASK USER]` where the right answer requires team intent.
|
|
88
|
+
|
|
89
|
+
### Phase 4: Validate, Repair, Verify
|
|
90
|
+
|
|
91
|
+
Run this mandatory validation loop before finalizing:
|
|
92
|
+
|
|
93
|
+
1. Validate each doc against `references/inquiry-checkpoints.md`.
|
|
94
|
+
2. For each non-trivial claim, confirm at least one evidence reference exists.
|
|
95
|
+
3. If any required section is missing or unsupported:
|
|
96
|
+
- Fix the document.
|
|
97
|
+
- Re-run validation.
|
|
98
|
+
4. Repeat until all seven docs pass.
|
|
99
|
+
|
|
100
|
+
Then present a summary of all seven documents, list every `[ASK USER]` item as a numbered question, and highlight any Intent vs. Reality divergences from Phase 1.
|
|
101
|
+
|
|
102
|
+
Validation pass criteria:
|
|
103
|
+
|
|
104
|
+
- No unsupported claims.
|
|
105
|
+
- No empty required sections.
|
|
106
|
+
- Unknowns use `[TODO]` rather than assumptions.
|
|
107
|
+
- Team-intent gaps are explicitly marked `[ASK USER]`.
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
## Gotchas
|
|
112
|
+
|
|
113
|
+
**Monorepos:** Root `package.json` may have no source — check for `workspaces`, `packages/`, or `apps/` directories. Each workspace may have independent dependencies and conventions. Map each sub-package separately.
|
|
114
|
+
|
|
115
|
+
**Outdated README:** README often describes intended architecture, not the current one. Cross-reference with actual file structure before treating any README claim as fact.
|
|
116
|
+
|
|
117
|
+
**TypeScript path aliases:** `tsconfig.json` `paths` config means imports like `@/foo` don't map directly to the filesystem. Map aliases to real paths before documenting structure.
|
|
118
|
+
|
|
119
|
+
**Generated/compiled output:** Never document patterns from `dist/`, `build/`, `generated/`, `.next/`, `out/`, or `__pycache__/`. These are artefacts — document source conventions only.
|
|
120
|
+
|
|
121
|
+
**`.env.example` reveals required config:** Secrets are never committed. Read `.env.example`, `.env.template`, or `.env.sample` to discover required environment variables.
|
|
122
|
+
|
|
123
|
+
**`devDependencies` ≠ production stack:** Only `dependencies` (or equivalent, e.g. `[tool.poetry.dependencies]`) runs in production. Document linters, formatters, and test frameworks separately as dev tooling.
|
|
124
|
+
|
|
125
|
+
**Test TODOs ≠ production debt:** TODOs inside `test/`, `tests/`, `__tests__/`, or `spec/` are coverage gaps, not production technical debt. Separate them in `CONCERNS.md`.
|
|
126
|
+
|
|
127
|
+
**High-churn files = fragile areas:** Files appearing most in recent git history have the highest modification rate and likely hidden complexity. Always note them in `CONCERNS.md`.
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
131
|
+
## Anti-Patterns
|
|
132
|
+
|
|
133
|
+
| ❌ Don't | ✅ Do instead |
|
|
134
|
+
|---------|--------------|
|
|
135
|
+
| "Uses Clean Architecture with Domain/Data layers." (when no such directories exist) | State only what directory structure actually shows. |
|
|
136
|
+
| "This is a Next.js project." (without checking `package.json`) | Check `dependencies` first. State what's actually there. |
|
|
137
|
+
| Guess the database from a variable name like `dbUrl` | Check manifest for `pg`, `mysql2`, `mongoose`, `prisma`, etc. |
|
|
138
|
+
| Document `dist/` or `build/` naming patterns as conventions | Source files only. |
|
|
139
|
+
|
|
140
|
+
---
|
|
141
|
+
|
|
142
|
+
## Enhanced Scan Output Sections
|
|
143
|
+
|
|
144
|
+
The `scan.py` script now produce the following sections in addition to the original output:
|
|
145
|
+
|
|
146
|
+
- **CODE METRICS** — Total files, lines of code by language, largest files (complexity signals)
|
|
147
|
+
- **CI/CD PIPELINES** — Detected GitHub Actions, GitLab CI, Jenkins, CircleCI, etc.
|
|
148
|
+
- **CONTAINERS & ORCHESTRATION** — Docker, Docker Compose, Kubernetes, Vagrant configs
|
|
149
|
+
- **SECURITY & COMPLIANCE** — Snyk, Dependabot, SECURITY.md, SBOM, security policies
|
|
150
|
+
- **PERFORMANCE & TESTING** — Benchmark configs, profiling markers, load testing tools
|
|
151
|
+
|
|
152
|
+
Use these sections during Phase 2 to inform investigation questions and identify tool-specific patterns.
|
|
153
|
+
|
|
154
|
+
---
|
|
155
|
+
|
|
156
|
+
## Bundled Assets
|
|
157
|
+
|
|
158
|
+
| Asset | When to load |
|
|
159
|
+
|-------|-------------|
|
|
160
|
+
| [`scripts/scan.py`](scripts/scan.py) | Phase 1 — run first, before reading any code (Python 3.8+ required) |
|
|
161
|
+
|
|
162
|
+
| [`references/inquiry-checkpoints.md`](references/inquiry-checkpoints.md) | Phase 2 — load for per-template investigation questions |
|
|
163
|
+
| [`references/stack-detection.md`](references/stack-detection.md) | Phase 2 — only if stack is ambiguous |
|
|
164
|
+
| [`assets/templates/STACK.md`](assets/templates/STACK.md) | Phase 3 step 1 |
|
|
165
|
+
| [`assets/templates/STRUCTURE.md`](assets/templates/STRUCTURE.md) | Phase 3 step 2 |
|
|
166
|
+
| [`assets/templates/ARCHITECTURE.md`](assets/templates/ARCHITECTURE.md) | Phase 3 step 3 |
|
|
167
|
+
| [`assets/templates/CONVENTIONS.md`](assets/templates/CONVENTIONS.md) | Phase 3 step 4 |
|
|
168
|
+
| [`assets/templates/INTEGRATIONS.md`](assets/templates/INTEGRATIONS.md) | Phase 3 step 5 |
|
|
169
|
+
| [`assets/templates/TESTING.md`](assets/templates/TESTING.md) | Phase 3 step 6 |
|
|
170
|
+
| [`assets/templates/CONCERNS.md`](assets/templates/CONCERNS.md) | Phase 3 step 7 |
|
|
171
|
+
|
|
172
|
+
Template usage mode:
|
|
173
|
+
|
|
174
|
+
- Default mode: complete only the "Core Sections (Required)" in each template.
|
|
175
|
+
- Extended mode: add optional sections only when the repo complexity justifies them.
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: add-educational-comments
|
|
3
|
+
description: 'Add educational comments to the file specified, or prompt asking for file to comment if one is not provided.'
|
|
4
|
+
category: dev
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Add Educational Comments
|
|
8
|
+
|
|
9
|
+
Add educational comments to code files so they become effective learning resources. When no file is provided, request one and offer a numbered list of close matches for quick selection.
|
|
10
|
+
|
|
11
|
+
## Role
|
|
12
|
+
|
|
13
|
+
You are an expert educator and technical writer. You can explain programming topics to beginners, intermediate learners, and advanced practitioners. You adapt tone and detail to match the user's configured knowledge levels while keeping guidance encouraging and instructional.
|
|
14
|
+
|
|
15
|
+
- Provide foundational explanations for beginners
|
|
16
|
+
- Add practical insights and best practices for intermediate users
|
|
17
|
+
- Offer deeper context (performance, architecture, language internals) for advanced users
|
|
18
|
+
- Suggest improvements only when they meaningfully support understanding
|
|
19
|
+
- Always obey the **Educational Commenting Rules**
|
|
20
|
+
|
|
21
|
+
## Objectives
|
|
22
|
+
|
|
23
|
+
1. Transform the provided file by adding educational comments aligned with the configuration.
|
|
24
|
+
2. Maintain the file's structure, encoding, and build correctness.
|
|
25
|
+
3. Increase the total line count by **125%** using educational comments only (up to 400 new lines). For files already processed with this prompt, update existing notes instead of reapplying the 125% rule.
|
|
26
|
+
|
|
27
|
+
### Line Count Guidance
|
|
28
|
+
|
|
29
|
+
- Default: add lines so the file reaches 125% of its original length.
|
|
30
|
+
- Hard limit: never add more than 400 educational comment lines.
|
|
31
|
+
- Large files: when the file exceeds 1,000 lines, aim for no more than 300 educational comment lines.
|
|
32
|
+
- Previously processed files: revise and improve current comments; do not chase the 125% increase again.
|
|
33
|
+
|
|
34
|
+
## Educational Commenting Rules
|
|
35
|
+
|
|
36
|
+
### Encoding and Formatting
|
|
37
|
+
|
|
38
|
+
- Determine the file's encoding before editing and keep it unchanged.
|
|
39
|
+
- Use only characters available on a standard QWERTY keyboard.
|
|
40
|
+
- Do not insert emojis or other special symbols.
|
|
41
|
+
- Preserve the original end-of-line style (LF or CRLF).
|
|
42
|
+
- Keep single-line comments on a single line.
|
|
43
|
+
- Maintain the indentation style required by the language (Python, Haskell, F#, Nim, Cobra, YAML, Makefiles, etc.).
|
|
44
|
+
- When instructed with `Line Number Referencing = yes`, prefix each new comment with `Note <number>` (e.g., `Note 1`).
|
|
45
|
+
|
|
46
|
+
### Content Expectations
|
|
47
|
+
|
|
48
|
+
- Focus on lines and blocks that best illustrate language or platform concepts.
|
|
49
|
+
- Explain the "why" behind syntax, idioms, and design choices.
|
|
50
|
+
- Reinforce previous concepts only when it improves comprehension (`Repetitiveness`).
|
|
51
|
+
- Highlight potential improvements gently and only when they serve an educational purpose.
|
|
52
|
+
- If `Line Number Referencing = yes`, use note numbers to connect related explanations.
|
|
53
|
+
|
|
54
|
+
### Safety and Compliance
|
|
55
|
+
|
|
56
|
+
- Do not alter namespaces, imports, module declarations, or encoding headers in a way that breaks execution.
|
|
57
|
+
- Avoid introducing syntax errors (for example, Python encoding errors per [PEP 263](https://peps.python.org/pep-0263/)).
|
|
58
|
+
- Input data as if typed on the user's keyboard.
|
|
59
|
+
|
|
60
|
+
## Workflow
|
|
61
|
+
|
|
62
|
+
1. **Confirm Inputs** – Ensure at least one target file is provided. If missing, respond with: `Please provide a file or files to add educational comments to. Preferably as chat variable or attached context.`
|
|
63
|
+
2. **Identify File(s)** – If multiple matches exist, present an ordered list so the user can choose by number or name.
|
|
64
|
+
3. **Review Configuration** – Combine the prompt defaults with user-specified values. Interpret obvious typos (e.g., `Line Numer`) using context.
|
|
65
|
+
4. **Plan Comments** – Decide which sections of the code best support the configured learning goals.
|
|
66
|
+
5. **Add Comments** – Apply educational comments following the configured detail, repetitiveness, and knowledge levels. Respect indentation and language syntax.
|
|
67
|
+
6. **Validate** – Confirm formatting, encoding, and syntax remain intact. Ensure the 125% rule and line limits are satisfied.
|
|
68
|
+
|
|
69
|
+
## Configuration Reference
|
|
70
|
+
|
|
71
|
+
### Properties
|
|
72
|
+
|
|
73
|
+
- **Numeric Scale**: `1-3`
|
|
74
|
+
- **Numeric Sequence**: `ordered` (higher numbers represent higher knowledge or intensity)
|
|
75
|
+
|
|
76
|
+
### Parameters
|
|
77
|
+
|
|
78
|
+
- **File Name** (required): Target file(s) for commenting.
|
|
79
|
+
- **Comment Detail** (`1-3`): Depth of each explanation (default `2`).
|
|
80
|
+
- **Repetitiveness** (`1-3`): Frequency of revisiting similar concepts (default `2`).
|
|
81
|
+
- **Educational Nature**: Domain focus (default `Computer Science`).
|
|
82
|
+
- **User Knowledge** (`1-3`): General CS/SE familiarity (default `2`).
|
|
83
|
+
- **Educational Level** (`1-3`): Familiarity with the specific language or framework (default `1`).
|
|
84
|
+
- **Line Number Referencing** (`yes/no`): Prepend comments with note numbers when `yes` (default `yes`).
|
|
85
|
+
- **Nest Comments** (`yes/no`): Whether to indent comments inside code blocks (default `yes`).
|
|
86
|
+
- **Fetch List**: Optional URLs for authoritative references.
|
|
87
|
+
|
|
88
|
+
If a configurable element is missing, use the default value. When new or unexpected options appear, apply your **Educational Role** to interpret them sensibly and still achieve the objective.
|
|
89
|
+
|
|
90
|
+
### Default Configuration
|
|
91
|
+
|
|
92
|
+
- File Name
|
|
93
|
+
- Comment Detail = 2
|
|
94
|
+
- Repetitiveness = 2
|
|
95
|
+
- Educational Nature = Computer Science
|
|
96
|
+
- User Knowledge = 2
|
|
97
|
+
- Educational Level = 1
|
|
98
|
+
- Line Number Referencing = yes
|
|
99
|
+
- Nest Comments = yes
|
|
100
|
+
- Fetch List:
|
|
101
|
+
- <https://peps.python.org/pep-0263/>
|
|
102
|
+
|
|
103
|
+
## Examples
|
|
104
|
+
|
|
105
|
+
### Missing File
|
|
106
|
+
|
|
107
|
+
```text
|
|
108
|
+
[user]
|
|
109
|
+
> /add-educational-comments
|
|
110
|
+
[agent]
|
|
111
|
+
> Please provide a file or files to add educational comments to. Preferably as chat variable or attached context.
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
### Custom Configuration
|
|
115
|
+
|
|
116
|
+
```text
|
|
117
|
+
[user]
|
|
118
|
+
> /add-educational-comments #file:output_name.py Comment Detail = 1, Repetitiveness = 1, Line Numer = no
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
Interpret `Line Numer = no` as `Line Number Referencing = no` and adjust behavior accordingly while maintaining all rules above.
|
|
122
|
+
|
|
123
|
+
## Final Checklist
|
|
124
|
+
|
|
125
|
+
- Ensure the transformed file satisfies the 125% rule without exceeding limits.
|
|
126
|
+
- Keep encoding, end-of-line style, and indentation unchanged.
|
|
127
|
+
- Confirm all educational comments follow the configuration and the **Educational Commenting Rules**.
|
|
128
|
+
- Provide clarifying suggestions only when they aid learning.
|
|
129
|
+
- When a file has been processed before, refine existing comments instead of expanding line count.
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: add-model-descriptions
|
|
3
|
+
description: Add descriptions for new models from the HuggingFace router to chat-ui configuration. Use when new models are released on the router and need descriptions added to prod.yaml and dev.yaml. Triggers on requests like "add new model descriptions", "update models from router", "sync models", or when explicitly invoking /add-model-descriptions.
|
|
4
|
+
category: dev
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Add Model Descriptions
|
|
8
|
+
|
|
9
|
+
Add descriptions for new models available in the HuggingFace router to chat-ui's prod.yaml and dev.yaml.
|
|
10
|
+
|
|
11
|
+
## Workflow
|
|
12
|
+
|
|
13
|
+
1. **Fetch models from router**
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
WebFetch https://router.huggingface.co/v1/models
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Extract all model IDs from the response.
|
|
20
|
+
|
|
21
|
+
2. **Read current configuration**
|
|
22
|
+
|
|
23
|
+
- Read `chart/env/prod.yaml`
|
|
24
|
+
- Extract model IDs from the `MODELS` JSON array in `envVars`
|
|
25
|
+
|
|
26
|
+
3. **Identify missing models**
|
|
27
|
+
Compare router models with prod.yaml. Missing = in router but not in prod.yaml.
|
|
28
|
+
|
|
29
|
+
4. **Research each missing model**
|
|
30
|
+
For each missing model, search the web for its specifications:
|
|
31
|
+
|
|
32
|
+
- Model architecture (dense, MoE, parameters)
|
|
33
|
+
- Key capabilities (coding, reasoning, vision, multilingual, etc.)
|
|
34
|
+
- Target use cases
|
|
35
|
+
|
|
36
|
+
5. **Write descriptions**
|
|
37
|
+
Match existing style:
|
|
38
|
+
|
|
39
|
+
- 8-12 words
|
|
40
|
+
- Sentence fragments (no period needed)
|
|
41
|
+
- No articles ("a", "the") unless necessary
|
|
42
|
+
- Focus on: architecture, specialization, key capability
|
|
43
|
+
|
|
44
|
+
Examples:
|
|
45
|
+
|
|
46
|
+
- `"Flagship GLM MoE for coding, reasoning, and agentic tool use."`
|
|
47
|
+
- `"MoE agent model with multilingual coding and fast outputs."`
|
|
48
|
+
- `"Vision-language Qwen for documents, GUI agents, and visual reasoning."`
|
|
49
|
+
- `"Mobile agent for multilingual Android device automation."`
|
|
50
|
+
|
|
51
|
+
6. **Update both files**
|
|
52
|
+
Add new models at the TOP of the MODELS array in:
|
|
53
|
+
|
|
54
|
+
- `chart/env/prod.yaml`
|
|
55
|
+
- `chart/env/dev.yaml`
|
|
56
|
+
|
|
57
|
+
Format:
|
|
58
|
+
|
|
59
|
+
```json
|
|
60
|
+
{ "id": "org/model-name", "description": "Description here." }
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
7. **Commit changes**
|
|
64
|
+
```
|
|
65
|
+
git add chart/env/prod.yaml chart/env/dev.yaml
|
|
66
|
+
git commit -m "feat: add descriptions for N new models from router"
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## Notes
|
|
70
|
+
|
|
71
|
+
- FP8 variants: describe as "FP8 [base model] for efficient inference with [key capability]"
|
|
72
|
+
- Vision models: mention "vision-language" and key visual tasks
|
|
73
|
+
- Agent models: mention "agent" and automation capabilities
|
|
74
|
+
- Regional models: mention language focus (e.g., "European multilingual", "Southeast Asian")
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: adr-review
|
|
3
|
+
description: Review code changes against accepted ADRs for compliance violations
|
|
4
|
+
argument-hint: "[--branch BRANCH]"
|
|
5
|
+
allowed-tools: mcp__claude-flow__agentdb_hierarchical-query mcp__claude-flow__agentdb_causal-query mcp__claude-flow__memory_search Bash Read Grep Glob
|
|
6
|
+
category: dev
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# ADR Review
|
|
10
|
+
|
|
11
|
+
Review code changes against accepted Architecture Decision Records to detect violations, drift, and non-compliance.
|
|
12
|
+
|
|
13
|
+
## When to use
|
|
14
|
+
|
|
15
|
+
Before merging a PR, after significant code changes, or as part of a periodic compliance check. Use this to ensure code changes respect the architectural decisions the team has agreed upon.
|
|
16
|
+
|
|
17
|
+
## Steps
|
|
18
|
+
|
|
19
|
+
1. **Get diff** -- Run `git diff main...HEAD --name-only` (or the specified branch) to list changed files. Then run `git diff main...HEAD` to get the full diff content.
|
|
20
|
+
|
|
21
|
+
2. **Find relevant ADRs** -- For each changed file:
|
|
22
|
+
- `Grep` the file for ADR references (`ADR-\d+`)
|
|
23
|
+
- `Grep` `docs/adr/` for ADRs that mention the changed file paths or modules
|
|
24
|
+
- Call `mcp__claude-flow__memory_search` with the file path and change summary to find semantically related ADRs
|
|
25
|
+
|
|
26
|
+
3. **Load ADR content** -- `Read` each relevant ADR file. Focus on:
|
|
27
|
+
- The **Decision** section (what was decided)
|
|
28
|
+
- The **Status** (only enforce "accepted" ADRs)
|
|
29
|
+
- The **Consequences** (expected constraints)
|
|
30
|
+
|
|
31
|
+
4. **Check for violations** -- Analyze each changed file against its relevant ADRs:
|
|
32
|
+
- Does the code change contradict an accepted decision?
|
|
33
|
+
- Does it use a technology/pattern that an ADR explicitly rejected?
|
|
34
|
+
- Does it modify a module in a way the ADR's consequences warned against?
|
|
35
|
+
- Is the code referencing a deprecated or superseded ADR?
|
|
36
|
+
|
|
37
|
+
5. **Query relationship graph** -- Call `mcp__claude-flow__agentdb_causal-query` to check if any referenced ADRs have been superseded. If so, flag that the code references an outdated decision.
|
|
38
|
+
|
|
39
|
+
6. **Report** -- Present findings as a compliance report:
|
|
40
|
+
```
|
|
41
|
+
## ADR Compliance Report
|
|
42
|
+
|
|
43
|
+
### Violations
|
|
44
|
+
- [ ] <file>:<line> — violates ADR-NNN: <reason>
|
|
45
|
+
|
|
46
|
+
### Warnings
|
|
47
|
+
- [!] <file> references superseded ADR-NNN (replaced by ADR-MMM)
|
|
48
|
+
|
|
49
|
+
### Compliant
|
|
50
|
+
- [x] <file> — consistent with ADR-NNN
|
|
51
|
+
|
|
52
|
+
### Unlinked Changes
|
|
53
|
+
- [?] <file> — no ADR coverage (consider creating one)
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
7. **Suggest actions** -- For each violation, suggest whether to update the code or propose a new ADR to supersede the violated one.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: boost-prompt
|
|
3
|
+
description: 'Interactive prompt refinement workflow: interrogates scope, deliverables, constraints; copies final markdown to clipboard; never writes code. Requires the Joyride extension.'
|
|
4
|
+
category: dev
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
You are an AI assistant designed to help users create high-quality, detailed task prompts. DO NOT WRITE ANY CODE.
|
|
8
|
+
|
|
9
|
+
Your goal is to iteratively refine the user’s prompt by:
|
|
10
|
+
|
|
11
|
+
- Understanding the task scope and objectives
|
|
12
|
+
- At all times when you need clarification on details, ask specific questions to the user using the `joyride_request_human_input` tool.
|
|
13
|
+
- Defining expected deliverables and success criteria
|
|
14
|
+
- Perform project explorations, using available tools, to further your understanding of the task
|
|
15
|
+
- Clarifying technical and procedural requirements
|
|
16
|
+
- Organizing the prompt into clear sections or steps
|
|
17
|
+
- Ensuring the prompt is easy to understand and follow
|
|
18
|
+
|
|
19
|
+
After gathering sufficient information, produce the improved prompt as markdown, use Joyride to place the markdown on the system clipboard, as well as typing it out in the chat. Use this Joyride code for clipboard operations:
|
|
20
|
+
|
|
21
|
+
```clojure
|
|
22
|
+
(require '["vscode" :as vscode])
|
|
23
|
+
(vscode/env.clipboard.writeText "your-markdown-text-here")
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Announce to the user that the prompt is available on the clipboard, and also ask the user if they want any changes or additions. Repeat the copy + chat + ask after any revisions of the prompt.
|