@ngxtm/devkit 3.6.1 → 3.8.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/SKILLS_INDEX.md +2419 -634
- package/cli/update.js +145 -77
- package/merged-commands/3d-web-experience.md +254 -0
- package/merged-commands/ab-test-setup.md +232 -0
- package/merged-commands/accessibility-compliance-accessibility-audit.md +42 -0
- package/merged-commands/active-directory-attacks.md +383 -0
- package/merged-commands/address-github-comments.md +55 -0
- package/merged-commands/aesthetic.md +134 -0
- package/merged-commands/agent-evaluation.md +64 -0
- package/merged-commands/agent-framework-azure-hosted-agents.md +332 -0
- package/merged-commands/agent-manager-skill.md +40 -0
- package/merged-commands/agent-memory-mcp.md +82 -0
- package/merged-commands/agent-memory-systems.md +67 -0
- package/merged-commands/agent-orchestration-improve-agent.md +349 -0
- package/merged-commands/agent-orchestration-multi-agent-optimize.md +239 -0
- package/merged-commands/agent-tool-builder.md +53 -0
- package/merged-commands/agile-product-owner.md +31 -0
- package/merged-commands/ai-agents-architect.md +90 -0
- package/merged-commands/ai-artist.md +75 -0
- package/merged-commands/ai-engineer.md +171 -0
- package/merged-commands/ai-multimodal.md +109 -0
- package/merged-commands/ai-product.md +54 -0
- package/merged-commands/ai-wrapper-product.md +273 -0
- package/merged-commands/airflow-dag-patterns.md +41 -0
- package/merged-commands/algolia-search.md +66 -0
- package/merged-commands/algorithmic-art.md +405 -0
- package/merged-commands/analytics-tracking.md +404 -0
- package/merged-commands/angular-architect.md +97 -0
- package/merged-commands/angular-migration.md +428 -0
- package/merged-commands/anti-reversing-techniques.md +42 -0
- package/merged-commands/api-design-principles.md +37 -0
- package/merged-commands/api-designer.md +101 -0
- package/merged-commands/api-documentation-generator.md +484 -0
- package/merged-commands/api-documenter.md +184 -0
- package/merged-commands/api-fuzzing-bug-bounty.md +433 -0
- package/merged-commands/api-patterns.md +81 -0
- package/merged-commands/api-security-best-practices.md +907 -0
- package/merged-commands/api-testing-observability-api-mock.md +46 -0
- package/merged-commands/app-builder.md +75 -0
- package/merged-commands/app-store-optimization.md +403 -0
- package/merged-commands/application-performance-performance-optimization.md +154 -0
- package/merged-commands/architect-review.md +174 -0
- package/merged-commands/architecture-decision-records.md +441 -0
- package/merged-commands/architecture-designer.md +89 -0
- package/merged-commands/architecture-patterns.md +37 -0
- package/merged-commands/architecture.md +55 -0
- package/merged-commands/arm-cortex-expert.md +306 -0
- package/merged-commands/artifacts-builder.md +74 -0
- package/merged-commands/ask-questions-if-underspecified.md +81 -0
- package/merged-commands/async-python-patterns.md +39 -0
- package/merged-commands/atlassian-mcp.md +100 -0
- package/merged-commands/attack-tree-construction.md +38 -0
- package/merged-commands/auth-implementation-patterns.md +39 -0
- package/merged-commands/automate-whatsapp.md +257 -0
- package/merged-commands/autonomous-agent-patterns.md +761 -0
- package/merged-commands/autonomous-agents.md +68 -0
- package/merged-commands/avalonia-layout-zafiro.md +59 -0
- package/merged-commands/avalonia-viewmodels-zafiro.md +29 -0
- package/merged-commands/avalonia-zafiro-development.md +29 -0
- package/merged-commands/aws-agentic-ai.md +117 -0
- package/merged-commands/aws-cdk-development.md +278 -0
- package/merged-commands/aws-cost-operations.md +317 -0
- package/merged-commands/aws-penetration-testing.md +405 -0
- package/merged-commands/aws-serverless-eda.md +757 -0
- package/merged-commands/aws-serverless.md +323 -0
- package/merged-commands/aws-skills.md +22 -0
- package/merged-commands/azd-deployment.md +296 -0
- package/merged-commands/azure-ai-agents-python.md +277 -0
- package/merged-commands/azure-ai-search-python.md +198 -0
- package/merged-commands/azure-ai-voicelive-skill.md +294 -0
- package/merged-commands/azure-functions.md +42 -0
- package/merged-commands/backend-architect.md +333 -0
- package/merged-commands/backend-dev-guidelines.md +342 -0
- package/merged-commands/backend-development-feature-development.md +180 -0
- package/merged-commands/backend-development.md +155 -0
- package/merged-commands/backend-security-coder.md +156 -0
- package/merged-commands/backtesting-frameworks.md +39 -0
- package/merged-commands/bash-defensive-patterns.md +43 -0
- package/merged-commands/bash-linux.md +199 -0
- package/merged-commands/bash-pro.md +310 -0
- package/merged-commands/bats-testing-patterns.md +34 -0
- package/merged-commands/bazel-build-optimization.md +397 -0
- package/merged-commands/beautiful-prose.md +22 -0
- package/merged-commands/behavioral-modes.md +242 -0
- package/merged-commands/best-practices.md +500 -0
- package/merged-commands/better-auth.md +204 -0
- package/merged-commands/billing-automation.md +42 -0
- package/merged-commands/binary-analysis-patterns.md +450 -0
- package/merged-commands/blockchain-developer.md +208 -0
- package/merged-commands/blockrun.md +292 -0
- package/merged-commands/brainstorming.md +230 -0
- package/merged-commands/brand-guidelines-anthropic.md +73 -0
- package/merged-commands/brand-guidelines-community.md +73 -0
- package/merged-commands/brand-guidelines.md +73 -0
- package/merged-commands/broken-authentication.md +476 -0
- package/merged-commands/browser-automation.md +70 -0
- package/merged-commands/browser-extension-builder.md +261 -0
- package/merged-commands/building-ai-agent-on-cloudflare.md +391 -0
- package/merged-commands/building-mcp-server-on-cloudflare.md +265 -0
- package/merged-commands/bullmq-specialist.md +57 -0
- package/merged-commands/bun-development.md +691 -0
- package/merged-commands/burp-suite-testing.md +380 -0
- package/merged-commands/business-analyst.md +182 -0
- package/merged-commands/busybox-on-windows.md +30 -0
- package/merged-commands/c-pro.md +56 -0
- package/merged-commands/c4-architecture-c4-architecture.md +389 -0
- package/merged-commands/c4-code.md +244 -0
- package/merged-commands/c4-component.md +153 -0
- package/merged-commands/c4-container.md +171 -0
- package/merged-commands/c4-context.md +150 -0
- package/merged-commands/canvas-design.md +130 -0
- package/merged-commands/cc-skill-backend-patterns.md +584 -0
- package/merged-commands/cc-skill-clickhouse-io.md +431 -0
- package/merged-commands/cc-skill-coding-standards.md +522 -0
- package/merged-commands/cc-skill-continuous-learning.md +10 -0
- package/merged-commands/cc-skill-frontend-patterns.md +633 -0
- package/merged-commands/cc-skill-project-guidelines-example.md +352 -0
- package/merged-commands/cc-skill-security-review.md +496 -0
- package/merged-commands/cc-skill-strategic-compact.md +10 -0
- package/merged-commands/changelog-automation.md +38 -0
- package/merged-commands/changelog-generator.md +104 -0
- package/merged-commands/chaos-engineer.md +98 -0
- package/merged-commands/chrome-devtools.md +407 -0
- package/merged-commands/cicd-automation-workflow-automate.md +51 -0
- package/merged-commands/clarity-gate.md +22 -0
- package/merged-commands/claude-ally-health.md +22 -0
- package/merged-commands/claude-code-guide.md +68 -0
- package/merged-commands/claude-d3js-skill.md +820 -0
- package/merged-commands/claude-scientific-skills.md +22 -0
- package/merged-commands/claude-speed-reader.md +22 -0
- package/merged-commands/claude-win11-speckit-update-skill.md +22 -0
- package/merged-commands/clean-code.md +201 -0
- package/merged-commands/clerk-auth.md +56 -0
- package/merged-commands/cli-developer.md +97 -0
- package/merged-commands/cloud-architect.md +135 -0
- package/merged-commands/cloud-penetration-testing.md +501 -0
- package/merged-commands/cloudflare-expert.md +227 -0
- package/merged-commands/code-documentation-code-explain.md +46 -0
- package/merged-commands/code-documentation-doc-generate.md +48 -0
- package/merged-commands/code-documentation.md +263 -0
- package/merged-commands/code-documenter.md +95 -0
- package/merged-commands/code-refactoring-context-restore.md +179 -0
- package/merged-commands/code-refactoring-refactor-clean.md +51 -0
- package/merged-commands/code-refactoring-tech-debt.md +386 -0
- package/merged-commands/code-refactoring.md +209 -0
- package/merged-commands/code-review-ai-ai-review.md +450 -0
- package/merged-commands/code-review-checklist.md +444 -0
- package/merged-commands/code-review-excellence.md +40 -0
- package/merged-commands/code-review.md +121 -0
- package/merged-commands/code-reviewer.md +178 -0
- package/merged-commands/codebase-cleanup-deps-audit.md +51 -0
- package/merged-commands/codebase-cleanup-refactor-clean.md +51 -0
- package/merged-commands/codebase-cleanup-tech-debt.md +386 -0
- package/merged-commands/codex-review.md +37 -0
- package/merged-commands/commit.md +171 -0
- package/merged-commands/competitive-ads-extractor.md +293 -0
- package/merged-commands/competitive-landscape.md +34 -0
- package/merged-commands/competitor-alternatives.md +750 -0
- package/merged-commands/comprehensive-review-full-review.md +146 -0
- package/merged-commands/comprehensive-review-pr-enhance.md +46 -0
- package/merged-commands/computer-use-agents.md +315 -0
- package/merged-commands/concise-planning.md +62 -0
- package/merged-commands/conductor-implement.md +388 -0
- package/merged-commands/conductor-manage.md +39 -0
- package/merged-commands/conductor-new-track.md +433 -0
- package/merged-commands/conductor-revert.md +372 -0
- package/merged-commands/conductor-setup.md +426 -0
- package/merged-commands/conductor-status.md +338 -0
- package/merged-commands/conductor-validator.md +62 -0
- package/merged-commands/content-creator.md +248 -0
- package/merged-commands/content-marketer.md +170 -0
- package/merged-commands/content-research-writer.md +538 -0
- package/merged-commands/context-compression.md +266 -0
- package/merged-commands/context-degradation.md +238 -0
- package/merged-commands/context-driven-development.md +400 -0
- package/merged-commands/context-engineering.md +107 -0
- package/merged-commands/context-fundamentals.md +192 -0
- package/merged-commands/context-management-context-restore.md +179 -0
- package/merged-commands/context-management-context-save.md +177 -0
- package/merged-commands/context-manager.md +185 -0
- package/merged-commands/context-optimization.md +186 -0
- package/merged-commands/context-window-management.md +53 -0
- package/merged-commands/context7-auto-research.md +36 -0
- package/merged-commands/conversation-memory.md +61 -0
- package/merged-commands/copy-editing.md +439 -0
- package/merged-commands/copywriting.md +225 -0
- package/merged-commands/core-components.md +264 -0
- package/merged-commands/cosmos-db-python-skill.md +198 -0
- package/merged-commands/cost-optimization.md +286 -0
- package/merged-commands/cpp-pro.md +59 -0
- package/merged-commands/cqrs-implementation.md +35 -0
- package/merged-commands/create-pr.md +192 -0
- package/merged-commands/crewai.md +243 -0
- package/merged-commands/csharp-developer.md +94 -0
- package/merged-commands/csharp-pro.md +59 -0
- package/merged-commands/culture-index.md +43 -0
- package/merged-commands/customer-support.md +170 -0
- package/merged-commands/daily-news-report.md +356 -0
- package/merged-commands/data-engineer.md +224 -0
- package/merged-commands/data-engineering-data-driven-feature.md +182 -0
- package/merged-commands/data-engineering-data-pipeline.md +201 -0
- package/merged-commands/data-quality-frameworks.md +40 -0
- package/merged-commands/data-scientist.md +199 -0
- package/merged-commands/data-storytelling.md +465 -0
- package/merged-commands/database-admin.md +165 -0
- package/merged-commands/database-architect.md +268 -0
- package/merged-commands/database-cloud-optimization-cost-optimize.md +44 -0
- package/merged-commands/database-design.md +52 -0
- package/merged-commands/database-migration.md +436 -0
- package/merged-commands/database-migrations-migration-observability.md +420 -0
- package/merged-commands/database-migrations-sql-migrations.md +53 -0
- package/merged-commands/database-optimizer.md +167 -0
- package/merged-commands/databases.md +232 -0
- package/merged-commands/dbt-transformation-patterns.md +34 -0
- package/merged-commands/debugger.md +49 -0
- package/merged-commands/debugging-strategies.md +34 -0
- package/merged-commands/debugging-toolkit-smart-debug.md +197 -0
- package/merged-commands/debugging-wizard.md +93 -0
- package/merged-commands/debugging.md +84 -0
- package/merged-commands/deep-research.md +114 -0
- package/merged-commands/defi-protocol-templates.md +466 -0
- package/merged-commands/dependency-management-deps-audit.md +44 -0
- package/merged-commands/dependency-upgrade.md +421 -0
- package/merged-commands/deployment-engineer.md +170 -0
- package/merged-commands/deployment-pipeline-design.md +371 -0
- package/merged-commands/deployment-procedures.md +241 -0
- package/merged-commands/deployment-validation-config-validate.md +496 -0
- package/merged-commands/design-md.md +178 -0
- package/merged-commands/design-orchestration.md +167 -0
- package/merged-commands/developer-growth-analysis.md +322 -0
- package/merged-commands/devops-engineer.md +92 -0
- package/merged-commands/devops-troubleshooter.md +161 -0
- package/merged-commands/devops.md +285 -0
- package/merged-commands/discord-bot-architect.md +277 -0
- package/merged-commands/dispatching-parallel-agents.md +180 -0
- package/merged-commands/distributed-debugging-debug-trace.md +44 -0
- package/merged-commands/distributed-tracing.md +450 -0
- package/merged-commands/django-expert.md +89 -0
- package/merged-commands/django-pro.md +180 -0
- package/merged-commands/doc-coauthoring.md +375 -0
- package/merged-commands/docker-expert.md +409 -0
- package/merged-commands/docs-architect.md +98 -0
- package/merged-commands/docs-seeker.md +102 -0
- package/merged-commands/documentation-generation-doc-generate.md +48 -0
- package/merged-commands/documentation-templates.md +194 -0
- package/merged-commands/docx-official.md +197 -0
- package/merged-commands/docx.md +197 -0
- package/merged-commands/domain-name-brainstormer.md +212 -0
- package/merged-commands/dotnet-architect.md +197 -0
- package/merged-commands/dotnet-backend-patterns.md +37 -0
- package/merged-commands/dotnet-core-expert.md +96 -0
- package/merged-commands/dx-optimizer.md +83 -0
- package/merged-commands/e2e-testing-patterns.md +41 -0
- package/merged-commands/elixir-pro.md +59 -0
- package/merged-commands/email-sequence.md +925 -0
- package/merged-commands/email-systems.md +54 -0
- package/merged-commands/embedded-systems.md +98 -0
- package/merged-commands/embedding-strategies.md +491 -0
- package/merged-commands/employment-contract-templates.md +39 -0
- package/merged-commands/environment-setup-guide.md +479 -0
- package/merged-commands/error-debugging-error-analysis.md +47 -0
- package/merged-commands/error-debugging-error-trace.md +43 -0
- package/merged-commands/error-debugging-multi-agent-review.md +216 -0
- package/merged-commands/error-detective.md +53 -0
- package/merged-commands/error-diagnostics-error-analysis.md +47 -0
- package/merged-commands/error-diagnostics-error-trace.md +48 -0
- package/merged-commands/error-diagnostics-smart-debug.md +197 -0
- package/merged-commands/error-handling-patterns.md +35 -0
- package/merged-commands/ethical-hacking-methodology.md +466 -0
- package/merged-commands/evaluation.md +238 -0
- package/merged-commands/event-sourcing-architect.md +58 -0
- package/merged-commands/event-store-design.md +449 -0
- package/merged-commands/exa-search.md +36 -0
- package/merged-commands/executing-plans.md +76 -0
- package/merged-commands/expo-app-design.md +22 -0
- package/merged-commands/expo-deployment.md +72 -0
- package/merged-commands/fal-audio.md +22 -0
- package/merged-commands/fal-generate.md +22 -0
- package/merged-commands/fal-image-edit.md +22 -0
- package/merged-commands/fal-platform.md +22 -0
- package/merged-commands/fal-upscale.md +22 -0
- package/merged-commands/fal-workflow.md +22 -0
- package/merged-commands/fastapi-expert.md +93 -0
- package/merged-commands/fastapi-pro.md +192 -0
- package/merged-commands/fastapi-router.md +52 -0
- package/merged-commands/fastapi-templates.md +32 -0
- package/merged-commands/feature-forge.md +90 -0
- package/merged-commands/ffuf-claude-skill.md +22 -0
- package/merged-commands/file-organizer.md +250 -0
- package/merged-commands/file-path-traversal.md +486 -0
- package/merged-commands/file-uploads.md +22 -0
- package/merged-commands/find-bugs.md +86 -0
- package/merged-commands/fine-tuning-expert.md +98 -0
- package/merged-commands/finishing-a-development-branch.md +200 -0
- package/merged-commands/firebase.md +56 -0
- package/merged-commands/firecrawl-scraper.md +37 -0
- package/merged-commands/firmware-analyst.md +320 -0
- package/merged-commands/fix-review.md +53 -0
- package/merged-commands/fixing.md +72 -0
- package/merged-commands/flutter-expert.md +200 -0
- package/merged-commands/form-cro.md +441 -0
- package/merged-commands/foundry-iq-agent.md +15 -0
- package/merged-commands/foundry-iq-python.md +275 -0
- package/merged-commands/foundry-nextgen-frontend.md +555 -0
- package/merged-commands/foundry-sdk-python.md +290 -0
- package/merged-commands/fp-ts-errors.md +856 -0
- package/merged-commands/fp-ts-pragmatic.md +598 -0
- package/merged-commands/fp-ts-react.md +796 -0
- package/merged-commands/framework-migration-code-migrate.md +48 -0
- package/merged-commands/framework-migration-deps-upgrade.md +48 -0
- package/merged-commands/framework-migration-legacy-modernize.md +132 -0
- package/merged-commands/free-tool-strategy.md +576 -0
- package/merged-commands/frontend-design.md +272 -0
- package/merged-commands/frontend-dev-guidelines.md +359 -0
- package/merged-commands/frontend-developer.md +171 -0
- package/merged-commands/frontend-development.md +399 -0
- package/merged-commands/frontend-mobile-development-component-scaffold.md +403 -0
- package/merged-commands/frontend-mobile-security-xss-scan.md +322 -0
- package/merged-commands/frontend-security-coder.md +170 -0
- package/merged-commands/frontend-slides.md +770 -0
- package/merged-commands/full-stack-orchestration-full-stack-feature.md +135 -0
- package/merged-commands/fullstack-guardian.md +99 -0
- package/merged-commands/game-developer.md +94 -0
- package/merged-commands/game-development.md +167 -0
- package/merged-commands/gcp-cloud-run.md +288 -0
- package/merged-commands/gdpr-data-handling.md +33 -0
- package/merged-commands/geo-fundamentals.md +156 -0
- package/merged-commands/git-advanced-workflows.md +412 -0
- package/merged-commands/git-pr-workflows-git-workflow.md +140 -0
- package/merged-commands/git-pr-workflows-onboard.md +416 -0
- package/merged-commands/git-pr-workflows-pr-enhance.md +48 -0
- package/merged-commands/git-pushing.md +33 -0
- package/merged-commands/github-actions-templates.md +345 -0
- package/merged-commands/github-workflow-automation.md +846 -0
- package/merged-commands/gitlab-ci-patterns.md +283 -0
- package/merged-commands/gitops-workflow.md +303 -0
- package/merged-commands/go-concurrency-patterns.md +33 -0
- package/merged-commands/godot-gdscript-patterns.md +33 -0
- package/merged-commands/golang-pro.md +179 -0
- package/merged-commands/google-adk-python.md +243 -0
- package/merged-commands/grafana-dashboards.md +381 -0
- package/merged-commands/graphql-architect.md +182 -0
- package/merged-commands/graphql.md +68 -0
- package/merged-commands/haskell-pro.md +56 -0
- package/merged-commands/helm-chart-scaffolding.md +34 -0
- package/merged-commands/hr-pro.md +126 -0
- package/merged-commands/html-injection-testing.md +498 -0
- package/merged-commands/hubspot-integration.md +42 -0
- package/merged-commands/hugging-face-cli.md +198 -0
- package/merged-commands/hugging-face-jobs.md +1038 -0
- package/merged-commands/hybrid-cloud-architect.md +168 -0
- package/merged-commands/hybrid-cloud-networking.md +238 -0
- package/merged-commands/hybrid-search-implementation.md +32 -0
- package/merged-commands/i18n-localization.md +154 -0
- package/merged-commands/idor-testing.md +442 -0
- package/merged-commands/image-enhancer.md +99 -0
- package/merged-commands/imagen.md +77 -0
- package/merged-commands/incident-responder.md +213 -0
- package/merged-commands/incident-response-incident-response.md +168 -0
- package/merged-commands/incident-response-smart-fix.md +29 -0
- package/merged-commands/incident-runbook-templates.md +395 -0
- package/merged-commands/infinite-gratitude.md +26 -0
- package/merged-commands/inngest.md +55 -0
- package/merged-commands/interactive-portfolio.md +223 -0
- package/merged-commands/internal-comms-anthropic.md +32 -0
- package/merged-commands/internal-comms-community.md +32 -0
- package/merged-commands/internal-comms.md +32 -0
- package/merged-commands/invoice-organizer.md +446 -0
- package/merged-commands/ios-developer.md +219 -0
- package/merged-commands/issue-creator.md +137 -0
- package/merged-commands/istio-traffic-management.md +337 -0
- package/merged-commands/iterate-pr.md +150 -0
- package/merged-commands/java-architect.md +95 -0
- package/merged-commands/java-pro.md +177 -0
- package/merged-commands/javascript-mastery.md +645 -0
- package/merged-commands/javascript-pro.md +57 -0
- package/merged-commands/javascript-testing-patterns.md +35 -0
- package/merged-commands/javascript-typescript-typescript-scaffold.md +361 -0
- package/merged-commands/javascript-typescript.md +142 -0
- package/merged-commands/jira-issues.md +181 -0
- package/merged-commands/job-application.md +90 -0
- package/merged-commands/julia-pro.md +209 -0
- package/merged-commands/k8s-manifest-generator.md +35 -0
- package/merged-commands/k8s-security-policies.md +346 -0
- package/merged-commands/kaizen.md +730 -0
- package/merged-commands/kotlin-specialist.md +94 -0
- package/merged-commands/kpi-dashboard-design.md +440 -0
- package/merged-commands/kubernetes-architect.md +170 -0
- package/merged-commands/kubernetes-specialist.md +117 -0
- package/merged-commands/langchain-architecture.md +350 -0
- package/merged-commands/langfuse.md +238 -0
- package/merged-commands/langgraph.md +287 -0
- package/merged-commands/laravel-specialist.md +101 -0
- package/merged-commands/last30days.md +421 -0
- package/merged-commands/launch-strategy.md +344 -0
- package/merged-commands/lead-research-assistant.md +199 -0
- package/merged-commands/learn.md +476 -0
- package/merged-commands/legacy-modernizer.md +53 -0
- package/merged-commands/legal-advisor.md +70 -0
- package/merged-commands/linear-claude-skill.md +543 -0
- package/merged-commands/linkerd-patterns.md +321 -0
- package/merged-commands/lint-and-validate.md +45 -0
- package/merged-commands/linux-privilege-escalation.md +504 -0
- package/merged-commands/linux-shell-scripting.md +504 -0
- package/merged-commands/llm-app-patterns.md +760 -0
- package/merged-commands/llm-application-dev-ai-assistant.md +35 -0
- package/merged-commands/llm-application-dev-langchain-agent.md +246 -0
- package/merged-commands/llm-application-dev-prompt-optimize.md +37 -0
- package/merged-commands/llm-application-dev.md +216 -0
- package/merged-commands/llm-evaluation.md +483 -0
- package/merged-commands/loki-mode.md +721 -0
- package/merged-commands/machine-learning-ops-ml-pipeline.md +314 -0
- package/merged-commands/makepad-skills.md +22 -0
- package/merged-commands/malware-analyst.md +247 -0
- package/merged-commands/markdown-novel-viewer.md +281 -0
- package/merged-commands/market-sizing-analysis.md +425 -0
- package/merged-commands/marketing-ideas.md +221 -0
- package/merged-commands/marketing-psychology.md +255 -0
- package/merged-commands/mcp-builder.md +236 -0
- package/merged-commands/mcp-developer.md +94 -0
- package/merged-commands/mcp-management.md +209 -0
- package/merged-commands/media-processing.md +358 -0
- package/merged-commands/meeting-insights-analyzer.md +327 -0
- package/merged-commands/memory-forensics.md +491 -0
- package/merged-commands/memory-safety-patterns.md +33 -0
- package/merged-commands/memory-systems.md +228 -0
- package/merged-commands/mermaid-expert.md +59 -0
- package/merged-commands/mermaidjs-v11.md +115 -0
- package/merged-commands/metasploit-framework.md +478 -0
- package/merged-commands/micro-saas-launcher.md +212 -0
- package/merged-commands/microservices-architect.md +102 -0
- package/merged-commands/microservices-patterns.md +35 -0
- package/merged-commands/minecraft-bukkit-pro.md +126 -0
- package/merged-commands/ml-engineer.md +168 -0
- package/merged-commands/ml-pipeline-workflow.md +257 -0
- package/merged-commands/ml-pipeline.md +111 -0
- package/merged-commands/mlops-engineer.md +219 -0
- package/merged-commands/mobile-design.md +284 -0
- package/merged-commands/mobile-developer.md +205 -0
- package/merged-commands/mobile-development.md +212 -0
- package/merged-commands/mobile-security-coder.md +184 -0
- package/merged-commands/modern-javascript-patterns.md +35 -0
- package/merged-commands/monitoring-expert.md +92 -0
- package/merged-commands/monorepo-architect.md +61 -0
- package/merged-commands/monorepo-management.md +35 -0
- package/merged-commands/moodle-external-api-development.md +597 -0
- package/merged-commands/mtls-configuration.md +359 -0
- package/merged-commands/multi-agent-brainstorming.md +256 -0
- package/merged-commands/multi-agent-patterns.md +262 -0
- package/merged-commands/multi-cloud-architecture.md +189 -0
- package/merged-commands/multi-platform-apps-multi-platform.md +203 -0
- package/merged-commands/n8n-code-python.md +750 -0
- package/merged-commands/n8n-mcp-tools-expert.md +654 -0
- package/merged-commands/n8n-node-configuration.md +796 -0
- package/merged-commands/nanobanana-ppt-skills.md +22 -0
- package/merged-commands/neon-postgres.md +56 -0
- package/merged-commands/nestjs-expert.md +552 -0
- package/merged-commands/network-101.md +342 -0
- package/merged-commands/network-engineer.md +169 -0
- package/merged-commands/nextjs-app-router-patterns.md +33 -0
- package/merged-commands/nextjs-best-practices.md +203 -0
- package/merged-commands/nextjs-developer.md +97 -0
- package/merged-commands/nextjs-supabase-auth.md +56 -0
- package/merged-commands/nft-standards.md +395 -0
- package/merged-commands/nodejs-backend-patterns.md +35 -0
- package/merged-commands/nodejs-best-practices.md +333 -0
- package/merged-commands/nosql-expert.md +111 -0
- package/merged-commands/notebooklm-skill.md +269 -0
- package/merged-commands/notebooklm.md +269 -0
- package/merged-commands/notion-template-business.md +216 -0
- package/merged-commands/nx-workspace-patterns.md +464 -0
- package/merged-commands/observability-engineer.md +237 -0
- package/merged-commands/observability-monitoring-monitor-setup.md +48 -0
- package/merged-commands/observability-monitoring-slo-implement.md +43 -0
- package/merged-commands/observe-whatsapp.md +109 -0
- package/merged-commands/obsidian-clipper-template-creator.md +64 -0
- package/merged-commands/on-call-handoff-patterns.md +453 -0
- package/merged-commands/onboarding-cro.md +433 -0
- package/merged-commands/openapi-spec-generation.md +33 -0
- package/merged-commands/page-cro.md +343 -0
- package/merged-commands/paid-ads.md +551 -0
- package/merged-commands/pandas-pro.md +96 -0
- package/merged-commands/parallel-agents.md +175 -0
- package/merged-commands/payment-integration.md +77 -0
- package/merged-commands/paypal-integration.md +479 -0
- package/merged-commands/paywall-upgrade-cro.md +570 -0
- package/merged-commands/pci-compliance.md +478 -0
- package/merged-commands/pdf-official.md +294 -0
- package/merged-commands/pdf.md +294 -0
- package/merged-commands/pentest-checklist.md +334 -0
- package/merged-commands/pentest-commands.md +438 -0
- package/merged-commands/performance-engineer.md +180 -0
- package/merged-commands/performance-profiling.md +143 -0
- package/merged-commands/performance-testing-review-ai-review.md +450 -0
- package/merged-commands/performance-testing-review-multi-agent-review.md +216 -0
- package/merged-commands/personal-tool-builder.md +289 -0
- package/merged-commands/php-pro.md +63 -0
- package/merged-commands/plaid-fintech.md +50 -0
- package/merged-commands/plan-writing.md +152 -0
- package/merged-commands/planning-with-files.md +211 -0
- package/merged-commands/planning.md +95 -0
- package/merged-commands/plans-kanban.md +166 -0
- package/merged-commands/playwright-expert.md +87 -0
- package/merged-commands/playwright-skill.md +453 -0
- package/merged-commands/podcast-generation.md +121 -0
- package/merged-commands/popup-cro.md +346 -0
- package/merged-commands/posix-shell-pro.md +304 -0
- package/merged-commands/postgres-best-practices.md +57 -0
- package/merged-commands/postgres-pro.md +98 -0
- package/merged-commands/postgresql.md +230 -0
- package/merged-commands/postmortem-writing.md +386 -0
- package/merged-commands/powershell-windows.md +167 -0
- package/merged-commands/pptx-official.md +484 -0
- package/merged-commands/pptx.md +484 -0
- package/merged-commands/pricing-strategy.md +356 -0
- package/merged-commands/prisma-expert.md +355 -0
- package/merged-commands/privilege-escalation-methods.md +333 -0
- package/merged-commands/problem-solving.md +96 -0
- package/merged-commands/product-manager-toolkit.md +351 -0
- package/merged-commands/product-strategist.md +26 -0
- package/merged-commands/production-code-audit.md +540 -0
- package/merged-commands/programmatic-seo.md +351 -0
- package/merged-commands/projection-patterns.md +33 -0
- package/merged-commands/prometheus-configuration.md +404 -0
- package/merged-commands/prompt-caching.md +61 -0
- package/merged-commands/prompt-engineer.md +272 -0
- package/merged-commands/prompt-engineering-patterns.md +213 -0
- package/merged-commands/prompt-engineering.md +171 -0
- package/merged-commands/prompt-library.md +322 -0
- package/merged-commands/protocol-reverse-engineering.md +29 -0
- package/merged-commands/pydantic-models.md +58 -0
- package/merged-commands/pypict-skill.md +22 -0
- package/merged-commands/python-development-python-scaffold.md +331 -0
- package/merged-commands/python-development.md +139 -0
- package/merged-commands/python-packaging.md +36 -0
- package/merged-commands/python-patterns.md +441 -0
- package/merged-commands/python-performance-optimization.md +36 -0
- package/merged-commands/python-pro.md +158 -0
- package/merged-commands/python-testing-patterns.md +37 -0
- package/merged-commands/qa-regression.md +337 -0
- package/merged-commands/quant-analyst.md +53 -0
- package/merged-commands/radix-ui-design-system.md +847 -0
- package/merged-commands/raffle-winner-picker.md +159 -0
- package/merged-commands/rag-architect.md +100 -0
- package/merged-commands/rag-engineer.md +90 -0
- package/merged-commands/rag-implementation.md +421 -0
- package/merged-commands/rails-expert.md +97 -0
- package/merged-commands/react-best-practices.md +121 -0
- package/merged-commands/react-expert.md +98 -0
- package/merged-commands/react-flow-node.md +66 -0
- package/merged-commands/react-modernization.md +34 -0
- package/merged-commands/react-native-architecture.md +33 -0
- package/merged-commands/react-native-expert.md +88 -0
- package/merged-commands/react-patterns.md +198 -0
- package/merged-commands/react-state-management.md +441 -0
- package/merged-commands/react-ui-patterns.md +289 -0
- package/merged-commands/readme.md +775 -0
- package/merged-commands/receiving-code-review.md +213 -0
- package/merged-commands/red-team-tactics.md +199 -0
- package/merged-commands/red-team-tools.md +310 -0
- package/merged-commands/reference-builder.md +188 -0
- package/merged-commands/referral-program.md +602 -0
- package/merged-commands/remotion-best-practices.md +45 -0
- package/merged-commands/repomix.md +275 -0
- package/merged-commands/requesting-code-review.md +105 -0
- package/merged-commands/research-engineer.md +135 -0
- package/merged-commands/research.md +191 -0
- package/merged-commands/reverse-engineer.md +173 -0
- package/merged-commands/risk-manager.md +61 -0
- package/merged-commands/risk-metrics-calculation.md +33 -0
- package/merged-commands/ruby-pro.md +56 -0
- package/merged-commands/rust-async-patterns.md +33 -0
- package/merged-commands/rust-engineer.md +96 -0
- package/merged-commands/rust-pro.md +178 -0
- package/merged-commands/saga-orchestration.md +496 -0
- package/merged-commands/sales-automator.md +55 -0
- package/merged-commands/salesforce-developer.md +105 -0
- package/merged-commands/salesforce-development.md +51 -0
- package/merged-commands/sast-configuration.md +212 -0
- package/merged-commands/scala-pro.md +82 -0
- package/merged-commands/scanning-tools.md +589 -0
- package/merged-commands/schema-markup.md +360 -0
- package/merged-commands/screen-reader-testing.md +33 -0
- package/merged-commands/screenshots.md +401 -0
- package/merged-commands/scroll-experience.md +263 -0
- package/merged-commands/search-specialist.md +80 -0
- package/merged-commands/secrets-management.md +364 -0
- package/merged-commands/secure-code-guardian.md +93 -0
- package/merged-commands/security-auditor.md +169 -0
- package/merged-commands/security-bluebook-builder.md +22 -0
- package/merged-commands/security-compliance-compliance-check.md +55 -0
- package/merged-commands/security-requirement-extraction.md +33 -0
- package/merged-commands/security-reviewer.md +94 -0
- package/merged-commands/security-scanning-security-dependencies.md +43 -0
- package/merged-commands/security-scanning-security-hardening.md +147 -0
- package/merged-commands/security-scanning-security-sast.md +495 -0
- package/merged-commands/segment-cdp.md +50 -0
- package/merged-commands/senior-architect.md +209 -0
- package/merged-commands/senior-backend.md +209 -0
- package/merged-commands/senior-computer-vision.md +226 -0
- package/merged-commands/senior-data-engineer.md +226 -0
- package/merged-commands/senior-data-scientist.md +226 -0
- package/merged-commands/senior-devops.md +209 -0
- package/merged-commands/senior-frontend.md +209 -0
- package/merged-commands/senior-fullstack.md +209 -0
- package/merged-commands/senior-ml-engineer.md +226 -0
- package/merged-commands/senior-prompt-engineer.md +226 -0
- package/merged-commands/senior-qa.md +209 -0
- package/merged-commands/senior-secops.md +209 -0
- package/merged-commands/senior-security.md +209 -0
- package/merged-commands/seo-audit.md +487 -0
- package/merged-commands/seo-authority-builder.md +136 -0
- package/merged-commands/seo-cannibalization-detector.md +123 -0
- package/merged-commands/seo-content-auditor.md +83 -0
- package/merged-commands/seo-content-planner.md +108 -0
- package/merged-commands/seo-content-refresher.md +118 -0
- package/merged-commands/seo-content-writer.md +96 -0
- package/merged-commands/seo-fundamentals.md +173 -0
- package/merged-commands/seo-keyword-strategist.md +95 -0
- package/merged-commands/seo-meta-optimizer.md +92 -0
- package/merged-commands/seo-snippet-hunter.md +114 -0
- package/merged-commands/seo-structure-architect.md +108 -0
- package/merged-commands/sequential-thinking.md +94 -0
- package/merged-commands/server-management.md +161 -0
- package/merged-commands/service-mesh-expert.md +58 -0
- package/merged-commands/service-mesh-observability.md +395 -0
- package/merged-commands/sharp-edges.md +70 -0
- package/merged-commands/shellcheck-configuration.md +466 -0
- package/merged-commands/shodan-reconnaissance.md +503 -0
- package/merged-commands/shopify-apps.md +42 -0
- package/merged-commands/shopify-development.md +366 -0
- package/merged-commands/shopify-expert.md +102 -0
- package/merged-commands/signup-flow-cro.md +355 -0
- package/merged-commands/similarity-search-patterns.md +33 -0
- package/merged-commands/skill-creator.md +356 -0
- package/merged-commands/skill-developer.md +426 -0
- package/merged-commands/skill-rails-upgrade.md +408 -0
- package/merged-commands/skill-seekers.md +22 -0
- package/merged-commands/skill-share.md +80 -0
- package/merged-commands/slack-bot-builder.md +264 -0
- package/merged-commands/slack-gif-creator.md +254 -0
- package/merged-commands/slo-implementation.md +341 -0
- package/merged-commands/smtp-penetration-testing.md +500 -0
- package/merged-commands/social-content.md +807 -0
- package/merged-commands/software-architecture.md +75 -0
- package/merged-commands/solidity-security.md +34 -0
- package/merged-commands/spark-engineer.md +100 -0
- package/merged-commands/spark-optimization.md +427 -0
- package/merged-commands/spec-miner.md +88 -0
- package/merged-commands/spring-boot-engineer.md +104 -0
- package/merged-commands/sql-injection-testing.md +448 -0
- package/merged-commands/sql-optimization-patterns.md +35 -0
- package/merged-commands/sql-pro.md +173 -0
- package/merged-commands/sqlmap-database-pentesting.md +400 -0
- package/merged-commands/sre-engineer.md +98 -0
- package/merged-commands/ssh-penetration-testing.md +488 -0
- package/merged-commands/startup-analyst.md +328 -0
- package/merged-commands/startup-business-analyst-business-case.md +487 -0
- package/merged-commands/startup-business-analyst-financial-projections.md +353 -0
- package/merged-commands/startup-business-analyst-market-opportunity.md +240 -0
- package/merged-commands/startup-financial-modeling.md +467 -0
- package/merged-commands/startup-metrics-framework.md +34 -0
- package/merged-commands/stitch-ui-design.md +378 -0
- package/merged-commands/stride-analysis-patterns.md +33 -0
- package/merged-commands/stripe-integration.md +454 -0
- package/merged-commands/subagent-driven-development.md +240 -0
- package/merged-commands/superpowers-lab.md +22 -0
- package/merged-commands/swift-expert.md +94 -0
- package/merged-commands/swiftui-expert-skill.md +275 -0
- package/merged-commands/systematic-debugging.md +296 -0
- package/merged-commands/systems-programming-rust-project.md +440 -0
- package/merged-commands/tailwind-design-system.md +33 -0
- package/merged-commands/tailwind-patterns.md +269 -0
- package/merged-commands/tavily-web.md +36 -0
- package/merged-commands/tdd-orchestrator.md +205 -0
- package/merged-commands/tdd-workflow.md +149 -0
- package/merged-commands/tdd-workflows-tdd-cycle.md +221 -0
- package/merged-commands/tdd-workflows-tdd-green.md +73 -0
- package/merged-commands/tdd-workflows-tdd-red.md +164 -0
- package/merged-commands/tdd-workflows-tdd-refactor.md +187 -0
- package/merged-commands/team-collaboration-issue.md +37 -0
- package/merged-commands/team-collaboration-standup-notes.md +44 -0
- package/merged-commands/team-composition-analysis.md +413 -0
- package/merged-commands/telegram-bot-builder.md +254 -0
- package/merged-commands/telegram-mini-app.md +279 -0
- package/merged-commands/template-skill.md +6 -0
- package/merged-commands/temporal-python-pro.md +370 -0
- package/merged-commands/temporal-python-testing.md +170 -0
- package/merged-commands/terraform-engineer.md +97 -0
- package/merged-commands/terraform-module-library.md +261 -0
- package/merged-commands/terraform-skill.md +517 -0
- package/merged-commands/terraform-specialist.md +166 -0
- package/merged-commands/test-automator.md +224 -0
- package/merged-commands/test-driven-development.md +371 -0
- package/merged-commands/test-fixing.md +119 -0
- package/merged-commands/test-master.md +104 -0
- package/merged-commands/testing-patterns.md +259 -0
- package/merged-commands/theme-factory.md +59 -0
- package/merged-commands/threat-mitigation-mapping.md +33 -0
- package/merged-commands/threat-modeling-expert.md +60 -0
- package/merged-commands/threejs-skills.md +22 -0
- package/merged-commands/threejs.md +89 -0
- package/merged-commands/tool-design.md +318 -0
- package/merged-commands/top-web-vulnerabilities.md +543 -0
- package/merged-commands/track-management.md +38 -0
- package/merged-commands/trigger-dev.md +67 -0
- package/merged-commands/turborepo-caching.md +419 -0
- package/merged-commands/tutorial-engineer.md +139 -0
- package/merged-commands/twilio-communications.md +295 -0
- package/merged-commands/typescript-advanced-types.md +35 -0
- package/merged-commands/typescript-expert.md +429 -0
- package/merged-commands/typescript-pro.md +55 -0
- package/merged-commands/ui-design-system.md +32 -0
- package/merged-commands/ui-skills.md +22 -0
- package/merged-commands/ui-styling.md +321 -0
- package/merged-commands/ui-ux-designer.md +209 -0
- package/merged-commands/ui-ux-pro-max.md +351 -0
- package/merged-commands/ui-visual-validator.md +214 -0
- package/merged-commands/unit-testing-test-generate.md +319 -0
- package/merged-commands/unity-developer.md +230 -0
- package/merged-commands/unity-ecs-patterns.md +33 -0
- package/merged-commands/unreal-engine-cpp-pro.md +114 -0
- package/merged-commands/upgrading-expo.md +118 -0
- package/merged-commands/upstash-qstash.md +68 -0
- package/merged-commands/using-git-worktrees.md +217 -0
- package/merged-commands/using-neon.md +84 -0
- package/merged-commands/using-superpowers.md +87 -0
- package/merged-commands/uv-package-manager.md +37 -0
- package/merged-commands/ux-researcher-designer.md +30 -0
- package/merged-commands/varlock-claude-skill.md +22 -0
- package/merged-commands/vector-database-engineer.md +60 -0
- package/merged-commands/vector-index-tuning.md +42 -0
- package/merged-commands/vercel-deploy-claimable.md +120 -0
- package/merged-commands/vercel-deploy.md +22 -0
- package/merged-commands/vercel-deployment.md +79 -0
- package/merged-commands/verification-before-completion.md +139 -0
- package/merged-commands/vexor.md +22 -0
- package/merged-commands/video-downloader.md +106 -0
- package/merged-commands/viral-generator-builder.md +199 -0
- package/merged-commands/voice-agents.md +68 -0
- package/merged-commands/voice-ai-development.md +302 -0
- package/merged-commands/voice-ai-engine-development.md +721 -0
- package/merged-commands/vue-expert-js.md +91 -0
- package/merged-commands/vue-expert.md +374 -0
- package/merged-commands/vulnerability-scanner.md +276 -0
- package/merged-commands/wcag-audit-patterns.md +41 -0
- package/merged-commands/web-artifacts-builder.md +74 -0
- package/merged-commands/web-design-guidelines.md +36 -0
- package/merged-commands/web-frameworks.md +324 -0
- package/merged-commands/web-performance-optimization.md +646 -0
- package/merged-commands/web3-testing.md +427 -0
- package/merged-commands/webapp-testing.md +96 -0
- package/merged-commands/websocket-engineer.md +96 -0
- package/merged-commands/windows-privilege-escalation.md +496 -0
- package/merged-commands/wireshark-analysis.md +497 -0
- package/merged-commands/wordpress-penetration-testing.md +485 -0
- package/merged-commands/wordpress-pro.md +105 -0
- package/merged-commands/workflow-automation.md +68 -0
- package/merged-commands/workflow-orchestration-patterns.md +333 -0
- package/merged-commands/workflow-patterns.md +38 -0
- package/merged-commands/writing-plans.md +116 -0
- package/merged-commands/writing-skills.md +125 -0
- package/merged-commands/x-article-publisher-skill.md +22 -0
- package/merged-commands/xlsx-official.md +289 -0
- package/merged-commands/xlsx.md +289 -0
- package/merged-commands/xss-html-injection.md +499 -0
- package/merged-commands/youtube-transcript.md +415 -0
- package/merged-commands/zapier-make-patterns.md +67 -0
- package/merged-commands/zustand-store.md +68 -0
- package/package.json +1 -1
- package/scripts/generate-index.js +3 -1
- package/scripts/merge-commands.js +21 -0
- package/skills-index.json +2248 -463
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: tdd-workflows-tdd-cycle
|
|
3
|
+
description: "Use when working with tdd workflows tdd cycle"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## Use this skill when
|
|
7
|
+
|
|
8
|
+
- Working on tdd workflows tdd cycle tasks or workflows
|
|
9
|
+
- Needing guidance, best practices, or checklists for tdd workflows tdd cycle
|
|
10
|
+
|
|
11
|
+
## Do not use this skill when
|
|
12
|
+
|
|
13
|
+
- The task is unrelated to tdd workflows tdd cycle
|
|
14
|
+
- You need a different domain or tool outside this scope
|
|
15
|
+
|
|
16
|
+
## Instructions
|
|
17
|
+
|
|
18
|
+
- Clarify goals, constraints, and required inputs.
|
|
19
|
+
- Apply relevant best practices and validate outcomes.
|
|
20
|
+
- Provide actionable steps and verification.
|
|
21
|
+
- If detailed examples are required, open `resources/implementation-playbook.md`.
|
|
22
|
+
|
|
23
|
+
Execute a comprehensive Test-Driven Development (TDD) workflow with strict red-green-refactor discipline:
|
|
24
|
+
|
|
25
|
+
[Extended thinking: This workflow enforces test-first development through coordinated agent orchestration. Each phase of the TDD cycle is strictly enforced with fail-first verification, incremental implementation, and continuous refactoring. The workflow supports both single test and test suite approaches with configurable coverage thresholds.]
|
|
26
|
+
|
|
27
|
+
## Configuration
|
|
28
|
+
|
|
29
|
+
### Coverage Thresholds
|
|
30
|
+
- Minimum line coverage: 80%
|
|
31
|
+
- Minimum branch coverage: 75%
|
|
32
|
+
- Critical path coverage: 100%
|
|
33
|
+
|
|
34
|
+
### Refactoring Triggers
|
|
35
|
+
- Cyclomatic complexity > 10
|
|
36
|
+
- Method length > 20 lines
|
|
37
|
+
- Class length > 200 lines
|
|
38
|
+
- Duplicate code blocks > 3 lines
|
|
39
|
+
|
|
40
|
+
## Phase 1: Test Specification and Design
|
|
41
|
+
|
|
42
|
+
### 1. Requirements Analysis
|
|
43
|
+
- Use Task tool with subagent_type="comprehensive-review::architect-review"
|
|
44
|
+
- Prompt: "Analyze requirements for: $ARGUMENTS. Define acceptance criteria, identify edge cases, and create test scenarios. Output a comprehensive test specification."
|
|
45
|
+
- Output: Test specification, acceptance criteria, edge case matrix
|
|
46
|
+
- Validation: Ensure all requirements have corresponding test scenarios
|
|
47
|
+
|
|
48
|
+
### 2. Test Architecture Design
|
|
49
|
+
- Use Task tool with subagent_type="unit-testing::test-automator"
|
|
50
|
+
- Prompt: "Design test architecture for: $ARGUMENTS based on test specification. Define test structure, fixtures, mocks, and test data strategy. Ensure testability and maintainability."
|
|
51
|
+
- Output: Test architecture, fixture design, mock strategy
|
|
52
|
+
- Validation: Architecture supports isolated, fast, reliable tests
|
|
53
|
+
|
|
54
|
+
## Phase 2: RED - Write Failing Tests
|
|
55
|
+
|
|
56
|
+
### 3. Write Unit Tests (Failing)
|
|
57
|
+
- Use Task tool with subagent_type="unit-testing::test-automator"
|
|
58
|
+
- Prompt: "Write FAILING unit tests for: $ARGUMENTS. Tests must fail initially. Include edge cases, error scenarios, and happy paths. DO NOT implement production code."
|
|
59
|
+
- Output: Failing unit tests, test documentation
|
|
60
|
+
- **CRITICAL**: Verify all tests fail with expected error messages
|
|
61
|
+
|
|
62
|
+
### 4. Verify Test Failure
|
|
63
|
+
- Use Task tool with subagent_type="tdd-workflows::code-reviewer"
|
|
64
|
+
- Prompt: "Verify that all tests for: $ARGUMENTS are failing correctly. Ensure failures are for the right reasons (missing implementation, not test errors). Confirm no false positives."
|
|
65
|
+
- Output: Test failure verification report
|
|
66
|
+
- **GATE**: Do not proceed until all tests fail appropriately
|
|
67
|
+
|
|
68
|
+
## Phase 3: GREEN - Make Tests Pass
|
|
69
|
+
|
|
70
|
+
### 5. Minimal Implementation
|
|
71
|
+
- Use Task tool with subagent_type="backend-development::backend-architect"
|
|
72
|
+
- Prompt: "Implement MINIMAL code to make tests pass for: $ARGUMENTS. Focus only on making tests green. Do not add extra features or optimizations. Keep it simple."
|
|
73
|
+
- Output: Minimal working implementation
|
|
74
|
+
- Constraint: No code beyond what's needed to pass tests
|
|
75
|
+
|
|
76
|
+
### 6. Verify Test Success
|
|
77
|
+
- Use Task tool with subagent_type="unit-testing::test-automator"
|
|
78
|
+
- Prompt: "Run all tests for: $ARGUMENTS and verify they pass. Check test coverage metrics. Ensure no tests were accidentally broken."
|
|
79
|
+
- Output: Test execution report, coverage metrics
|
|
80
|
+
- **GATE**: All tests must pass before proceeding
|
|
81
|
+
|
|
82
|
+
## Phase 4: REFACTOR - Improve Code Quality
|
|
83
|
+
|
|
84
|
+
### 7. Code Refactoring
|
|
85
|
+
- Use Task tool with subagent_type="tdd-workflows::code-reviewer"
|
|
86
|
+
- Prompt: "Refactor implementation for: $ARGUMENTS while keeping tests green. Apply SOLID principles, remove duplication, improve naming, and optimize performance. Run tests after each refactoring."
|
|
87
|
+
- Output: Refactored code, refactoring report
|
|
88
|
+
- Constraint: Tests must remain green throughout
|
|
89
|
+
|
|
90
|
+
### 8. Test Refactoring
|
|
91
|
+
- Use Task tool with subagent_type="unit-testing::test-automator"
|
|
92
|
+
- Prompt: "Refactor tests for: $ARGUMENTS. Remove test duplication, improve test names, extract common fixtures, and enhance test readability. Ensure tests still provide same coverage."
|
|
93
|
+
- Output: Refactored tests, improved test structure
|
|
94
|
+
- Validation: Coverage metrics unchanged or improved
|
|
95
|
+
|
|
96
|
+
## Phase 5: Integration and System Tests
|
|
97
|
+
|
|
98
|
+
### 9. Write Integration Tests (Failing First)
|
|
99
|
+
- Use Task tool with subagent_type="unit-testing::test-automator"
|
|
100
|
+
- Prompt: "Write FAILING integration tests for: $ARGUMENTS. Test component interactions, API contracts, and data flow. Tests must fail initially."
|
|
101
|
+
- Output: Failing integration tests
|
|
102
|
+
- Validation: Tests fail due to missing integration logic
|
|
103
|
+
|
|
104
|
+
### 10. Implement Integration
|
|
105
|
+
- Use Task tool with subagent_type="backend-development::backend-architect"
|
|
106
|
+
- Prompt: "Implement integration code for: $ARGUMENTS to make integration tests pass. Focus on component interaction and data flow."
|
|
107
|
+
- Output: Integration implementation
|
|
108
|
+
- Validation: All integration tests pass
|
|
109
|
+
|
|
110
|
+
## Phase 6: Continuous Improvement Cycle
|
|
111
|
+
|
|
112
|
+
### 11. Performance and Edge Case Tests
|
|
113
|
+
- Use Task tool with subagent_type="unit-testing::test-automator"
|
|
114
|
+
- Prompt: "Add performance tests and additional edge case tests for: $ARGUMENTS. Include stress tests, boundary tests, and error recovery tests."
|
|
115
|
+
- Output: Extended test suite
|
|
116
|
+
- Metric: Increased test coverage and scenario coverage
|
|
117
|
+
|
|
118
|
+
### 12. Final Code Review
|
|
119
|
+
- Use Task tool with subagent_type="comprehensive-review::architect-review"
|
|
120
|
+
- Prompt: "Perform comprehensive review of: $ARGUMENTS. Verify TDD process was followed, check code quality, test quality, and coverage. Suggest improvements."
|
|
121
|
+
- Output: Review report, improvement suggestions
|
|
122
|
+
- Action: Implement critical suggestions while maintaining green tests
|
|
123
|
+
|
|
124
|
+
## Incremental Development Mode
|
|
125
|
+
|
|
126
|
+
For test-by-test development:
|
|
127
|
+
1. Write ONE failing test
|
|
128
|
+
2. Make ONLY that test pass
|
|
129
|
+
3. Refactor if needed
|
|
130
|
+
4. Repeat for next test
|
|
131
|
+
|
|
132
|
+
Use this approach by adding `--incremental` flag to focus on one test at a time.
|
|
133
|
+
|
|
134
|
+
## Test Suite Mode
|
|
135
|
+
|
|
136
|
+
For comprehensive test suite development:
|
|
137
|
+
1. Write ALL tests for a feature/module (failing)
|
|
138
|
+
2. Implement code to pass ALL tests
|
|
139
|
+
3. Refactor entire module
|
|
140
|
+
4. Add integration tests
|
|
141
|
+
|
|
142
|
+
Use this approach by adding `--suite` flag for batch test development.
|
|
143
|
+
|
|
144
|
+
## Validation Checkpoints
|
|
145
|
+
|
|
146
|
+
### RED Phase Validation
|
|
147
|
+
- [ ] All tests written before implementation
|
|
148
|
+
- [ ] All tests fail with meaningful error messages
|
|
149
|
+
- [ ] Test failures are due to missing implementation
|
|
150
|
+
- [ ] No test passes accidentally
|
|
151
|
+
|
|
152
|
+
### GREEN Phase Validation
|
|
153
|
+
- [ ] All tests pass
|
|
154
|
+
- [ ] No extra code beyond test requirements
|
|
155
|
+
- [ ] Coverage meets minimum thresholds
|
|
156
|
+
- [ ] No test was modified to make it pass
|
|
157
|
+
|
|
158
|
+
### REFACTOR Phase Validation
|
|
159
|
+
- [ ] All tests still pass after refactoring
|
|
160
|
+
- [ ] Code complexity reduced
|
|
161
|
+
- [ ] Duplication eliminated
|
|
162
|
+
- [ ] Performance improved or maintained
|
|
163
|
+
- [ ] Test readability improved
|
|
164
|
+
|
|
165
|
+
## Coverage Reports
|
|
166
|
+
|
|
167
|
+
Generate coverage reports after each phase:
|
|
168
|
+
- Line coverage
|
|
169
|
+
- Branch coverage
|
|
170
|
+
- Function coverage
|
|
171
|
+
- Statement coverage
|
|
172
|
+
|
|
173
|
+
## Failure Recovery
|
|
174
|
+
|
|
175
|
+
If TDD discipline is broken:
|
|
176
|
+
1. **STOP** immediately
|
|
177
|
+
2. Identify which phase was violated
|
|
178
|
+
3. Rollback to last valid state
|
|
179
|
+
4. Resume from correct phase
|
|
180
|
+
5. Document lesson learned
|
|
181
|
+
|
|
182
|
+
## TDD Metrics Tracking
|
|
183
|
+
|
|
184
|
+
Track and report:
|
|
185
|
+
- Time in each phase (Red/Green/Refactor)
|
|
186
|
+
- Number of test-implementation cycles
|
|
187
|
+
- Coverage progression
|
|
188
|
+
- Refactoring frequency
|
|
189
|
+
- Defect escape rate
|
|
190
|
+
|
|
191
|
+
## Anti-Patterns to Avoid
|
|
192
|
+
|
|
193
|
+
- Writing implementation before tests
|
|
194
|
+
- Writing tests that already pass
|
|
195
|
+
- Skipping the refactor phase
|
|
196
|
+
- Writing multiple features without tests
|
|
197
|
+
- Modifying tests to make them pass
|
|
198
|
+
- Ignoring failing tests
|
|
199
|
+
- Writing tests after implementation
|
|
200
|
+
|
|
201
|
+
## Success Criteria
|
|
202
|
+
|
|
203
|
+
- 100% of code written test-first
|
|
204
|
+
- All tests pass continuously
|
|
205
|
+
- Coverage exceeds thresholds
|
|
206
|
+
- Code complexity within limits
|
|
207
|
+
- Zero defects in covered code
|
|
208
|
+
- Clear test documentation
|
|
209
|
+
- Fast test execution (< 5 seconds for unit tests)
|
|
210
|
+
|
|
211
|
+
## Notes
|
|
212
|
+
|
|
213
|
+
- Enforce strict RED-GREEN-REFACTOR discipline
|
|
214
|
+
- Each phase must be completed before moving to next
|
|
215
|
+
- Tests are the specification
|
|
216
|
+
- If a test is hard to write, the design needs improvement
|
|
217
|
+
- Refactoring is NOT optional
|
|
218
|
+
- Keep test execution fast
|
|
219
|
+
- Tests should be independent and isolated
|
|
220
|
+
|
|
221
|
+
TDD implementation for: $ARGUMENTS
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: tdd-workflows-tdd-green
|
|
3
|
+
description: Implement the minimal code needed to make failing tests pass in the TDD green phase.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Green Phase: Simple function
|
|
7
|
+
def product_list(request):
|
|
8
|
+
products = Product.objects.all()
|
|
9
|
+
return JsonResponse({'products': list(products.values())})
|
|
10
|
+
|
|
11
|
+
# Refactor: Class-based view
|
|
12
|
+
class ProductListView(View):
|
|
13
|
+
def get(self, request):
|
|
14
|
+
products = Product.objects.all()
|
|
15
|
+
return JsonResponse({'products': list(products.values())})
|
|
16
|
+
|
|
17
|
+
# Refactor: Generic view
|
|
18
|
+
class ProductListView(ListView):
|
|
19
|
+
model = Product
|
|
20
|
+
context_object_name = 'products'
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### Express Patterns
|
|
24
|
+
|
|
25
|
+
**Inline → Middleware → Service Layer:**
|
|
26
|
+
```javascript
|
|
27
|
+
// Green Phase: Inline logic
|
|
28
|
+
app.post('/api/users', (req, res) => {
|
|
29
|
+
const user = { id: Date.now(), ...req.body };
|
|
30
|
+
users.push(user);
|
|
31
|
+
res.json(user);
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
// Refactor: Extract middleware
|
|
35
|
+
app.post('/api/users', validateUser, (req, res) => {
|
|
36
|
+
const user = userService.create(req.body);
|
|
37
|
+
res.json(user);
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
// Refactor: Full layering
|
|
41
|
+
app.post('/api/users',
|
|
42
|
+
validateUser,
|
|
43
|
+
asyncHandler(userController.create)
|
|
44
|
+
);
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Use this skill when
|
|
48
|
+
|
|
49
|
+
- Moving from red to green in a TDD cycle
|
|
50
|
+
- Implementing minimal behavior to satisfy tests
|
|
51
|
+
- You want to keep implementation intentionally simple
|
|
52
|
+
|
|
53
|
+
## Do not use this skill when
|
|
54
|
+
|
|
55
|
+
- You are refactoring for design or performance
|
|
56
|
+
- Tests are already passing and you need new requirements
|
|
57
|
+
- You need a full architectural redesign
|
|
58
|
+
|
|
59
|
+
## Instructions
|
|
60
|
+
|
|
61
|
+
1. Review failing tests and identify the smallest fix.
|
|
62
|
+
2. Implement the minimal change to pass the next test.
|
|
63
|
+
3. Run tests after each change to confirm progress.
|
|
64
|
+
4. Record shortcuts or debt for the refactor phase.
|
|
65
|
+
|
|
66
|
+
## Safety
|
|
67
|
+
|
|
68
|
+
- Avoid bypassing tests to make them pass.
|
|
69
|
+
- Keep changes scoped to the failing behavior only.
|
|
70
|
+
|
|
71
|
+
## Resources
|
|
72
|
+
|
|
73
|
+
- `resources/implementation-playbook.md` for detailed patterns and examples.
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: tdd-workflows-tdd-red
|
|
3
|
+
description: Generate failing tests for the TDD red phase to define expected behavior and edge cases.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Write comprehensive failing tests following TDD red phase principles.
|
|
7
|
+
|
|
8
|
+
[Extended thinking: Generates failing tests that properly define expected behavior using test-automator agent.]
|
|
9
|
+
|
|
10
|
+
## Use this skill when
|
|
11
|
+
|
|
12
|
+
- Starting the TDD red phase for new behavior
|
|
13
|
+
- You need failing tests that capture expected behavior
|
|
14
|
+
- You want edge case coverage before implementation
|
|
15
|
+
|
|
16
|
+
## Do not use this skill when
|
|
17
|
+
|
|
18
|
+
- You are in the green or refactor phase
|
|
19
|
+
- You only need performance benchmarks
|
|
20
|
+
- Tests must run against production systems
|
|
21
|
+
|
|
22
|
+
## Instructions
|
|
23
|
+
|
|
24
|
+
1. Identify behaviors, constraints, and edge cases.
|
|
25
|
+
2. Generate failing tests that define expected outcomes.
|
|
26
|
+
3. Ensure failures are due to missing behavior, not setup errors.
|
|
27
|
+
4. Document how to run tests and verify failures.
|
|
28
|
+
|
|
29
|
+
## Safety
|
|
30
|
+
|
|
31
|
+
- Keep test data isolated and avoid production environments.
|
|
32
|
+
- Avoid flaky external dependencies in the red phase.
|
|
33
|
+
|
|
34
|
+
## Role
|
|
35
|
+
|
|
36
|
+
Generate failing tests using Task tool with subagent_type="unit-testing::test-automator".
|
|
37
|
+
|
|
38
|
+
## Prompt Template
|
|
39
|
+
|
|
40
|
+
"Generate comprehensive FAILING tests for: $ARGUMENTS
|
|
41
|
+
|
|
42
|
+
## Core Requirements
|
|
43
|
+
|
|
44
|
+
1. **Test Structure**
|
|
45
|
+
- Framework-appropriate setup (Jest/pytest/JUnit/Go/RSpec)
|
|
46
|
+
- Arrange-Act-Assert pattern
|
|
47
|
+
- should_X_when_Y naming convention
|
|
48
|
+
- Isolated fixtures with no interdependencies
|
|
49
|
+
|
|
50
|
+
2. **Behavior Coverage**
|
|
51
|
+
- Happy path scenarios
|
|
52
|
+
- Edge cases (empty, null, boundary values)
|
|
53
|
+
- Error handling and exceptions
|
|
54
|
+
- Concurrent access (if applicable)
|
|
55
|
+
|
|
56
|
+
3. **Failure Verification**
|
|
57
|
+
- Tests MUST fail when run
|
|
58
|
+
- Failures for RIGHT reasons (not syntax/import errors)
|
|
59
|
+
- Meaningful diagnostic error messages
|
|
60
|
+
- No cascading failures
|
|
61
|
+
|
|
62
|
+
4. **Test Categories**
|
|
63
|
+
- Unit: Isolated component behavior
|
|
64
|
+
- Integration: Component interaction
|
|
65
|
+
- Contract: API/interface contracts
|
|
66
|
+
- Property: Mathematical invariants
|
|
67
|
+
|
|
68
|
+
## Framework Patterns
|
|
69
|
+
|
|
70
|
+
**JavaScript/TypeScript (Jest/Vitest)**
|
|
71
|
+
- Mock dependencies with `vi.fn()` or `jest.fn()`
|
|
72
|
+
- Use `@testing-library` for React components
|
|
73
|
+
- Property tests with `fast-check`
|
|
74
|
+
|
|
75
|
+
**Python (pytest)**
|
|
76
|
+
- Fixtures with appropriate scopes
|
|
77
|
+
- Parametrize for multiple test cases
|
|
78
|
+
- Hypothesis for property-based tests
|
|
79
|
+
|
|
80
|
+
**Go**
|
|
81
|
+
- Table-driven tests with subtests
|
|
82
|
+
- `t.Parallel()` for parallel execution
|
|
83
|
+
- Use `testify/assert` for cleaner assertions
|
|
84
|
+
|
|
85
|
+
**Ruby (RSpec)**
|
|
86
|
+
- `let` for lazy loading, `let!` for eager
|
|
87
|
+
- Contexts for different scenarios
|
|
88
|
+
- Shared examples for common behavior
|
|
89
|
+
|
|
90
|
+
## Quality Checklist
|
|
91
|
+
|
|
92
|
+
- Readable test names documenting intent
|
|
93
|
+
- One behavior per test
|
|
94
|
+
- No implementation leakage
|
|
95
|
+
- Meaningful test data (not 'foo'/'bar')
|
|
96
|
+
- Tests serve as living documentation
|
|
97
|
+
|
|
98
|
+
## Anti-Patterns to Avoid
|
|
99
|
+
|
|
100
|
+
- Tests passing immediately
|
|
101
|
+
- Testing implementation vs behavior
|
|
102
|
+
- Complex setup code
|
|
103
|
+
- Multiple responsibilities per test
|
|
104
|
+
- Brittle tests tied to specifics
|
|
105
|
+
|
|
106
|
+
## Edge Case Categories
|
|
107
|
+
|
|
108
|
+
- **Null/Empty**: undefined, null, empty string/array/object
|
|
109
|
+
- **Boundaries**: min/max values, single element, capacity limits
|
|
110
|
+
- **Special Cases**: Unicode, whitespace, special characters
|
|
111
|
+
- **State**: Invalid transitions, concurrent modifications
|
|
112
|
+
- **Errors**: Network failures, timeouts, permissions
|
|
113
|
+
|
|
114
|
+
## Output Requirements
|
|
115
|
+
|
|
116
|
+
- Complete test files with imports
|
|
117
|
+
- Documentation of test purpose
|
|
118
|
+
- Commands to run and verify failures
|
|
119
|
+
- Metrics: test count, coverage areas
|
|
120
|
+
- Next steps for green phase"
|
|
121
|
+
|
|
122
|
+
## Validation
|
|
123
|
+
|
|
124
|
+
After generation:
|
|
125
|
+
1. Run tests - confirm they fail
|
|
126
|
+
2. Verify helpful failure messages
|
|
127
|
+
3. Check test independence
|
|
128
|
+
4. Ensure comprehensive coverage
|
|
129
|
+
|
|
130
|
+
## Example (Minimal)
|
|
131
|
+
|
|
132
|
+
```typescript
|
|
133
|
+
// auth.service.test.ts
|
|
134
|
+
describe('AuthService', () => {
|
|
135
|
+
let authService: AuthService;
|
|
136
|
+
let mockUserRepo: jest.Mocked<UserRepository>;
|
|
137
|
+
|
|
138
|
+
beforeEach(() => {
|
|
139
|
+
mockUserRepo = { findByEmail: jest.fn() } as any;
|
|
140
|
+
authService = new AuthService(mockUserRepo);
|
|
141
|
+
});
|
|
142
|
+
|
|
143
|
+
it('should_return_token_when_valid_credentials', async () => {
|
|
144
|
+
const user = { id: '1', email: 'test@example.com', passwordHash: 'hashed' };
|
|
145
|
+
mockUserRepo.findByEmail.mockResolvedValue(user);
|
|
146
|
+
|
|
147
|
+
const result = await authService.authenticate('test@example.com', 'pass');
|
|
148
|
+
|
|
149
|
+
expect(result.success).toBe(true);
|
|
150
|
+
expect(result.token).toBeDefined();
|
|
151
|
+
});
|
|
152
|
+
|
|
153
|
+
it('should_fail_when_user_not_found', async () => {
|
|
154
|
+
mockUserRepo.findByEmail.mockResolvedValue(null);
|
|
155
|
+
|
|
156
|
+
const result = await authService.authenticate('none@example.com', 'pass');
|
|
157
|
+
|
|
158
|
+
expect(result.success).toBe(false);
|
|
159
|
+
expect(result.error).toBe('INVALID_CREDENTIALS');
|
|
160
|
+
});
|
|
161
|
+
});
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
Test requirements: $ARGUMENTS
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: tdd-workflows-tdd-refactor
|
|
3
|
+
description: "Use when working with tdd workflows tdd refactor"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## Use this skill when
|
|
7
|
+
|
|
8
|
+
- Working on tdd workflows tdd refactor tasks or workflows
|
|
9
|
+
- Needing guidance, best practices, or checklists for tdd workflows tdd refactor
|
|
10
|
+
|
|
11
|
+
## Do not use this skill when
|
|
12
|
+
|
|
13
|
+
- The task is unrelated to tdd workflows tdd refactor
|
|
14
|
+
- You need a different domain or tool outside this scope
|
|
15
|
+
|
|
16
|
+
## Instructions
|
|
17
|
+
|
|
18
|
+
- Clarify goals, constraints, and required inputs.
|
|
19
|
+
- Apply relevant best practices and validate outcomes.
|
|
20
|
+
- Provide actionable steps and verification.
|
|
21
|
+
- If detailed examples are required, open `resources/implementation-playbook.md`.
|
|
22
|
+
|
|
23
|
+
Refactor code with confidence using comprehensive test safety net:
|
|
24
|
+
|
|
25
|
+
[Extended thinking: This tool uses the tdd-orchestrator agent (opus model) for sophisticated refactoring while maintaining all tests green. It applies design patterns, improves code quality, and optimizes performance with the safety of comprehensive test coverage.]
|
|
26
|
+
|
|
27
|
+
## Usage
|
|
28
|
+
|
|
29
|
+
Use Task tool with subagent_type="tdd-orchestrator" to perform safe refactoring.
|
|
30
|
+
|
|
31
|
+
Prompt: "Refactor this code while keeping all tests green: $ARGUMENTS. Apply TDD refactor phase:
|
|
32
|
+
|
|
33
|
+
## Core Process
|
|
34
|
+
|
|
35
|
+
**1. Pre-Assessment**
|
|
36
|
+
- Run tests to establish green baseline
|
|
37
|
+
- Analyze code smells and test coverage
|
|
38
|
+
- Document current performance metrics
|
|
39
|
+
- Create incremental refactoring plan
|
|
40
|
+
|
|
41
|
+
**2. Code Smell Detection**
|
|
42
|
+
- Duplicated code → Extract methods/classes
|
|
43
|
+
- Long methods → Decompose into focused functions
|
|
44
|
+
- Large classes → Split responsibilities
|
|
45
|
+
- Long parameter lists → Parameter objects
|
|
46
|
+
- Feature Envy → Move methods to appropriate classes
|
|
47
|
+
- Primitive Obsession → Value objects
|
|
48
|
+
- Switch statements → Polymorphism
|
|
49
|
+
- Dead code → Remove
|
|
50
|
+
|
|
51
|
+
**3. Design Patterns**
|
|
52
|
+
- Apply Creational (Factory, Builder, Singleton)
|
|
53
|
+
- Apply Structural (Adapter, Facade, Decorator)
|
|
54
|
+
- Apply Behavioral (Strategy, Observer, Command)
|
|
55
|
+
- Apply Domain (Repository, Service, Value Objects)
|
|
56
|
+
- Use patterns only where they add clear value
|
|
57
|
+
|
|
58
|
+
**4. SOLID Principles**
|
|
59
|
+
- Single Responsibility: One reason to change
|
|
60
|
+
- Open/Closed: Open for extension, closed for modification
|
|
61
|
+
- Liskov Substitution: Subtypes substitutable
|
|
62
|
+
- Interface Segregation: Small, focused interfaces
|
|
63
|
+
- Dependency Inversion: Depend on abstractions
|
|
64
|
+
|
|
65
|
+
**5. Refactoring Techniques**
|
|
66
|
+
- Extract Method/Variable/Interface
|
|
67
|
+
- Inline unnecessary indirection
|
|
68
|
+
- Rename for clarity
|
|
69
|
+
- Move Method/Field to appropriate classes
|
|
70
|
+
- Replace Magic Numbers with constants
|
|
71
|
+
- Encapsulate fields
|
|
72
|
+
- Replace Conditional with Polymorphism
|
|
73
|
+
- Introduce Null Object
|
|
74
|
+
|
|
75
|
+
**6. Performance Optimization**
|
|
76
|
+
- Profile to identify bottlenecks
|
|
77
|
+
- Optimize algorithms and data structures
|
|
78
|
+
- Implement caching where beneficial
|
|
79
|
+
- Reduce database queries (N+1 elimination)
|
|
80
|
+
- Lazy loading and pagination
|
|
81
|
+
- Always measure before and after
|
|
82
|
+
|
|
83
|
+
**7. Incremental Steps**
|
|
84
|
+
- Make small, atomic changes
|
|
85
|
+
- Run tests after each modification
|
|
86
|
+
- Commit after each successful refactoring
|
|
87
|
+
- Keep refactoring separate from behavior changes
|
|
88
|
+
- Use scaffolding when needed
|
|
89
|
+
|
|
90
|
+
**8. Architecture Evolution**
|
|
91
|
+
- Layer separation and dependency management
|
|
92
|
+
- Module boundaries and interface definition
|
|
93
|
+
- Event-driven patterns for decoupling
|
|
94
|
+
- Database access pattern optimization
|
|
95
|
+
|
|
96
|
+
**9. Safety Verification**
|
|
97
|
+
- Run full test suite after each change
|
|
98
|
+
- Performance regression testing
|
|
99
|
+
- Mutation testing for test effectiveness
|
|
100
|
+
- Rollback plan for major changes
|
|
101
|
+
|
|
102
|
+
**10. Advanced Patterns**
|
|
103
|
+
- Strangler Fig: Gradual legacy replacement
|
|
104
|
+
- Branch by Abstraction: Large-scale changes
|
|
105
|
+
- Parallel Change: Expand-contract pattern
|
|
106
|
+
- Mikado Method: Dependency graph navigation
|
|
107
|
+
|
|
108
|
+
## Output Requirements
|
|
109
|
+
|
|
110
|
+
- Refactored code with improvements applied
|
|
111
|
+
- Test results (all green)
|
|
112
|
+
- Before/after metrics comparison
|
|
113
|
+
- Applied refactoring techniques list
|
|
114
|
+
- Performance improvement measurements
|
|
115
|
+
- Remaining technical debt assessment
|
|
116
|
+
|
|
117
|
+
## Safety Checklist
|
|
118
|
+
|
|
119
|
+
Before committing:
|
|
120
|
+
- ✓ All tests pass (100% green)
|
|
121
|
+
- ✓ No functionality regression
|
|
122
|
+
- ✓ Performance metrics acceptable
|
|
123
|
+
- ✓ Code coverage maintained/improved
|
|
124
|
+
- ✓ Documentation updated
|
|
125
|
+
|
|
126
|
+
## Recovery Protocol
|
|
127
|
+
|
|
128
|
+
If tests fail:
|
|
129
|
+
- Immediately revert last change
|
|
130
|
+
- Identify breaking refactoring
|
|
131
|
+
- Apply smaller incremental changes
|
|
132
|
+
- Use version control for safe experimentation
|
|
133
|
+
|
|
134
|
+
## Example: Extract Method Pattern
|
|
135
|
+
|
|
136
|
+
**Before:**
|
|
137
|
+
```typescript
|
|
138
|
+
class OrderProcessor {
|
|
139
|
+
processOrder(order: Order): ProcessResult {
|
|
140
|
+
// Validation
|
|
141
|
+
if (!order.customerId || order.items.length === 0) {
|
|
142
|
+
return { success: false, error: "Invalid order" };
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
// Calculate totals
|
|
146
|
+
let subtotal = 0;
|
|
147
|
+
for (const item of order.items) {
|
|
148
|
+
subtotal += item.price * item.quantity;
|
|
149
|
+
}
|
|
150
|
+
let total = subtotal + (subtotal * 0.08) + (subtotal > 100 ? 0 : 15);
|
|
151
|
+
|
|
152
|
+
// Process payment...
|
|
153
|
+
// Update inventory...
|
|
154
|
+
// Send confirmation...
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
**After:**
|
|
160
|
+
```typescript
|
|
161
|
+
class OrderProcessor {
|
|
162
|
+
async processOrder(order: Order): Promise<ProcessResult> {
|
|
163
|
+
const validation = this.validateOrder(order);
|
|
164
|
+
if (!validation.isValid) return ProcessResult.failure(validation.error);
|
|
165
|
+
|
|
166
|
+
const orderTotal = OrderTotal.calculate(order);
|
|
167
|
+
const inventoryCheck = await this.inventoryService.checkAvailability(order.items);
|
|
168
|
+
if (!inventoryCheck.available) return ProcessResult.failure(inventoryCheck.reason);
|
|
169
|
+
|
|
170
|
+
await this.paymentService.processPayment(order.paymentMethod, orderTotal.total);
|
|
171
|
+
await this.inventoryService.reserveItems(order.items);
|
|
172
|
+
await this.notificationService.sendOrderConfirmation(order, orderTotal);
|
|
173
|
+
|
|
174
|
+
return ProcessResult.success(order.id, orderTotal.total);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
private validateOrder(order: Order): ValidationResult {
|
|
178
|
+
if (!order.customerId) return ValidationResult.invalid("Customer ID required");
|
|
179
|
+
if (order.items.length === 0) return ValidationResult.invalid("Order must contain items");
|
|
180
|
+
return ValidationResult.valid();
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
**Applied:** Extract Method, Value Objects, Dependency Injection, Async patterns
|
|
186
|
+
|
|
187
|
+
Code to refactor: $ARGUMENTS"
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: team-collaboration-issue
|
|
3
|
+
description: "You are a GitHub issue resolution expert specializing in systematic bug investigation, feature implementation, and collaborative development workflows. Your expertise spans issue triage, root cause an"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# GitHub Issue Resolution Expert
|
|
7
|
+
|
|
8
|
+
You are a GitHub issue resolution expert specializing in systematic bug investigation, feature implementation, and collaborative development workflows. Your expertise spans issue triage, root cause analysis, test-driven development, and pull request management. You excel at transforming vague bug reports into actionable fixes and feature requests into production-ready code.
|
|
9
|
+
|
|
10
|
+
## Use this skill when
|
|
11
|
+
|
|
12
|
+
- Working on github issue resolution expert tasks or workflows
|
|
13
|
+
- Needing guidance, best practices, or checklists for github issue resolution expert
|
|
14
|
+
|
|
15
|
+
## Do not use this skill when
|
|
16
|
+
|
|
17
|
+
- The task is unrelated to github issue resolution expert
|
|
18
|
+
- You need a different domain or tool outside this scope
|
|
19
|
+
|
|
20
|
+
## Context
|
|
21
|
+
|
|
22
|
+
The user needs comprehensive GitHub issue resolution that goes beyond simple fixes. Focus on thorough investigation, proper branch management, systematic implementation with testing, and professional pull request creation that follows modern CI/CD practices.
|
|
23
|
+
|
|
24
|
+
## Requirements
|
|
25
|
+
|
|
26
|
+
GitHub Issue ID or URL: $ARGUMENTS
|
|
27
|
+
|
|
28
|
+
## Instructions
|
|
29
|
+
|
|
30
|
+
- Clarify goals, constraints, and required inputs.
|
|
31
|
+
- Apply relevant best practices and validate outcomes.
|
|
32
|
+
- Provide actionable steps and verification.
|
|
33
|
+
- If detailed examples are required, open `resources/implementation-playbook.md`.
|
|
34
|
+
|
|
35
|
+
## Resources
|
|
36
|
+
|
|
37
|
+
- `resources/implementation-playbook.md` for detailed patterns and examples.
|