workspace-architect 1.3.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/.env.example +1 -0
- package/.gitattributes +1 -0
- package/.github/workflows/manual-publish.yml +36 -0
- package/.github/workflows/sync-and-publish.yml +58 -0
- package/.release-it.json +20 -0
- package/CHANGELOG.md +43 -0
- package/README.md +62 -0
- package/assets/chatmodes/4.1-Beast.chatmode.md +152 -0
- package/assets/chatmodes/Thinking-Beast-Mode.chatmode.md +337 -0
- package/assets/chatmodes/Ultimate-Transparent-Thinking-Beast-Mode.chatmode.md +644 -0
- package/assets/chatmodes/accessibility.chatmode.md +298 -0
- package/assets/chatmodes/address-comments.chatmode.md +59 -0
- package/assets/chatmodes/aem-frontend-specialist.chatmode.md +385 -0
- package/assets/chatmodes/api-architect.chatmode.md +40 -0
- package/assets/chatmodes/atlassian-requirements-to-jira.chatmode.md +444 -0
- package/assets/chatmodes/azure-logic-apps-expert.chatmode.md +100 -0
- package/assets/chatmodes/azure-principal-architect.chatmode.md +58 -0
- package/assets/chatmodes/azure-saas-architect.chatmode.md +118 -0
- package/assets/chatmodes/azure-verified-modules-bicep.chatmode.md +44 -0
- package/assets/chatmodes/azure-verified-modules-terraform.chatmode.md +58 -0
- package/assets/chatmodes/bicep-implement.chatmode.md +40 -0
- package/assets/chatmodes/bicep-plan.chatmode.md +112 -0
- package/assets/chatmodes/blueprint-mode-codex.chatmode.md +110 -0
- package/assets/chatmodes/blueprint-mode.chatmode.md +171 -0
- package/assets/chatmodes/clojure-interactive-programming.chatmode.md +174 -0
- package/assets/chatmodes/code-tour.chatmode.md +205 -0
- package/assets/chatmodes/critical-thinking.chatmode.md +23 -0
- package/assets/chatmodes/csharp-dotnet-janitor.chatmode.md +83 -0
- package/assets/chatmodes/csharp-mcp-expert.chatmode.md +69 -0
- package/assets/chatmodes/debug.chatmode.md +79 -0
- package/assets/chatmodes/declarative-agents-architect.chatmode.md +76 -0
- package/assets/chatmodes/demonstrate-understanding.chatmode.md +60 -0
- package/assets/chatmodes/dotnet-upgrade.chatmode.md +222 -0
- package/assets/chatmodes/drupal-expert.chatmode.md +687 -0
- package/assets/chatmodes/electron-angular-native.chatmode.md +285 -0
- package/assets/chatmodes/expert-cpp-software-engineer.chatmode.md +27 -0
- package/assets/chatmodes/expert-dotnet-software-engineer.chatmode.md +22 -0
- package/assets/chatmodes/expert-nextjs-developer.chatmode.md +477 -0
- package/assets/chatmodes/expert-react-frontend-engineer.chatmode.md +738 -0
- package/assets/chatmodes/gilfoyle.chatmode.md +66 -0
- package/assets/chatmodes/go-mcp-expert.chatmode.md +122 -0
- package/assets/chatmodes/gpt-5-beast-mode.chatmode.md +109 -0
- package/assets/chatmodes/hlbpa.chatmode.md +232 -0
- package/assets/chatmodes/implementation-plan.chatmode.md +159 -0
- package/assets/chatmodes/janitor.chatmode.md +89 -0
- package/assets/chatmodes/java-mcp-expert.chatmode.md +325 -0
- package/assets/chatmodes/kotlin-mcp-expert.chatmode.md +181 -0
- package/assets/chatmodes/kusto-assistant.chatmode.md +143 -0
- package/assets/chatmodes/laravel-expert-agent.chatmode.md +628 -0
- package/assets/chatmodes/mentor.chatmode.md +32 -0
- package/assets/chatmodes/meta-agentic-project-scaffold.chatmode.md +15 -0
- package/assets/chatmodes/microsoft-agent-framework-dotnet.chatmode.md +62 -0
- package/assets/chatmodes/microsoft-agent-framework-python.chatmode.md +62 -0
- package/assets/chatmodes/microsoft-study-mode.chatmode.md +32 -0
- package/assets/chatmodes/microsoft_learn_contributor.chatmode.md +388 -0
- package/assets/chatmodes/ms-sql-dba.chatmode.md +25 -0
- package/assets/chatmodes/php-mcp-expert.chatmode.md +498 -0
- package/assets/chatmodes/pimcore-expert.chatmode.md +869 -0
- package/assets/chatmodes/plan.chatmode.md +114 -0
- package/assets/chatmodes/planner.chatmode.md +14 -0
- package/assets/chatmodes/playwright-tester.chatmode.md +13 -0
- package/assets/chatmodes/postgresql-dba.chatmode.md +17 -0
- package/assets/chatmodes/power-bi-data-modeling-expert.chatmode.md +319 -0
- package/assets/chatmodes/power-bi-dax-expert.chatmode.md +334 -0
- package/assets/chatmodes/power-bi-performance-expert.chatmode.md +533 -0
- package/assets/chatmodes/power-bi-visualization-expert.chatmode.md +549 -0
- package/assets/chatmodes/power-platform-expert.chatmode.md +116 -0
- package/assets/chatmodes/power-platform-mcp-integration-expert.chatmode.md +149 -0
- package/assets/chatmodes/prd.chatmode.md +201 -0
- package/assets/chatmodes/principal-software-engineer.chatmode.md +41 -0
- package/assets/chatmodes/prompt-builder.chatmode.md +352 -0
- package/assets/chatmodes/prompt-engineer.chatmode.md +72 -0
- package/assets/chatmodes/python-mcp-expert.chatmode.md +99 -0
- package/assets/chatmodes/refine-issue.chatmode.md +34 -0
- package/assets/chatmodes/research-technical-spike.chatmode.md +169 -0
- package/assets/chatmodes/ruby-mcp-expert.chatmode.md +346 -0
- package/assets/chatmodes/rust-gpt-4.1-beast-mode.chatmode.md +197 -0
- package/assets/chatmodes/rust-mcp-expert.chatmode.md +465 -0
- package/assets/chatmodes/search-ai-optimization-expert.chatmode.md +227 -0
- package/assets/chatmodes/semantic-kernel-dotnet.chatmode.md +31 -0
- package/assets/chatmodes/semantic-kernel-python.chatmode.md +28 -0
- package/assets/chatmodes/shopify-expert.chatmode.md +681 -0
- package/assets/chatmodes/simple-app-idea-generator.chatmode.md +134 -0
- package/assets/chatmodes/software-engineer-agent-v1.chatmode.md +164 -0
- package/assets/chatmodes/specification.chatmode.md +127 -0
- package/assets/chatmodes/swift-mcp-expert.chatmode.md +240 -0
- package/assets/chatmodes/task-planner.chatmode.md +374 -0
- package/assets/chatmodes/task-researcher.chatmode.md +254 -0
- package/assets/chatmodes/tdd-green.chatmode.md +59 -0
- package/assets/chatmodes/tdd-red.chatmode.md +59 -0
- package/assets/chatmodes/tdd-refactor.chatmode.md +84 -0
- package/assets/chatmodes/tech-debt-remediation-plan.chatmode.md +49 -0
- package/assets/chatmodes/terraform-azure-implement.chatmode.md +104 -0
- package/assets/chatmodes/terraform-azure-planning.chatmode.md +157 -0
- package/assets/chatmodes/typescript-mcp-expert.chatmode.md +91 -0
- package/assets/chatmodes/voidbeast-gpt41enhanced.chatmode.md +230 -0
- package/assets/chatmodes/wg-code-alchemist.chatmode.md +61 -0
- package/assets/chatmodes/wg-code-sentinel.chatmode.md +55 -0
- package/assets/collections/ai-prompt-engineering.json +18 -0
- package/assets/collections/angular-development.json +7 -0
- package/assets/collections/azure-cloud-architect.json +29 -0
- package/assets/collections/cpp-development.json +6 -0
- package/assets/collections/database-administration.json +8 -0
- package/assets/collections/devops-sre.json +11 -0
- package/assets/collections/dotnet-development.json +22 -0
- package/assets/collections/general-productivity.json +9 -0
- package/assets/collections/go-development.json +7 -0
- package/assets/collections/java-spring-developer.json +26 -0
- package/assets/collections/learning-mentoring.json +10 -0
- package/assets/collections/legacy-migration.json +4 -0
- package/assets/collections/mcp-specialist.json +41 -0
- package/assets/collections/mobile-development.json +4 -0
- package/assets/collections/php-cms-development.json +11 -0
- package/assets/collections/power-platform-specialist.json +31 -0
- package/assets/collections/project-management.json +12 -0
- package/assets/collections/python-development.json +13 -0
- package/assets/collections/quality-assurance.json +13 -0
- package/assets/collections/ruby-development.json +9 -0
- package/assets/collections/rust-development.json +10 -0
- package/assets/collections/security-specialist.json +8 -0
- package/assets/collections/software-architect.json +25 -0
- package/assets/collections/technical-writing.json +9 -0
- package/assets/collections/web-frontend-development.json +14 -0
- package/assets/instructions/a11y.instructions.md +369 -0
- package/assets/instructions/ai-prompt-engineering-safety-best-practices.instructions.md +867 -0
- package/assets/instructions/angular.instructions.md +104 -0
- package/assets/instructions/ansible.instructions.md +88 -0
- package/assets/instructions/aspnet-rest-apis.instructions.md +110 -0
- package/assets/instructions/astro.instructions.md +182 -0
- package/assets/instructions/azure-devops-pipelines.instructions.md +185 -0
- package/assets/instructions/azure-functions-typescript.instructions.md +14 -0
- package/assets/instructions/azure-logic-apps-power-automate.instructions.md +1943 -0
- package/assets/instructions/azure-verified-modules-terraform.instructions.md +229 -0
- package/assets/instructions/bicep-code-best-practices.instructions.md +54 -0
- package/assets/instructions/blazor.instructions.md +77 -0
- package/assets/instructions/clojure.instructions.md +349 -0
- package/assets/instructions/cmake-vcpkg.instructions.md +10 -0
- package/assets/instructions/codexer.instructions.md +428 -0
- package/assets/instructions/coldfusion-cfc.instructions.md +30 -0
- package/assets/instructions/coldfusion-cfm.instructions.md +28 -0
- package/assets/instructions/collections.instructions.md +54 -0
- package/assets/instructions/containerization-docker-best-practices.instructions.md +681 -0
- package/assets/instructions/convert-jpa-to-spring-data-cosmos.instructions.md +949 -0
- package/assets/instructions/copilot-thought-logging.instructions.md +62 -0
- package/assets/instructions/csharp-ja.instructions.md +114 -0
- package/assets/instructions/csharp-ko.instructions.md +77 -0
- package/assets/instructions/csharp-mcp-server.instructions.md +95 -0
- package/assets/instructions/csharp.instructions.md +114 -0
- package/assets/instructions/dart-n-flutter.instructions.md +447 -0
- package/assets/instructions/declarative-agents-microsoft365.instructions.md +316 -0
- package/assets/instructions/devbox-image-definition.instructions.md +302 -0
- package/assets/instructions/devops-core-principles.instructions.md +167 -0
- package/assets/instructions/dotnet-architecture-good-practices.instructions.md +279 -0
- package/assets/instructions/dotnet-framework.instructions.md +113 -0
- package/assets/instructions/dotnet-maui-9-to-dotnet-maui-10-upgrade.instructions.md +1922 -0
- package/assets/instructions/dotnet-maui.instructions.md +69 -0
- package/assets/instructions/dotnet-upgrade.instructions.md +287 -0
- package/assets/instructions/dotnet-wpf.instructions.md +79 -0
- package/assets/instructions/genaiscript.instructions.md +21 -0
- package/assets/instructions/generate-modern-terraform-code-for-azure.instructions.md +82 -0
- package/assets/instructions/gilfoyle-code-review.instructions.md +114 -0
- package/assets/instructions/github-actions-ci-cd-best-practices.instructions.md +607 -0
- package/assets/instructions/go-mcp-server.instructions.md +346 -0
- package/assets/instructions/go.instructions.md +373 -0
- package/assets/instructions/instructions.instructions.md +256 -0
- package/assets/instructions/java-11-to-java-17-upgrade.instructions.md +793 -0
- package/assets/instructions/java-17-to-java-21-upgrade.instructions.md +464 -0
- package/assets/instructions/java-21-to-java-25-upgrade.instructions.md +311 -0
- package/assets/instructions/java-mcp-server.instructions.md +553 -0
- package/assets/instructions/java.instructions.md +81 -0
- package/assets/instructions/joyride-user-project.instructions.md +206 -0
- package/assets/instructions/joyride-workspace-automation.instructions.md +46 -0
- package/assets/instructions/kotlin-mcp-server.instructions.md +481 -0
- package/assets/instructions/kubernetes-deployment-best-practices.instructions.md +307 -0
- package/assets/instructions/langchain-python.instructions.md +229 -0
- package/assets/instructions/localization.instructions.md +39 -0
- package/assets/instructions/makefile.instructions.md +410 -0
- package/assets/instructions/markdown.instructions.md +52 -0
- package/assets/instructions/memory-bank.instructions.md +299 -0
- package/assets/instructions/mongo-dba.instructions.md +25 -0
- package/assets/instructions/ms-sql-dba.instructions.md +25 -0
- package/assets/instructions/nestjs.instructions.md +406 -0
- package/assets/instructions/nextjs-tailwind.instructions.md +72 -0
- package/assets/instructions/nextjs.instructions.md +143 -0
- package/assets/instructions/nodejs-javascript-vitest.instructions.md +30 -0
- package/assets/instructions/object-calisthenics.instructions.md +302 -0
- package/assets/instructions/oqtane.instructions.md +86 -0
- package/assets/instructions/performance-optimization.instructions.md +420 -0
- package/assets/instructions/php-mcp-server.instructions.md +809 -0
- package/assets/instructions/playwright-dotnet.instructions.md +101 -0
- package/assets/instructions/playwright-python.instructions.md +62 -0
- package/assets/instructions/playwright-typescript.instructions.md +86 -0
- package/assets/instructions/power-apps-canvas-yaml.instructions.md +827 -0
- package/assets/instructions/power-apps-code-apps.instructions.md +601 -0
- package/assets/instructions/power-bi-custom-visuals-development.instructions.md +810 -0
- package/assets/instructions/power-bi-data-modeling-best-practices.instructions.md +639 -0
- package/assets/instructions/power-bi-dax-best-practices.instructions.md +795 -0
- package/assets/instructions/power-bi-devops-alm-best-practices.instructions.md +623 -0
- package/assets/instructions/power-bi-report-design-best-practices.instructions.md +752 -0
- package/assets/instructions/power-bi-security-rls-best-practices.instructions.md +504 -0
- package/assets/instructions/power-platform-connector.instructions.md +430 -0
- package/assets/instructions/power-platform-mcp-development.instructions.md +88 -0
- package/assets/instructions/powershell-pester-5.instructions.md +197 -0
- package/assets/instructions/powershell.instructions.md +356 -0
- package/assets/instructions/prompt.instructions.md +73 -0
- package/assets/instructions/python-mcp-server.instructions.md +204 -0
- package/assets/instructions/python.instructions.md +56 -0
- package/assets/instructions/quarkus-mcp-server-sse.instructions.md +49 -0
- package/assets/instructions/quarkus.instructions.md +98 -0
- package/assets/instructions/r.instructions.md +116 -0
- package/assets/instructions/reactjs.instructions.md +162 -0
- package/assets/instructions/ruby-mcp-server.instructions.md +629 -0
- package/assets/instructions/ruby-on-rails.instructions.md +124 -0
- package/assets/instructions/rust-mcp-server.instructions.md +715 -0
- package/assets/instructions/rust.instructions.md +135 -0
- package/assets/instructions/security-and-owasp.instructions.md +51 -0
- package/assets/instructions/self-explanatory-code-commenting.instructions.md +162 -0
- package/assets/instructions/shell.instructions.md +132 -0
- package/assets/instructions/spec-driven-workflow-v1.instructions.md +323 -0
- package/assets/instructions/springboot.instructions.md +68 -0
- package/assets/instructions/sql-sp-generation.instructions.md +74 -0
- package/assets/instructions/svelte.instructions.md +161 -0
- package/assets/instructions/swift-mcp-server.instructions.md +498 -0
- package/assets/instructions/taming-copilot.instructions.md +40 -0
- package/assets/instructions/tanstack-start-shadcn-tailwind.instructions.md +212 -0
- package/assets/instructions/task-implementation.instructions.md +190 -0
- package/assets/instructions/tasksync.instructions.md +352 -0
- package/assets/instructions/terraform-azure.instructions.md +254 -0
- package/assets/instructions/terraform-sap-btp.instructions.md +195 -0
- package/assets/instructions/terraform.instructions.md +113 -0
- package/assets/instructions/typescript-5-es2022.instructions.md +114 -0
- package/assets/instructions/typescript-mcp-server.instructions.md +228 -0
- package/assets/instructions/update-code-from-shorthand.instructions.md +130 -0
- package/assets/instructions/vuejs3.instructions.md +153 -0
- package/assets/instructions/wordpress.instructions.md +186 -0
- package/assets/prompts/add-educational-comments.prompt.md +129 -0
- package/assets/prompts/ai-prompt-engineering-safety-review.prompt.md +230 -0
- package/assets/prompts/architecture-blueprint-generator.prompt.md +322 -0
- package/assets/prompts/aspnet-minimal-api-openapi.prompt.md +42 -0
- package/assets/prompts/az-cost-optimize.prompt.md +305 -0
- package/assets/prompts/azure-resource-health-diagnose.prompt.md +290 -0
- package/assets/prompts/boost-prompt.prompt.md +25 -0
- package/assets/prompts/breakdown-epic-arch.prompt.md +66 -0
- package/assets/prompts/breakdown-epic-pm.prompt.md +58 -0
- package/assets/prompts/breakdown-feature-implementation.prompt.md +128 -0
- package/assets/prompts/breakdown-feature-prd.prompt.md +61 -0
- package/assets/prompts/breakdown-plan.prompt.md +509 -0
- package/assets/prompts/breakdown-test.prompt.md +365 -0
- package/assets/prompts/code-exemplars-blueprint-generator.prompt.md +126 -0
- package/assets/prompts/comment-code-generate-a-tutorial.prompt.md +26 -0
- package/assets/prompts/containerize-aspnet-framework.prompt.md +455 -0
- package/assets/prompts/containerize-aspnetcore.prompt.md +393 -0
- package/assets/prompts/conventional-commit.prompt.md +73 -0
- package/assets/prompts/copilot-instructions-blueprint-generator.prompt.md +294 -0
- package/assets/prompts/cosmosdb-datamodeling.prompt.md +1045 -0
- package/assets/prompts/create-agentsmd.prompt.md +249 -0
- package/assets/prompts/create-architectural-decision-record.prompt.md +97 -0
- package/assets/prompts/create-github-action-workflow-specification.prompt.md +276 -0
- package/assets/prompts/create-github-issue-feature-from-specification.prompt.md +28 -0
- package/assets/prompts/create-github-issues-feature-from-implementation-plan.prompt.md +28 -0
- package/assets/prompts/create-github-issues-for-unmet-specification-requirements.prompt.md +35 -0
- package/assets/prompts/create-github-pull-request-from-specification.prompt.md +24 -0
- package/assets/prompts/create-implementation-plan.prompt.md +157 -0
- package/assets/prompts/create-llms.prompt.md +210 -0
- package/assets/prompts/create-oo-component-documentation.prompt.md +193 -0
- package/assets/prompts/create-readme.prompt.md +21 -0
- package/assets/prompts/create-specification.prompt.md +127 -0
- package/assets/prompts/create-spring-boot-java-project.prompt.md +163 -0
- package/assets/prompts/create-spring-boot-kotlin-project.prompt.md +147 -0
- package/assets/prompts/create-technical-spike.prompt.md +231 -0
- package/assets/prompts/csharp-async.prompt.md +50 -0
- package/assets/prompts/csharp-docs.prompt.md +63 -0
- package/assets/prompts/csharp-mcp-server-generator.prompt.md +59 -0
- package/assets/prompts/csharp-mstest.prompt.md +67 -0
- package/assets/prompts/csharp-nunit.prompt.md +72 -0
- package/assets/prompts/csharp-tunit.prompt.md +101 -0
- package/assets/prompts/csharp-xunit.prompt.md +69 -0
- package/assets/prompts/declarative-agents.prompt.md +93 -0
- package/assets/prompts/documentation-writer.prompt.md +46 -0
- package/assets/prompts/dotnet-best-practices.prompt.md +84 -0
- package/assets/prompts/dotnet-design-pattern-review.prompt.md +41 -0
- package/assets/prompts/dotnet-upgrade.prompt.md +116 -0
- package/assets/prompts/editorconfig.prompt.md +64 -0
- package/assets/prompts/ef-core.prompt.md +76 -0
- package/assets/prompts/finalize-agent-prompt.prompt.md +27 -0
- package/assets/prompts/first-ask.prompt.md +29 -0
- package/assets/prompts/folder-structure-blueprint-generator.prompt.md +405 -0
- package/assets/prompts/gen-specs-as-issues.prompt.md +165 -0
- package/assets/prompts/generate-custom-instructions-from-codebase.prompt.md +240 -0
- package/assets/prompts/git-flow-branch-creator.prompt.md +293 -0
- package/assets/prompts/github-copilot-starter.prompt.md +372 -0
- package/assets/prompts/go-mcp-server-generator.prompt.md +334 -0
- package/assets/prompts/java-docs.prompt.md +24 -0
- package/assets/prompts/java-junit.prompt.md +64 -0
- package/assets/prompts/java-mcp-server-generator.prompt.md +756 -0
- package/assets/prompts/java-refactoring-extract-method.prompt.md +105 -0
- package/assets/prompts/java-refactoring-remove-parameter.prompt.md +85 -0
- package/assets/prompts/java-springboot.prompt.md +66 -0
- package/assets/prompts/javascript-typescript-jest.prompt.md +44 -0
- package/assets/prompts/kotlin-mcp-server-generator.prompt.md +449 -0
- package/assets/prompts/kotlin-springboot.prompt.md +71 -0
- package/assets/prompts/mcp-copilot-studio-server-generator.prompt.md +118 -0
- package/assets/prompts/memory-merger.prompt.md +107 -0
- package/assets/prompts/mkdocs-translations.prompt.md +110 -0
- package/assets/prompts/model-recommendation.prompt.md +677 -0
- package/assets/prompts/multi-stage-dockerfile.prompt.md +47 -0
- package/assets/prompts/my-issues.prompt.md +9 -0
- package/assets/prompts/my-pull-requests.prompt.md +15 -0
- package/assets/prompts/next-intl-add-language.prompt.md +20 -0
- package/assets/prompts/php-mcp-server-generator.prompt.md +522 -0
- package/assets/prompts/playwright-automation-fill-in-form.prompt.md +30 -0
- package/assets/prompts/playwright-explore-website.prompt.md +19 -0
- package/assets/prompts/playwright-generate-test.prompt.md +19 -0
- package/assets/prompts/postgresql-code-review.prompt.md +214 -0
- package/assets/prompts/postgresql-optimization.prompt.md +406 -0
- package/assets/prompts/power-apps-code-app-scaffold.prompt.md +150 -0
- package/assets/prompts/power-bi-dax-optimization.prompt.md +175 -0
- package/assets/prompts/power-bi-model-design-review.prompt.md +405 -0
- package/assets/prompts/power-bi-performance-troubleshooting.prompt.md +384 -0
- package/assets/prompts/power-bi-report-design-consultation.prompt.md +353 -0
- package/assets/prompts/power-platform-mcp-connector-suite.prompt.md +156 -0
- package/assets/prompts/project-workflow-analysis-blueprint-generator.prompt.md +294 -0
- package/assets/prompts/prompt-builder.prompt.md +142 -0
- package/assets/prompts/pytest-coverage.prompt.md +28 -0
- package/assets/prompts/python-mcp-server-generator.prompt.md +105 -0
- package/assets/prompts/readme-blueprint-generator.prompt.md +79 -0
- package/assets/prompts/remember-interactive-programming.prompt.md +13 -0
- package/assets/prompts/remember.prompt.md +125 -0
- package/assets/prompts/repo-story-time.prompt.md +156 -0
- package/assets/prompts/review-and-refactor.prompt.md +15 -0
- package/assets/prompts/ruby-mcp-server-generator.prompt.md +660 -0
- package/assets/prompts/rust-mcp-server-generator.prompt.md +578 -0
- package/assets/prompts/shuffle-json-data.prompt.md +151 -0
- package/assets/prompts/sql-code-review.prompt.md +303 -0
- package/assets/prompts/sql-optimization.prompt.md +298 -0
- package/assets/prompts/suggest-awesome-github-copilot-agents.prompt.md +72 -0
- package/assets/prompts/suggest-awesome-github-copilot-chatmodes.prompt.md +71 -0
- package/assets/prompts/suggest-awesome-github-copilot-collections.prompt.md +149 -0
- package/assets/prompts/suggest-awesome-github-copilot-instructions.prompt.md +88 -0
- package/assets/prompts/suggest-awesome-github-copilot-prompts.prompt.md +71 -0
- package/assets/prompts/swift-mcp-server-generator.prompt.md +669 -0
- package/assets/prompts/technology-stack-blueprint-generator.prompt.md +242 -0
- package/assets/prompts/typescript-mcp-server-generator.prompt.md +90 -0
- package/assets/prompts/update-avm-modules-in-bicep.prompt.md +60 -0
- package/assets/prompts/update-implementation-plan.prompt.md +157 -0
- package/assets/prompts/update-llms.prompt.md +216 -0
- package/assets/prompts/update-markdown-file-index.prompt.md +76 -0
- package/assets/prompts/update-oo-component-documentation.prompt.md +162 -0
- package/assets/prompts/update-specification.prompt.md +127 -0
- package/assets/prompts/write-coding-standards-from-file.prompt.md +316 -0
- package/bin/cli.js +200 -0
- package/package.json +53 -0
- package/scripts/sync.js +99 -0
- package/verdaccio/config.yaml +202 -0
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
---
|
|
2
|
+
mode: 'agent'
|
|
3
|
+
description: 'Ensure .NET/C# code meets best practices for the solution/project.'
|
|
4
|
+
---
|
|
5
|
+
# .NET/C# Best Practices
|
|
6
|
+
|
|
7
|
+
Your task is to ensure .NET/C# code in ${selection} meets the best practices specific to this solution/project. This includes:
|
|
8
|
+
|
|
9
|
+
## Documentation & Structure
|
|
10
|
+
|
|
11
|
+
- Create comprehensive XML documentation comments for all public classes, interfaces, methods, and properties
|
|
12
|
+
- Include parameter descriptions and return value descriptions in XML comments
|
|
13
|
+
- Follow the established namespace structure: {Core|Console|App|Service}.{Feature}
|
|
14
|
+
|
|
15
|
+
## Design Patterns & Architecture
|
|
16
|
+
|
|
17
|
+
- Use primary constructor syntax for dependency injection (e.g., `public class MyClass(IDependency dependency)`)
|
|
18
|
+
- Implement the Command Handler pattern with generic base classes (e.g., `CommandHandler<TOptions>`)
|
|
19
|
+
- Use interface segregation with clear naming conventions (prefix interfaces with 'I')
|
|
20
|
+
- Follow the Factory pattern for complex object creation.
|
|
21
|
+
|
|
22
|
+
## Dependency Injection & Services
|
|
23
|
+
|
|
24
|
+
- Use constructor dependency injection with null checks via ArgumentNullException
|
|
25
|
+
- Register services with appropriate lifetimes (Singleton, Scoped, Transient)
|
|
26
|
+
- Use Microsoft.Extensions.DependencyInjection patterns
|
|
27
|
+
- Implement service interfaces for testability
|
|
28
|
+
|
|
29
|
+
## Resource Management & Localization
|
|
30
|
+
|
|
31
|
+
- Use ResourceManager for localized messages and error strings
|
|
32
|
+
- Separate LogMessages and ErrorMessages resource files
|
|
33
|
+
- Access resources via `_resourceManager.GetString("MessageKey")`
|
|
34
|
+
|
|
35
|
+
## Async/Await Patterns
|
|
36
|
+
|
|
37
|
+
- Use async/await for all I/O operations and long-running tasks
|
|
38
|
+
- Return Task or Task<T> from async methods
|
|
39
|
+
- Use ConfigureAwait(false) where appropriate
|
|
40
|
+
- Handle async exceptions properly
|
|
41
|
+
|
|
42
|
+
## Testing Standards
|
|
43
|
+
|
|
44
|
+
- Use MSTest framework with FluentAssertions for assertions
|
|
45
|
+
- Follow AAA pattern (Arrange, Act, Assert)
|
|
46
|
+
- Use Moq for mocking dependencies
|
|
47
|
+
- Test both success and failure scenarios
|
|
48
|
+
- Include null parameter validation tests
|
|
49
|
+
|
|
50
|
+
## Configuration & Settings
|
|
51
|
+
|
|
52
|
+
- Use strongly-typed configuration classes with data annotations
|
|
53
|
+
- Implement validation attributes (Required, NotEmptyOrWhitespace)
|
|
54
|
+
- Use IConfiguration binding for settings
|
|
55
|
+
- Support appsettings.json configuration files
|
|
56
|
+
|
|
57
|
+
## Semantic Kernel & AI Integration
|
|
58
|
+
|
|
59
|
+
- Use Microsoft.SemanticKernel for AI operations
|
|
60
|
+
- Implement proper kernel configuration and service registration
|
|
61
|
+
- Handle AI model settings (ChatCompletion, Embedding, etc.)
|
|
62
|
+
- Use structured output patterns for reliable AI responses
|
|
63
|
+
|
|
64
|
+
## Error Handling & Logging
|
|
65
|
+
|
|
66
|
+
- Use structured logging with Microsoft.Extensions.Logging
|
|
67
|
+
- Include scoped logging with meaningful context
|
|
68
|
+
- Throw specific exceptions with descriptive messages
|
|
69
|
+
- Use try-catch blocks for expected failure scenarios
|
|
70
|
+
|
|
71
|
+
## Performance & Security
|
|
72
|
+
|
|
73
|
+
- Use C# 12+ features and .NET 8 optimizations where applicable
|
|
74
|
+
- Implement proper input validation and sanitization
|
|
75
|
+
- Use parameterized queries for database operations
|
|
76
|
+
- Follow secure coding practices for AI/ML operations
|
|
77
|
+
|
|
78
|
+
## Code Quality
|
|
79
|
+
|
|
80
|
+
- Ensure SOLID principles compliance
|
|
81
|
+
- Avoid code duplication through base classes and utilities
|
|
82
|
+
- Use meaningful names that reflect domain concepts
|
|
83
|
+
- Keep methods focused and cohesive
|
|
84
|
+
- Implement proper disposal patterns for resources
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
mode: 'agent'
|
|
3
|
+
description: 'Review the C#/.NET code for design pattern implementation and suggest improvements.'
|
|
4
|
+
---
|
|
5
|
+
# .NET/C# Design Pattern Review
|
|
6
|
+
|
|
7
|
+
Review the C#/.NET code in ${selection} for design pattern implementation and suggest improvements for the solution/project. Do not make any changes to the code, just provide a review.
|
|
8
|
+
|
|
9
|
+
## Required Design Patterns
|
|
10
|
+
|
|
11
|
+
- **Command Pattern**: Generic base classes (`CommandHandler<TOptions>`), `ICommandHandler<TOptions>` interface, `CommandHandlerOptions` inheritance, static `SetupCommand(IHost host)` methods
|
|
12
|
+
- **Factory Pattern**: Complex object creation service provider integration
|
|
13
|
+
- **Dependency Injection**: Primary constructor syntax, `ArgumentNullException` null checks, interface abstractions, proper service lifetimes
|
|
14
|
+
- **Repository Pattern**: Async data access interfaces provider abstractions for connections
|
|
15
|
+
- **Provider Pattern**: External service abstractions (database, AI), clear contracts, configuration handling
|
|
16
|
+
- **Resource Pattern**: ResourceManager for localized messages, separate .resx files (LogMessages, ErrorMessages)
|
|
17
|
+
|
|
18
|
+
## Review Checklist
|
|
19
|
+
|
|
20
|
+
- **Design Patterns**: Identify patterns used. Are Command Handler, Factory, Provider, and Repository patterns correctly implemented? Missing beneficial patterns?
|
|
21
|
+
- **Architecture**: Follow namespace conventions (`{Core|Console|App|Service}.{Feature}`)? Proper separation between Core/Console projects? Modular and readable?
|
|
22
|
+
- **.NET Best Practices**: Primary constructors, async/await with Task returns, ResourceManager usage, structured logging, strongly-typed configuration?
|
|
23
|
+
- **GoF Patterns**: Command, Factory, Template Method, Strategy patterns correctly implemented?
|
|
24
|
+
- **SOLID Principles**: Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, Dependency Inversion violations?
|
|
25
|
+
- **Performance**: Proper async/await, resource disposal, ConfigureAwait(false), parallel processing opportunities?
|
|
26
|
+
- **Maintainability**: Clear separation of concerns, consistent error handling, proper configuration usage?
|
|
27
|
+
- **Testability**: Dependencies abstracted via interfaces, mockable components, async testability, AAA pattern compatibility?
|
|
28
|
+
- **Security**: Input validation, secure credential handling, parameterized queries, safe exception handling?
|
|
29
|
+
- **Documentation**: XML docs for public APIs, parameter/return descriptions, resource file organization?
|
|
30
|
+
- **Code Clarity**: Meaningful names reflecting domain concepts, clear intent through patterns, self-explanatory structure?
|
|
31
|
+
- **Clean Code**: Consistent style, appropriate method/class size, minimal complexity, eliminated duplication?
|
|
32
|
+
|
|
33
|
+
## Improvement Focus Areas
|
|
34
|
+
|
|
35
|
+
- **Command Handlers**: Validation in base class, consistent error handling, proper resource management
|
|
36
|
+
- **Factories**: Dependency configuration, service provider integration, disposal patterns
|
|
37
|
+
- **Providers**: Connection management, async patterns, exception handling and logging
|
|
38
|
+
- **Configuration**: Data annotations, validation attributes, secure sensitive value handling
|
|
39
|
+
- **AI/ML Integration**: Semantic Kernel patterns, structured output handling, model configuration
|
|
40
|
+
|
|
41
|
+
Provide specific, actionable recommendations for improvements aligned with the project's architecture and .NET best practices.
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ".NET Upgrade Analysis Prompts"
|
|
3
|
+
description: "Ready-to-use prompts for comprehensive .NET framework upgrade analysis and execution"
|
|
4
|
+
prompts:
|
|
5
|
+
---
|
|
6
|
+
# Project Discovery & Assessment
|
|
7
|
+
- name: "Project Classification Analysis"
|
|
8
|
+
prompt: "Identify all projects in the solution and classify them by type (`.NET Framework`, `.NET Core`, `.NET Standard`). Analyze each `.csproj` for its current `TargetFramework` and SDK usage."
|
|
9
|
+
|
|
10
|
+
- name: "Dependency Compatibility Review"
|
|
11
|
+
prompt: "Review external and internal dependencies for framework compatibility. Determine the upgrade complexity based on dependency graph depth."
|
|
12
|
+
|
|
13
|
+
- name: "Legacy Package Detection"
|
|
14
|
+
prompt: "Identify legacy `packages.config` projects needing migration to `PackageReference` format."
|
|
15
|
+
|
|
16
|
+
# Upgrade Strategy & Sequencing
|
|
17
|
+
- name: "Project Upgrade Ordering"
|
|
18
|
+
prompt: "Recommend a project upgrade order from least to most dependent components. Suggest how to isolate class library upgrades before API or Azure Function migrations."
|
|
19
|
+
|
|
20
|
+
- name: "Incremental Strategy Planning"
|
|
21
|
+
prompt: "Propose an incremental upgrade strategy with rollback checkpoints. Evaluate the use of **Upgrade Assistant** or **manual upgrades** based on project structure."
|
|
22
|
+
|
|
23
|
+
- name: "Progress Tracking Setup"
|
|
24
|
+
prompt: "Generate an upgrade checklist for tracking build, test, and deployment readiness across all projects."
|
|
25
|
+
|
|
26
|
+
# Framework Targeting & Code Adjustments
|
|
27
|
+
- name: "Target Framework Selection"
|
|
28
|
+
prompt: "Suggest the correct `TargetFramework` for each project (e.g., `net8.0`). Review and update deprecated SDK or build configurations."
|
|
29
|
+
|
|
30
|
+
- name: "Code Modernization Analysis"
|
|
31
|
+
prompt: "Identify code patterns needing modernization (e.g., `WebHostBuilder` → `HostBuilder`). Suggest replacements for deprecated .NET APIs and third-party libraries."
|
|
32
|
+
|
|
33
|
+
- name: "Async Pattern Conversion"
|
|
34
|
+
prompt: "Recommend conversion of synchronous calls to async where appropriate for improved performance and scalability."
|
|
35
|
+
|
|
36
|
+
# NuGet & Dependency Management
|
|
37
|
+
- name: "Package Compatibility Analysis"
|
|
38
|
+
prompt: "Analyze outdated or incompatible NuGet packages and suggest compatible versions. Identify third-party libraries that lack .NET 8 support and provide migration paths."
|
|
39
|
+
|
|
40
|
+
- name: "Shared Dependency Strategy"
|
|
41
|
+
prompt: "Recommend strategies for handling shared dependency upgrades across projects. Evaluate usage of legacy packages and suggest alternatives in Microsoft-supported namespaces."
|
|
42
|
+
|
|
43
|
+
- name: "Transitive Dependency Review"
|
|
44
|
+
prompt: "Review transitive dependencies and potential version conflicts after upgrade. Suggest resolution strategies for dependency conflicts."
|
|
45
|
+
|
|
46
|
+
# CI/CD & Build Pipeline Updates
|
|
47
|
+
- name: "Pipeline Configuration Analysis"
|
|
48
|
+
prompt: "Analyze YAML build definitions for SDK version pinning and recommend updates. Suggest modifications for `UseDotNet@2` and `NuGetToolInstaller` tasks."
|
|
49
|
+
|
|
50
|
+
- name: "Build Pipeline Modernization"
|
|
51
|
+
prompt: "Generate updated build pipeline snippets for .NET 8 migration. Recommend validation builds on feature branches before merging to main."
|
|
52
|
+
|
|
53
|
+
- name: "CI Automation Enhancement"
|
|
54
|
+
prompt: "Identify opportunities to automate test and build verification in CI pipelines. Suggest strategies for continuous integration validation."
|
|
55
|
+
|
|
56
|
+
# Testing & Validation
|
|
57
|
+
- name: "Build Validation Strategy"
|
|
58
|
+
prompt: "Propose validation checks to ensure the upgraded solution builds and runs successfully. Recommend automated test execution for unit and integration suites post-upgrade."
|
|
59
|
+
|
|
60
|
+
- name: "Service Integration Verification"
|
|
61
|
+
prompt: "Generate validation steps to verify logging, telemetry, and service connectivity. Suggest strategies for verifying backward compatibility and runtime behavior."
|
|
62
|
+
|
|
63
|
+
- name: "Deployment Readiness Check"
|
|
64
|
+
prompt: "Recommend UAT deployment verification steps before production rollout. Create comprehensive testing scenarios for upgraded components."
|
|
65
|
+
|
|
66
|
+
# Breaking Change Analysis
|
|
67
|
+
- name: "API Deprecation Detection"
|
|
68
|
+
prompt: "Identify deprecated APIs or removed namespaces between target versions. Suggest automated scanning using `.NET Upgrade Assistant` and API Analyzer."
|
|
69
|
+
|
|
70
|
+
- name: "API Replacement Strategy"
|
|
71
|
+
prompt: "Recommend replacement APIs or libraries for known breaking areas. Review configuration changes such as `Startup.cs` → `Program.cs` refactoring."
|
|
72
|
+
|
|
73
|
+
- name: "Regression Testing Focus"
|
|
74
|
+
prompt: "Suggest regression testing scenarios focused on upgraded API endpoints or services. Create test plans for critical functionality validation."
|
|
75
|
+
|
|
76
|
+
# Version Control & Commit Strategy
|
|
77
|
+
- name: "Branching Strategy Planning"
|
|
78
|
+
prompt: "Recommend branching strategy for safe upgrade with rollback capability. Generate commit templates for partial and complete project upgrades."
|
|
79
|
+
|
|
80
|
+
- name: "PR Structure Optimization"
|
|
81
|
+
prompt: "Suggest best practices for creating structured PRs (`Upgrade to .NET [Version]`). Identify tagging strategies for PRs involving breaking changes."
|
|
82
|
+
|
|
83
|
+
- name: "Code Review Guidelines"
|
|
84
|
+
prompt: "Recommend peer review focus areas (build, test, and dependency validation). Create checklists for effective upgrade reviews."
|
|
85
|
+
|
|
86
|
+
# Documentation & Communication
|
|
87
|
+
- name: "Upgrade Documentation Strategy"
|
|
88
|
+
prompt: "Suggest how to document each project's framework change in the PR. Propose automated release note generation summarizing upgrades and test results."
|
|
89
|
+
|
|
90
|
+
- name: "Stakeholder Communication"
|
|
91
|
+
prompt: "Recommend communicating version upgrades and migration timelines to consumers. Generate documentation templates for dependency updates and validation results."
|
|
92
|
+
|
|
93
|
+
- name: "Progress Tracking Systems"
|
|
94
|
+
prompt: "Suggest maintaining an upgrade summary dashboard or markdown checklist. Create templates for tracking upgrade progress across multiple projects."
|
|
95
|
+
|
|
96
|
+
# Tools & Automation
|
|
97
|
+
- name: "Upgrade Tool Selection"
|
|
98
|
+
prompt: "Recommend when and how to use: `.NET Upgrade Assistant`, `dotnet list package --outdated`, `dotnet migrate`, and `graph.json` dependency visualization."
|
|
99
|
+
|
|
100
|
+
- name: "Analysis Script Generation"
|
|
101
|
+
prompt: "Generate scripts or prompts for analyzing dependency graphs before upgrading. Propose AI-assisted prompts for Copilot to identify upgrade issues automatically."
|
|
102
|
+
|
|
103
|
+
- name: "Multi-Repository Validation"
|
|
104
|
+
prompt: "Suggest how to validate automation output across multiple repositories. Create standardized validation workflows for enterprise-scale upgrades."
|
|
105
|
+
|
|
106
|
+
# Final Validation & Delivery
|
|
107
|
+
- name: "Final Solution Validation"
|
|
108
|
+
prompt: "Generate validation steps to confirm the final upgraded solution passes all validation checks. Suggest production deployment verification steps post-upgrade."
|
|
109
|
+
|
|
110
|
+
- name: "Deployment Readiness Confirmation"
|
|
111
|
+
prompt: "Recommend generating final test results and build artifacts. Create a checklist summarizing completion across projects (builds/tests/deployment)."
|
|
112
|
+
|
|
113
|
+
- name: "Release Documentation"
|
|
114
|
+
prompt: "Generate a release note summarizing framework changes and CI/CD updates. Create comprehensive upgrade summary documentation."
|
|
115
|
+
|
|
116
|
+
---
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'EditorConfig Expert'
|
|
3
|
+
description: 'Generates a comprehensive and best-practice-oriented .editorconfig file based on project analysis and user preferences.'
|
|
4
|
+
mode: 'agent'
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 📜 MISSION
|
|
8
|
+
|
|
9
|
+
You are an **EditorConfig Expert**. Your mission is to create a robust, comprehensive, and best-practice-oriented `.editorconfig` file. You will analyze the user's project structure and explicit requirements to generate a configuration that ensures consistent coding styles across different editors and IDEs. You must operate with absolute precision and provide clear, rule-by-rule explanations for your configuration choices.
|
|
10
|
+
|
|
11
|
+
## 📝 DIRECTIVES
|
|
12
|
+
|
|
13
|
+
1. **Analyze Context**: Before generating the configuration, you MUST analyze the provided project structure and file types to infer the languages and technologies being used.
|
|
14
|
+
2. **Incorporate User Preferences**: You MUST adhere to all explicit user requirements. If any requirement conflicts with a common best practice, you will still follow the user's preference but make a note of the conflict in your explanation.
|
|
15
|
+
3. **Apply Universal Best Practices**: You WILL go beyond the user's basic requirements and incorporate universal best practices for `.editorconfig` files. This includes settings for character sets, line endings, trailing whitespace, and final newlines.
|
|
16
|
+
4. **Generate Comprehensive Configuration**: The generated `.editorconfig` file MUST be well-structured and cover all relevant file types found in the project. Use glob patterns (`*`, `**.js`, `**.py`, etc.) to apply settings appropriately.
|
|
17
|
+
5. **Provide Rule-by-Rule Explanation**: You MUST provide a detailed, clear, and easy-to-understand explanation for every single rule in the generated `.editorconfig` file. Explain what the rule does and why it's a best practice.
|
|
18
|
+
6. **Output Format**: The final output MUST be presented in two parts:
|
|
19
|
+
- A single, complete code block containing the `.editorconfig` file content.
|
|
20
|
+
- A "Rule-by-Rule Explanation" section using Markdown for clarity.
|
|
21
|
+
|
|
22
|
+
## 🧑💻 USER PREFERENCES
|
|
23
|
+
|
|
24
|
+
- **Indentation Style**: Use spaces, not tabs.
|
|
25
|
+
- **Indentation Size**: 2 spaces.
|
|
26
|
+
|
|
27
|
+
## 🚀 EXECUTION
|
|
28
|
+
|
|
29
|
+
Begin by acknowledging the user's preferences. Then, proceed directly to generating the `.editorconfig` file and the detailed explanation as per the specified output format.
|
|
30
|
+
|
|
31
|
+
### Example Output Structure:
|
|
32
|
+
|
|
33
|
+
Here is the `.editorconfig` file tailored to your project:
|
|
34
|
+
|
|
35
|
+
```editorconfig
|
|
36
|
+
# .editorconfig
|
|
37
|
+
|
|
38
|
+
# Top-most EditorConfig file
|
|
39
|
+
root = true
|
|
40
|
+
|
|
41
|
+
[*]
|
|
42
|
+
indent_style = space
|
|
43
|
+
indent_size = 2
|
|
44
|
+
end_of_line = lf
|
|
45
|
+
charset = utf-8
|
|
46
|
+
trim_trailing_whitespace = true
|
|
47
|
+
insert_final_newline = true
|
|
48
|
+
|
|
49
|
+
[*.md]
|
|
50
|
+
trim_trailing_whitespace = false
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### Rule-by-Rule Explanation
|
|
54
|
+
|
|
55
|
+
- `root = true`: This is a best practice that stops the EditorConfig search in the current directory. Without it, EditorConfig would continue searching parent directories, which could lead to unexpected behavior.
|
|
56
|
+
- `[*]`: This is a universal glob pattern that applies the following rules to ALL files in the project.
|
|
57
|
+
- `indent_style = space`: As requested, this sets the indentation to use spaces instead of tabs.
|
|
58
|
+
- `indent_size = 2`: As requested, this sets the indentation size to 2 spaces.
|
|
59
|
+
- `end_of_line = lf`: This standardizes line endings to Line Feed (LF), which is the standard for macOS, Linux, and modern Windows (WSL), preventing issues with version control systems.
|
|
60
|
+
- `charset = utf-8`: This sets the character encoding to UTF-8, the universal standard, ensuring files can be read and written correctly across all systems.
|
|
61
|
+
- `trim_trailing_whitespace = true`: This automatically removes any whitespace characters at the end of lines, which keeps the code clean and avoids unnecessary diffs in version control.
|
|
62
|
+
- `insert_final_newline = true`: This ensures that every file ends with a single newline character, a POSIX standard that prevents certain scripting and concatenation issues.
|
|
63
|
+
- `[*.md]`: This glob pattern applies specific rules only to Markdown files.
|
|
64
|
+
- `trim_trailing_whitespace = false`: This overrides the universal setting for Markdown files. It's disabled because trailing whitespace can be significant in Markdown (e.g., for creating hard line breaks).
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
---
|
|
2
|
+
mode: 'agent'
|
|
3
|
+
tools: ['changes', 'search/codebase', 'edit/editFiles', 'problems', 'runCommands']
|
|
4
|
+
description: 'Get best practices for Entity Framework Core'
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Entity Framework Core Best Practices
|
|
8
|
+
|
|
9
|
+
Your goal is to help me follow best practices when working with Entity Framework Core.
|
|
10
|
+
|
|
11
|
+
## Data Context Design
|
|
12
|
+
|
|
13
|
+
- Keep DbContext classes focused and cohesive
|
|
14
|
+
- Use constructor injection for configuration options
|
|
15
|
+
- Override OnModelCreating for fluent API configuration
|
|
16
|
+
- Separate entity configurations using IEntityTypeConfiguration
|
|
17
|
+
- Consider using DbContextFactory pattern for console apps or tests
|
|
18
|
+
|
|
19
|
+
## Entity Design
|
|
20
|
+
|
|
21
|
+
- Use meaningful primary keys (consider natural vs surrogate keys)
|
|
22
|
+
- Implement proper relationships (one-to-one, one-to-many, many-to-many)
|
|
23
|
+
- Use data annotations or fluent API for constraints and validations
|
|
24
|
+
- Implement appropriate navigational properties
|
|
25
|
+
- Consider using owned entity types for value objects
|
|
26
|
+
|
|
27
|
+
## Performance
|
|
28
|
+
|
|
29
|
+
- Use AsNoTracking() for read-only queries
|
|
30
|
+
- Implement pagination for large result sets with Skip() and Take()
|
|
31
|
+
- Use Include() to eager load related entities when needed
|
|
32
|
+
- Consider projection (Select) to retrieve only required fields
|
|
33
|
+
- Use compiled queries for frequently executed queries
|
|
34
|
+
- Avoid N+1 query problems by properly including related data
|
|
35
|
+
|
|
36
|
+
## Migrations
|
|
37
|
+
|
|
38
|
+
- Create small, focused migrations
|
|
39
|
+
- Name migrations descriptively
|
|
40
|
+
- Verify migration SQL scripts before applying to production
|
|
41
|
+
- Consider using migration bundles for deployment
|
|
42
|
+
- Add data seeding through migrations when appropriate
|
|
43
|
+
|
|
44
|
+
## Querying
|
|
45
|
+
|
|
46
|
+
- Use IQueryable judiciously and understand when queries execute
|
|
47
|
+
- Prefer strongly-typed LINQ queries over raw SQL
|
|
48
|
+
- Use appropriate query operators (Where, OrderBy, GroupBy)
|
|
49
|
+
- Consider database functions for complex operations
|
|
50
|
+
- Implement specifications pattern for reusable queries
|
|
51
|
+
|
|
52
|
+
## Change Tracking & Saving
|
|
53
|
+
|
|
54
|
+
- Use appropriate change tracking strategies
|
|
55
|
+
- Batch your SaveChanges() calls
|
|
56
|
+
- Implement concurrency control for multi-user scenarios
|
|
57
|
+
- Consider using transactions for multiple operations
|
|
58
|
+
- Use appropriate DbContext lifetimes (scoped for web apps)
|
|
59
|
+
|
|
60
|
+
## Security
|
|
61
|
+
|
|
62
|
+
- Avoid SQL injection by using parameterized queries
|
|
63
|
+
- Implement appropriate data access permissions
|
|
64
|
+
- Be careful with raw SQL queries
|
|
65
|
+
- Consider data encryption for sensitive information
|
|
66
|
+
- Use migrations to manage database user permissions
|
|
67
|
+
|
|
68
|
+
## Testing
|
|
69
|
+
|
|
70
|
+
- Use in-memory database provider for unit tests
|
|
71
|
+
- Create separate testing contexts with SQLite for integration tests
|
|
72
|
+
- Mock DbContext and DbSet for pure unit tests
|
|
73
|
+
- Test migrations in isolated environments
|
|
74
|
+
- Consider snapshot testing for model changes
|
|
75
|
+
|
|
76
|
+
When reviewing my EF Core code, identify issues and suggest improvements that follow these best practices.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
---
|
|
2
|
+
mode: 'agent'
|
|
3
|
+
description: 'Finalize prompt file using the role of an AI agent to polish the prompt for the end user.'
|
|
4
|
+
tools: ['edit/editFiles']
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Finalize Agent Prompt
|
|
8
|
+
|
|
9
|
+
## Current Role
|
|
10
|
+
|
|
11
|
+
You are an AI agent who knows what works best for the prompt files you have
|
|
12
|
+
seen and the feedback you have received. Apply that experience to refine the
|
|
13
|
+
current prompt so it aligns with proven best practices.
|
|
14
|
+
|
|
15
|
+
## Requirements
|
|
16
|
+
|
|
17
|
+
- A prompt file must be provided. If none accompanies the request, ask for the
|
|
18
|
+
file before proceeding.
|
|
19
|
+
- Maintain the prompt’s front matter, encoding, and markdown structure while
|
|
20
|
+
making improvements.
|
|
21
|
+
|
|
22
|
+
## Goal
|
|
23
|
+
|
|
24
|
+
1. Read the prompt file carefully and refine its structure, wording, and
|
|
25
|
+
organization to match the successful patterns you have observed.
|
|
26
|
+
2. Check for spelling, grammar, or clarity issues and correct them without
|
|
27
|
+
changing the original intent of the instructions.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: 'Interactive, input-tool powered, task refinement workflow: interrogates scope, deliverables, constraints before carrying out the task; Requires the Joyride extension.'
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Act Informed: First understand together with the human, then do
|
|
6
|
+
|
|
7
|
+
You are a curious and thorough AI assistant designed to help carry out tasks with high-quality, by being properly informed. You are powered by the `joyride_request_human_input` tool and you use it as a key part of your process in gathering information about the task.
|
|
8
|
+
|
|
9
|
+
<refining>
|
|
10
|
+
Your goal is to iteratively refine your understanding of the task by:
|
|
11
|
+
|
|
12
|
+
- Understanding the task scope and objectives
|
|
13
|
+
- At all times when you need clarification on details, ask specific questions to the user using the `joyride_request_human_input` tool.
|
|
14
|
+
- Defining expected deliverables and success criteria
|
|
15
|
+
- Perform project explorations, using available tools, to further your understanding of the task
|
|
16
|
+
- If something needs web research, do that
|
|
17
|
+
- Clarifying technical and procedural requirements
|
|
18
|
+
- Organizing the task into clear sections or steps
|
|
19
|
+
- Ensuring your understanding of the task is as simple as it can be
|
|
20
|
+
</refining>
|
|
21
|
+
|
|
22
|
+
After refining and before carrying out the task:
|
|
23
|
+
- Use the `joyride_request_human_input` tool to ask if the human developer has any further input.
|
|
24
|
+
- Keep refining until the human has no further input.
|
|
25
|
+
|
|
26
|
+
After gathering sufficient information, and having a clear understanding of the task:
|
|
27
|
+
1. Show your plan to the user with redundancy kept to a minimum
|
|
28
|
+
2. Create a todo list
|
|
29
|
+
3. Get to work!
|