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
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: merge
|
|
3
|
+
description: Merge changes from the topic branch to the merge base branch. Use when the user wants to merge their session's work back to the base branch.
|
|
4
|
+
category: dev
|
|
5
|
+
---
|
|
6
|
+
<!-- Customize this skill and select save to override its behavior. Delete that copy to restore the built-in behavior. -->
|
|
7
|
+
|
|
8
|
+
# Merge Changes
|
|
9
|
+
|
|
10
|
+
Merge the topic branch (checked out in the current worktree) into the merge base branch (checked out in the main worktree). The context block appended to the prompt contains the source branch, target branch, and main worktree path.
|
|
11
|
+
|
|
12
|
+
## Guidelines
|
|
13
|
+
|
|
14
|
+
- **Never force-push** (`--force`, `--force-with-lease`) without explicit user approval.
|
|
15
|
+
- **Never skip pre-push hooks** (do not use `--no-verify`).
|
|
16
|
+
- **Never rewrite or drop commits** without asking the user.
|
|
17
|
+
- When in doubt about conflict resolution — ask the user.
|
|
18
|
+
|
|
19
|
+
## Workflow
|
|
20
|
+
|
|
21
|
+
### 1. Commit uncommitted changes in the current worktree
|
|
22
|
+
|
|
23
|
+
Check for uncommitted changes in the current worktree:
|
|
24
|
+
```
|
|
25
|
+
git status --porcelain
|
|
26
|
+
```
|
|
27
|
+
If there are uncommitted changes, use the `/commit` skill to commit them before continuing.
|
|
28
|
+
|
|
29
|
+
### 2. Merge the topic branch into the base branch
|
|
30
|
+
|
|
31
|
+
Use `git -C <main-worktree-path>` to run commands against the main worktree without leaving the current worktree.
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
git -C <main-worktree-path> merge <topic-branch>
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### 3. Handle merge conflicts
|
|
38
|
+
|
|
39
|
+
If the merge reports conflicts:
|
|
40
|
+
|
|
41
|
+
3.1. List conflicted files:
|
|
42
|
+
```
|
|
43
|
+
git -C <main-worktree-path> diff --name-only --diff-filter=U
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
3.2. For each conflicted file, read the file content, resolve the conflict by preserving the intent of both sides, and stage the resolved file:
|
|
47
|
+
```
|
|
48
|
+
git -C <main-worktree-path> add <resolved-file>
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
3.3. When in doubt on how to resolve a merge conflict, ask the user for guidance. If the user wants to abort, run:
|
|
52
|
+
```
|
|
53
|
+
git -C <main-worktree-path> merge --abort
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
3.4. Once all conflicts are resolved and staged, commit the merge:
|
|
57
|
+
```
|
|
58
|
+
git -C <main-worktree-path> commit --no-edit
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## Validation
|
|
62
|
+
|
|
63
|
+
After the merge completes, verify the result:
|
|
64
|
+
|
|
65
|
+
1. Confirm the main worktree is clean:
|
|
66
|
+
```
|
|
67
|
+
git -C <main-worktree-path> status --porcelain
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
2. Confirm the topic branch is an ancestor of the base branch (i.e. all commits are merged):
|
|
71
|
+
```
|
|
72
|
+
git -C <main-worktree-path> merge-base --is-ancestor <topic-branch> HEAD
|
|
73
|
+
```
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: migrate-create
|
|
3
|
+
description: Create a new sequentially numbered database migration with up/down SQL files
|
|
4
|
+
argument-hint: "<name>"
|
|
5
|
+
allowed-tools: Read Write Glob Bash mcp__claude-flow__memory_store mcp__claude-flow__memory_search mcp__claude-flow__agentdb_pattern-search
|
|
6
|
+
category: dev
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Migrate Create
|
|
10
|
+
|
|
11
|
+
Generate a new database migration with sequential numbering and up/down SQL file pair.
|
|
12
|
+
|
|
13
|
+
## When to use
|
|
14
|
+
|
|
15
|
+
When you need to create a new database migration for schema changes such as creating tables, adding columns, creating indexes, or modifying constraints.
|
|
16
|
+
|
|
17
|
+
## Steps
|
|
18
|
+
|
|
19
|
+
1. **Determine next number** -- use `Glob` to scan the migrations directory for existing migration files and find the highest number, then increment by 1 (zero-pad to 3 digits)
|
|
20
|
+
2. **Select template** -- based on the `<name>`, choose the appropriate SQL template:
|
|
21
|
+
- Names starting with `create_` -> CREATE TABLE template
|
|
22
|
+
- Names starting with `add_` -> ALTER TABLE ADD COLUMN template
|
|
23
|
+
- Names starting with `drop_` -> DROP with safety checks
|
|
24
|
+
- Names containing `index` -> CREATE INDEX template
|
|
25
|
+
- Other -> generic migration template with placeholder comments
|
|
26
|
+
3. **Generate up migration** -- write `NNN_<name>.up.sql` with the appropriate SQL using IF NOT EXISTS for idempotency
|
|
27
|
+
4. **Generate down migration** -- write `NNN_<name>.down.sql` with the reverse operation using IF EXISTS
|
|
28
|
+
5. **Search past patterns** -- call `mcp__claude-flow__agentdb_pattern-search` (ReasoningBank-routed; **don't** pass a `namespace` argument — pattern-* tools ignore it).
|
|
29
|
+
6. **Store metadata** -- call `mcp__claude-flow__memory_store --namespace migrations` to record the migration with number, name, status (pending), and file paths. The `memory_*` tool family routes by namespace; `agentdb_hierarchical-*` does NOT (it routes by tier `working|episodic|semantic`), so use `memory_*` here. See [ruflo-agentdb ADR-0001 §"Namespace convention"](../../../ruflo-agentdb/docs/adrs/0001-agentdb-optimization.md).
|
|
30
|
+
7. **Report** -- display: migration number, file paths created, template used, any similar past migrations found
|
|
31
|
+
|
|
32
|
+
## CLI alternative
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
npx @claude-flow/cli@latest memory store --namespace migrations --key "migration-NNN_NAME" --value '{"number": NNN, "name": "NAME", "status": "pending"}'
|
|
36
|
+
```
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: migrate-validate
|
|
3
|
+
description: Validate pending migrations for foreign key consistency, rollback safety, and best practices
|
|
4
|
+
argument-hint: ""
|
|
5
|
+
allowed-tools: Read Glob Grep Bash mcp__claude-flow__memory_search mcp__claude-flow__memory_list mcp__claude-flow__memory_store mcp__claude-flow__agentdb_pattern-store mcp__claude-flow__agentdb_semantic-route
|
|
6
|
+
category: dev
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Migrate Validate
|
|
10
|
+
|
|
11
|
+
Validate all pending database migrations for correctness, safety, and adherence to best practices.
|
|
12
|
+
|
|
13
|
+
## When to use
|
|
14
|
+
|
|
15
|
+
Before applying migrations to catch issues early -- foreign key references to non-existent tables, missing rollback SQL, destructive operations without safeguards, and naming convention violations.
|
|
16
|
+
|
|
17
|
+
## Steps
|
|
18
|
+
|
|
19
|
+
1. **Find pending migrations** -- use `Glob` to list all migration files, cross-reference with applied history via `mcp__claude-flow__memory_search --namespace migrations` (or `memory_list`) to identify pending ones. The `memory_*` tool family routes by namespace; `agentdb_hierarchical-*` does NOT (it routes by tier), so use `memory_*` here.
|
|
20
|
+
2. **Parse SQL** -- use `Read` to load each pending `.up.sql` and `.down.sql` file and parse the SQL statements
|
|
21
|
+
3. **Check foreign keys** -- verify that all REFERENCES targets exist in the current schema or in prior migrations (both applied and pending)
|
|
22
|
+
4. **Check NOT NULL defaults** -- verify that any ADD COLUMN with NOT NULL has a DEFAULT value
|
|
23
|
+
5. **Check rollback completeness** -- verify every CREATE/ALTER in the UP file has a corresponding DROP/ALTER in the DOWN file
|
|
24
|
+
6. **Flag destructive ops** -- warn on DROP TABLE, DROP COLUMN, TRUNCATE without explicit confirmation
|
|
25
|
+
7. **Check idempotency** -- verify IF EXISTS / IF NOT EXISTS is used for safety
|
|
26
|
+
8. **Check naming** -- verify table names are plural, column names are snake_case, index names follow `idx_table_column` convention
|
|
27
|
+
9. **Store validation patterns** -- two paths (per ruflo-cost-tracker ADR-0001 dual-path pattern):
|
|
28
|
+
- **Pattern store (typed, recommended)**: `mcp__claude-flow__agentdb_pattern-store` with `type: 'migration-validation'`. No namespace arg — ReasoningBank routes it.
|
|
29
|
+
- **Plain store (namespace-routable)**: `mcp__claude-flow__memory_store --namespace migrations` for validation results tied to a specific migration number.
|
|
30
|
+
10. **Report** -- display: errors (must fix), warnings (should fix), info (suggestions), with file path and line number for each issue
|
|
31
|
+
|
|
32
|
+
## CLI alternative
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
npx @claude-flow/cli@latest memory search --query "migration validation results" --namespace migrations
|
|
36
|
+
```
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: my-issues
|
|
3
|
+
description: 'List my issues in the current repository'
|
|
4
|
+
category: dev
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Search the current repo (using #githubRepo for the repo info) and list any issues you find (using #list_issues) that are assigned to me.
|
|
8
|
+
|
|
9
|
+
Suggest issues that I might want to focus on based on their age, the amount of comments, and their status (open/closed).
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: my-pull-requests
|
|
3
|
+
description: 'List my pull requests in the current repository'
|
|
4
|
+
category: dev
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Search the current repo (using #githubRepo for the repo info) and list any pull requests you find (using #list_pull_requests) that are assigned to me.
|
|
8
|
+
|
|
9
|
+
Describe the purpose and details of each pull request.
|
|
10
|
+
|
|
11
|
+
If a PR is waiting for someone to review, highlight that in the response.
|
|
12
|
+
|
|
13
|
+
If there were any check failures on the PR, describe them and suggest possible fixes.
|
|
14
|
+
|
|
15
|
+
If there was no review done by Copilot, offer to request one using #request_copilot_review.
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: planning-oracle-to-postgres-migration-integration-testing
|
|
3
|
+
description: 'Creates an integration testing plan for .NET data access artifacts during Oracle-to-PostgreSQL database migrations. Analyzes a single project to identify repositories, DAOs, and service layers that interact with the database, then produces a structured testing plan. Use when planning integration test coverage for a migrated project, identifying which data access methods need tests, or preparing for Oracle-to-PostgreSQL migration validation.'
|
|
4
|
+
category: dev
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Planning Integration Testing for Oracle-to-PostgreSQL Migration
|
|
8
|
+
|
|
9
|
+
Analyze a single target project to identify data access artifacts that require integration testing, then produce a structured, actionable testing plan.
|
|
10
|
+
|
|
11
|
+
## Workflow
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
Progress:
|
|
15
|
+
- [ ] Step 1: Identify data access artifacts
|
|
16
|
+
- [ ] Step 2: Classify testing priorities
|
|
17
|
+
- [ ] Step 3: Write the testing plan
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
**Step 1: Identify data access artifacts**
|
|
21
|
+
|
|
22
|
+
Scope to the target project only. Find classes and methods that interact directly with the database — repositories, DAOs, stored procedure callers, service layers performing CRUD operations.
|
|
23
|
+
|
|
24
|
+
**Step 2: Classify testing priorities**
|
|
25
|
+
|
|
26
|
+
Rank artifacts by migration risk. Prioritize methods that use Oracle-specific features (refcursors, `TO_CHAR`, implicit type coercion, `NO_DATA_FOUND`) over simple CRUD.
|
|
27
|
+
|
|
28
|
+
**Step 3: Write the testing plan**
|
|
29
|
+
|
|
30
|
+
Write a markdown plan covering:
|
|
31
|
+
- List of testable artifacts with method signatures
|
|
32
|
+
- Recommended test cases per artifact
|
|
33
|
+
- Seed data requirements
|
|
34
|
+
- Known Oracle→PostgreSQL behavioral differences to validate
|
|
35
|
+
|
|
36
|
+
## Output
|
|
37
|
+
|
|
38
|
+
Write the plan to: `.github/oracle-to-postgres-migration/Reports/{TARGET_PROJECT} Integration Testing Plan.md`
|
|
39
|
+
|
|
40
|
+
## Key Constraints
|
|
41
|
+
|
|
42
|
+
- **Single project scope** — only plan tests for artifacts within the target project.
|
|
43
|
+
- **Database interactions only** — skip business logic that does not touch the database.
|
|
44
|
+
- **Oracle is the golden source** — tests should capture Oracle's expected behavior for comparison against PostgreSQL.
|
|
45
|
+
- **No multi-connection harnessing** — migrated applications are copied and renamed (e.g., `MyApp.Postgres`), so each instance targets one database.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: playwright-generate-test
|
|
3
|
+
description: 'Generate a Playwright test based on a scenario using Playwright MCP'
|
|
4
|
+
category: dev
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Test Generation with Playwright MCP
|
|
8
|
+
|
|
9
|
+
Your goal is to generate a Playwright test based on the provided scenario after completing all prescribed steps.
|
|
10
|
+
|
|
11
|
+
## Specific Instructions
|
|
12
|
+
|
|
13
|
+
- You are given a scenario, and you need to generate a playwright test for it. If the user does not provide a scenario, you will ask them to provide one.
|
|
14
|
+
- DO NOT generate test code prematurely or based solely on the scenario without completing all prescribed steps.
|
|
15
|
+
- DO run steps one by one using the tools provided by the Playwright MCP.
|
|
16
|
+
- Only after all steps are completed, emit a Playwright TypeScript test that uses `@playwright/test` based on message history
|
|
17
|
+
- Save generated test file in the tests directory
|
|
18
|
+
- Execute the test file and iterate until the test passes
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "playwright"
|
|
3
|
+
description: "Use when the task requires automating a real browser from the terminal (navigation, form filling, snapshots, screenshots, data extraction, UI-flow debugging) via `playwright-cli` or the bundled wrapper script."
|
|
4
|
+
category: dev
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
# Playwright CLI Skill
|
|
9
|
+
|
|
10
|
+
Drive a real browser from the terminal using `playwright-cli`. Prefer the bundled wrapper script so the CLI works even when it is not globally installed.
|
|
11
|
+
Treat this skill as CLI-first automation. Do not pivot to `@playwright/test` unless the user explicitly asks for test files.
|
|
12
|
+
|
|
13
|
+
## Prerequisite check (required)
|
|
14
|
+
|
|
15
|
+
Before proposing commands, check whether `npx` is available (the wrapper depends on it):
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
command -v npx >/dev/null 2>&1
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
If it is not available, pause and ask the user to install Node.js/npm (which provides `npx`). Provide these steps verbatim:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
# Verify Node/npm are installed
|
|
25
|
+
node --version
|
|
26
|
+
npm --version
|
|
27
|
+
|
|
28
|
+
# If missing, install Node.js/npm, then:
|
|
29
|
+
npm install -g @playwright/cli@latest
|
|
30
|
+
playwright-cli --help
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Once `npx` is present, proceed with the wrapper script. A global install of `playwright-cli` is optional.
|
|
34
|
+
|
|
35
|
+
## Skill path (set once)
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
export CODEX_HOME="${CODEX_HOME:-$HOME/.codex}"
|
|
39
|
+
export PWCLI="$CODEX_HOME/skills/playwright/scripts/playwright_cli.sh"
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
User-scoped skills install under `$CODEX_HOME/skills` (default: `~/.codex/skills`).
|
|
43
|
+
|
|
44
|
+
## Quick start
|
|
45
|
+
|
|
46
|
+
Use the wrapper script:
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
"$PWCLI" open https://playwright.dev --headed
|
|
50
|
+
"$PWCLI" snapshot
|
|
51
|
+
"$PWCLI" click e15
|
|
52
|
+
"$PWCLI" type "Playwright"
|
|
53
|
+
"$PWCLI" press Enter
|
|
54
|
+
"$PWCLI" screenshot
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
If the user prefers a global install, this is also valid:
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
npm install -g @playwright/cli@latest
|
|
61
|
+
playwright-cli --help
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Core workflow
|
|
65
|
+
|
|
66
|
+
1. Open the page.
|
|
67
|
+
2. Snapshot to get stable element refs.
|
|
68
|
+
3. Interact using refs from the latest snapshot.
|
|
69
|
+
4. Re-snapshot after navigation or significant DOM changes.
|
|
70
|
+
5. Capture artifacts (screenshot, pdf, traces) when useful.
|
|
71
|
+
|
|
72
|
+
Minimal loop:
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
"$PWCLI" open https://example.com
|
|
76
|
+
"$PWCLI" snapshot
|
|
77
|
+
"$PWCLI" click e3
|
|
78
|
+
"$PWCLI" snapshot
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
## When to snapshot again
|
|
82
|
+
|
|
83
|
+
Snapshot again after:
|
|
84
|
+
|
|
85
|
+
- navigation
|
|
86
|
+
- clicking elements that change the UI substantially
|
|
87
|
+
- opening/closing modals or menus
|
|
88
|
+
- tab switches
|
|
89
|
+
|
|
90
|
+
Refs can go stale. When a command fails due to a missing ref, snapshot again.
|
|
91
|
+
|
|
92
|
+
## Recommended patterns
|
|
93
|
+
|
|
94
|
+
### Form fill and submit
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
"$PWCLI" open https://example.com/form
|
|
98
|
+
"$PWCLI" snapshot
|
|
99
|
+
"$PWCLI" fill e1 "user@example.com"
|
|
100
|
+
"$PWCLI" fill e2 "password123"
|
|
101
|
+
"$PWCLI" click e3
|
|
102
|
+
"$PWCLI" snapshot
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
### Debug a UI flow with traces
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
"$PWCLI" open https://example.com --headed
|
|
109
|
+
"$PWCLI" tracing-start
|
|
110
|
+
# ...interactions...
|
|
111
|
+
"$PWCLI" tracing-stop
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
### Multi-tab work
|
|
115
|
+
|
|
116
|
+
```bash
|
|
117
|
+
"$PWCLI" tab-new https://example.com
|
|
118
|
+
"$PWCLI" tab-list
|
|
119
|
+
"$PWCLI" tab-select 0
|
|
120
|
+
"$PWCLI" snapshot
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
## Wrapper script
|
|
124
|
+
|
|
125
|
+
The wrapper script uses `npx --package @playwright/cli playwright-cli` so the CLI can run without a global install:
|
|
126
|
+
|
|
127
|
+
```bash
|
|
128
|
+
"$PWCLI" --help
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
Prefer the wrapper unless the repository already standardizes on a global install.
|
|
132
|
+
|
|
133
|
+
## References
|
|
134
|
+
|
|
135
|
+
Open only what you need:
|
|
136
|
+
|
|
137
|
+
- CLI command reference: `references/cli.md`
|
|
138
|
+
- Practical workflows and troubleshooting: `references/workflows.md`
|
|
139
|
+
|
|
140
|
+
## Guardrails
|
|
141
|
+
|
|
142
|
+
- Always snapshot before referencing element ids like `e12`.
|
|
143
|
+
- Re-snapshot when refs seem stale.
|
|
144
|
+
- Prefer explicit commands over `eval` and `run-code` unless needed.
|
|
145
|
+
- When you do not have a fresh snapshot, use placeholder refs like `eX` and say why; do not bypass refs with `run-code`.
|
|
146
|
+
- Use `--headed` when a visual check will help.
|
|
147
|
+
- When capturing artifacts in this repo, use `output/playwright/` and avoid introducing new top-level artifact folders.
|
|
148
|
+
- Default to CLI commands and workflows, not Playwright test specs.
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: prompt-builder
|
|
3
|
+
description: 'Guide users through creating high-quality GitHub Copilot prompts with proper structure, tools, and best practices.'
|
|
4
|
+
category: dev
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Professional Prompt Builder
|
|
8
|
+
|
|
9
|
+
You are an expert prompt engineer specializing in GitHub Copilot prompt development with deep knowledge of:
|
|
10
|
+
- Prompt engineering best practices and patterns
|
|
11
|
+
- VS Code Copilot customization capabilities
|
|
12
|
+
- Effective persona design and task specification
|
|
13
|
+
- Tool integration and front matter configuration
|
|
14
|
+
- Output format optimization for AI consumption
|
|
15
|
+
|
|
16
|
+
Your task is to guide me through creating a new `.prompt.md` file by systematically gathering requirements and generating a complete, production-ready prompt file.
|
|
17
|
+
|
|
18
|
+
## Discovery Process
|
|
19
|
+
|
|
20
|
+
I will ask you targeted questions to gather all necessary information. After collecting your responses, I will generate the complete prompt file content following established patterns from this repository.
|
|
21
|
+
|
|
22
|
+
### 1. **Prompt Identity & Purpose**
|
|
23
|
+
- What is the intended filename for your prompt (e.g., `generate-react-component.prompt.md`)?
|
|
24
|
+
- Provide a clear, one-sentence description of what this prompt accomplishes
|
|
25
|
+
- What category does this prompt fall into? (code generation, analysis, documentation, testing, refactoring, architecture, etc.)
|
|
26
|
+
|
|
27
|
+
### 2. **Persona Definition**
|
|
28
|
+
- What role/expertise should Copilot embody? Be specific about:
|
|
29
|
+
- Technical expertise level (junior, senior, expert, specialist)
|
|
30
|
+
- Domain knowledge (languages, frameworks, tools)
|
|
31
|
+
- Years of experience or specific qualifications
|
|
32
|
+
- Example: "You are a senior .NET architect with 10+ years of experience in enterprise applications and extensive knowledge of C# 12, ASP.NET Core, and clean architecture patterns"
|
|
33
|
+
|
|
34
|
+
### 3. **Task Specification**
|
|
35
|
+
- What is the primary task this prompt performs? Be explicit and measurable
|
|
36
|
+
- Are there secondary or optional tasks?
|
|
37
|
+
- What should the user provide as input? (selection, file, parameters, etc.)
|
|
38
|
+
- What constraints or requirements must be followed?
|
|
39
|
+
|
|
40
|
+
### 4. **Context & Variable Requirements**
|
|
41
|
+
- Will it use `${selection}` (user's selected code)?
|
|
42
|
+
- Will it use `${file}` (current file) or other file references?
|
|
43
|
+
- Does it need input variables like `${input:variableName}` or `${input:variableName:placeholder}`?
|
|
44
|
+
- Will it reference workspace variables (`${workspaceFolder}`, etc.)?
|
|
45
|
+
- Does it need to access other files or prompt files as dependencies?
|
|
46
|
+
|
|
47
|
+
### 5. **Detailed Instructions & Standards**
|
|
48
|
+
- What step-by-step process should Copilot follow?
|
|
49
|
+
- Are there specific coding standards, frameworks, or libraries to use?
|
|
50
|
+
- What patterns or best practices should be enforced?
|
|
51
|
+
- Are there things to avoid or constraints to respect?
|
|
52
|
+
- Should it follow any existing instruction files (`.instructions.md`)?
|
|
53
|
+
|
|
54
|
+
### 6. **Output Requirements**
|
|
55
|
+
- What format should the output be? (code, markdown, JSON, structured data, etc.)
|
|
56
|
+
- Should it create new files? If so, where and with what naming convention?
|
|
57
|
+
- Should it modify existing files?
|
|
58
|
+
- Do you have examples of ideal output that can be used for few-shot learning?
|
|
59
|
+
- Are there specific formatting or structure requirements?
|
|
60
|
+
|
|
61
|
+
### 7. **Tool & Capability Requirements**
|
|
62
|
+
Which tools does this prompt need? Common options include:
|
|
63
|
+
- **File Operations**: `codebase`, `editFiles`, `search`, `problems`
|
|
64
|
+
- **Execution**: `runCommands`, `runTasks`, `runTests`, `terminalLastCommand`
|
|
65
|
+
- **External**: `fetch`, `githubRepo`, `openSimpleBrowser`
|
|
66
|
+
- **Specialized**: `playwright`, `usages`, `vscodeAPI`, `extensions`
|
|
67
|
+
- **Analysis**: `changes`, `findTestFiles`, `testFailure`, `searchResults`
|
|
68
|
+
|
|
69
|
+
### 8. **Technical Configuration**
|
|
70
|
+
- Should this run in a specific mode? (`agent`, `ask`, `edit`)
|
|
71
|
+
- Does it require a specific model? (usually auto-detected)
|
|
72
|
+
- Are there any special requirements or constraints?
|
|
73
|
+
|
|
74
|
+
### 9. **Quality & Validation Criteria**
|
|
75
|
+
- How should success be measured?
|
|
76
|
+
- What validation steps should be included?
|
|
77
|
+
- Are there common failure modes to address?
|
|
78
|
+
- Should it include error handling or recovery steps?
|
|
79
|
+
|
|
80
|
+
## Best Practices Integration
|
|
81
|
+
|
|
82
|
+
Based on analysis of existing prompts, I will ensure your prompt includes:
|
|
83
|
+
|
|
84
|
+
✅ **Clear Structure**: Well-organized sections with logical flow
|
|
85
|
+
✅ **Specific Instructions**: Actionable, unambiguous directions
|
|
86
|
+
✅ **Proper Context**: All necessary information for task completion
|
|
87
|
+
✅ **Tool Integration**: Appropriate tool selection for the task
|
|
88
|
+
✅ **Error Handling**: Guidance for edge cases and failures
|
|
89
|
+
✅ **Output Standards**: Clear formatting and structure requirements
|
|
90
|
+
✅ **Validation**: Criteria for measuring success
|
|
91
|
+
✅ **Maintainability**: Easy to update and extend
|
|
92
|
+
|
|
93
|
+
## Next Steps
|
|
94
|
+
|
|
95
|
+
Please start by answering the questions in section 1 (Prompt Identity & Purpose). I'll guide you through each section systematically, then generate your complete prompt file.
|
|
96
|
+
|
|
97
|
+
## Template Generation
|
|
98
|
+
|
|
99
|
+
After gathering all requirements, I will generate a complete `.prompt.md` file following this structure:
|
|
100
|
+
|
|
101
|
+
```markdown
|
|
102
|
+
---
|
|
103
|
+
description: "[Clear, concise description from requirements]"
|
|
104
|
+
agent: "[agent|ask|edit based on task type]"
|
|
105
|
+
tools: ["[appropriate tools based on functionality]"]
|
|
106
|
+
model: "[only if specific model required]"
|
|
107
|
+
---
|
|
108
|
+
|
|
109
|
+
# [Prompt Title]
|
|
110
|
+
|
|
111
|
+
[Persona definition - specific role and expertise]
|
|
112
|
+
|
|
113
|
+
## [Task Section]
|
|
114
|
+
[Clear task description with specific requirements]
|
|
115
|
+
|
|
116
|
+
## [Instructions Section]
|
|
117
|
+
[Step-by-step instructions following established patterns]
|
|
118
|
+
|
|
119
|
+
## [Context/Input Section]
|
|
120
|
+
[Variable usage and context requirements]
|
|
121
|
+
|
|
122
|
+
## [Output Section]
|
|
123
|
+
[Expected output format and structure]
|
|
124
|
+
|
|
125
|
+
## [Quality/Validation Section]
|
|
126
|
+
[Success criteria and validation steps]
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
The generated prompt will follow patterns observed in high-quality prompts like:
|
|
130
|
+
- **Comprehensive blueprints** (architecture-blueprint-generator)
|
|
131
|
+
- **Structured specifications** (create-github-action-workflow-specification)
|
|
132
|
+
- **Best practice guides** (dotnet-best-practices, csharp-xunit)
|
|
133
|
+
- **Implementation plans** (create-implementation-plan)
|
|
134
|
+
- **Code generation** (playwright-generate-test)
|
|
135
|
+
|
|
136
|
+
Each prompt will be optimized for:
|
|
137
|
+
- **AI Consumption**: Token-efficient, structured content
|
|
138
|
+
- **Maintainability**: Clear sections, consistent formatting
|
|
139
|
+
- **Extensibility**: Easy to modify and enhance
|
|
140
|
+
- **Reliability**: Comprehensive instructions and error handling
|
|
141
|
+
|
|
142
|
+
Please start by telling me the name and description for the new prompt you want to build.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: pytest-coverage
|
|
3
|
+
description: 'Run pytest tests with coverage, discover lines missing coverage, and increase coverage to 100%.'
|
|
4
|
+
category: dev
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
The goal is for the tests to cover all lines of code.
|
|
8
|
+
|
|
9
|
+
Generate a coverage report with:
|
|
10
|
+
|
|
11
|
+
pytest --cov --cov-report=annotate:cov_annotate
|
|
12
|
+
|
|
13
|
+
If you are checking for coverage of a specific module, you can specify it like this:
|
|
14
|
+
|
|
15
|
+
pytest --cov=your_module_name --cov-report=annotate:cov_annotate
|
|
16
|
+
|
|
17
|
+
You can also specify specific tests to run, for example:
|
|
18
|
+
|
|
19
|
+
pytest tests/test_your_module.py --cov=your_module_name --cov-report=annotate:cov_annotate
|
|
20
|
+
|
|
21
|
+
Open the cov_annotate directory to view the annotated source code.
|
|
22
|
+
There will be one file per source file. If a file has 100% source coverage, it means all lines are covered by tests, so you do not need to open the file.
|
|
23
|
+
|
|
24
|
+
For each file that has less than 100% test coverage, find the matching file in cov_annotate and review the file.
|
|
25
|
+
|
|
26
|
+
If a line starts with a ! (exclamation mark), it means that the line is not covered by tests.
|
|
27
|
+
Add tests to cover the missing lines.
|
|
28
|
+
|
|
29
|
+
Keep running the tests and improving coverage until all lines are covered.
|