workspace-architect 1.4.1 → 1.5.1
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/assets-manifest.json +3392 -0
- package/bin/cli.js +134 -72
- package/package.json +11 -3
- package/.env.example +0 -1
- package/.gitattributes +0 -1
- package/.github/workflows/manual-publish.yml +0 -36
- package/.github/workflows/sync-and-publish.yml +0 -58
- package/.release-it.json +0 -20
- package/CHANGELOG.md +0 -53
- package/assets/chatmodes/4.1-Beast.chatmode.md +0 -152
- package/assets/chatmodes/Thinking-Beast-Mode.chatmode.md +0 -337
- package/assets/chatmodes/Ultimate-Transparent-Thinking-Beast-Mode.chatmode.md +0 -644
- package/assets/chatmodes/accessibility.chatmode.md +0 -298
- package/assets/chatmodes/address-comments.chatmode.md +0 -59
- package/assets/chatmodes/aem-frontend-specialist.chatmode.md +0 -385
- package/assets/chatmodes/api-architect.chatmode.md +0 -40
- package/assets/chatmodes/atlassian-requirements-to-jira.chatmode.md +0 -444
- package/assets/chatmodes/azure-logic-apps-expert.chatmode.md +0 -100
- package/assets/chatmodes/azure-principal-architect.chatmode.md +0 -58
- package/assets/chatmodes/azure-saas-architect.chatmode.md +0 -118
- package/assets/chatmodes/azure-verified-modules-bicep.chatmode.md +0 -44
- package/assets/chatmodes/azure-verified-modules-terraform.chatmode.md +0 -58
- package/assets/chatmodes/bicep-implement.chatmode.md +0 -40
- package/assets/chatmodes/bicep-plan.chatmode.md +0 -112
- package/assets/chatmodes/blueprint-mode-codex.chatmode.md +0 -110
- package/assets/chatmodes/blueprint-mode.chatmode.md +0 -171
- package/assets/chatmodes/clojure-interactive-programming.chatmode.md +0 -174
- package/assets/chatmodes/code-tour.chatmode.md +0 -205
- package/assets/chatmodes/critical-thinking.chatmode.md +0 -23
- package/assets/chatmodes/csharp-dotnet-janitor.chatmode.md +0 -83
- package/assets/chatmodes/csharp-mcp-expert.chatmode.md +0 -69
- package/assets/chatmodes/debug.chatmode.md +0 -79
- package/assets/chatmodes/declarative-agents-architect.chatmode.md +0 -76
- package/assets/chatmodes/demonstrate-understanding.chatmode.md +0 -60
- package/assets/chatmodes/dotnet-upgrade.chatmode.md +0 -222
- package/assets/chatmodes/drupal-expert.chatmode.md +0 -687
- package/assets/chatmodes/electron-angular-native.chatmode.md +0 -285
- package/assets/chatmodes/expert-cpp-software-engineer.chatmode.md +0 -27
- package/assets/chatmodes/expert-dotnet-software-engineer.chatmode.md +0 -22
- package/assets/chatmodes/expert-nextjs-developer.chatmode.md +0 -477
- package/assets/chatmodes/expert-react-frontend-engineer.chatmode.md +0 -738
- package/assets/chatmodes/gilfoyle.chatmode.md +0 -66
- package/assets/chatmodes/go-mcp-expert.chatmode.md +0 -122
- package/assets/chatmodes/gpt-5-beast-mode.chatmode.md +0 -109
- package/assets/chatmodes/hlbpa.chatmode.md +0 -232
- package/assets/chatmodes/implementation-plan.chatmode.md +0 -159
- package/assets/chatmodes/janitor.chatmode.md +0 -89
- package/assets/chatmodes/java-mcp-expert.chatmode.md +0 -325
- package/assets/chatmodes/kotlin-mcp-expert.chatmode.md +0 -181
- package/assets/chatmodes/kusto-assistant.chatmode.md +0 -143
- package/assets/chatmodes/laravel-expert-agent.chatmode.md +0 -628
- package/assets/chatmodes/mentor.chatmode.md +0 -32
- package/assets/chatmodes/meta-agentic-project-scaffold.chatmode.md +0 -15
- package/assets/chatmodes/microsoft-agent-framework-dotnet.chatmode.md +0 -62
- package/assets/chatmodes/microsoft-agent-framework-python.chatmode.md +0 -62
- package/assets/chatmodes/microsoft-study-mode.chatmode.md +0 -32
- package/assets/chatmodes/microsoft_learn_contributor.chatmode.md +0 -388
- package/assets/chatmodes/ms-sql-dba.chatmode.md +0 -25
- package/assets/chatmodes/php-mcp-expert.chatmode.md +0 -498
- package/assets/chatmodes/pimcore-expert.chatmode.md +0 -869
- package/assets/chatmodes/plan.chatmode.md +0 -114
- package/assets/chatmodes/planner.chatmode.md +0 -14
- package/assets/chatmodes/playwright-tester.chatmode.md +0 -13
- package/assets/chatmodes/postgresql-dba.chatmode.md +0 -17
- package/assets/chatmodes/power-bi-data-modeling-expert.chatmode.md +0 -319
- package/assets/chatmodes/power-bi-dax-expert.chatmode.md +0 -334
- package/assets/chatmodes/power-bi-performance-expert.chatmode.md +0 -533
- package/assets/chatmodes/power-bi-visualization-expert.chatmode.md +0 -549
- package/assets/chatmodes/power-platform-expert.chatmode.md +0 -116
- package/assets/chatmodes/power-platform-mcp-integration-expert.chatmode.md +0 -149
- package/assets/chatmodes/prd.chatmode.md +0 -201
- package/assets/chatmodes/principal-software-engineer.chatmode.md +0 -41
- package/assets/chatmodes/prompt-builder.chatmode.md +0 -352
- package/assets/chatmodes/prompt-engineer.chatmode.md +0 -72
- package/assets/chatmodes/python-mcp-expert.chatmode.md +0 -99
- package/assets/chatmodes/refine-issue.chatmode.md +0 -34
- package/assets/chatmodes/research-technical-spike.chatmode.md +0 -169
- package/assets/chatmodes/ruby-mcp-expert.chatmode.md +0 -346
- package/assets/chatmodes/rust-gpt-4.1-beast-mode.chatmode.md +0 -197
- package/assets/chatmodes/rust-mcp-expert.chatmode.md +0 -465
- package/assets/chatmodes/search-ai-optimization-expert.chatmode.md +0 -227
- package/assets/chatmodes/semantic-kernel-dotnet.chatmode.md +0 -31
- package/assets/chatmodes/semantic-kernel-python.chatmode.md +0 -28
- package/assets/chatmodes/shopify-expert.chatmode.md +0 -681
- package/assets/chatmodes/simple-app-idea-generator.chatmode.md +0 -134
- package/assets/chatmodes/software-engineer-agent-v1.chatmode.md +0 -164
- package/assets/chatmodes/specification.chatmode.md +0 -127
- package/assets/chatmodes/swift-mcp-expert.chatmode.md +0 -240
- package/assets/chatmodes/task-planner.chatmode.md +0 -374
- package/assets/chatmodes/task-researcher.chatmode.md +0 -254
- package/assets/chatmodes/tdd-green.chatmode.md +0 -59
- package/assets/chatmodes/tdd-red.chatmode.md +0 -59
- package/assets/chatmodes/tdd-refactor.chatmode.md +0 -84
- package/assets/chatmodes/tech-debt-remediation-plan.chatmode.md +0 -49
- package/assets/chatmodes/terraform-azure-implement.chatmode.md +0 -104
- package/assets/chatmodes/terraform-azure-planning.chatmode.md +0 -157
- package/assets/chatmodes/typescript-mcp-expert.chatmode.md +0 -91
- package/assets/chatmodes/voidbeast-gpt41enhanced.chatmode.md +0 -230
- package/assets/chatmodes/wg-code-alchemist.chatmode.md +0 -61
- package/assets/chatmodes/wg-code-sentinel.chatmode.md +0 -55
- package/assets/collections/ai-prompt-engineering.json +0 -95
- package/assets/collections/angular-development.json +0 -19
- package/assets/collections/azure-cloud-architect.json +0 -150
- package/assets/collections/cpp-development.json +0 -4
- package/assets/collections/database-administration.json +0 -13
- package/assets/collections/devops-sre.json +0 -33
- package/assets/collections/dotnet-development.json +0 -114
- package/assets/collections/general-productivity.json +0 -4
- package/assets/collections/go-development.json +0 -42
- package/assets/collections/java-spring-developer.json +0 -111
- package/assets/collections/learning-mentoring.json +0 -9
- package/assets/collections/legacy-migration.json +0 -6
- package/assets/collections/mcp-specialist.json +0 -92
- package/assets/collections/mobile-development.json +0 -12
- package/assets/collections/php-cms-development.json +0 -68
- package/assets/collections/power-platform-specialist.json +0 -128
- package/assets/collections/project-management.json +0 -50
- package/assets/collections/python-development.json +0 -66
- package/assets/collections/quality-assurance.json +0 -56
- package/assets/collections/ruby-development.json +0 -43
- package/assets/collections/rust-development.json +0 -63
- package/assets/collections/security-specialist.json +0 -65
- package/assets/collections/software-architect.json +0 -85
- package/assets/collections/technical-writing.json +0 -23
- package/assets/collections/web-frontend-development.json +0 -52
- package/assets/instructions/a11y.instructions.md +0 -369
- package/assets/instructions/ai-prompt-engineering-safety-best-practices.instructions.md +0 -867
- package/assets/instructions/angular.instructions.md +0 -104
- package/assets/instructions/ansible.instructions.md +0 -88
- package/assets/instructions/aspnet-rest-apis.instructions.md +0 -110
- package/assets/instructions/astro.instructions.md +0 -182
- package/assets/instructions/azure-devops-pipelines.instructions.md +0 -185
- package/assets/instructions/azure-functions-typescript.instructions.md +0 -14
- package/assets/instructions/azure-logic-apps-power-automate.instructions.md +0 -1943
- package/assets/instructions/azure-verified-modules-terraform.instructions.md +0 -229
- package/assets/instructions/bicep-code-best-practices.instructions.md +0 -54
- package/assets/instructions/blazor.instructions.md +0 -77
- package/assets/instructions/clojure.instructions.md +0 -349
- package/assets/instructions/cmake-vcpkg.instructions.md +0 -10
- package/assets/instructions/codexer.instructions.md +0 -428
- package/assets/instructions/coldfusion-cfc.instructions.md +0 -30
- package/assets/instructions/coldfusion-cfm.instructions.md +0 -28
- package/assets/instructions/collections.instructions.md +0 -54
- package/assets/instructions/containerization-docker-best-practices.instructions.md +0 -681
- package/assets/instructions/convert-jpa-to-spring-data-cosmos.instructions.md +0 -949
- package/assets/instructions/copilot-thought-logging.instructions.md +0 -62
- package/assets/instructions/csharp-ja.instructions.md +0 -114
- package/assets/instructions/csharp-ko.instructions.md +0 -77
- package/assets/instructions/csharp-mcp-server.instructions.md +0 -95
- package/assets/instructions/csharp.instructions.md +0 -114
- package/assets/instructions/dart-n-flutter.instructions.md +0 -447
- package/assets/instructions/declarative-agents-microsoft365.instructions.md +0 -316
- package/assets/instructions/devbox-image-definition.instructions.md +0 -302
- package/assets/instructions/devops-core-principles.instructions.md +0 -167
- package/assets/instructions/dotnet-architecture-good-practices.instructions.md +0 -279
- package/assets/instructions/dotnet-framework.instructions.md +0 -113
- package/assets/instructions/dotnet-maui-9-to-dotnet-maui-10-upgrade.instructions.md +0 -1922
- package/assets/instructions/dotnet-maui.instructions.md +0 -69
- package/assets/instructions/dotnet-upgrade.instructions.md +0 -287
- package/assets/instructions/dotnet-wpf.instructions.md +0 -79
- package/assets/instructions/genaiscript.instructions.md +0 -21
- package/assets/instructions/generate-modern-terraform-code-for-azure.instructions.md +0 -82
- package/assets/instructions/gilfoyle-code-review.instructions.md +0 -114
- package/assets/instructions/github-actions-ci-cd-best-practices.instructions.md +0 -607
- package/assets/instructions/go-mcp-server.instructions.md +0 -346
- package/assets/instructions/go.instructions.md +0 -373
- package/assets/instructions/instructions.instructions.md +0 -256
- package/assets/instructions/java-11-to-java-17-upgrade.instructions.md +0 -793
- package/assets/instructions/java-17-to-java-21-upgrade.instructions.md +0 -464
- package/assets/instructions/java-21-to-java-25-upgrade.instructions.md +0 -311
- package/assets/instructions/java-mcp-server.instructions.md +0 -553
- package/assets/instructions/java.instructions.md +0 -81
- package/assets/instructions/joyride-user-project.instructions.md +0 -206
- package/assets/instructions/joyride-workspace-automation.instructions.md +0 -46
- package/assets/instructions/kotlin-mcp-server.instructions.md +0 -481
- package/assets/instructions/kubernetes-deployment-best-practices.instructions.md +0 -307
- package/assets/instructions/langchain-python.instructions.md +0 -229
- package/assets/instructions/localization.instructions.md +0 -39
- package/assets/instructions/makefile.instructions.md +0 -410
- package/assets/instructions/markdown.instructions.md +0 -52
- package/assets/instructions/memory-bank.instructions.md +0 -299
- package/assets/instructions/mongo-dba.instructions.md +0 -25
- package/assets/instructions/ms-sql-dba.instructions.md +0 -25
- package/assets/instructions/nestjs.instructions.md +0 -406
- package/assets/instructions/nextjs-tailwind.instructions.md +0 -72
- package/assets/instructions/nextjs.instructions.md +0 -143
- package/assets/instructions/nodejs-javascript-vitest.instructions.md +0 -30
- package/assets/instructions/object-calisthenics.instructions.md +0 -302
- package/assets/instructions/oqtane.instructions.md +0 -86
- package/assets/instructions/performance-optimization.instructions.md +0 -420
- package/assets/instructions/php-mcp-server.instructions.md +0 -809
- package/assets/instructions/playwright-dotnet.instructions.md +0 -101
- package/assets/instructions/playwright-python.instructions.md +0 -62
- package/assets/instructions/playwright-typescript.instructions.md +0 -86
- package/assets/instructions/power-apps-canvas-yaml.instructions.md +0 -827
- package/assets/instructions/power-apps-code-apps.instructions.md +0 -601
- package/assets/instructions/power-bi-custom-visuals-development.instructions.md +0 -810
- package/assets/instructions/power-bi-data-modeling-best-practices.instructions.md +0 -639
- package/assets/instructions/power-bi-dax-best-practices.instructions.md +0 -795
- package/assets/instructions/power-bi-devops-alm-best-practices.instructions.md +0 -623
- package/assets/instructions/power-bi-report-design-best-practices.instructions.md +0 -752
- package/assets/instructions/power-bi-security-rls-best-practices.instructions.md +0 -504
- package/assets/instructions/power-platform-connector.instructions.md +0 -430
- package/assets/instructions/power-platform-mcp-development.instructions.md +0 -88
- package/assets/instructions/powershell-pester-5.instructions.md +0 -197
- package/assets/instructions/powershell.instructions.md +0 -356
- package/assets/instructions/prompt.instructions.md +0 -73
- package/assets/instructions/python-mcp-server.instructions.md +0 -204
- package/assets/instructions/python.instructions.md +0 -56
- package/assets/instructions/quarkus-mcp-server-sse.instructions.md +0 -49
- package/assets/instructions/quarkus.instructions.md +0 -98
- package/assets/instructions/r.instructions.md +0 -116
- package/assets/instructions/reactjs.instructions.md +0 -162
- package/assets/instructions/ruby-mcp-server.instructions.md +0 -629
- package/assets/instructions/ruby-on-rails.instructions.md +0 -124
- package/assets/instructions/rust-mcp-server.instructions.md +0 -715
- package/assets/instructions/rust.instructions.md +0 -135
- package/assets/instructions/security-and-owasp.instructions.md +0 -51
- package/assets/instructions/self-explanatory-code-commenting.instructions.md +0 -162
- package/assets/instructions/shell.instructions.md +0 -132
- package/assets/instructions/spec-driven-workflow-v1.instructions.md +0 -323
- package/assets/instructions/springboot.instructions.md +0 -68
- package/assets/instructions/sql-sp-generation.instructions.md +0 -74
- package/assets/instructions/svelte.instructions.md +0 -161
- package/assets/instructions/swift-mcp-server.instructions.md +0 -498
- package/assets/instructions/taming-copilot.instructions.md +0 -40
- package/assets/instructions/tanstack-start-shadcn-tailwind.instructions.md +0 -212
- package/assets/instructions/task-implementation.instructions.md +0 -190
- package/assets/instructions/tasksync.instructions.md +0 -352
- package/assets/instructions/terraform-azure.instructions.md +0 -254
- package/assets/instructions/terraform-sap-btp.instructions.md +0 -195
- package/assets/instructions/terraform.instructions.md +0 -113
- package/assets/instructions/typescript-5-es2022.instructions.md +0 -114
- package/assets/instructions/typescript-mcp-server.instructions.md +0 -228
- package/assets/instructions/update-code-from-shorthand.instructions.md +0 -130
- package/assets/instructions/vuejs3.instructions.md +0 -153
- package/assets/instructions/wordpress.instructions.md +0 -186
- package/assets/prompts/add-educational-comments.prompt.md +0 -129
- package/assets/prompts/ai-prompt-engineering-safety-review.prompt.md +0 -230
- package/assets/prompts/architecture-blueprint-generator.prompt.md +0 -322
- package/assets/prompts/aspnet-minimal-api-openapi.prompt.md +0 -42
- package/assets/prompts/az-cost-optimize.prompt.md +0 -305
- package/assets/prompts/azure-resource-health-diagnose.prompt.md +0 -290
- package/assets/prompts/boost-prompt.prompt.md +0 -25
- package/assets/prompts/breakdown-epic-arch.prompt.md +0 -66
- package/assets/prompts/breakdown-epic-pm.prompt.md +0 -58
- package/assets/prompts/breakdown-feature-implementation.prompt.md +0 -128
- package/assets/prompts/breakdown-feature-prd.prompt.md +0 -61
- package/assets/prompts/breakdown-plan.prompt.md +0 -509
- package/assets/prompts/breakdown-test.prompt.md +0 -365
- package/assets/prompts/code-exemplars-blueprint-generator.prompt.md +0 -126
- package/assets/prompts/comment-code-generate-a-tutorial.prompt.md +0 -26
- package/assets/prompts/containerize-aspnet-framework.prompt.md +0 -455
- package/assets/prompts/containerize-aspnetcore.prompt.md +0 -393
- package/assets/prompts/conventional-commit.prompt.md +0 -73
- package/assets/prompts/copilot-instructions-blueprint-generator.prompt.md +0 -294
- package/assets/prompts/cosmosdb-datamodeling.prompt.md +0 -1045
- package/assets/prompts/create-agentsmd.prompt.md +0 -249
- package/assets/prompts/create-architectural-decision-record.prompt.md +0 -97
- package/assets/prompts/create-github-action-workflow-specification.prompt.md +0 -276
- package/assets/prompts/create-github-issue-feature-from-specification.prompt.md +0 -28
- package/assets/prompts/create-github-issues-feature-from-implementation-plan.prompt.md +0 -28
- package/assets/prompts/create-github-issues-for-unmet-specification-requirements.prompt.md +0 -35
- package/assets/prompts/create-github-pull-request-from-specification.prompt.md +0 -24
- package/assets/prompts/create-implementation-plan.prompt.md +0 -157
- package/assets/prompts/create-llms.prompt.md +0 -210
- package/assets/prompts/create-oo-component-documentation.prompt.md +0 -193
- package/assets/prompts/create-readme.prompt.md +0 -21
- package/assets/prompts/create-specification.prompt.md +0 -127
- package/assets/prompts/create-spring-boot-java-project.prompt.md +0 -163
- package/assets/prompts/create-spring-boot-kotlin-project.prompt.md +0 -147
- package/assets/prompts/create-technical-spike.prompt.md +0 -231
- package/assets/prompts/csharp-async.prompt.md +0 -50
- package/assets/prompts/csharp-docs.prompt.md +0 -63
- package/assets/prompts/csharp-mcp-server-generator.prompt.md +0 -59
- package/assets/prompts/csharp-mstest.prompt.md +0 -67
- package/assets/prompts/csharp-nunit.prompt.md +0 -72
- package/assets/prompts/csharp-tunit.prompt.md +0 -101
- package/assets/prompts/csharp-xunit.prompt.md +0 -69
- package/assets/prompts/declarative-agents.prompt.md +0 -93
- package/assets/prompts/documentation-writer.prompt.md +0 -46
- package/assets/prompts/dotnet-best-practices.prompt.md +0 -84
- package/assets/prompts/dotnet-design-pattern-review.prompt.md +0 -41
- package/assets/prompts/dotnet-upgrade.prompt.md +0 -116
- package/assets/prompts/editorconfig.prompt.md +0 -64
- package/assets/prompts/ef-core.prompt.md +0 -76
- package/assets/prompts/finalize-agent-prompt.prompt.md +0 -27
- package/assets/prompts/first-ask.prompt.md +0 -29
- package/assets/prompts/folder-structure-blueprint-generator.prompt.md +0 -405
- package/assets/prompts/gen-specs-as-issues.prompt.md +0 -165
- package/assets/prompts/generate-custom-instructions-from-codebase.prompt.md +0 -240
- package/assets/prompts/git-flow-branch-creator.prompt.md +0 -293
- package/assets/prompts/github-copilot-starter.prompt.md +0 -372
- package/assets/prompts/go-mcp-server-generator.prompt.md +0 -334
- package/assets/prompts/java-docs.prompt.md +0 -24
- package/assets/prompts/java-junit.prompt.md +0 -64
- package/assets/prompts/java-mcp-server-generator.prompt.md +0 -756
- package/assets/prompts/java-refactoring-extract-method.prompt.md +0 -105
- package/assets/prompts/java-refactoring-remove-parameter.prompt.md +0 -85
- package/assets/prompts/java-springboot.prompt.md +0 -66
- package/assets/prompts/javascript-typescript-jest.prompt.md +0 -44
- package/assets/prompts/kotlin-mcp-server-generator.prompt.md +0 -449
- package/assets/prompts/kotlin-springboot.prompt.md +0 -71
- package/assets/prompts/mcp-copilot-studio-server-generator.prompt.md +0 -118
- package/assets/prompts/memory-merger.prompt.md +0 -107
- package/assets/prompts/mkdocs-translations.prompt.md +0 -110
- package/assets/prompts/model-recommendation.prompt.md +0 -677
- package/assets/prompts/multi-stage-dockerfile.prompt.md +0 -47
- package/assets/prompts/my-issues.prompt.md +0 -9
- package/assets/prompts/my-pull-requests.prompt.md +0 -15
- package/assets/prompts/next-intl-add-language.prompt.md +0 -20
- package/assets/prompts/php-mcp-server-generator.prompt.md +0 -522
- package/assets/prompts/playwright-automation-fill-in-form.prompt.md +0 -30
- package/assets/prompts/playwright-explore-website.prompt.md +0 -19
- package/assets/prompts/playwright-generate-test.prompt.md +0 -19
- package/assets/prompts/postgresql-code-review.prompt.md +0 -214
- package/assets/prompts/postgresql-optimization.prompt.md +0 -406
- package/assets/prompts/power-apps-code-app-scaffold.prompt.md +0 -150
- package/assets/prompts/power-bi-dax-optimization.prompt.md +0 -175
- package/assets/prompts/power-bi-model-design-review.prompt.md +0 -405
- package/assets/prompts/power-bi-performance-troubleshooting.prompt.md +0 -384
- package/assets/prompts/power-bi-report-design-consultation.prompt.md +0 -353
- package/assets/prompts/power-platform-mcp-connector-suite.prompt.md +0 -156
- package/assets/prompts/project-workflow-analysis-blueprint-generator.prompt.md +0 -294
- package/assets/prompts/prompt-builder.prompt.md +0 -142
- package/assets/prompts/pytest-coverage.prompt.md +0 -28
- package/assets/prompts/python-mcp-server-generator.prompt.md +0 -105
- package/assets/prompts/readme-blueprint-generator.prompt.md +0 -79
- package/assets/prompts/remember-interactive-programming.prompt.md +0 -13
- package/assets/prompts/remember.prompt.md +0 -125
- package/assets/prompts/repo-story-time.prompt.md +0 -156
- package/assets/prompts/review-and-refactor.prompt.md +0 -15
- package/assets/prompts/ruby-mcp-server-generator.prompt.md +0 -660
- package/assets/prompts/rust-mcp-server-generator.prompt.md +0 -578
- package/assets/prompts/shuffle-json-data.prompt.md +0 -151
- package/assets/prompts/sql-code-review.prompt.md +0 -303
- package/assets/prompts/sql-optimization.prompt.md +0 -298
- package/assets/prompts/suggest-awesome-github-copilot-agents.prompt.md +0 -72
- package/assets/prompts/suggest-awesome-github-copilot-chatmodes.prompt.md +0 -71
- package/assets/prompts/suggest-awesome-github-copilot-collections.prompt.md +0 -149
- package/assets/prompts/suggest-awesome-github-copilot-instructions.prompt.md +0 -88
- package/assets/prompts/suggest-awesome-github-copilot-prompts.prompt.md +0 -71
- package/assets/prompts/swift-mcp-server-generator.prompt.md +0 -669
- package/assets/prompts/technology-stack-blueprint-generator.prompt.md +0 -242
- package/assets/prompts/typescript-mcp-server-generator.prompt.md +0 -90
- package/assets/prompts/update-avm-modules-in-bicep.prompt.md +0 -60
- package/assets/prompts/update-implementation-plan.prompt.md +0 -157
- package/assets/prompts/update-llms.prompt.md +0 -216
- package/assets/prompts/update-markdown-file-index.prompt.md +0 -76
- package/assets/prompts/update-oo-component-documentation.prompt.md +0 -162
- package/assets/prompts/update-specification.prompt.md +0 -127
- package/assets/prompts/write-coding-standards-from-file.prompt.md +0 -316
- package/scripts/analyze-collections.js +0 -387
- package/scripts/sync.js +0 -99
- package/verdaccio/config.yaml +0 -202
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: 'Refactoring Java Methods with Extract Method'
|
|
3
|
-
mode: 'agent'
|
|
4
|
-
description: 'Refactoring using Extract Methods in Java Language'
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Refactoring Java Methods with Extract Method
|
|
8
|
-
|
|
9
|
-
## Role
|
|
10
|
-
|
|
11
|
-
You are an expert in refactoring Java methods.
|
|
12
|
-
|
|
13
|
-
Below are **2 examples** (with titles code before and code after refactoring) that represents **Extract Method**.
|
|
14
|
-
|
|
15
|
-
## Code Before Refactoring 1:
|
|
16
|
-
```java
|
|
17
|
-
public FactLineBuilder setC_BPartner_ID_IfValid(final int bpartnerId) {
|
|
18
|
-
assertNotBuild();
|
|
19
|
-
if (bpartnerId > 0) {
|
|
20
|
-
setC_BPartner_ID(bpartnerId);
|
|
21
|
-
}
|
|
22
|
-
return this;
|
|
23
|
-
}
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
## Code After Refactoring 1:
|
|
27
|
-
```java
|
|
28
|
-
public FactLineBuilder bpartnerIdIfNotNull(final BPartnerId bpartnerId) {
|
|
29
|
-
if (bpartnerId != null) {
|
|
30
|
-
return bpartnerId(bpartnerId);
|
|
31
|
-
} else {
|
|
32
|
-
return this;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
public FactLineBuilder setC_BPartner_ID_IfValid(final int bpartnerRepoId) {
|
|
36
|
-
return bpartnerIdIfNotNull(BPartnerId.ofRepoIdOrNull(bpartnerRepoId));
|
|
37
|
-
}
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
## Code Before Refactoring 2:
|
|
41
|
-
```java
|
|
42
|
-
public DefaultExpander add(RelationshipType type, Direction direction) {
|
|
43
|
-
Direction existingDirection = directions.get(type.name());
|
|
44
|
-
final RelationshipType[] newTypes;
|
|
45
|
-
if (existingDirection != null) {
|
|
46
|
-
if (existingDirection == direction) {
|
|
47
|
-
return this;
|
|
48
|
-
}
|
|
49
|
-
newTypes = types;
|
|
50
|
-
} else {
|
|
51
|
-
newTypes = new RelationshipType[types.length + 1];
|
|
52
|
-
System.arraycopy(types, 0, newTypes, 0, types.length);
|
|
53
|
-
newTypes[types.length] = type;
|
|
54
|
-
}
|
|
55
|
-
Map<String, Direction> newDirections = new HashMap<String, Direction>(directions);
|
|
56
|
-
newDirections.put(type.name(), direction);
|
|
57
|
-
return new DefaultExpander(newTypes, newDirections);
|
|
58
|
-
}
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
## Code After Refactoring 2:
|
|
62
|
-
```java
|
|
63
|
-
public DefaultExpander add(RelationshipType type, Direction direction) {
|
|
64
|
-
Direction existingDirection = directions.get(type.name());
|
|
65
|
-
final RelationshipType[] newTypes;
|
|
66
|
-
if (existingDirection != null) {
|
|
67
|
-
if (existingDirection == direction) {
|
|
68
|
-
return this;
|
|
69
|
-
}
|
|
70
|
-
newTypes = types;
|
|
71
|
-
} else {
|
|
72
|
-
newTypes = new RelationshipType[types.length + 1];
|
|
73
|
-
System.arraycopy(types, 0, newTypes, 0, types.length);
|
|
74
|
-
newTypes[types.length] = type;
|
|
75
|
-
}
|
|
76
|
-
Map<String, Direction> newDirections = new HashMap<String, Direction>(directions);
|
|
77
|
-
newDirections.put(type.name(), direction);
|
|
78
|
-
return (DefaultExpander) newExpander(newTypes, newDirections);
|
|
79
|
-
}
|
|
80
|
-
protected RelationshipExpander newExpander(RelationshipType[] types,
|
|
81
|
-
Map<String, Direction> directions) {
|
|
82
|
-
return new DefaultExpander(types, directions);
|
|
83
|
-
}
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
## Task
|
|
87
|
-
|
|
88
|
-
Apply **Extract Method** to improve readability, testability, maintainability, reusability, modularity, cohesion, low coupling, and consistency.
|
|
89
|
-
|
|
90
|
-
Always return a complete and compilable method (Java 17).
|
|
91
|
-
|
|
92
|
-
Perform intermediate steps internally:
|
|
93
|
-
- First, analyze each method and identify those exceeding thresholds:
|
|
94
|
-
* LOC (Lines of Code) > 15
|
|
95
|
-
* NOM (Number of Statements) > 10
|
|
96
|
-
* CC (Cyclomatic Complexity) > 10
|
|
97
|
-
- For each qualifying method, identify code blocks that can be extracted into separate methods.
|
|
98
|
-
- Extract at least one new method with a descriptive name.
|
|
99
|
-
- Output only the refactored code inside a single ```java``` block.
|
|
100
|
-
- Do not remove any functionality from the original method.
|
|
101
|
-
- Include a one-line comment above each new method describing its purpose.
|
|
102
|
-
|
|
103
|
-
## Code to be Refactored:
|
|
104
|
-
|
|
105
|
-
Now, assess all methods with high complexity and refactor them using **Extract Method**
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: 'Refactoring Java Methods with Remove Parameter'
|
|
3
|
-
mode: 'agent'
|
|
4
|
-
description: 'Refactoring using Remove Parameter in Java Language'
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Refactoring Java Methods with Remove Parameter
|
|
8
|
-
|
|
9
|
-
## Role
|
|
10
|
-
|
|
11
|
-
You are an expert in refactoring Java methods.
|
|
12
|
-
|
|
13
|
-
Below are **2 examples** (with titles code before and code after refactoring) that represents **Remove Parameter**.
|
|
14
|
-
|
|
15
|
-
## Code Before Refactoring 1:
|
|
16
|
-
```java
|
|
17
|
-
public Backend selectBackendForGroupCommit(long tableId, ConnectContext context, boolean isCloud)
|
|
18
|
-
throws LoadException, DdlException {
|
|
19
|
-
if (!Env.getCurrentEnv().isMaster()) {
|
|
20
|
-
try {
|
|
21
|
-
long backendId = new MasterOpExecutor(context)
|
|
22
|
-
.getGroupCommitLoadBeId(tableId, context.getCloudCluster(), isCloud);
|
|
23
|
-
return Env.getCurrentSystemInfo().getBackend(backendId);
|
|
24
|
-
} catch (Exception e) {
|
|
25
|
-
throw new LoadException(e.getMessage());
|
|
26
|
-
}
|
|
27
|
-
} else {
|
|
28
|
-
return Env.getCurrentSystemInfo()
|
|
29
|
-
.getBackend(selectBackendForGroupCommitInternal(tableId, context.getCloudCluster(), isCloud));
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
## Code After Refactoring 1:
|
|
35
|
-
```java
|
|
36
|
-
public Backend selectBackendForGroupCommit(long tableId, ConnectContext context)
|
|
37
|
-
throws LoadException, DdlException {
|
|
38
|
-
if (!Env.getCurrentEnv().isMaster()) {
|
|
39
|
-
try {
|
|
40
|
-
long backendId = new MasterOpExecutor(context)
|
|
41
|
-
.getGroupCommitLoadBeId(tableId, context.getCloudCluster());
|
|
42
|
-
return Env.getCurrentSystemInfo().getBackend(backendId);
|
|
43
|
-
} catch (Exception e) {
|
|
44
|
-
throw new LoadException(e.getMessage());
|
|
45
|
-
}
|
|
46
|
-
} else {
|
|
47
|
-
return Env.getCurrentSystemInfo()
|
|
48
|
-
.getBackend(selectBackendForGroupCommitInternal(tableId, context.getCloudCluster()));
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
## Code Before Refactoring 2:
|
|
54
|
-
```java
|
|
55
|
-
NodeImpl( long id, long firstRel, long firstProp )
|
|
56
|
-
{
|
|
57
|
-
this( id, false );
|
|
58
|
-
}
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
## Code After Refactoring 2:
|
|
62
|
-
```java
|
|
63
|
-
NodeImpl( long id)
|
|
64
|
-
{
|
|
65
|
-
this( id, false );
|
|
66
|
-
}
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
## Task
|
|
70
|
-
|
|
71
|
-
Apply **Remove Parameter** to improve readability, testability, maintainability, reusability, modularity, cohesion, low coupling, and consistency.
|
|
72
|
-
|
|
73
|
-
Always return a complete and compilable method (Java 17).
|
|
74
|
-
|
|
75
|
-
Perform intermediate steps internally:
|
|
76
|
-
- First, analyze each method and identify parameters that are unused or redundant (i.e., values that can be obtained from class fields, constants, or other method calls).
|
|
77
|
-
- For each qualifying method, remove the unnecessary parameters from its definition and from all its internal calls.
|
|
78
|
-
- Ensure that the method continues to function correctly after parameter removal.
|
|
79
|
-
- Output only the refactored code inside a single ```java``` block.
|
|
80
|
-
- Do not remove any functionality from the original method.
|
|
81
|
-
- Include a one-line comment above each modified method indicating which parameter was removed and why.
|
|
82
|
-
|
|
83
|
-
## Code to be Refactored:
|
|
84
|
-
|
|
85
|
-
Now, assess all methods with unused parameters and refactor them using **Remove Parameter**
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
mode: 'agent'
|
|
3
|
-
tools: ['changes', 'search/codebase', 'edit/editFiles', 'problems', 'search']
|
|
4
|
-
description: 'Get best practices for developing applications with Spring Boot.'
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Spring Boot Best Practices
|
|
8
|
-
|
|
9
|
-
Your goal is to help me write high-quality Spring Boot applications by following established best practices.
|
|
10
|
-
|
|
11
|
-
## Project Setup & Structure
|
|
12
|
-
|
|
13
|
-
- **Build Tool:** Use Maven (`pom.xml`) or Gradle (`build.gradle`) for dependency management.
|
|
14
|
-
- **Starters:** Use Spring Boot starters (e.g., `spring-boot-starter-web`, `spring-boot-starter-data-jpa`) to simplify dependency management.
|
|
15
|
-
- **Package Structure:** Organize code by feature/domain (e.g., `com.example.app.order`, `com.example.app.user`) rather than by layer (e.g., `com.example.app.controller`, `com.example.app.service`).
|
|
16
|
-
|
|
17
|
-
## Dependency Injection & Components
|
|
18
|
-
|
|
19
|
-
- **Constructor Injection:** Always use constructor-based injection for required dependencies. This makes components easier to test and dependencies explicit.
|
|
20
|
-
- **Immutability:** Declare dependency fields as `private final`.
|
|
21
|
-
- **Component Stereotypes:** Use `@Component`, `@Service`, `@Repository`, and `@Controller`/`@RestController` annotations appropriately to define beans.
|
|
22
|
-
|
|
23
|
-
## Configuration
|
|
24
|
-
|
|
25
|
-
- **Externalized Configuration:** Use `application.yml` (or `application.properties`) for configuration. YAML is often preferred for its readability and hierarchical structure.
|
|
26
|
-
- **Type-Safe Properties:** Use `@ConfigurationProperties` to bind configuration to strongly-typed Java objects.
|
|
27
|
-
- **Profiles:** Use Spring Profiles (`application-dev.yml`, `application-prod.yml`) to manage environment-specific configurations.
|
|
28
|
-
- **Secrets Management:** Do not hardcode secrets. Use environment variables, or a dedicated secret management tool like HashiCorp Vault or AWS Secrets Manager.
|
|
29
|
-
|
|
30
|
-
## Web Layer (Controllers)
|
|
31
|
-
|
|
32
|
-
- **RESTful APIs:** Design clear and consistent RESTful endpoints.
|
|
33
|
-
- **DTOs (Data Transfer Objects):** Use DTOs to expose and consume data in the API layer. Do not expose JPA entities directly to the client.
|
|
34
|
-
- **Validation:** Use Java Bean Validation (JSR 380) with annotations (`@Valid`, `@NotNull`, `@Size`) on DTOs to validate request payloads.
|
|
35
|
-
- **Error Handling:** Implement a global exception handler using `@ControllerAdvice` and `@ExceptionHandler` to provide consistent error responses.
|
|
36
|
-
|
|
37
|
-
## Service Layer
|
|
38
|
-
|
|
39
|
-
- **Business Logic:** Encapsulate all business logic within `@Service` classes.
|
|
40
|
-
- **Statelessness:** Services should be stateless.
|
|
41
|
-
- **Transaction Management:** Use `@Transactional` on service methods to manage database transactions declaratively. Apply it at the most granular level necessary.
|
|
42
|
-
|
|
43
|
-
## Data Layer (Repositories)
|
|
44
|
-
|
|
45
|
-
- **Spring Data JPA:** Use Spring Data JPA repositories by extending `JpaRepository` or `CrudRepository` for standard database operations.
|
|
46
|
-
- **Custom Queries:** For complex queries, use `@Query` or the JPA Criteria API.
|
|
47
|
-
- **Projections:** Use DTO projections to fetch only the necessary data from the database.
|
|
48
|
-
|
|
49
|
-
## Logging
|
|
50
|
-
|
|
51
|
-
- **SLF4J:** Use the SLF4J API for logging.
|
|
52
|
-
- **Logger Declaration:** `private static final Logger logger = LoggerFactory.getLogger(MyClass.class);`
|
|
53
|
-
- **Parameterized Logging:** Use parameterized messages (`logger.info("Processing user {}...", userId);`) instead of string concatenation to improve performance.
|
|
54
|
-
|
|
55
|
-
## Testing
|
|
56
|
-
|
|
57
|
-
- **Unit Tests:** Write unit tests for services and components using JUnit 5 and a mocking framework like Mockito.
|
|
58
|
-
- **Integration Tests:** Use `@SpringBootTest` for integration tests that load the Spring application context.
|
|
59
|
-
- **Test Slices:** Use test slice annotations like `@WebMvcTest` (for controllers) or `@DataJpaTest` (for repositories) to test specific parts of the application in isolation.
|
|
60
|
-
- **Testcontainers:** Consider using Testcontainers for reliable integration tests with real databases, message brokers, etc.
|
|
61
|
-
|
|
62
|
-
## Security
|
|
63
|
-
|
|
64
|
-
- **Spring Security:** Use Spring Security for authentication and authorization.
|
|
65
|
-
- **Password Encoding:** Always encode passwords using a strong hashing algorithm like BCrypt.
|
|
66
|
-
- **Input Sanitization:** Prevent SQL injection by using Spring Data JPA or parameterized queries. Prevent Cross-Site Scripting (XSS) by properly encoding output.
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: 'Best practices for writing JavaScript/TypeScript tests using Jest, including mocking strategies, test structure, and common patterns.'
|
|
3
|
-
mode: 'agent'
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
### Test Structure
|
|
7
|
-
- Name test files with `.test.ts` or `.test.js` suffix
|
|
8
|
-
- Place test files next to the code they test or in a dedicated `__tests__` directory
|
|
9
|
-
- Use descriptive test names that explain the expected behavior
|
|
10
|
-
- Use nested describe blocks to organize related tests
|
|
11
|
-
- Follow the pattern: `describe('Component/Function/Class', () => { it('should do something', () => {}) })`
|
|
12
|
-
|
|
13
|
-
### Effective Mocking
|
|
14
|
-
- Mock external dependencies (APIs, databases, etc.) to isolate your tests
|
|
15
|
-
- Use `jest.mock()` for module-level mocks
|
|
16
|
-
- Use `jest.spyOn()` for specific function mocks
|
|
17
|
-
- Use `mockImplementation()` or `mockReturnValue()` to define mock behavior
|
|
18
|
-
- Reset mocks between tests with `jest.resetAllMocks()` in `afterEach`
|
|
19
|
-
|
|
20
|
-
### Testing Async Code
|
|
21
|
-
- Always return promises or use async/await syntax in tests
|
|
22
|
-
- Use `resolves`/`rejects` matchers for promises
|
|
23
|
-
- Set appropriate timeouts for slow tests with `jest.setTimeout()`
|
|
24
|
-
|
|
25
|
-
### Snapshot Testing
|
|
26
|
-
- Use snapshot tests for UI components or complex objects that change infrequently
|
|
27
|
-
- Keep snapshots small and focused
|
|
28
|
-
- Review snapshot changes carefully before committing
|
|
29
|
-
|
|
30
|
-
### Testing React Components
|
|
31
|
-
- Use React Testing Library over Enzyme for testing components
|
|
32
|
-
- Test user behavior and component accessibility
|
|
33
|
-
- Query elements by accessibility roles, labels, or text content
|
|
34
|
-
- Use `userEvent` over `fireEvent` for more realistic user interactions
|
|
35
|
-
|
|
36
|
-
## Common Jest Matchers
|
|
37
|
-
- Basic: `expect(value).toBe(expected)`, `expect(value).toEqual(expected)`
|
|
38
|
-
- Truthiness: `expect(value).toBeTruthy()`, `expect(value).toBeFalsy()`
|
|
39
|
-
- Numbers: `expect(value).toBeGreaterThan(3)`, `expect(value).toBeLessThanOrEqual(3)`
|
|
40
|
-
- Strings: `expect(value).toMatch(/pattern/)`, `expect(value).toContain('substring')`
|
|
41
|
-
- Arrays: `expect(array).toContain(item)`, `expect(array).toHaveLength(3)`
|
|
42
|
-
- Objects: `expect(object).toHaveProperty('key', value)`
|
|
43
|
-
- Exceptions: `expect(fn).toThrow()`, `expect(fn).toThrow(Error)`
|
|
44
|
-
- Mock functions: `expect(mockFn).toHaveBeenCalled()`, `expect(mockFn).toHaveBeenCalledWith(arg1, arg2)`
|