mumucc 0.4.4 → 0.4.10
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/defaults/plugin-seed/known_marketplaces.json +11 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/.claude-plugin/marketplace.json +1016 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/accessibility-compliance/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/accessibility-compliance/agents/ui-visual-validator.md +192 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/accessibility-compliance/commands/accessibility-audit.md +510 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/accessibility-compliance/skills/screen-reader-testing/SKILL.md +538 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/accessibility-compliance/skills/wcag-audit-patterns/SKILL.md +548 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-orchestration/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-orchestration/agents/context-manager.md +163 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-orchestration/commands/improve-agent.md +319 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-orchestration/commands/multi-agent-optimize.md +209 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-teams/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-teams/README.md +153 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-teams/agents/team-debugger.md +83 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-teams/agents/team-implementer.md +85 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-teams/agents/team-lead.md +91 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-teams/agents/team-reviewer.md +102 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-teams/commands/team-debug.md +91 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-teams/commands/team-delegate.md +94 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-teams/commands/team-feature.md +114 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-teams/commands/team-review.md +78 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-teams/commands/team-shutdown.md +50 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-teams/commands/team-spawn.md +105 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-teams/commands/team-status.md +60 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-teams/skills/multi-reviewer-patterns/SKILL.md +127 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-teams/skills/multi-reviewer-patterns/references/review-dimensions.md +127 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-teams/skills/parallel-debugging/SKILL.md +133 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-teams/skills/parallel-debugging/references/hypothesis-testing.md +120 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-teams/skills/parallel-feature-development/SKILL.md +174 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-teams/skills/parallel-feature-development/references/file-ownership.md +80 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-teams/skills/parallel-feature-development/references/merge-strategies.md +75 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-teams/skills/task-coordination-strategies/SKILL.md +163 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-teams/skills/task-coordination-strategies/references/dependency-graphs.md +97 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-teams/skills/task-coordination-strategies/references/task-decomposition.md +98 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-teams/skills/team-communication-protocols/SKILL.md +177 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-teams/skills/team-communication-protocols/references/messaging-patterns.md +112 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-teams/skills/team-composition-patterns/SKILL.md +141 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-teams/skills/team-composition-patterns/references/agent-type-selection.md +84 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-teams/skills/team-composition-patterns/references/preset-teams.md +265 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/api-scaffolding/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/api-scaffolding/agents/backend-architect.md +309 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/api-scaffolding/agents/django-pro.md +159 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/api-scaffolding/agents/fastapi-pro.md +171 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/api-scaffolding/agents/graphql-architect.md +161 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/api-scaffolding/skills/fastapi-templates/SKILL.md +540 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/api-testing-observability/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/api-testing-observability/agents/api-documenter.md +161 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/api-testing-observability/commands/api-mock.md +1335 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/application-performance/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/application-performance/agents/frontend-developer.md +164 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/application-performance/agents/observability-engineer.md +230 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/application-performance/agents/performance-engineer.md +167 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/application-performance/commands/performance-optimization.md +681 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/arm-cortex-microcontrollers/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/arm-cortex-microcontrollers/agents/arm-cortex-expert.md +288 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-api-security/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-api-security/agents/backend-architect.md +309 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-api-security/agents/backend-security-coder.md +153 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/agents/backend-architect.md +309 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/agents/event-sourcing-architect.md +46 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/agents/graphql-architect.md +161 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/agents/performance-engineer.md +44 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/agents/security-auditor.md +41 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/agents/tdd-orchestrator.md +183 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/agents/temporal-python-pro.md +349 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/agents/test-automator.md +41 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/commands/feature-development.md +481 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/skills/api-design-principles/SKILL.md +518 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/skills/api-design-principles/assets/api-design-checklist.md +155 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/skills/api-design-principles/assets/rest-api-template.py +182 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/skills/api-design-principles/references/graphql-schema-design.md +583 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/skills/api-design-principles/references/rest-best-practices.md +408 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/skills/architecture-patterns/SKILL.md +494 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/skills/architecture-patterns/references/advanced-patterns.md +391 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/skills/cqrs-implementation/SKILL.md +549 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/skills/event-store-design/SKILL.md +431 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/skills/microservices-patterns/SKILL.md +564 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/skills/projection-patterns/SKILL.md +485 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/skills/saga-orchestration/SKILL.md +361 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/skills/saga-orchestration/references/advanced-patterns.md +453 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/skills/temporal-python-testing/SKILL.md +158 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/skills/temporal-python-testing/resources/integration-testing.md +455 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/skills/temporal-python-testing/resources/local-setup.md +553 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/skills/temporal-python-testing/resources/replay-testing.md +462 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/skills/temporal-python-testing/resources/unit-testing.md +328 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/skills/workflow-orchestration-patterns/SKILL.md +316 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/block-no-verify/.claude-plugin/plugin.json +9 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/block-no-verify/commands/block-no-verify.md +90 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/block-no-verify/skills/block-no-verify-hook/SKILL.md +193 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/blockchain-web3/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/blockchain-web3/agents/blockchain-developer.md +187 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/blockchain-web3/skills/defi-protocol-templates/SKILL.md +424 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/blockchain-web3/skills/nft-standards/SKILL.md +355 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/blockchain-web3/skills/solidity-security/SKILL.md +496 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/blockchain-web3/skills/web3-testing/SKILL.md +390 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/business-analytics/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/business-analytics/agents/business-analyst.md +161 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/business-analytics/skills/data-storytelling/SKILL.md +447 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/business-analytics/skills/kpi-dashboard-design/SKILL.md +493 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/c4-architecture/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/c4-architecture/agents/c4-code.md +320 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/c4-architecture/agents/c4-component.md +227 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/c4-architecture/agents/c4-container.md +248 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/c4-architecture/agents/c4-context.md +235 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/c4-architecture/commands/c4-architecture.md +367 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cicd-automation/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cicd-automation/agents/cloud-architect.md +128 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cicd-automation/agents/deployment-engineer.md +157 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cicd-automation/agents/devops-troubleshooter.md +155 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cicd-automation/agents/kubernetes-architect.md +156 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cicd-automation/agents/terraform-specialist.md +154 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cicd-automation/commands/workflow-automate.md +1364 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cicd-automation/skills/deployment-pipeline-design/SKILL.md +500 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cicd-automation/skills/deployment-pipeline-design/references/advanced-strategies.md +629 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cicd-automation/skills/github-actions-templates/SKILL.md +328 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cicd-automation/skills/gitlab-ci-patterns/SKILL.md +267 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cicd-automation/skills/secrets-management/SKILL.md +347 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cloud-infrastructure/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cloud-infrastructure/agents/cloud-architect.md +128 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cloud-infrastructure/agents/deployment-engineer.md +158 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cloud-infrastructure/agents/hybrid-cloud-architect.md +163 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cloud-infrastructure/agents/kubernetes-architect.md +156 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cloud-infrastructure/agents/network-engineer.md +165 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cloud-infrastructure/agents/service-mesh-expert.md +42 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cloud-infrastructure/agents/terraform-specialist.md +154 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cloud-infrastructure/skills/cost-optimization/SKILL.md +313 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cloud-infrastructure/skills/cost-optimization/references/tagging-standards.md +23 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cloud-infrastructure/skills/hybrid-cloud-networking/SKILL.md +256 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cloud-infrastructure/skills/hybrid-cloud-networking/references/direct-connect.md +17 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cloud-infrastructure/skills/istio-traffic-management/SKILL.md +321 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cloud-infrastructure/skills/linkerd-patterns/SKILL.md +305 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cloud-infrastructure/skills/mtls-configuration/SKILL.md +342 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cloud-infrastructure/skills/multi-cloud-architecture/SKILL.md +179 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cloud-infrastructure/skills/multi-cloud-architecture/references/multi-cloud-patterns.md +26 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cloud-infrastructure/skills/multi-cloud-architecture/references/service-comparison.md +35 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cloud-infrastructure/skills/service-mesh-observability/SKILL.md +378 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cloud-infrastructure/skills/terraform-module-library/SKILL.md +251 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cloud-infrastructure/skills/terraform-module-library/references/aws-modules.md +70 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cloud-infrastructure/skills/terraform-module-library/references/oci-modules.md +52 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/code-documentation/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/code-documentation/agents/code-reviewer.md +171 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/code-documentation/agents/docs-architect.md +78 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/code-documentation/agents/tutorial-engineer.md +125 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/code-documentation/commands/code-explain.md +845 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/code-documentation/commands/doc-generate.md +677 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/code-refactoring/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/code-refactoring/agents/code-reviewer.md +171 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/code-refactoring/agents/legacy-modernizer.md +35 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/code-refactoring/commands/context-restore.md +171 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/code-refactoring/commands/refactor-clean.md +925 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/code-refactoring/commands/tech-debt.md +398 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/codebase-cleanup/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/codebase-cleanup/agents/code-reviewer.md +171 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/codebase-cleanup/agents/test-automator.md +220 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/codebase-cleanup/commands/deps-audit.md +791 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/codebase-cleanup/commands/refactor-clean.md +925 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/codebase-cleanup/commands/tech-debt.md +398 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/comprehensive-review/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/comprehensive-review/agents/architect-review.md +162 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/comprehensive-review/agents/code-reviewer.md +171 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/comprehensive-review/agents/security-auditor.md +156 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/comprehensive-review/commands/full-review.md +597 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/comprehensive-review/commands/pr-enhance.md +709 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/README.md +125 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/agents/conductor-validator.md +245 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/commands/implement.md +369 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/commands/manage.md +1126 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/commands/new-track.md +414 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/commands/revert.md +353 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/commands/setup.md +406 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/commands/status.md +319 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/skills/context-driven-development/SKILL.md +393 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/skills/context-driven-development/references/artifact-templates.md +154 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/skills/track-management/SKILL.md +593 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/skills/workflow-patterns/SKILL.md +623 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/templates/code_styleguides/csharp.md +600 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/templates/code_styleguides/dart.md +668 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/templates/code_styleguides/general.md +235 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/templates/code_styleguides/go.md +562 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/templates/code_styleguides/html-css.md +618 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/templates/code_styleguides/javascript.md +569 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/templates/code_styleguides/python.md +566 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/templates/code_styleguides/typescript.md +451 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/templates/index.md +90 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/templates/product-guidelines.md +196 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/templates/product.md +102 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/templates/tech-stack.md +204 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/templates/track-metadata.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/templates/track-plan.md +198 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/templates/track-spec.md +169 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/templates/tracks.md +62 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/templates/workflow.md +192 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/content-marketing/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/content-marketing/agents/content-marketer.md +163 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/content-marketing/agents/search-specialist.md +59 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/context-management/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/context-management/agents/context-manager.md +163 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/context-management/commands/context-restore.md +171 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/context-management/commands/context-save.md +177 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/customer-sales-automation/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/customer-sales-automation/agents/customer-support.md +163 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/customer-sales-automation/agents/sales-automator.md +35 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/data-engineering/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/data-engineering/agents/backend-architect.md +309 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/data-engineering/agents/data-engineer.md +227 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/data-engineering/commands/data-driven-feature.md +784 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/data-engineering/commands/data-pipeline.md +209 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/data-engineering/skills/airflow-dag-patterns/SKILL.md +519 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/data-engineering/skills/data-quality-frameworks/SKILL.md +583 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/data-engineering/skills/dbt-transformation-patterns/SKILL.md +556 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/data-engineering/skills/spark-optimization/SKILL.md +411 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/data-validation-suite/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/data-validation-suite/agents/backend-security-coder.md +153 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/database-cloud-optimization/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/database-cloud-optimization/agents/backend-architect.md +309 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/database-cloud-optimization/agents/cloud-architect.md +128 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/database-cloud-optimization/agents/database-architect.md +263 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/database-cloud-optimization/agents/database-optimizer.md +162 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/database-cloud-optimization/commands/cost-optimize.md +1459 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/database-design/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/database-design/agents/database-architect.md +263 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/database-design/agents/sql-pro.md +161 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/database-design/skills/postgresql/SKILL.md +202 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/database-migrations/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/database-migrations/agents/database-admin.md +160 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/database-migrations/agents/database-optimizer.md +162 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/database-migrations/commands/migration-observability.md +413 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/database-migrations/commands/sql-migrations.md +505 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/debugging-toolkit/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/debugging-toolkit/agents/debugger.md +33 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/debugging-toolkit/agents/dx-optimizer.md +63 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/debugging-toolkit/commands/smart-debug.md +197 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/dependency-management/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/dependency-management/agents/legacy-modernizer.md +35 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/dependency-management/commands/deps-audit.md +791 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/deployment-strategies/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/deployment-strategies/agents/deployment-engineer.md +158 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/deployment-strategies/agents/terraform-specialist.md +154 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/deployment-validation/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/deployment-validation/agents/cloud-architect.md +128 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/deployment-validation/commands/config-validate.md +491 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/developer-essentials/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/developer-essentials/agents/monorepo-architect.md +45 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/developer-essentials/skills/auth-implementation-patterns/SKILL.md +638 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/developer-essentials/skills/bazel-build-optimization/SKILL.md +381 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/developer-essentials/skills/code-review-excellence/SKILL.md +529 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/developer-essentials/skills/debugging-strategies/SKILL.md +527 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/developer-essentials/skills/e2e-testing-patterns/SKILL.md +535 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/developer-essentials/skills/error-handling-patterns/SKILL.md +632 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/developer-essentials/skills/git-advanced-workflows/SKILL.md +396 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/developer-essentials/skills/monorepo-management/SKILL.md +614 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/developer-essentials/skills/nx-workspace-patterns/SKILL.md +451 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/developer-essentials/skills/sql-optimization-patterns/SKILL.md +499 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/developer-essentials/skills/turborepo-caching/SKILL.md +370 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/distributed-debugging/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/distributed-debugging/agents/devops-troubleshooter.md +155 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/distributed-debugging/agents/error-detective.md +35 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/distributed-debugging/commands/debug-trace.md +1380 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/documentation-generation/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/documentation-generation/agents/api-documenter.md +161 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/documentation-generation/agents/docs-architect.md +78 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/documentation-generation/agents/mermaid-expert.md +43 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/documentation-generation/agents/reference-builder.md +181 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/documentation-generation/agents/tutorial-engineer.md +125 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/documentation-generation/commands/doc-generate.md +677 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/documentation-generation/skills/architecture-decision-records/SKILL.md +441 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/documentation-generation/skills/changelog-automation/SKILL.md +572 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/documentation-generation/skills/openapi-spec-generation/SKILL.md +536 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/documentation-generation/skills/openapi-spec-generation/references/code-first-and-tooling.md +491 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/documentation-standards/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/documentation-standards/skills/hads/SKILL.md +189 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/dotnet-contribution/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/dotnet-contribution/README.md +135 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/dotnet-contribution/agents/dotnet-architect.md +183 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/dotnet-contribution/skills/dotnet-backend-patterns/SKILL.md +810 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/dotnet-contribution/skills/dotnet-backend-patterns/assets/repository-template.cs +523 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/dotnet-contribution/skills/dotnet-backend-patterns/assets/service-template.cs +336 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/dotnet-contribution/skills/dotnet-backend-patterns/references/dapper-patterns.md +546 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/dotnet-contribution/skills/dotnet-backend-patterns/references/ef-core-best-practices.md +355 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/error-debugging/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/error-debugging/agents/debugger.md +33 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/error-debugging/agents/error-detective.md +35 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/error-debugging/commands/error-analysis.md +1196 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/error-debugging/commands/error-trace.md +1388 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/error-debugging/commands/multi-agent-review.md +208 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/error-diagnostics/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/error-diagnostics/agents/debugger.md +33 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/error-diagnostics/agents/error-detective.md +35 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/error-diagnostics/commands/error-analysis.md +1196 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/error-diagnostics/commands/error-trace.md +1388 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/error-diagnostics/commands/smart-debug.md +197 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/framework-migration/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/framework-migration/agents/architect-review.md +162 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/framework-migration/agents/legacy-modernizer.md +35 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/framework-migration/commands/code-migrate.md +1059 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/framework-migration/commands/deps-upgrade.md +762 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/framework-migration/commands/legacy-modernize.md +659 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/framework-migration/skills/angular-migration/SKILL.md +386 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/framework-migration/skills/database-migration/SKILL.md +403 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/framework-migration/skills/dependency-upgrade/SKILL.md +368 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/framework-migration/skills/react-modernization/SKILL.md +497 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/frontend-mobile-development/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/frontend-mobile-development/agents/frontend-developer.md +164 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/frontend-mobile-development/agents/mobile-developer.md +202 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/frontend-mobile-development/commands/component-scaffold.md +409 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/frontend-mobile-development/skills/nextjs-app-router-patterns/SKILL.md +537 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/frontend-mobile-development/skills/react-native-architecture/SKILL.md +666 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/frontend-mobile-development/skills/react-state-management/SKILL.md +430 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/frontend-mobile-development/skills/tailwind-design-system/SKILL.md +565 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/frontend-mobile-development/skills/tailwind-design-system/references/advanced-patterns.md +319 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/frontend-mobile-security/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/frontend-mobile-security/agents/frontend-developer.md +164 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/frontend-mobile-security/agents/frontend-security-coder.md +166 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/frontend-mobile-security/agents/mobile-security-coder.md +181 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/frontend-mobile-security/commands/xss-scan.md +328 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/full-stack-orchestration/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/full-stack-orchestration/agents/deployment-engineer.md +158 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/full-stack-orchestration/agents/performance-engineer.md +167 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/full-stack-orchestration/agents/security-auditor.md +156 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/full-stack-orchestration/agents/test-automator.md +220 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/full-stack-orchestration/commands/full-stack-feature.md +593 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/functional-programming/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/functional-programming/agents/elixir-pro.md +38 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/functional-programming/agents/haskell-pro.md +39 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/game-development/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/game-development/agents/minecraft-bukkit-pro.md +115 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/game-development/agents/unity-developer.md +228 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/game-development/skills/godot-gdscript-patterns/SKILL.md +564 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/game-development/skills/godot-gdscript-patterns/references/advanced-patterns.md +247 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/game-development/skills/unity-ecs-patterns/SKILL.md +622 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/git-pr-workflows/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/git-pr-workflows/agents/code-reviewer.md +171 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/git-pr-workflows/commands/git-workflow.md +598 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/git-pr-workflows/commands/onboard.md +414 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/git-pr-workflows/commands/pr-enhance.md +709 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/hr-legal-compliance/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/hr-legal-compliance/agents/hr-pro.md +121 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/hr-legal-compliance/agents/legal-advisor.md +53 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/hr-legal-compliance/skills/employment-contract-templates/SKILL.md +520 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/hr-legal-compliance/skills/gdpr-data-handling/SKILL.md +624 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/incident-response/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/incident-response/agents/code-reviewer.md +32 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/incident-response/agents/debugger.md +33 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/incident-response/agents/devops-troubleshooter.md +155 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/incident-response/agents/error-detective.md +31 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/incident-response/agents/incident-responder.md +216 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/incident-response/agents/test-automator.md +32 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/incident-response/commands/incident-response.md +601 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/incident-response/commands/smart-fix.md +539 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/incident-response/skills/incident-runbook-templates/SKILL.md +472 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/incident-response/skills/on-call-handoff-patterns/SKILL.md +331 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/incident-response/skills/postmortem-writing/SKILL.md +390 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/javascript-typescript/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/javascript-typescript/agents/javascript-pro.md +35 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/javascript-typescript/agents/typescript-pro.md +36 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/javascript-typescript/commands/typescript-scaffold.md +353 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/javascript-typescript/skills/javascript-testing-patterns/SKILL.md +537 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/javascript-typescript/skills/javascript-testing-patterns/references/advanced-testing-patterns.md +513 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/javascript-typescript/skills/modern-javascript-patterns/SKILL.md +495 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/javascript-typescript/skills/modern-javascript-patterns/references/advanced-patterns.md +487 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/javascript-typescript/skills/nodejs-backend-patterns/SKILL.md +639 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/javascript-typescript/skills/nodejs-backend-patterns/references/advanced-patterns.md +430 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/javascript-typescript/skills/typescript-advanced-types/SKILL.md +717 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/julia-development/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/julia-development/agents/julia-pro.md +204 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/jvm-languages/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/jvm-languages/agents/csharp-pro.md +38 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/jvm-languages/agents/java-pro.md +171 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/jvm-languages/agents/scala-pro.md +66 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/kubernetes-operations/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/kubernetes-operations/agents/kubernetes-architect.md +156 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/kubernetes-operations/skills/gitops-workflow/SKILL.md +289 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/kubernetes-operations/skills/gitops-workflow/references/argocd-setup.md +144 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/kubernetes-operations/skills/gitops-workflow/references/sync-policies.md +139 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/kubernetes-operations/skills/helm-chart-scaffolding/SKILL.md +560 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/kubernetes-operations/skills/helm-chart-scaffolding/assets/Chart.yaml.template +42 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/kubernetes-operations/skills/helm-chart-scaffolding/assets/values.yaml.template +185 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/kubernetes-operations/skills/helm-chart-scaffolding/references/chart-structure.md +509 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/kubernetes-operations/skills/helm-chart-scaffolding/scripts/validate-chart.sh +244 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/kubernetes-operations/skills/k8s-manifest-generator/SKILL.md +534 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/kubernetes-operations/skills/k8s-manifest-generator/assets/configmap-template.yaml +296 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/kubernetes-operations/skills/k8s-manifest-generator/assets/deployment-template.yaml +203 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/kubernetes-operations/skills/k8s-manifest-generator/assets/service-template.yaml +171 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/kubernetes-operations/skills/k8s-manifest-generator/references/deployment-spec.md +780 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/kubernetes-operations/skills/k8s-manifest-generator/references/service-spec.md +748 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/kubernetes-operations/skills/k8s-security-policies/SKILL.md +347 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/kubernetes-operations/skills/k8s-security-policies/assets/network-policy-template.yaml +177 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/kubernetes-operations/skills/k8s-security-policies/references/rbac-patterns.md +199 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/llm-application-dev/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/llm-application-dev/README.md +88 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/llm-application-dev/agents/ai-engineer.md +158 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/llm-application-dev/agents/prompt-engineer.md +276 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/llm-application-dev/agents/vector-database-engineer.md +117 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/llm-application-dev/commands/ai-assistant.md +1249 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/llm-application-dev/commands/langchain-agent.md +238 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/llm-application-dev/commands/prompt-optimize.md +629 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/llm-application-dev/skills/embedding-strategies/SKILL.md +600 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/llm-application-dev/skills/hybrid-search-implementation/SKILL.md +564 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/llm-application-dev/skills/langchain-architecture/SKILL.md +634 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/llm-application-dev/skills/llm-evaluation/SKILL.md +666 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/llm-application-dev/skills/prompt-engineering-patterns/SKILL.md +473 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/llm-application-dev/skills/prompt-engineering-patterns/assets/few-shot-examples.json +106 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/llm-application-dev/skills/prompt-engineering-patterns/assets/prompt-template-library.md +264 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/llm-application-dev/skills/prompt-engineering-patterns/references/chain-of-thought.md +412 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/llm-application-dev/skills/prompt-engineering-patterns/references/few-shot-learning.md +386 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/llm-application-dev/skills/prompt-engineering-patterns/references/prompt-optimization.md +428 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/llm-application-dev/skills/prompt-engineering-patterns/references/prompt-templates.md +484 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/llm-application-dev/skills/prompt-engineering-patterns/references/system-prompts.md +195 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/llm-application-dev/skills/prompt-engineering-patterns/scripts/optimize-prompt.py +279 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/llm-application-dev/skills/rag-implementation/SKILL.md +542 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/llm-application-dev/skills/similarity-search-patterns/SKILL.md +553 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/llm-application-dev/skills/vector-index-tuning/SKILL.md +517 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/machine-learning-ops/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/machine-learning-ops/agents/data-scientist.md +195 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/machine-learning-ops/agents/ml-engineer.md +162 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/machine-learning-ops/agents/mlops-engineer.md +229 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/machine-learning-ops/commands/ml-pipeline.md +301 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/machine-learning-ops/skills/ml-pipeline-workflow/SKILL.md +248 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/meigen-ai-design/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/meigen-ai-design/README.md +112 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/meigen-ai-design/agents/gallery-researcher.md +43 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/meigen-ai-design/agents/image-generator.md +55 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/meigen-ai-design/agents/prompt-crafter.md +55 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/meigen-ai-design/commands/find.md +23 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/meigen-ai-design/commands/gen.md +27 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/multi-platform-apps/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/multi-platform-apps/agents/backend-architect.md +309 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/multi-platform-apps/agents/flutter-expert.md +195 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/multi-platform-apps/agents/frontend-developer.md +164 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/multi-platform-apps/agents/ios-developer.md +217 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/multi-platform-apps/agents/mobile-developer.md +202 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/multi-platform-apps/agents/ui-ux-designer.md +206 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/multi-platform-apps/commands/multi-platform.md +557 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/observability-monitoring/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/observability-monitoring/agents/database-optimizer.md +162 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/observability-monitoring/agents/network-engineer.md +165 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/observability-monitoring/agents/observability-engineer.md +230 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/observability-monitoring/agents/performance-engineer.md +167 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/observability-monitoring/commands/monitor-setup.md +520 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/observability-monitoring/commands/slo-implement.md +1068 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/observability-monitoring/skills/distributed-tracing/SKILL.md +449 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/observability-monitoring/skills/grafana-dashboards/SKILL.md +382 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/observability-monitoring/skills/prometheus-configuration/SKILL.md +394 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/observability-monitoring/skills/slo-implementation/SKILL.md +333 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/payment-processing/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/payment-processing/agents/payment-integration.md +63 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/payment-processing/skills/billing-automation/SKILL.md +537 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/payment-processing/skills/paypal-integration/SKILL.md +450 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/payment-processing/skills/pci-compliance/SKILL.md +448 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/payment-processing/skills/stripe-integration/SKILL.md +492 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/performance-testing-review/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/performance-testing-review/agents/performance-engineer.md +167 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/performance-testing-review/agents/test-automator.md +220 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/performance-testing-review/commands/ai-review.md +457 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/performance-testing-review/commands/multi-agent-review.md +208 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/.claude-plugin/plugin.json +3 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/README.md +38 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/agents/eval-judge.md +69 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/agents/eval-orchestrator.md +66 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/commands/certify.md +15 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/commands/compare.md +13 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/commands/eval.md +70 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/pyproject.toml +56 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/skills/evaluation-methodology/SKILL.md +550 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/skills/evaluation-methodology/references/rubrics.md +511 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/src/plugin_eval/__init__.py +3 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/src/plugin_eval/cli.py +165 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/src/plugin_eval/corpus.py +123 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/src/plugin_eval/elo.py +50 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/src/plugin_eval/engine.py +349 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/src/plugin_eval/layers/__init__.py +0 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/src/plugin_eval/layers/judge.py +296 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/src/plugin_eval/layers/monte_carlo.py +348 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/src/plugin_eval/layers/static.py +443 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/src/plugin_eval/models.py +167 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/src/plugin_eval/parser.py +198 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/src/plugin_eval/py.typed +0 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/src/plugin_eval/reporter.py +184 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/src/plugin_eval/stats.py +183 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/tests/__init__.py +0 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/tests/conftest.py +79 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/tests/test_cli.py +31 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/tests/test_corpus.py +25 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/tests/test_e2e.py +47 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/tests/test_elo.py +48 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/tests/test_engine.py +42 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/tests/test_judge.py +58 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/tests/test_models.py +102 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/tests/test_monte_carlo.py +45 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/tests/test_parser.py +47 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/tests/test_reporter.py +32 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/tests/test_static.py +45 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/tests/test_stats.py +100 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/uv.lock +1065 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/python-development/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/python-development/agents/django-pro.md +159 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/python-development/agents/fastapi-pro.md +171 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/python-development/agents/python-pro.md +149 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/python-development/commands/python-scaffold.md +324 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/python-development/skills/async-python-patterns/SKILL.md +735 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/python-development/skills/python-anti-patterns/SKILL.md +349 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/python-development/skills/python-background-jobs/SKILL.md +364 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/python-development/skills/python-code-style/SKILL.md +360 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/python-development/skills/python-configuration/SKILL.md +368 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/python-development/skills/python-design-patterns/SKILL.md +433 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/python-development/skills/python-error-handling/SKILL.md +359 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/python-development/skills/python-observability/SKILL.md +400 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/python-development/skills/python-packaging/SKILL.md +510 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/python-development/skills/python-packaging/references/advanced-patterns.md +357 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/python-development/skills/python-performance-optimization/SKILL.md +437 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/python-development/skills/python-performance-optimization/references/advanced-patterns.md +419 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/python-development/skills/python-project-structure/SKILL.md +252 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/python-development/skills/python-resilience/SKILL.md +376 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/python-development/skills/python-resource-management/SKILL.md +421 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/python-development/skills/python-testing-patterns/SKILL.md +622 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/python-development/skills/python-testing-patterns/references/advanced-patterns.md +411 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/python-development/skills/python-type-safety/SKILL.md +432 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/python-development/skills/uv-package-manager/SKILL.md +345 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/python-development/skills/uv-package-manager/references/advanced-patterns.md +473 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/quantitative-trading/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/quantitative-trading/agents/quant-analyst.md +35 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/quantitative-trading/agents/risk-manager.md +41 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/quantitative-trading/skills/backtesting-frameworks/SKILL.md +657 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/quantitative-trading/skills/risk-metrics-calculation/SKILL.md +551 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/reverse-engineering/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/reverse-engineering/agents/firmware-analyst.md +358 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/reverse-engineering/agents/malware-analyst.md +296 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/reverse-engineering/agents/reverse-engineer.md +219 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/reverse-engineering/skills/anti-reversing-techniques/SKILL.md +497 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/reverse-engineering/skills/anti-reversing-techniques/references/advanced-techniques.md +350 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/reverse-engineering/skills/binary-analysis-patterns/SKILL.md +438 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/reverse-engineering/skills/memory-forensics/SKILL.md +483 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/reverse-engineering/skills/protocol-reverse-engineering/SKILL.md +520 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/security-compliance/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/security-compliance/agents/security-auditor.md +156 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/security-compliance/commands/compliance-check.md +954 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/security-scanning/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/security-scanning/agents/security-auditor.md +156 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/security-scanning/agents/threat-modeling-expert.md +45 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/security-scanning/commands/security-dependencies.md +524 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/security-scanning/commands/security-hardening.md +653 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/security-scanning/commands/security-sast.md +528 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/security-scanning/skills/attack-tree-construction/SKILL.md +681 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/security-scanning/skills/sast-configuration/SKILL.md +204 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/security-scanning/skills/security-requirement-extraction/SKILL.md +673 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/security-scanning/skills/stride-analysis-patterns/SKILL.md +658 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/security-scanning/skills/threat-mitigation-mapping/SKILL.md +741 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/seo-analysis-monitoring/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/seo-analysis-monitoring/agents/seo-authority-builder.md +126 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/seo-analysis-monitoring/agents/seo-cannibalization-detector.md +111 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/seo-analysis-monitoring/agents/seo-content-refresher.md +106 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/seo-content-creation/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/seo-content-creation/agents/seo-content-auditor.md +64 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/seo-content-creation/agents/seo-content-planner.md +93 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/seo-content-creation/agents/seo-content-writer.md +82 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/seo-technical-optimization/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/seo-technical-optimization/agents/seo-keyword-strategist.md +80 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/seo-technical-optimization/agents/seo-meta-optimizer.md +78 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/seo-technical-optimization/agents/seo-snippet-hunter.md +102 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/seo-technical-optimization/agents/seo-structure-architect.md +94 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/shell-scripting/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/shell-scripting/agents/bash-pro.md +292 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/shell-scripting/agents/posix-shell-pro.md +290 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/shell-scripting/skills/bash-defensive-patterns/SKILL.md +533 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/shell-scripting/skills/bats-testing-patterns/SKILL.md +624 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/shell-scripting/skills/shellcheck-configuration/SKILL.md +450 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/startup-business-analyst/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/startup-business-analyst/README.md +221 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/startup-business-analyst/agents/startup-analyst.md +340 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/startup-business-analyst/commands/business-case.md +528 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/startup-business-analyst/commands/financial-projections.md +374 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/startup-business-analyst/commands/market-opportunity.md +248 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/startup-business-analyst/skills/competitive-landscape/SKILL.md +514 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/startup-business-analyst/skills/market-sizing-analysis/SKILL.md +430 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/startup-business-analyst/skills/market-sizing-analysis/examples/saas-market-sizing.md +377 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/startup-business-analyst/skills/market-sizing-analysis/references/data-sources.md +421 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/startup-business-analyst/skills/startup-financial-modeling/SKILL.md +475 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/startup-business-analyst/skills/startup-metrics-framework/SKILL.md +549 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/startup-business-analyst/skills/team-composition-analysis/SKILL.md +424 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/systems-programming/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/systems-programming/agents/c-pro.md +35 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/systems-programming/agents/cpp-pro.md +38 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/systems-programming/agents/golang-pro.md +171 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/systems-programming/agents/rust-pro.md +171 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/systems-programming/commands/rust-project.md +438 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/systems-programming/skills/go-concurrency-patterns/SKILL.md +651 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/systems-programming/skills/memory-safety-patterns/SKILL.md +600 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/systems-programming/skills/rust-async-patterns/SKILL.md +513 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/tdd-workflows/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/tdd-workflows/agents/code-reviewer.md +171 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/tdd-workflows/agents/tdd-orchestrator.md +183 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/tdd-workflows/commands/tdd-cycle.md +660 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/tdd-workflows/commands/tdd-green.md +104 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/tdd-workflows/commands/tdd-red.md +97 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/tdd-workflows/commands/tdd-refactor.md +187 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/team-collaboration/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/team-collaboration/agents/dx-optimizer.md +63 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/team-collaboration/commands/issue.md +671 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/team-collaboration/commands/standup-notes.md +834 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/README.md +126 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/agents/accessibility-expert.md +147 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/agents/design-system-architect.md +149 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/agents/ui-designer.md +125 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/commands/accessibility-audit.md +496 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/commands/create-component.md +474 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/commands/design-review.md +375 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/commands/design-system-setup.md +645 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/accessibility-compliance/SKILL.md +412 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/accessibility-compliance/references/aria-patterns.md +567 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/accessibility-compliance/references/mobile-accessibility.md +538 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/accessibility-compliance/references/wcag-guidelines.md +645 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/design-system-patterns/SKILL.md +329 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/design-system-patterns/references/component-architecture.md +617 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/design-system-patterns/references/design-tokens.md +420 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/design-system-patterns/references/theming-architecture.md +521 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/interaction-design/SKILL.md +320 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/interaction-design/references/animation-libraries.md +498 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/interaction-design/references/microinteraction-patterns.md +536 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/interaction-design/references/scroll-animations.md +416 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/mobile-android-design/SKILL.md +433 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/mobile-android-design/references/android-navigation.md +698 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/mobile-android-design/references/compose-components.md +796 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/mobile-android-design/references/material3-theming.md +604 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/mobile-ios-design/SKILL.md +259 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/mobile-ios-design/references/hig-patterns.md +529 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/mobile-ios-design/references/ios-navigation.md +556 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/mobile-ios-design/references/swiftui-components.md +575 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/react-native-design/SKILL.md +432 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/react-native-design/references/navigation-patterns.md +832 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/react-native-design/references/reanimated-patterns.md +775 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/react-native-design/references/styling-patterns.md +871 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/responsive-design/SKILL.md +516 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/responsive-design/references/breakpoint-strategies.md +591 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/responsive-design/references/container-queries.md +564 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/responsive-design/references/fluid-layouts.md +538 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/visual-design-foundations/SKILL.md +318 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/visual-design-foundations/references/color-systems.md +417 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/visual-design-foundations/references/spacing-iconography.md +425 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/visual-design-foundations/references/typography-systems.md +432 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/web-component-design/SKILL.md +271 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/web-component-design/references/accessibility-patterns.md +642 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/web-component-design/references/component-patterns.md +437 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/web-component-design/references/css-styling-approaches.md +590 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/unit-testing/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/unit-testing/agents/debugger.md +33 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/unit-testing/agents/test-automator.md +220 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/unit-testing/commands/test-generate.md +307 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/web-scripting/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/web-scripting/agents/php-pro.md +43 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/web-scripting/agents/ruby-pro.md +35 -0
- package/defaults/settings.json +79 -2
- package/package.json +1 -1
- package/shims/globals.ts +1 -1
- package/src/cli/handlers/plugins.ts +13 -0
- package/src/commands/login/CodexLogin.tsx +121 -13
- package/src/commands/login/login.tsx +122 -175
- package/src/components/AutoUpdaterWrapper.tsx +2 -15
- package/src/components/LogoV2/CondensedLogo.tsx +2 -2
- package/src/components/LogoV2/LogoV2.tsx +1 -1
- package/src/components/PromptInput/Notifications.tsx +3 -3
- package/src/components/agents/new-agent-creation/CreateAgentWizard.tsx +3 -2
- package/src/components/agents/new-agent-creation/wizard-steps/ConfirmStepWrapper.tsx +2 -2
- package/src/components/agents/new-agent-creation/wizard-steps/GenerateStep.tsx +6 -5
- package/src/components/agents/new-agent-creation/wizard-steps/GenerationModelStep.tsx +42 -0
- package/src/components/agents/new-agent-creation/wizard-steps/MethodStep.tsx +3 -3
- package/src/components/agents/new-agent-creation/wizard-steps/ModelStep.tsx +2 -2
- package/src/components/messages/AssistantToolUseMessage.tsx +75 -64
- package/src/hooks/notifs/useNpmDeprecationNotification.tsx +2 -2
- package/src/main.tsx +4 -0
- package/src/query.ts +78 -48
- package/src/services/api/errors.ts +24 -1
- package/src/services/api/officialClaudeBridge.ts +480 -0
- package/src/services/api/openaiShim.ts +11 -1
- package/src/state/AppStateStore.ts +12 -0
- package/src/tools/AgentTool/AgentTool.tsx +26 -0
- package/src/tools/AgentTool/officialClaudeBridge.ts +5 -0
- package/src/tools/AgentTool/runAgent.ts +33 -1
- package/src/utils/auth.ts +20 -3
- package/src/utils/effort.ts +17 -3
- package/src/utils/logoV2Utils.ts +23 -8
- package/src/utils/model/modelOptions.ts +14 -119
- package/src/utils/model/platformProfiles.ts +3 -1
- package/src/utils/model/thirdPartyProviders.ts +1 -0
- package/src/utils/plugins/pluginDirectories.ts +15 -3
- package/mumucc-0.4.3.tgz +0 -0
|
@@ -0,0 +1,735 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: async-python-patterns
|
|
3
|
+
description: Master Python asyncio, concurrent programming, and async/await patterns for high-performance applications. Use when building async APIs, concurrent systems, or I/O-bound applications requiring non-blocking operations.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Async Python Patterns
|
|
7
|
+
|
|
8
|
+
Comprehensive guidance for implementing asynchronous Python applications using asyncio, concurrent programming patterns, and async/await for building high-performance, non-blocking systems.
|
|
9
|
+
|
|
10
|
+
## When to Use This Skill
|
|
11
|
+
|
|
12
|
+
- Building async web APIs (FastAPI, aiohttp, Sanic)
|
|
13
|
+
- Implementing concurrent I/O operations (database, file, network)
|
|
14
|
+
- Creating web scrapers with concurrent requests
|
|
15
|
+
- Developing real-time applications (WebSocket servers, chat systems)
|
|
16
|
+
- Processing multiple independent tasks simultaneously
|
|
17
|
+
- Building microservices with async communication
|
|
18
|
+
- Optimizing I/O-bound workloads
|
|
19
|
+
- Implementing async background tasks and queues
|
|
20
|
+
|
|
21
|
+
## Sync vs Async Decision Guide
|
|
22
|
+
|
|
23
|
+
Before adopting async, consider whether it's the right choice for your use case.
|
|
24
|
+
|
|
25
|
+
| Use Case | Recommended Approach |
|
|
26
|
+
|----------|---------------------|
|
|
27
|
+
| Many concurrent network/DB calls | `asyncio` |
|
|
28
|
+
| CPU-bound computation | `multiprocessing` or thread pool |
|
|
29
|
+
| Mixed I/O + CPU | Offload CPU work with `asyncio.to_thread()` |
|
|
30
|
+
| Simple scripts, few connections | Sync (simpler, easier to debug) |
|
|
31
|
+
| Web APIs with high concurrency | Async frameworks (FastAPI, aiohttp) |
|
|
32
|
+
|
|
33
|
+
**Key Rule:** Stay fully sync or fully async within a call path. Mixing creates hidden blocking and complexity.
|
|
34
|
+
|
|
35
|
+
## Core Concepts
|
|
36
|
+
|
|
37
|
+
### 1. Event Loop
|
|
38
|
+
|
|
39
|
+
The event loop is the heart of asyncio, managing and scheduling asynchronous tasks.
|
|
40
|
+
|
|
41
|
+
**Key characteristics:**
|
|
42
|
+
|
|
43
|
+
- Single-threaded cooperative multitasking
|
|
44
|
+
- Schedules coroutines for execution
|
|
45
|
+
- Handles I/O operations without blocking
|
|
46
|
+
- Manages callbacks and futures
|
|
47
|
+
|
|
48
|
+
### 2. Coroutines
|
|
49
|
+
|
|
50
|
+
Functions defined with `async def` that can be paused and resumed.
|
|
51
|
+
|
|
52
|
+
**Syntax:**
|
|
53
|
+
|
|
54
|
+
```python
|
|
55
|
+
async def my_coroutine():
|
|
56
|
+
result = await some_async_operation()
|
|
57
|
+
return result
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### 3. Tasks
|
|
61
|
+
|
|
62
|
+
Scheduled coroutines that run concurrently on the event loop.
|
|
63
|
+
|
|
64
|
+
### 4. Futures
|
|
65
|
+
|
|
66
|
+
Low-level objects representing eventual results of async operations.
|
|
67
|
+
|
|
68
|
+
### 5. Async Context Managers
|
|
69
|
+
|
|
70
|
+
Resources that support `async with` for proper cleanup.
|
|
71
|
+
|
|
72
|
+
### 6. Async Iterators
|
|
73
|
+
|
|
74
|
+
Objects that support `async for` for iterating over async data sources.
|
|
75
|
+
|
|
76
|
+
## Quick Start
|
|
77
|
+
|
|
78
|
+
```python
|
|
79
|
+
import asyncio
|
|
80
|
+
|
|
81
|
+
async def main():
|
|
82
|
+
print("Hello")
|
|
83
|
+
await asyncio.sleep(1)
|
|
84
|
+
print("World")
|
|
85
|
+
|
|
86
|
+
# Python 3.7+
|
|
87
|
+
asyncio.run(main())
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
## Fundamental Patterns
|
|
91
|
+
|
|
92
|
+
### Pattern 1: Basic Async/Await
|
|
93
|
+
|
|
94
|
+
```python
|
|
95
|
+
import asyncio
|
|
96
|
+
|
|
97
|
+
async def fetch_data(url: str) -> dict:
|
|
98
|
+
"""Fetch data from URL asynchronously."""
|
|
99
|
+
await asyncio.sleep(1) # Simulate I/O
|
|
100
|
+
return {"url": url, "data": "result"}
|
|
101
|
+
|
|
102
|
+
async def main():
|
|
103
|
+
result = await fetch_data("https://api.example.com")
|
|
104
|
+
print(result)
|
|
105
|
+
|
|
106
|
+
asyncio.run(main())
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### Pattern 2: Concurrent Execution with gather()
|
|
110
|
+
|
|
111
|
+
```python
|
|
112
|
+
import asyncio
|
|
113
|
+
from typing import List
|
|
114
|
+
|
|
115
|
+
async def fetch_user(user_id: int) -> dict:
|
|
116
|
+
"""Fetch user data."""
|
|
117
|
+
await asyncio.sleep(0.5)
|
|
118
|
+
return {"id": user_id, "name": f"User {user_id}"}
|
|
119
|
+
|
|
120
|
+
async def fetch_all_users(user_ids: List[int]) -> List[dict]:
|
|
121
|
+
"""Fetch multiple users concurrently."""
|
|
122
|
+
tasks = [fetch_user(uid) for uid in user_ids]
|
|
123
|
+
results = await asyncio.gather(*tasks)
|
|
124
|
+
return results
|
|
125
|
+
|
|
126
|
+
async def main():
|
|
127
|
+
user_ids = [1, 2, 3, 4, 5]
|
|
128
|
+
users = await fetch_all_users(user_ids)
|
|
129
|
+
print(f"Fetched {len(users)} users")
|
|
130
|
+
|
|
131
|
+
asyncio.run(main())
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
### Pattern 3: Task Creation and Management
|
|
135
|
+
|
|
136
|
+
```python
|
|
137
|
+
import asyncio
|
|
138
|
+
|
|
139
|
+
async def background_task(name: str, delay: int):
|
|
140
|
+
"""Long-running background task."""
|
|
141
|
+
print(f"{name} started")
|
|
142
|
+
await asyncio.sleep(delay)
|
|
143
|
+
print(f"{name} completed")
|
|
144
|
+
return f"Result from {name}"
|
|
145
|
+
|
|
146
|
+
async def main():
|
|
147
|
+
# Create tasks
|
|
148
|
+
task1 = asyncio.create_task(background_task("Task 1", 2))
|
|
149
|
+
task2 = asyncio.create_task(background_task("Task 2", 1))
|
|
150
|
+
|
|
151
|
+
# Do other work
|
|
152
|
+
print("Main: doing other work")
|
|
153
|
+
await asyncio.sleep(0.5)
|
|
154
|
+
|
|
155
|
+
# Wait for tasks
|
|
156
|
+
result1 = await task1
|
|
157
|
+
result2 = await task2
|
|
158
|
+
|
|
159
|
+
print(f"Results: {result1}, {result2}")
|
|
160
|
+
|
|
161
|
+
asyncio.run(main())
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
### Pattern 4: Error Handling in Async Code
|
|
165
|
+
|
|
166
|
+
```python
|
|
167
|
+
import asyncio
|
|
168
|
+
from typing import List, Optional
|
|
169
|
+
|
|
170
|
+
async def risky_operation(item_id: int) -> dict:
|
|
171
|
+
"""Operation that might fail."""
|
|
172
|
+
await asyncio.sleep(0.1)
|
|
173
|
+
if item_id % 3 == 0:
|
|
174
|
+
raise ValueError(f"Item {item_id} failed")
|
|
175
|
+
return {"id": item_id, "status": "success"}
|
|
176
|
+
|
|
177
|
+
async def safe_operation(item_id: int) -> Optional[dict]:
|
|
178
|
+
"""Wrapper with error handling."""
|
|
179
|
+
try:
|
|
180
|
+
return await risky_operation(item_id)
|
|
181
|
+
except ValueError as e:
|
|
182
|
+
print(f"Error: {e}")
|
|
183
|
+
return None
|
|
184
|
+
|
|
185
|
+
async def process_items(item_ids: List[int]):
|
|
186
|
+
"""Process multiple items with error handling."""
|
|
187
|
+
tasks = [safe_operation(iid) for iid in item_ids]
|
|
188
|
+
results = await asyncio.gather(*tasks, return_exceptions=True)
|
|
189
|
+
|
|
190
|
+
# Filter out failures
|
|
191
|
+
successful = [r for r in results if r is not None and not isinstance(r, Exception)]
|
|
192
|
+
failed = [r for r in results if isinstance(r, Exception)]
|
|
193
|
+
|
|
194
|
+
print(f"Success: {len(successful)}, Failed: {len(failed)}")
|
|
195
|
+
return successful
|
|
196
|
+
|
|
197
|
+
asyncio.run(process_items([1, 2, 3, 4, 5, 6]))
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
### Pattern 5: Timeout Handling
|
|
201
|
+
|
|
202
|
+
```python
|
|
203
|
+
import asyncio
|
|
204
|
+
|
|
205
|
+
async def slow_operation(delay: int) -> str:
|
|
206
|
+
"""Operation that takes time."""
|
|
207
|
+
await asyncio.sleep(delay)
|
|
208
|
+
return f"Completed after {delay}s"
|
|
209
|
+
|
|
210
|
+
async def with_timeout():
|
|
211
|
+
"""Execute operation with timeout."""
|
|
212
|
+
try:
|
|
213
|
+
result = await asyncio.wait_for(slow_operation(5), timeout=2.0)
|
|
214
|
+
print(result)
|
|
215
|
+
except asyncio.TimeoutError:
|
|
216
|
+
print("Operation timed out")
|
|
217
|
+
|
|
218
|
+
asyncio.run(with_timeout())
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
## Advanced Patterns
|
|
222
|
+
|
|
223
|
+
### Pattern 6: Async Context Managers
|
|
224
|
+
|
|
225
|
+
```python
|
|
226
|
+
import asyncio
|
|
227
|
+
from typing import Optional
|
|
228
|
+
|
|
229
|
+
class AsyncDatabaseConnection:
|
|
230
|
+
"""Async database connection context manager."""
|
|
231
|
+
|
|
232
|
+
def __init__(self, dsn: str):
|
|
233
|
+
self.dsn = dsn
|
|
234
|
+
self.connection: Optional[object] = None
|
|
235
|
+
|
|
236
|
+
async def __aenter__(self):
|
|
237
|
+
print("Opening connection")
|
|
238
|
+
await asyncio.sleep(0.1) # Simulate connection
|
|
239
|
+
self.connection = {"dsn": self.dsn, "connected": True}
|
|
240
|
+
return self.connection
|
|
241
|
+
|
|
242
|
+
async def __aexit__(self, exc_type, exc_val, exc_tb):
|
|
243
|
+
print("Closing connection")
|
|
244
|
+
await asyncio.sleep(0.1) # Simulate cleanup
|
|
245
|
+
self.connection = None
|
|
246
|
+
|
|
247
|
+
async def query_database():
|
|
248
|
+
"""Use async context manager."""
|
|
249
|
+
async with AsyncDatabaseConnection("postgresql://localhost") as conn:
|
|
250
|
+
print(f"Using connection: {conn}")
|
|
251
|
+
await asyncio.sleep(0.2) # Simulate query
|
|
252
|
+
return {"rows": 10}
|
|
253
|
+
|
|
254
|
+
asyncio.run(query_database())
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
### Pattern 7: Async Iterators and Generators
|
|
258
|
+
|
|
259
|
+
```python
|
|
260
|
+
import asyncio
|
|
261
|
+
from typing import AsyncIterator
|
|
262
|
+
|
|
263
|
+
async def async_range(start: int, end: int, delay: float = 0.1) -> AsyncIterator[int]:
|
|
264
|
+
"""Async generator that yields numbers with delay."""
|
|
265
|
+
for i in range(start, end):
|
|
266
|
+
await asyncio.sleep(delay)
|
|
267
|
+
yield i
|
|
268
|
+
|
|
269
|
+
async def fetch_pages(url: str, max_pages: int) -> AsyncIterator[dict]:
|
|
270
|
+
"""Fetch paginated data asynchronously."""
|
|
271
|
+
for page in range(1, max_pages + 1):
|
|
272
|
+
await asyncio.sleep(0.2) # Simulate API call
|
|
273
|
+
yield {
|
|
274
|
+
"page": page,
|
|
275
|
+
"url": f"{url}?page={page}",
|
|
276
|
+
"data": [f"item_{page}_{i}" for i in range(5)]
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
async def consume_async_iterator():
|
|
280
|
+
"""Consume async iterator."""
|
|
281
|
+
async for number in async_range(1, 5):
|
|
282
|
+
print(f"Number: {number}")
|
|
283
|
+
|
|
284
|
+
print("\nFetching pages:")
|
|
285
|
+
async for page_data in fetch_pages("https://api.example.com/items", 3):
|
|
286
|
+
print(f"Page {page_data['page']}: {len(page_data['data'])} items")
|
|
287
|
+
|
|
288
|
+
asyncio.run(consume_async_iterator())
|
|
289
|
+
```
|
|
290
|
+
|
|
291
|
+
### Pattern 8: Producer-Consumer Pattern
|
|
292
|
+
|
|
293
|
+
```python
|
|
294
|
+
import asyncio
|
|
295
|
+
from asyncio import Queue
|
|
296
|
+
from typing import Optional
|
|
297
|
+
|
|
298
|
+
async def producer(queue: Queue, producer_id: int, num_items: int):
|
|
299
|
+
"""Produce items and put them in queue."""
|
|
300
|
+
for i in range(num_items):
|
|
301
|
+
item = f"Item-{producer_id}-{i}"
|
|
302
|
+
await queue.put(item)
|
|
303
|
+
print(f"Producer {producer_id} produced: {item}")
|
|
304
|
+
await asyncio.sleep(0.1)
|
|
305
|
+
await queue.put(None) # Signal completion
|
|
306
|
+
|
|
307
|
+
async def consumer(queue: Queue, consumer_id: int):
|
|
308
|
+
"""Consume items from queue."""
|
|
309
|
+
while True:
|
|
310
|
+
item = await queue.get()
|
|
311
|
+
if item is None:
|
|
312
|
+
queue.task_done()
|
|
313
|
+
break
|
|
314
|
+
|
|
315
|
+
print(f"Consumer {consumer_id} processing: {item}")
|
|
316
|
+
await asyncio.sleep(0.2) # Simulate work
|
|
317
|
+
queue.task_done()
|
|
318
|
+
|
|
319
|
+
async def producer_consumer_example():
|
|
320
|
+
"""Run producer-consumer pattern."""
|
|
321
|
+
queue = Queue(maxsize=10)
|
|
322
|
+
|
|
323
|
+
# Create tasks
|
|
324
|
+
producers = [
|
|
325
|
+
asyncio.create_task(producer(queue, i, 5))
|
|
326
|
+
for i in range(2)
|
|
327
|
+
]
|
|
328
|
+
|
|
329
|
+
consumers = [
|
|
330
|
+
asyncio.create_task(consumer(queue, i))
|
|
331
|
+
for i in range(3)
|
|
332
|
+
]
|
|
333
|
+
|
|
334
|
+
# Wait for producers
|
|
335
|
+
await asyncio.gather(*producers)
|
|
336
|
+
|
|
337
|
+
# Wait for queue to be empty
|
|
338
|
+
await queue.join()
|
|
339
|
+
|
|
340
|
+
# Cancel consumers
|
|
341
|
+
for c in consumers:
|
|
342
|
+
c.cancel()
|
|
343
|
+
|
|
344
|
+
asyncio.run(producer_consumer_example())
|
|
345
|
+
```
|
|
346
|
+
|
|
347
|
+
### Pattern 9: Semaphore for Rate Limiting
|
|
348
|
+
|
|
349
|
+
```python
|
|
350
|
+
import asyncio
|
|
351
|
+
from typing import List
|
|
352
|
+
|
|
353
|
+
async def api_call(url: str, semaphore: asyncio.Semaphore) -> dict:
|
|
354
|
+
"""Make API call with rate limiting."""
|
|
355
|
+
async with semaphore:
|
|
356
|
+
print(f"Calling {url}")
|
|
357
|
+
await asyncio.sleep(0.5) # Simulate API call
|
|
358
|
+
return {"url": url, "status": 200}
|
|
359
|
+
|
|
360
|
+
async def rate_limited_requests(urls: List[str], max_concurrent: int = 5):
|
|
361
|
+
"""Make multiple requests with rate limiting."""
|
|
362
|
+
semaphore = asyncio.Semaphore(max_concurrent)
|
|
363
|
+
tasks = [api_call(url, semaphore) for url in urls]
|
|
364
|
+
results = await asyncio.gather(*tasks)
|
|
365
|
+
return results
|
|
366
|
+
|
|
367
|
+
async def main():
|
|
368
|
+
urls = [f"https://api.example.com/item/{i}" for i in range(20)]
|
|
369
|
+
results = await rate_limited_requests(urls, max_concurrent=3)
|
|
370
|
+
print(f"Completed {len(results)} requests")
|
|
371
|
+
|
|
372
|
+
asyncio.run(main())
|
|
373
|
+
```
|
|
374
|
+
|
|
375
|
+
### Pattern 10: Async Locks and Synchronization
|
|
376
|
+
|
|
377
|
+
```python
|
|
378
|
+
import asyncio
|
|
379
|
+
|
|
380
|
+
class AsyncCounter:
|
|
381
|
+
"""Thread-safe async counter."""
|
|
382
|
+
|
|
383
|
+
def __init__(self):
|
|
384
|
+
self.value = 0
|
|
385
|
+
self.lock = asyncio.Lock()
|
|
386
|
+
|
|
387
|
+
async def increment(self):
|
|
388
|
+
"""Safely increment counter."""
|
|
389
|
+
async with self.lock:
|
|
390
|
+
current = self.value
|
|
391
|
+
await asyncio.sleep(0.01) # Simulate work
|
|
392
|
+
self.value = current + 1
|
|
393
|
+
|
|
394
|
+
async def get_value(self) -> int:
|
|
395
|
+
"""Get current value."""
|
|
396
|
+
async with self.lock:
|
|
397
|
+
return self.value
|
|
398
|
+
|
|
399
|
+
async def worker(counter: AsyncCounter, worker_id: int):
|
|
400
|
+
"""Worker that increments counter."""
|
|
401
|
+
for _ in range(10):
|
|
402
|
+
await counter.increment()
|
|
403
|
+
print(f"Worker {worker_id} incremented")
|
|
404
|
+
|
|
405
|
+
async def test_counter():
|
|
406
|
+
"""Test concurrent counter."""
|
|
407
|
+
counter = AsyncCounter()
|
|
408
|
+
|
|
409
|
+
workers = [asyncio.create_task(worker(counter, i)) for i in range(5)]
|
|
410
|
+
await asyncio.gather(*workers)
|
|
411
|
+
|
|
412
|
+
final_value = await counter.get_value()
|
|
413
|
+
print(f"Final counter value: {final_value}")
|
|
414
|
+
|
|
415
|
+
asyncio.run(test_counter())
|
|
416
|
+
```
|
|
417
|
+
|
|
418
|
+
## Real-World Applications
|
|
419
|
+
|
|
420
|
+
### Web Scraping with aiohttp
|
|
421
|
+
|
|
422
|
+
```python
|
|
423
|
+
import asyncio
|
|
424
|
+
import aiohttp
|
|
425
|
+
from typing import List, Dict
|
|
426
|
+
|
|
427
|
+
async def fetch_url(session: aiohttp.ClientSession, url: str) -> Dict:
|
|
428
|
+
"""Fetch single URL."""
|
|
429
|
+
try:
|
|
430
|
+
async with session.get(url, timeout=aiohttp.ClientTimeout(total=10)) as response:
|
|
431
|
+
text = await response.text()
|
|
432
|
+
return {
|
|
433
|
+
"url": url,
|
|
434
|
+
"status": response.status,
|
|
435
|
+
"length": len(text)
|
|
436
|
+
}
|
|
437
|
+
except Exception as e:
|
|
438
|
+
return {"url": url, "error": str(e)}
|
|
439
|
+
|
|
440
|
+
async def scrape_urls(urls: List[str]) -> List[Dict]:
|
|
441
|
+
"""Scrape multiple URLs concurrently."""
|
|
442
|
+
async with aiohttp.ClientSession() as session:
|
|
443
|
+
tasks = [fetch_url(session, url) for url in urls]
|
|
444
|
+
results = await asyncio.gather(*tasks)
|
|
445
|
+
return results
|
|
446
|
+
|
|
447
|
+
async def main():
|
|
448
|
+
urls = [
|
|
449
|
+
"https://httpbin.org/delay/1",
|
|
450
|
+
"https://httpbin.org/delay/2",
|
|
451
|
+
"https://httpbin.org/status/404",
|
|
452
|
+
]
|
|
453
|
+
|
|
454
|
+
results = await scrape_urls(urls)
|
|
455
|
+
for result in results:
|
|
456
|
+
print(result)
|
|
457
|
+
|
|
458
|
+
asyncio.run(main())
|
|
459
|
+
```
|
|
460
|
+
|
|
461
|
+
### Async Database Operations
|
|
462
|
+
|
|
463
|
+
```python
|
|
464
|
+
import asyncio
|
|
465
|
+
from typing import List, Optional
|
|
466
|
+
|
|
467
|
+
# Simulated async database client
|
|
468
|
+
class AsyncDB:
|
|
469
|
+
"""Simulated async database."""
|
|
470
|
+
|
|
471
|
+
async def execute(self, query: str) -> List[dict]:
|
|
472
|
+
"""Execute query."""
|
|
473
|
+
await asyncio.sleep(0.1)
|
|
474
|
+
return [{"id": 1, "name": "Example"}]
|
|
475
|
+
|
|
476
|
+
async def fetch_one(self, query: str) -> Optional[dict]:
|
|
477
|
+
"""Fetch single row."""
|
|
478
|
+
await asyncio.sleep(0.1)
|
|
479
|
+
return {"id": 1, "name": "Example"}
|
|
480
|
+
|
|
481
|
+
async def get_user_data(db: AsyncDB, user_id: int) -> dict:
|
|
482
|
+
"""Fetch user and related data concurrently."""
|
|
483
|
+
user_task = db.fetch_one(f"SELECT * FROM users WHERE id = {user_id}")
|
|
484
|
+
orders_task = db.execute(f"SELECT * FROM orders WHERE user_id = {user_id}")
|
|
485
|
+
profile_task = db.fetch_one(f"SELECT * FROM profiles WHERE user_id = {user_id}")
|
|
486
|
+
|
|
487
|
+
user, orders, profile = await asyncio.gather(user_task, orders_task, profile_task)
|
|
488
|
+
|
|
489
|
+
return {
|
|
490
|
+
"user": user,
|
|
491
|
+
"orders": orders,
|
|
492
|
+
"profile": profile
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
async def main():
|
|
496
|
+
db = AsyncDB()
|
|
497
|
+
user_data = await get_user_data(db, 1)
|
|
498
|
+
print(user_data)
|
|
499
|
+
|
|
500
|
+
asyncio.run(main())
|
|
501
|
+
```
|
|
502
|
+
|
|
503
|
+
### WebSocket Server
|
|
504
|
+
|
|
505
|
+
```python
|
|
506
|
+
import asyncio
|
|
507
|
+
from typing import Set
|
|
508
|
+
|
|
509
|
+
# Simulated WebSocket connection
|
|
510
|
+
class WebSocket:
|
|
511
|
+
"""Simulated WebSocket."""
|
|
512
|
+
|
|
513
|
+
def __init__(self, client_id: str):
|
|
514
|
+
self.client_id = client_id
|
|
515
|
+
|
|
516
|
+
async def send(self, message: str):
|
|
517
|
+
"""Send message."""
|
|
518
|
+
print(f"Sending to {self.client_id}: {message}")
|
|
519
|
+
await asyncio.sleep(0.01)
|
|
520
|
+
|
|
521
|
+
async def recv(self) -> str:
|
|
522
|
+
"""Receive message."""
|
|
523
|
+
await asyncio.sleep(1)
|
|
524
|
+
return f"Message from {self.client_id}"
|
|
525
|
+
|
|
526
|
+
class WebSocketServer:
|
|
527
|
+
"""Simple WebSocket server."""
|
|
528
|
+
|
|
529
|
+
def __init__(self):
|
|
530
|
+
self.clients: Set[WebSocket] = set()
|
|
531
|
+
|
|
532
|
+
async def register(self, websocket: WebSocket):
|
|
533
|
+
"""Register new client."""
|
|
534
|
+
self.clients.add(websocket)
|
|
535
|
+
print(f"Client {websocket.client_id} connected")
|
|
536
|
+
|
|
537
|
+
async def unregister(self, websocket: WebSocket):
|
|
538
|
+
"""Unregister client."""
|
|
539
|
+
self.clients.remove(websocket)
|
|
540
|
+
print(f"Client {websocket.client_id} disconnected")
|
|
541
|
+
|
|
542
|
+
async def broadcast(self, message: str):
|
|
543
|
+
"""Broadcast message to all clients."""
|
|
544
|
+
if self.clients:
|
|
545
|
+
tasks = [client.send(message) for client in self.clients]
|
|
546
|
+
await asyncio.gather(*tasks)
|
|
547
|
+
|
|
548
|
+
async def handle_client(self, websocket: WebSocket):
|
|
549
|
+
"""Handle individual client connection."""
|
|
550
|
+
await self.register(websocket)
|
|
551
|
+
try:
|
|
552
|
+
async for message in self.message_iterator(websocket):
|
|
553
|
+
await self.broadcast(f"{websocket.client_id}: {message}")
|
|
554
|
+
finally:
|
|
555
|
+
await self.unregister(websocket)
|
|
556
|
+
|
|
557
|
+
async def message_iterator(self, websocket: WebSocket):
|
|
558
|
+
"""Iterate over messages from client."""
|
|
559
|
+
for _ in range(3): # Simulate 3 messages
|
|
560
|
+
yield await websocket.recv()
|
|
561
|
+
```
|
|
562
|
+
|
|
563
|
+
## Performance Best Practices
|
|
564
|
+
|
|
565
|
+
### 1. Use Connection Pools
|
|
566
|
+
|
|
567
|
+
```python
|
|
568
|
+
import asyncio
|
|
569
|
+
import aiohttp
|
|
570
|
+
|
|
571
|
+
async def with_connection_pool():
|
|
572
|
+
"""Use connection pool for efficiency."""
|
|
573
|
+
connector = aiohttp.TCPConnector(limit=100, limit_per_host=10)
|
|
574
|
+
|
|
575
|
+
async with aiohttp.ClientSession(connector=connector) as session:
|
|
576
|
+
tasks = [session.get(f"https://api.example.com/item/{i}") for i in range(50)]
|
|
577
|
+
responses = await asyncio.gather(*tasks)
|
|
578
|
+
return responses
|
|
579
|
+
```
|
|
580
|
+
|
|
581
|
+
### 2. Batch Operations
|
|
582
|
+
|
|
583
|
+
```python
|
|
584
|
+
async def batch_process(items: List[str], batch_size: int = 10):
|
|
585
|
+
"""Process items in batches."""
|
|
586
|
+
for i in range(0, len(items), batch_size):
|
|
587
|
+
batch = items[i:i + batch_size]
|
|
588
|
+
tasks = [process_item(item) for item in batch]
|
|
589
|
+
await asyncio.gather(*tasks)
|
|
590
|
+
print(f"Processed batch {i // batch_size + 1}")
|
|
591
|
+
|
|
592
|
+
async def process_item(item: str):
|
|
593
|
+
"""Process single item."""
|
|
594
|
+
await asyncio.sleep(0.1)
|
|
595
|
+
return f"Processed: {item}"
|
|
596
|
+
```
|
|
597
|
+
|
|
598
|
+
### 3. Avoid Blocking Operations
|
|
599
|
+
|
|
600
|
+
Never block the event loop with synchronous operations. A single blocking call stalls all concurrent tasks.
|
|
601
|
+
|
|
602
|
+
```python
|
|
603
|
+
# BAD - blocks the entire event loop
|
|
604
|
+
async def fetch_data_bad():
|
|
605
|
+
import time
|
|
606
|
+
import requests
|
|
607
|
+
time.sleep(1) # Blocks!
|
|
608
|
+
response = requests.get(url) # Also blocks!
|
|
609
|
+
|
|
610
|
+
# GOOD - use async-native libraries (e.g., httpx for async HTTP)
|
|
611
|
+
import httpx
|
|
612
|
+
|
|
613
|
+
async def fetch_data_good(url: str):
|
|
614
|
+
await asyncio.sleep(1)
|
|
615
|
+
async with httpx.AsyncClient() as client:
|
|
616
|
+
response = await client.get(url)
|
|
617
|
+
```
|
|
618
|
+
|
|
619
|
+
**Wrapping Blocking Code with `asyncio.to_thread()` (Python 3.9+):**
|
|
620
|
+
|
|
621
|
+
When you must use synchronous libraries, offload to a thread pool:
|
|
622
|
+
|
|
623
|
+
```python
|
|
624
|
+
import asyncio
|
|
625
|
+
from pathlib import Path
|
|
626
|
+
|
|
627
|
+
async def read_file_async(path: str) -> str:
|
|
628
|
+
"""Read file without blocking event loop."""
|
|
629
|
+
# asyncio.to_thread() runs sync code in a thread pool
|
|
630
|
+
return await asyncio.to_thread(Path(path).read_text)
|
|
631
|
+
|
|
632
|
+
async def call_sync_library(data: dict) -> dict:
|
|
633
|
+
"""Wrap a synchronous library call."""
|
|
634
|
+
# Useful for sync database drivers, file I/O, CPU work
|
|
635
|
+
return await asyncio.to_thread(sync_library.process, data)
|
|
636
|
+
```
|
|
637
|
+
|
|
638
|
+
**Lower-level approach with `run_in_executor()`:**
|
|
639
|
+
|
|
640
|
+
```python
|
|
641
|
+
import asyncio
|
|
642
|
+
import concurrent.futures
|
|
643
|
+
from typing import Any
|
|
644
|
+
|
|
645
|
+
def blocking_operation(data: Any) -> Any:
|
|
646
|
+
"""CPU-intensive blocking operation."""
|
|
647
|
+
import time
|
|
648
|
+
time.sleep(1)
|
|
649
|
+
return data * 2
|
|
650
|
+
|
|
651
|
+
async def run_in_executor(data: Any) -> Any:
|
|
652
|
+
"""Run blocking operation in thread pool."""
|
|
653
|
+
loop = asyncio.get_running_loop()
|
|
654
|
+
with concurrent.futures.ThreadPoolExecutor() as pool:
|
|
655
|
+
result = await loop.run_in_executor(pool, blocking_operation, data)
|
|
656
|
+
return result
|
|
657
|
+
|
|
658
|
+
async def main():
|
|
659
|
+
results = await asyncio.gather(*[run_in_executor(i) for i in range(5)])
|
|
660
|
+
print(results)
|
|
661
|
+
|
|
662
|
+
asyncio.run(main())
|
|
663
|
+
```
|
|
664
|
+
|
|
665
|
+
## Common Pitfalls
|
|
666
|
+
|
|
667
|
+
### 1. Forgetting await
|
|
668
|
+
|
|
669
|
+
```python
|
|
670
|
+
# Wrong - returns coroutine object, doesn't execute
|
|
671
|
+
result = async_function()
|
|
672
|
+
|
|
673
|
+
# Correct
|
|
674
|
+
result = await async_function()
|
|
675
|
+
```
|
|
676
|
+
|
|
677
|
+
### 2. Blocking the Event Loop
|
|
678
|
+
|
|
679
|
+
```python
|
|
680
|
+
# Wrong - blocks event loop
|
|
681
|
+
import time
|
|
682
|
+
async def bad():
|
|
683
|
+
time.sleep(1) # Blocks!
|
|
684
|
+
|
|
685
|
+
# Correct
|
|
686
|
+
async def good():
|
|
687
|
+
await asyncio.sleep(1) # Non-blocking
|
|
688
|
+
```
|
|
689
|
+
|
|
690
|
+
### 3. Not Handling Cancellation
|
|
691
|
+
|
|
692
|
+
```python
|
|
693
|
+
async def cancelable_task():
|
|
694
|
+
"""Task that handles cancellation."""
|
|
695
|
+
try:
|
|
696
|
+
while True:
|
|
697
|
+
await asyncio.sleep(1)
|
|
698
|
+
print("Working...")
|
|
699
|
+
except asyncio.CancelledError:
|
|
700
|
+
print("Task cancelled, cleaning up...")
|
|
701
|
+
# Perform cleanup
|
|
702
|
+
raise # Re-raise to propagate cancellation
|
|
703
|
+
```
|
|
704
|
+
|
|
705
|
+
### 4. Mixing Sync and Async Code
|
|
706
|
+
|
|
707
|
+
```python
|
|
708
|
+
# Wrong - can't call async from sync directly
|
|
709
|
+
def sync_function():
|
|
710
|
+
result = await async_function() # SyntaxError!
|
|
711
|
+
|
|
712
|
+
# Correct
|
|
713
|
+
def sync_function():
|
|
714
|
+
result = asyncio.run(async_function())
|
|
715
|
+
```
|
|
716
|
+
|
|
717
|
+
## Testing Async Code
|
|
718
|
+
|
|
719
|
+
```python
|
|
720
|
+
import asyncio
|
|
721
|
+
import pytest
|
|
722
|
+
|
|
723
|
+
# Using pytest-asyncio
|
|
724
|
+
@pytest.mark.asyncio
|
|
725
|
+
async def test_async_function():
|
|
726
|
+
"""Test async function."""
|
|
727
|
+
result = await fetch_data("https://api.example.com")
|
|
728
|
+
assert result is not None
|
|
729
|
+
|
|
730
|
+
@pytest.mark.asyncio
|
|
731
|
+
async def test_with_timeout():
|
|
732
|
+
"""Test with timeout."""
|
|
733
|
+
with pytest.raises(asyncio.TimeoutError):
|
|
734
|
+
await asyncio.wait_for(slow_operation(5), timeout=1.0)
|
|
735
|
+
```
|