@cubis/foundry 0.3.32 → 0.3.34
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/CHANGELOG.md +30 -0
- package/README.md +23 -0
- package/bin/cubis.js +461 -37
- package/mcp/README.md +17 -0
- package/mcp/catalogs/default.json +14 -0
- package/mcp/powers/atlassian-mcp/POWER.md +91 -0
- package/mcp/powers/atlassian-mcp/SKILL.md +88 -0
- package/mcp/powers/building-mcp-server-on-cloudflare/POWER.md +261 -0
- package/mcp/powers/building-mcp-server-on-cloudflare/SKILL.md +258 -0
- package/mcp/powers/datadog-automation/POWER.md +238 -0
- package/mcp/powers/datadog-automation/SKILL.md +235 -0
- package/mcp/powers/github-automation/POWER.md +230 -0
- package/mcp/powers/github-automation/SKILL.md +227 -0
- package/mcp/powers/mcp-builder/POWER.md +179 -0
- package/mcp/powers/mcp-builder/SKILL.md +176 -0
- package/mcp/powers/mcp-developer/POWER.md +88 -0
- package/mcp/powers/mcp-developer/SKILL.md +85 -0
- package/mcp/powers/postman/POWER.md +243 -0
- package/mcp/powers/postman/SKILL.md +240 -0
- package/mcp/powers/sentry-automation/POWER.md +235 -0
- package/mcp/powers/sentry-automation/SKILL.md +232 -0
- package/mcp/skills/atlassian-mcp/SKILL.md +88 -0
- package/mcp/skills/building-mcp-server-on-cloudflare/SKILL.md +258 -0
- package/mcp/skills/datadog-automation/SKILL.md +235 -0
- package/mcp/skills/github-automation/SKILL.md +227 -0
- package/mcp/skills/mcp-builder/SKILL.md +176 -0
- package/mcp/skills/mcp-developer/SKILL.md +85 -0
- package/mcp/skills/postman/SKILL.md +240 -0
- package/mcp/skills/sentry-automation/SKILL.md +232 -0
- package/package.json +2 -1
- package/workflows/powers/architecture/POWER.md +12 -46
- package/workflows/powers/architecture/SKILL.md +12 -46
- package/workflows/powers/atlassian-mcp/POWER.md +11 -81
- package/workflows/powers/atlassian-mcp/SKILL.md +11 -81
- package/workflows/powers/building-mcp-server-on-cloudflare/POWER.md +12 -252
- package/workflows/powers/building-mcp-server-on-cloudflare/SKILL.md +12 -252
- package/workflows/powers/code-review-checklist/POWER.md +11 -99
- package/workflows/powers/code-review-checklist/SKILL.md +11 -99
- package/workflows/powers/csharp-pro/POWER.md +43 -0
- package/workflows/powers/csharp-pro/SKILL.md +40 -0
- package/workflows/powers/database-design/POWER.md +47 -5
- package/workflows/powers/database-design/SKILL.md +45 -4
- package/workflows/powers/database-optimizer/POWER.md +11 -23
- package/workflows/powers/database-optimizer/SKILL.md +5 -5
- package/workflows/powers/datadog-automation/POWER.md +12 -229
- package/workflows/powers/datadog-automation/SKILL.md +12 -229
- package/workflows/powers/debugging-wizard/POWER.md +12 -78
- package/workflows/powers/debugging-wizard/SKILL.md +12 -78
- package/workflows/powers/deployment-procedures/POWER.md +11 -231
- package/workflows/powers/deployment-procedures/SKILL.md +11 -231
- package/workflows/powers/drift-flutter/POWER.md +51 -0
- package/workflows/powers/drift-flutter/SKILL.md +2 -2
- package/workflows/powers/github-automation/POWER.md +12 -221
- package/workflows/powers/github-automation/SKILL.md +12 -221
- package/workflows/powers/golang-pro/POWER.md +38 -66
- package/workflows/powers/golang-pro/SKILL.md +38 -66
- package/workflows/powers/java-pro/POWER.md +43 -0
- package/workflows/powers/java-pro/SKILL.md +40 -0
- package/workflows/powers/javascript-pro/POWER.md +37 -67
- package/workflows/powers/javascript-pro/SKILL.md +37 -67
- package/workflows/powers/kotlin-pro/POWER.md +43 -0
- package/workflows/powers/kotlin-pro/SKILL.md +40 -0
- package/workflows/powers/mcp-builder/POWER.md +12 -170
- package/workflows/powers/mcp-builder/SKILL.md +12 -170
- package/workflows/powers/mcp-developer/POWER.md +11 -78
- package/workflows/powers/mcp-developer/SKILL.md +11 -78
- package/workflows/powers/nextjs-developer/POWER.md +41 -148
- package/workflows/powers/nextjs-developer/SKILL.md +41 -148
- package/workflows/powers/nextjs-react-expert/POWER.md +10 -281
- package/workflows/powers/nextjs-react-expert/SKILL.md +10 -281
- package/workflows/powers/nodejs-best-practices/POWER.md +33 -317
- package/workflows/powers/nodejs-best-practices/SKILL.md +33 -317
- package/workflows/powers/postman/POWER.md +11 -233
- package/workflows/powers/postman/SKILL.md +11 -233
- package/workflows/powers/python-patterns/POWER.md +11 -431
- package/workflows/powers/python-patterns/SKILL.md +11 -431
- package/workflows/powers/python-pro/POWER.md +38 -66
- package/workflows/powers/python-pro/SKILL.md +38 -66
- package/workflows/powers/react-best-practices/POWER.md +35 -118
- package/workflows/powers/react-best-practices/SKILL.md +35 -118
- package/workflows/powers/react-expert/POWER.md +38 -66
- package/workflows/powers/react-expert/SKILL.md +38 -66
- package/workflows/powers/rust-engineer/POWER.md +10 -75
- package/workflows/powers/rust-engineer/SKILL.md +10 -75
- package/workflows/powers/rust-pro/POWER.md +36 -163
- package/workflows/powers/rust-pro/SKILL.md +36 -163
- package/workflows/powers/sentry-automation/POWER.md +12 -226
- package/workflows/powers/sentry-automation/SKILL.md +12 -226
- package/workflows/powers/server-management/POWER.md +11 -151
- package/workflows/powers/server-management/SKILL.md +11 -151
- package/workflows/powers/tdd-workflow/POWER.md +12 -140
- package/workflows/powers/tdd-workflow/SKILL.md +12 -140
- package/workflows/powers/testing-patterns/POWER.md +11 -168
- package/workflows/powers/testing-patterns/SKILL.md +11 -168
- package/workflows/powers/typescript-pro/POWER.md +43 -70
- package/workflows/powers/typescript-pro/SKILL.md +43 -70
- package/workflows/powers/vercel-ai/POWER.md +43 -0
- package/workflows/powers/vercel-ai/SKILL.md +40 -0
- package/workflows/powers/vercel-ai-gateway/POWER.md +11 -69
- package/workflows/powers/vercel-ai-gateway/SKILL.md +11 -69
- package/workflows/powers/vercel-ai-sdk/POWER.md +11 -49
- package/workflows/powers/vercel-ai-sdk/SKILL.md +11 -49
- package/workflows/powers/vercel-caching/POWER.md +10 -72
- package/workflows/powers/vercel-caching/SKILL.md +10 -72
- package/workflows/powers/vercel-cli/POWER.md +11 -75
- package/workflows/powers/vercel-cli/SKILL.md +11 -75
- package/workflows/powers/vercel-delivery/POWER.md +45 -0
- package/workflows/powers/vercel-delivery/SKILL.md +42 -0
- package/workflows/powers/vercel-deployments/POWER.md +10 -90
- package/workflows/powers/vercel-deployments/SKILL.md +10 -90
- package/workflows/powers/vercel-domains/POWER.md +10 -69
- package/workflows/powers/vercel-domains/SKILL.md +10 -69
- package/workflows/powers/vercel-firewall/POWER.md +10 -61
- package/workflows/powers/vercel-firewall/SKILL.md +10 -61
- package/workflows/powers/vercel-flags/POWER.md +10 -62
- package/workflows/powers/vercel-flags/SKILL.md +10 -62
- package/workflows/powers/vercel-functions/POWER.md +10 -70
- package/workflows/powers/vercel-functions/SKILL.md +10 -70
- package/workflows/powers/vercel-routing/POWER.md +10 -68
- package/workflows/powers/vercel-routing/SKILL.md +10 -68
- package/workflows/powers/vercel-runtime/POWER.md +43 -0
- package/workflows/powers/vercel-runtime/SKILL.md +40 -0
- package/workflows/powers/vercel-security/POWER.md +43 -0
- package/workflows/powers/vercel-security/SKILL.md +40 -0
- package/workflows/powers/vulnerability-scanner/POWER.md +11 -266
- package/workflows/powers/vulnerability-scanner/SKILL.md +11 -266
- package/workflows/scripts/generate-powers.mjs +95 -202
- package/workflows/skills/atlassian-mcp/SKILL.md +11 -81
- package/workflows/skills/building-mcp-server-on-cloudflare/SKILL.md +12 -252
- package/workflows/skills/catalogs/core.json +30 -0
- package/workflows/skills/catalogs/web-backend.json +70 -0
- package/workflows/skills/csharp-pro/SKILL.md +40 -0
- package/workflows/skills/datadog-automation/SKILL.md +12 -229
- package/workflows/skills/github-automation/SKILL.md +12 -221
- package/workflows/skills/golang-pro/SKILL.md +38 -66
- package/workflows/skills/java-pro/SKILL.md +40 -0
- package/workflows/skills/javascript-pro/SKILL.md +37 -67
- package/workflows/skills/kotlin-pro/SKILL.md +40 -0
- package/workflows/skills/mcp-builder/SKILL.md +12 -170
- package/workflows/skills/mcp-developer/SKILL.md +11 -78
- package/workflows/skills/nextjs-developer/SKILL.md +41 -148
- package/workflows/skills/nextjs-react-expert/SKILL.md +5 -11
- package/workflows/skills/nodejs-best-practices/SKILL.md +33 -317
- package/workflows/skills/postman/SKILL.md +11 -233
- package/workflows/skills/python-pro/SKILL.md +38 -66
- package/workflows/skills/react-best-practices/SKILL.md +35 -118
- package/workflows/skills/react-expert/SKILL.md +38 -66
- package/workflows/skills/rust-pro/SKILL.md +36 -163
- package/workflows/skills/sentry-automation/SKILL.md +12 -226
- package/workflows/skills/skills_index.json +43 -57
- package/workflows/skills/typescript-pro/SKILL.md +43 -70
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/backend-specialist.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/code-archaeologist.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/database-architect.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/debugger.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/devops-engineer.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/documentation-writer.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/explorer-agent.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/frontend-specialist.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/game-developer.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/mobile-developer.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/orchestrator.md +28 -400
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/penetration-tester.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/performance-optimizer.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/product-manager.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/product-owner.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/project-planner.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/qa-automation-engineer.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/security-auditor.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/seo-specialist.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/test-engineer.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/vercel-expert.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/rules/GEMINI.md +7 -6
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/backend-specialist.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/code-archaeologist.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/database-architect.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/debugger.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/devops-engineer.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/documentation-writer.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/explorer-agent.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/frontend-specialist.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/game-developer.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/mobile-developer.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/orchestrator.md +28 -400
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/penetration-tester.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/performance-optimizer.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/product-manager.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/product-owner.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/project-planner.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/qa-automation-engineer.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/security-auditor.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/seo-specialist.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/test-engineer.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/vercel-expert.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/rules/AGENTS.md +7 -6
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/backend-specialist.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/code-archaeologist.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/database-architect.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/debugger.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/devops-engineer.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/documentation-writer.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/explorer-agent.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/frontend-specialist.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/game-developer.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/mobile-developer.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/orchestrator.md +28 -400
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/penetration-tester.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/performance-optimizer.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/product-manager.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/product-owner.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/project-planner.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/qa-automation-engineer.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/security-auditor.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/seo-specialist.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/test-engineer.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/vercel-expert.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/copilot/rules/AGENTS.md +7 -6
- package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/csharp-pro/SKILL.md +40 -0
- package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/golang-pro/SKILL.md +38 -66
- package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/java-pro/SKILL.md +40 -0
- package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/javascript-pro/SKILL.md +37 -67
- package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/kotlin-pro/SKILL.md +40 -0
- package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/nextjs-developer/SKILL.md +41 -148
- package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/nextjs-react-expert/SKILL.md +6 -12
- package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/nodejs-best-practices/SKILL.md +33 -317
- package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/python-pro/SKILL.md +38 -66
- package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/react-best-practices/SKILL.md +35 -118
- package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/react-expert/SKILL.md +38 -66
- package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/rust-pro/SKILL.md +36 -163
- package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/skills_index.json +43 -57
- package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/typescript-pro/SKILL.md +43 -70
- package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/csharp-pro/SKILL.md +40 -0
- package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/golang-pro/SKILL.md +38 -66
- package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/java-pro/SKILL.md +40 -0
- package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/javascript-pro/SKILL.md +37 -67
- package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/kotlin-pro/SKILL.md +40 -0
- package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/nextjs-developer/SKILL.md +41 -148
- package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/nextjs-react-expert/SKILL.md +6 -12
- package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/nodejs-best-practices/SKILL.md +33 -317
- package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/python-pro/SKILL.md +38 -66
- package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/react-best-practices/SKILL.md +35 -118
- package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/react-expert/SKILL.md +38 -66
- package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/rust-pro/SKILL.md +36 -163
- package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/skills_index.json +43 -57
- package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/typescript-pro/SKILL.md +43 -70
- package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/csharp-pro/SKILL.md +40 -0
- package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/golang-pro/SKILL.md +38 -66
- package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/java-pro/SKILL.md +40 -0
- package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/javascript-pro/SKILL.md +37 -67
- package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/kotlin-pro/SKILL.md +40 -0
- package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/nextjs-developer/SKILL.md +41 -148
- package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/nextjs-react-expert/SKILL.md +6 -12
- package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/nodejs-best-practices/SKILL.md +33 -317
- package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/python-pro/SKILL.md +38 -66
- package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/react-best-practices/SKILL.md +35 -118
- package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/react-expert/SKILL.md +38 -66
- package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/rust-pro/SKILL.md +36 -163
- package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/skills_index.json +43 -57
- package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/typescript-pro/SKILL.md +43 -70
- package/workflows/workflows/agent-environment-setup/shared/agents/backend-specialist.md +1 -1
- package/workflows/workflows/agent-environment-setup/shared/agents/code-archaeologist.md +1 -1
- package/workflows/workflows/agent-environment-setup/shared/agents/database-architect.md +1 -1
- package/workflows/workflows/agent-environment-setup/shared/agents/debugger.md +1 -1
- package/workflows/workflows/agent-environment-setup/shared/agents/devops-engineer.md +1 -1
- package/workflows/workflows/agent-environment-setup/shared/agents/documentation-writer.md +1 -1
- package/workflows/workflows/agent-environment-setup/shared/agents/explorer-agent.md +1 -1
- package/workflows/workflows/agent-environment-setup/shared/agents/frontend-specialist.md +1 -1
- package/workflows/workflows/agent-environment-setup/shared/agents/game-developer.md +1 -1
- package/workflows/workflows/agent-environment-setup/shared/agents/mobile-developer.md +1 -1
- package/workflows/workflows/agent-environment-setup/shared/agents/orchestrator.md +28 -400
- package/workflows/workflows/agent-environment-setup/shared/agents/penetration-tester.md +1 -1
- package/workflows/workflows/agent-environment-setup/shared/agents/performance-optimizer.md +1 -1
- package/workflows/workflows/agent-environment-setup/shared/agents/product-manager.md +1 -1
- package/workflows/workflows/agent-environment-setup/shared/agents/product-owner.md +1 -1
- package/workflows/workflows/agent-environment-setup/shared/agents/project-planner.md +1 -1
- package/workflows/workflows/agent-environment-setup/shared/agents/qa-automation-engineer.md +1 -1
- package/workflows/workflows/agent-environment-setup/shared/agents/security-auditor.md +1 -1
- package/workflows/workflows/agent-environment-setup/shared/agents/seo-specialist.md +1 -1
- package/workflows/workflows/agent-environment-setup/shared/agents/test-engineer.md +1 -1
- package/workflows/workflows/agent-environment-setup/shared/agents/vercel-expert.md +1 -1
- package/workflows/powers/sub-agents/scripts/run_subagent.py.bak +0 -512
- /package/{workflows → mcp}/powers/atlassian-mcp/steering/authentication-patterns.md +0 -0
- /package/{workflows → mcp}/powers/atlassian-mcp/steering/common-workflows.md +0 -0
- /package/{workflows → mcp}/powers/atlassian-mcp/steering/confluence-operations.md +0 -0
- /package/{workflows → mcp}/powers/atlassian-mcp/steering/jira-queries.md +0 -0
- /package/{workflows → mcp}/powers/atlassian-mcp/steering/mcp-server-setup.md +0 -0
- /package/{workflows → mcp}/powers/building-mcp-server-on-cloudflare/steering/examples.md +0 -0
- /package/{workflows → mcp}/powers/building-mcp-server-on-cloudflare/steering/oauth-setup.md +0 -0
- /package/{workflows → mcp}/powers/building-mcp-server-on-cloudflare/steering/troubleshooting.md +0 -0
- /package/{workflows → mcp}/powers/mcp-builder/LICENSE.txt +0 -0
- /package/{workflows → mcp}/powers/mcp-builder/reference/evaluation.md +0 -0
- /package/{workflows → mcp}/powers/mcp-builder/reference/mcp_best_practices.md +0 -0
- /package/{workflows → mcp}/powers/mcp-builder/reference/node_mcp_server.md +0 -0
- /package/{workflows → mcp}/powers/mcp-builder/reference/python_mcp_server.md +0 -0
- /package/{workflows → mcp}/powers/mcp-builder/scripts/connections.py +0 -0
- /package/{workflows → mcp}/powers/mcp-builder/scripts/evaluation.py +0 -0
- /package/{workflows → mcp}/powers/mcp-builder/scripts/example_evaluation.xml +0 -0
- /package/{workflows → mcp}/powers/mcp-builder/scripts/requirements.txt +0 -0
- /package/{workflows → mcp}/powers/mcp-developer/steering/protocol.md +0 -0
- /package/{workflows → mcp}/powers/mcp-developer/steering/python-sdk.md +0 -0
- /package/{workflows → mcp}/powers/mcp-developer/steering/resources.md +0 -0
- /package/{workflows → mcp}/powers/mcp-developer/steering/tools.md +0 -0
- /package/{workflows → mcp}/powers/mcp-developer/steering/typescript-sdk.md +0 -0
- /package/{workflows → mcp}/powers/postman/flutter-expert/POWER.md +0 -0
- /package/{workflows → mcp}/powers/postman/flutter-expert/SKILL.md +0 -0
- /package/{workflows → mcp}/powers/postman/flutter-expert/steering/bloc-state.md +0 -0
- /package/{workflows → mcp}/powers/postman/flutter-expert/steering/engineering-principles.md +0 -0
- /package/{workflows → mcp}/powers/postman/flutter-expert/steering/gorouter-navigation.md +0 -0
- /package/{workflows → mcp}/powers/postman/flutter-expert/steering/performance.md +0 -0
- /package/{workflows → mcp}/powers/postman/flutter-expert/steering/project-structure.md +0 -0
- /package/{workflows → mcp}/powers/postman/flutter-expert/steering/riverpod-state.md +0 -0
- /package/{workflows → mcp}/powers/postman/flutter-expert/steering/widget-patterns.md +0 -0
- /package/{workflows → mcp}/powers/postman/flutter-security-reviewer/POWER.md +0 -0
- /package/{workflows → mcp}/powers/postman/flutter-security-reviewer/SKILL.md +0 -0
- /package/{workflows → mcp}/powers/postman/flutter-security-reviewer/steering/log_redaction.md +0 -0
- /package/{workflows → mcp}/powers/postman/flutter-security-reviewer/steering/network_hardening.md +0 -0
- /package/{workflows → mcp}/powers/postman/flutter-security-reviewer/steering/secret-scanning.md +0 -0
- /package/{workflows → mcp}/powers/postman/flutter-security-reviewer/steering/secure_storage_policy.md +0 -0
- /package/{workflows → mcp}/powers/postman/flutter-security-reviewer/steering/vulnerability-patterns.md +0 -0
- /package/{workflows → mcp}/powers/postman/flutter-security-reviewer/templates/security_review_response.md +0 -0
- /package/{workflows → mcp}/powers/postman/flutter-test-master/POWER.md +0 -0
- /package/{workflows → mcp}/powers/postman/flutter-test-master/SKILL.md +0 -0
- /package/{workflows → mcp}/powers/postman/flutter-test-master/steering/golden-testing.md +0 -0
- /package/{workflows → mcp}/powers/postman/flutter-test-master/steering/integration-testing.md +0 -0
- /package/{workflows → mcp}/powers/postman/flutter-test-master/steering/property-testing.md +0 -0
- /package/{workflows → mcp}/powers/postman/flutter-test-master/steering/riverpod-testing.md +0 -0
- /package/{workflows → mcp}/powers/postman/flutter-test-master/steering/test-utilities.md +0 -0
- /package/{workflows → mcp}/powers/postman/flutter-test-master/steering/unit-testing.md +0 -0
- /package/{workflows → mcp}/powers/postman/flutter-test-master/steering/widget-testing.md +0 -0
- /package/{workflows → mcp}/powers/postman/git-commit/POWER.md +0 -0
- /package/{workflows → mcp}/powers/postman/git-commit/SKILL.md +0 -0
- /package/{workflows → mcp}/powers/postman/gorouter-restoration/POWER.md +0 -0
- /package/{workflows → mcp}/powers/postman/gorouter-restoration/SKILL.md +0 -0
- /package/{workflows → mcp}/powers/postman/gorouter-restoration/steering/guard_patterns.md +0 -0
- /package/{workflows → mcp}/powers/postman/gorouter-restoration/steering/tab_preservation.md +0 -0
- /package/{workflows → mcp}/powers/postman/gorouter-restoration/templates/guard_redirect.md +0 -0
- /package/{workflows → mcp}/powers/postman/gorouter-restoration/templates/stateful_shell_skeleton.md +0 -0
- /package/{workflows → mcp}/powers/postman/mcp.json +0 -0
- /package/{workflows → mcp}/powers/postman/microservices-architect/POWER.md +0 -0
- /package/{workflows → mcp}/powers/postman/microservices-architect/SKILL.md +0 -0
- /package/{workflows → mcp}/powers/postman/microservices-architect/steering/communication.md +0 -0
- /package/{workflows → mcp}/powers/postman/microservices-architect/steering/data.md +0 -0
- /package/{workflows → mcp}/powers/postman/microservices-architect/steering/decomposition.md +0 -0
- /package/{workflows → mcp}/powers/postman/microservices-architect/steering/observability.md +0 -0
- /package/{workflows → mcp}/powers/postman/microservices-architect/steering/patterns.md +0 -0
- /package/{workflows → mcp}/powers/postman/nestjs-expert/POWER.md +0 -0
- /package/{workflows → mcp}/powers/postman/nestjs-expert/SKILL.md +0 -0
- /package/{workflows → mcp}/powers/postman/nestjs-expert/steering/authentication.md +0 -0
- /package/{workflows → mcp}/powers/postman/nestjs-expert/steering/controllers-routing.md +0 -0
- /package/{workflows → mcp}/powers/postman/nestjs-expert/steering/dtos-validation.md +0 -0
- /package/{workflows → mcp}/powers/postman/nestjs-expert/steering/migration-from-express.md +0 -0
- /package/{workflows → mcp}/powers/postman/nestjs-expert/steering/secure-sessions.md +0 -0
- /package/{workflows → mcp}/powers/postman/nestjs-expert/steering/services-di.md +0 -0
- /package/{workflows → mcp}/powers/postman/nestjs-expert/steering/strangler-fig-pattern.md +0 -0
- /package/{workflows → mcp}/powers/postman/nestjs-expert/steering/testing-patterns.md +0 -0
- /package/{workflows → mcp}/powers/postman/oneup-design/POWER.md +0 -0
- /package/{workflows → mcp}/powers/postman/oneup-design/SKILL.md +0 -0
- /package/{workflows → mcp}/powers/postman/oneup-design/steering/colors.md +0 -0
- /package/{workflows → mcp}/powers/postman/oneup-design/steering/components.md +0 -0
- /package/{workflows → mcp}/powers/postman/oneup-design/steering/spacing.md +0 -0
- /package/{workflows → mcp}/powers/postman/openapi-docs/POWER.md +0 -0
- /package/{workflows → mcp}/powers/postman/openapi-docs/SKILL.md +0 -0
- /package/{workflows → mcp}/powers/postman/openapi-docs/steering/crud-templates.md +0 -0
- /package/{workflows → mcp}/powers/postman/openapi-docs/steering/framework-express.md +0 -0
- /package/{workflows → mcp}/powers/postman/openapi-docs/steering/framework-fastapi.md +0 -0
- /package/{workflows → mcp}/powers/postman/openapi-docs/steering/framework-nestjs.md +0 -0
- /package/{workflows → mcp}/powers/postman/openapi-docs/steering/framework-raw-openapi.md +0 -0
- /package/{workflows → mcp}/powers/postman/openapi-docs/steering/openapi-checklist.md +0 -0
- /package/{workflows → mcp}/powers/postman/openapi-docs/steering/stoplight-ui.md +0 -0
- /package/{workflows → mcp}/powers/postman/steering/steering.md +0 -0
- /package/{workflows → mcp}/skills/atlassian-mcp/references/authentication-patterns.md +0 -0
- /package/{workflows → mcp}/skills/atlassian-mcp/references/common-workflows.md +0 -0
- /package/{workflows → mcp}/skills/atlassian-mcp/references/confluence-operations.md +0 -0
- /package/{workflows → mcp}/skills/atlassian-mcp/references/jira-queries.md +0 -0
- /package/{workflows → mcp}/skills/atlassian-mcp/references/mcp-server-setup.md +0 -0
- /package/{workflows → mcp}/skills/building-mcp-server-on-cloudflare/references/examples.md +0 -0
- /package/{workflows → mcp}/skills/building-mcp-server-on-cloudflare/references/oauth-setup.md +0 -0
- /package/{workflows → mcp}/skills/building-mcp-server-on-cloudflare/references/tool-patterns.md +0 -0
- /package/{workflows → mcp}/skills/building-mcp-server-on-cloudflare/references/troubleshooting.md +0 -0
- /package/{workflows → mcp}/skills/mcp-builder/LICENSE.txt +0 -0
- /package/{workflows → mcp}/skills/mcp-builder/reference/evaluation.md +0 -0
- /package/{workflows → mcp}/skills/mcp-builder/reference/mcp_best_practices.md +0 -0
- /package/{workflows → mcp}/skills/mcp-builder/reference/node_mcp_server.md +0 -0
- /package/{workflows → mcp}/skills/mcp-builder/reference/python_mcp_server.md +0 -0
- /package/{workflows → mcp}/skills/mcp-builder/scripts/connections.py +0 -0
- /package/{workflows → mcp}/skills/mcp-builder/scripts/evaluation.py +0 -0
- /package/{workflows → mcp}/skills/mcp-builder/scripts/example_evaluation.xml +0 -0
- /package/{workflows → mcp}/skills/mcp-builder/scripts/requirements.txt +0 -0
- /package/{workflows → mcp}/skills/mcp-developer/references/protocol.md +0 -0
- /package/{workflows → mcp}/skills/mcp-developer/references/python-sdk.md +0 -0
- /package/{workflows → mcp}/skills/mcp-developer/references/resources.md +0 -0
- /package/{workflows → mcp}/skills/mcp-developer/references/tools.md +0 -0
- /package/{workflows → mcp}/skills/mcp-developer/references/typescript-sdk.md +0 -0
- /package/{workflows → mcp}/skills/postman/POWER.md +0 -0
- /package/{workflows → mcp}/skills/postman/flutter-expert/POWER.md +0 -0
- /package/{workflows → mcp}/skills/postman/flutter-expert/SKILL.md +0 -0
- /package/{workflows → mcp}/skills/postman/flutter-expert/references/bloc-state.md +0 -0
- /package/{workflows → mcp}/skills/postman/flutter-expert/references/engineering-principles.md +0 -0
- /package/{workflows → mcp}/skills/postman/flutter-expert/references/gorouter-navigation.md +0 -0
- /package/{workflows → mcp}/skills/postman/flutter-expert/references/performance.md +0 -0
- /package/{workflows → mcp}/skills/postman/flutter-expert/references/project-structure.md +0 -0
- /package/{workflows → mcp}/skills/postman/flutter-expert/references/riverpod-state.md +0 -0
- /package/{workflows → mcp}/skills/postman/flutter-expert/references/widget-patterns.md +0 -0
- /package/{workflows → mcp}/skills/postman/flutter-security-reviewer/POWER.md +0 -0
- /package/{workflows → mcp}/skills/postman/flutter-security-reviewer/SKILL.md +0 -0
- /package/{workflows → mcp}/skills/postman/flutter-security-reviewer/references/log_redaction.md +0 -0
- /package/{workflows → mcp}/skills/postman/flutter-security-reviewer/references/network_hardening.md +0 -0
- /package/{workflows → mcp}/skills/postman/flutter-security-reviewer/references/secret-scanning.md +0 -0
- /package/{workflows → mcp}/skills/postman/flutter-security-reviewer/references/secure_storage_policy.md +0 -0
- /package/{workflows → mcp}/skills/postman/flutter-security-reviewer/references/vulnerability-patterns.md +0 -0
- /package/{workflows → mcp}/skills/postman/flutter-security-reviewer/templates/security_review_response.md +0 -0
- /package/{workflows → mcp}/skills/postman/flutter-test-master/POWER.md +0 -0
- /package/{workflows → mcp}/skills/postman/flutter-test-master/SKILL.md +0 -0
- /package/{workflows → mcp}/skills/postman/flutter-test-master/references/golden-testing.md +0 -0
- /package/{workflows → mcp}/skills/postman/flutter-test-master/references/integration-testing.md +0 -0
- /package/{workflows → mcp}/skills/postman/flutter-test-master/references/property-testing.md +0 -0
- /package/{workflows → mcp}/skills/postman/flutter-test-master/references/riverpod-testing.md +0 -0
- /package/{workflows → mcp}/skills/postman/flutter-test-master/references/test-utilities.md +0 -0
- /package/{workflows → mcp}/skills/postman/flutter-test-master/references/unit-testing.md +0 -0
- /package/{workflows → mcp}/skills/postman/flutter-test-master/references/widget-testing.md +0 -0
- /package/{workflows → mcp}/skills/postman/git-commit/POWER.md +0 -0
- /package/{workflows → mcp}/skills/postman/git-commit/SKILL.md +0 -0
- /package/{workflows → mcp}/skills/postman/gorouter-restoration/POWER.md +0 -0
- /package/{workflows → mcp}/skills/postman/gorouter-restoration/SKILL.md +0 -0
- /package/{workflows → mcp}/skills/postman/gorouter-restoration/references/guard_patterns.md +0 -0
- /package/{workflows → mcp}/skills/postman/gorouter-restoration/references/tab_preservation.md +0 -0
- /package/{workflows → mcp}/skills/postman/gorouter-restoration/templates/guard_redirect.md +0 -0
- /package/{workflows → mcp}/skills/postman/gorouter-restoration/templates/stateful_shell_skeleton.md +0 -0
- /package/{workflows → mcp}/skills/postman/mcp.json +0 -0
- /package/{workflows → mcp}/skills/postman/microservices-architect/POWER.md +0 -0
- /package/{workflows → mcp}/skills/postman/microservices-architect/SKILL.md +0 -0
- /package/{workflows → mcp}/skills/postman/microservices-architect/references/communication.md +0 -0
- /package/{workflows → mcp}/skills/postman/microservices-architect/references/data.md +0 -0
- /package/{workflows → mcp}/skills/postman/microservices-architect/references/decomposition.md +0 -0
- /package/{workflows → mcp}/skills/postman/microservices-architect/references/observability.md +0 -0
- /package/{workflows → mcp}/skills/postman/microservices-architect/references/patterns.md +0 -0
- /package/{workflows → mcp}/skills/postman/nestjs-expert/POWER.md +0 -0
- /package/{workflows → mcp}/skills/postman/nestjs-expert/SKILL.md +0 -0
- /package/{workflows → mcp}/skills/postman/nestjs-expert/references/authentication.md +0 -0
- /package/{workflows → mcp}/skills/postman/nestjs-expert/references/controllers-routing.md +0 -0
- /package/{workflows → mcp}/skills/postman/nestjs-expert/references/dtos-validation.md +0 -0
- /package/{workflows → mcp}/skills/postman/nestjs-expert/references/migration-from-express.md +0 -0
- /package/{workflows → mcp}/skills/postman/nestjs-expert/references/secure-sessions.md +0 -0
- /package/{workflows → mcp}/skills/postman/nestjs-expert/references/services-di.md +0 -0
- /package/{workflows → mcp}/skills/postman/nestjs-expert/references/strangler-fig-pattern.md +0 -0
- /package/{workflows → mcp}/skills/postman/nestjs-expert/references/testing-patterns.md +0 -0
- /package/{workflows → mcp}/skills/postman/oneup-design/POWER.md +0 -0
- /package/{workflows → mcp}/skills/postman/oneup-design/SKILL.md +0 -0
- /package/{workflows → mcp}/skills/postman/oneup-design/references/colors.md +0 -0
- /package/{workflows → mcp}/skills/postman/oneup-design/references/components.md +0 -0
- /package/{workflows → mcp}/skills/postman/oneup-design/references/spacing.md +0 -0
- /package/{workflows → mcp}/skills/postman/openapi-docs/POWER.md +0 -0
- /package/{workflows → mcp}/skills/postman/openapi-docs/SKILL.md +0 -0
- /package/{workflows → mcp}/skills/postman/openapi-docs/references/crud-templates.md +0 -0
- /package/{workflows → mcp}/skills/postman/openapi-docs/references/framework-express.md +0 -0
- /package/{workflows → mcp}/skills/postman/openapi-docs/references/framework-fastapi.md +0 -0
- /package/{workflows → mcp}/skills/postman/openapi-docs/references/framework-nestjs.md +0 -0
- /package/{workflows → mcp}/skills/postman/openapi-docs/references/framework-raw-openapi.md +0 -0
- /package/{workflows → mcp}/skills/postman/openapi-docs/references/openapi-checklist.md +0 -0
- /package/{workflows → mcp}/skills/postman/openapi-docs/references/stoplight-ui.md +0 -0
- /package/{workflows → mcp}/skills/postman/references/steering.md +0 -0
|
@@ -1,441 +1,21 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: python-patterns
|
|
3
|
-
description:
|
|
4
|
-
|
|
3
|
+
description: "Compatibility alias skill. Deprecated: use python-pro."
|
|
4
|
+
metadata:
|
|
5
|
+
deprecated: true
|
|
6
|
+
replaced_by: python-pro
|
|
7
|
+
removal_target: v0.6.0
|
|
5
8
|
---
|
|
6
9
|
|
|
7
10
|
# Python Patterns
|
|
8
11
|
|
|
9
|
-
|
|
10
|
-
> **Learn to THINK, not memorize patterns.**
|
|
12
|
+
## Compatibility Alias
|
|
11
13
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
## ⚠️ How to Use This Skill
|
|
15
|
-
|
|
16
|
-
This skill teaches **decision-making principles**, not fixed code to copy.
|
|
17
|
-
|
|
18
|
-
- ASK user for framework preference when unclear
|
|
19
|
-
- Choose async vs sync based on CONTEXT
|
|
20
|
-
- Don't default to same framework every time
|
|
21
|
-
|
|
22
|
-
---
|
|
23
|
-
|
|
24
|
-
## 1. Framework Selection (2025)
|
|
25
|
-
|
|
26
|
-
### Decision Tree
|
|
27
|
-
|
|
28
|
-
```
|
|
29
|
-
What are you building?
|
|
30
|
-
│
|
|
31
|
-
├── API-first / Microservices
|
|
32
|
-
│ └── FastAPI (async, modern, fast)
|
|
33
|
-
│
|
|
34
|
-
├── Full-stack web / CMS / Admin
|
|
35
|
-
│ └── Django (batteries-included)
|
|
36
|
-
│
|
|
37
|
-
├── Simple / Script / Learning
|
|
38
|
-
│ └── Flask (minimal, flexible)
|
|
39
|
-
│
|
|
40
|
-
├── AI/ML API serving
|
|
41
|
-
│ └── FastAPI (Pydantic, async, uvicorn)
|
|
42
|
-
│
|
|
43
|
-
└── Background workers
|
|
44
|
-
└── Celery + any framework
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
### Comparison Principles
|
|
48
|
-
|
|
49
|
-
| Factor | FastAPI | Django | Flask |
|
|
50
|
-
|--------|---------|--------|-------|
|
|
51
|
-
| **Best for** | APIs, microservices | Full-stack, CMS | Simple, learning |
|
|
52
|
-
| **Async** | Native | Django 5.0+ | Via extensions |
|
|
53
|
-
| **Admin** | Manual | Built-in | Via extensions |
|
|
54
|
-
| **ORM** | Choose your own | Django ORM | Choose your own |
|
|
55
|
-
| **Learning curve** | Low | Medium | Low |
|
|
56
|
-
|
|
57
|
-
### Selection Questions to Ask:
|
|
58
|
-
1. Is this API-only or full-stack?
|
|
59
|
-
2. Need admin interface?
|
|
60
|
-
3. Team familiar with async?
|
|
61
|
-
4. Existing infrastructure?
|
|
62
|
-
|
|
63
|
-
---
|
|
64
|
-
|
|
65
|
-
## 2. Async vs Sync Decision
|
|
66
|
-
|
|
67
|
-
### When to Use Async
|
|
68
|
-
|
|
69
|
-
```
|
|
70
|
-
async def is better when:
|
|
71
|
-
├── I/O-bound operations (database, HTTP, file)
|
|
72
|
-
├── Many concurrent connections
|
|
73
|
-
├── Real-time features
|
|
74
|
-
├── Microservices communication
|
|
75
|
-
└── FastAPI/Starlette/Django ASGI
|
|
76
|
-
|
|
77
|
-
def (sync) is better when:
|
|
78
|
-
├── CPU-bound operations
|
|
79
|
-
├── Simple scripts
|
|
80
|
-
├── Legacy codebase
|
|
81
|
-
├── Team unfamiliar with async
|
|
82
|
-
└── Blocking libraries (no async version)
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
### The Golden Rule
|
|
86
|
-
|
|
87
|
-
```
|
|
88
|
-
I/O-bound → async (waiting for external)
|
|
89
|
-
CPU-bound → sync + multiprocessing (computing)
|
|
90
|
-
|
|
91
|
-
Don't:
|
|
92
|
-
├── Mix sync and async carelessly
|
|
93
|
-
├── Use sync libraries in async code
|
|
94
|
-
└── Force async for CPU work
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
### Async Library Selection
|
|
98
|
-
|
|
99
|
-
| Need | Async Library |
|
|
100
|
-
|------|---------------|
|
|
101
|
-
| HTTP client | httpx |
|
|
102
|
-
| PostgreSQL | asyncpg |
|
|
103
|
-
| Redis | aioredis / redis-py async |
|
|
104
|
-
| File I/O | aiofiles |
|
|
105
|
-
| Database ORM | SQLAlchemy 2.0 async, Tortoise |
|
|
106
|
-
|
|
107
|
-
---
|
|
108
|
-
|
|
109
|
-
## 3. Type Hints Strategy
|
|
110
|
-
|
|
111
|
-
### When to Type
|
|
112
|
-
|
|
113
|
-
```
|
|
114
|
-
Always type:
|
|
115
|
-
├── Function parameters
|
|
116
|
-
├── Return types
|
|
117
|
-
├── Class attributes
|
|
118
|
-
├── Public APIs
|
|
119
|
-
|
|
120
|
-
Can skip:
|
|
121
|
-
├── Local variables (let inference work)
|
|
122
|
-
├── One-off scripts
|
|
123
|
-
├── Tests (usually)
|
|
124
|
-
```
|
|
125
|
-
|
|
126
|
-
### Common Type Patterns
|
|
127
|
-
|
|
128
|
-
```python
|
|
129
|
-
# These are patterns, understand them:
|
|
130
|
-
|
|
131
|
-
# Optional → might be None
|
|
132
|
-
from typing import Optional
|
|
133
|
-
def find_user(id: int) -> Optional[User]: ...
|
|
134
|
-
|
|
135
|
-
# Union → one of multiple types
|
|
136
|
-
def process(data: str | dict) -> None: ...
|
|
137
|
-
|
|
138
|
-
# Generic collections
|
|
139
|
-
def get_items() -> list[Item]: ...
|
|
140
|
-
def get_mapping() -> dict[str, int]: ...
|
|
141
|
-
|
|
142
|
-
# Callable
|
|
143
|
-
from typing import Callable
|
|
144
|
-
def apply(fn: Callable[[int], str]) -> str: ...
|
|
145
|
-
```
|
|
146
|
-
|
|
147
|
-
### Pydantic for Validation
|
|
148
|
-
|
|
149
|
-
```
|
|
150
|
-
When to use Pydantic:
|
|
151
|
-
├── API request/response models
|
|
152
|
-
├── Configuration/settings
|
|
153
|
-
├── Data validation
|
|
154
|
-
├── Serialization
|
|
155
|
-
|
|
156
|
-
Benefits:
|
|
157
|
-
├── Runtime validation
|
|
158
|
-
├── Auto-generated JSON schema
|
|
159
|
-
├── Works with FastAPI natively
|
|
160
|
-
└── Clear error messages
|
|
161
|
-
```
|
|
162
|
-
|
|
163
|
-
---
|
|
164
|
-
|
|
165
|
-
## 4. Project Structure Principles
|
|
166
|
-
|
|
167
|
-
### Structure Selection
|
|
168
|
-
|
|
169
|
-
```
|
|
170
|
-
Small project / Script:
|
|
171
|
-
├── main.py
|
|
172
|
-
├── utils.py
|
|
173
|
-
└── requirements.txt
|
|
174
|
-
|
|
175
|
-
Medium API:
|
|
176
|
-
├── app/
|
|
177
|
-
│ ├── __init__.py
|
|
178
|
-
│ ├── main.py
|
|
179
|
-
│ ├── models/
|
|
180
|
-
│ ├── routes/
|
|
181
|
-
│ ├── services/
|
|
182
|
-
│ └── schemas/
|
|
183
|
-
├── tests/
|
|
184
|
-
└── pyproject.toml
|
|
185
|
-
|
|
186
|
-
Large application:
|
|
187
|
-
├── src/
|
|
188
|
-
│ └── myapp/
|
|
189
|
-
│ ├── core/
|
|
190
|
-
│ ├── api/
|
|
191
|
-
│ ├── services/
|
|
192
|
-
│ ├── models/
|
|
193
|
-
│ └── ...
|
|
194
|
-
├── tests/
|
|
195
|
-
└── pyproject.toml
|
|
196
|
-
```
|
|
197
|
-
|
|
198
|
-
### FastAPI Structure Principles
|
|
199
|
-
|
|
200
|
-
```
|
|
201
|
-
Organize by feature or layer:
|
|
202
|
-
|
|
203
|
-
By layer:
|
|
204
|
-
├── routes/ (API endpoints)
|
|
205
|
-
├── services/ (business logic)
|
|
206
|
-
├── models/ (database models)
|
|
207
|
-
├── schemas/ (Pydantic models)
|
|
208
|
-
└── dependencies/ (shared deps)
|
|
209
|
-
|
|
210
|
-
By feature:
|
|
211
|
-
├── users/
|
|
212
|
-
│ ├── routes.py
|
|
213
|
-
│ ├── service.py
|
|
214
|
-
│ └── schemas.py
|
|
215
|
-
└── products/
|
|
216
|
-
└── ...
|
|
217
|
-
```
|
|
218
|
-
|
|
219
|
-
---
|
|
220
|
-
|
|
221
|
-
## 5. Django Principles (2025)
|
|
222
|
-
|
|
223
|
-
### Django Async (Django 5.0+)
|
|
224
|
-
|
|
225
|
-
```
|
|
226
|
-
Django supports async:
|
|
227
|
-
├── Async views
|
|
228
|
-
├── Async middleware
|
|
229
|
-
├── Async ORM (limited)
|
|
230
|
-
└── ASGI deployment
|
|
231
|
-
|
|
232
|
-
When to use async in Django:
|
|
233
|
-
├── External API calls
|
|
234
|
-
├── WebSocket (Channels)
|
|
235
|
-
├── High-concurrency views
|
|
236
|
-
└── Background task triggering
|
|
237
|
-
```
|
|
14
|
+
This skill is deprecated and kept for backward compatibility.
|
|
238
15
|
|
|
239
|
-
|
|
16
|
+
Use `python-pro` as the canonical skill.
|
|
240
17
|
|
|
241
|
-
|
|
242
|
-
Model design:
|
|
243
|
-
├── Fat models, thin views
|
|
244
|
-
├── Use managers for common queries
|
|
245
|
-
├── Abstract base classes for shared fields
|
|
246
|
-
|
|
247
|
-
Views:
|
|
248
|
-
├── Class-based for complex CRUD
|
|
249
|
-
├── Function-based for simple endpoints
|
|
250
|
-
├── Use viewsets with DRF
|
|
251
|
-
|
|
252
|
-
Queries:
|
|
253
|
-
├── select_related() for FKs
|
|
254
|
-
├── prefetch_related() for M2M
|
|
255
|
-
├── Avoid N+1 queries
|
|
256
|
-
└── Use .only() for specific fields
|
|
257
|
-
```
|
|
258
|
-
|
|
259
|
-
---
|
|
260
|
-
|
|
261
|
-
## 6. FastAPI Principles
|
|
262
|
-
|
|
263
|
-
### async def vs def in FastAPI
|
|
264
|
-
|
|
265
|
-
```
|
|
266
|
-
Use async def when:
|
|
267
|
-
├── Using async database drivers
|
|
268
|
-
├── Making async HTTP calls
|
|
269
|
-
├── I/O-bound operations
|
|
270
|
-
└── Want to handle concurrency
|
|
271
|
-
|
|
272
|
-
Use def when:
|
|
273
|
-
├── Blocking operations
|
|
274
|
-
├── Sync database drivers
|
|
275
|
-
├── CPU-bound work
|
|
276
|
-
└── FastAPI runs in threadpool automatically
|
|
277
|
-
```
|
|
278
|
-
|
|
279
|
-
### Dependency Injection
|
|
280
|
-
|
|
281
|
-
```
|
|
282
|
-
Use dependencies for:
|
|
283
|
-
├── Database sessions
|
|
284
|
-
├── Current user / Auth
|
|
285
|
-
├── Configuration
|
|
286
|
-
├── Shared resources
|
|
287
|
-
|
|
288
|
-
Benefits:
|
|
289
|
-
├── Testability (mock dependencies)
|
|
290
|
-
├── Clean separation
|
|
291
|
-
├── Automatic cleanup (yield)
|
|
292
|
-
```
|
|
293
|
-
|
|
294
|
-
### Pydantic v2 Integration
|
|
295
|
-
|
|
296
|
-
```python
|
|
297
|
-
# FastAPI + Pydantic are tightly integrated:
|
|
298
|
-
|
|
299
|
-
# Request validation
|
|
300
|
-
@app.post("/users")
|
|
301
|
-
async def create(user: UserCreate) -> UserResponse:
|
|
302
|
-
# user is already validated
|
|
303
|
-
...
|
|
304
|
-
|
|
305
|
-
# Response serialization
|
|
306
|
-
# Return type becomes response schema
|
|
307
|
-
```
|
|
308
|
-
|
|
309
|
-
---
|
|
310
|
-
|
|
311
|
-
## 7. Background Tasks
|
|
312
|
-
|
|
313
|
-
### Selection Guide
|
|
314
|
-
|
|
315
|
-
| Solution | Best For |
|
|
316
|
-
|----------|----------|
|
|
317
|
-
| **BackgroundTasks** | Simple, in-process tasks |
|
|
318
|
-
| **Celery** | Distributed, complex workflows |
|
|
319
|
-
| **ARQ** | Async, Redis-based |
|
|
320
|
-
| **RQ** | Simple Redis queue |
|
|
321
|
-
| **Dramatiq** | Actor-based, simpler than Celery |
|
|
322
|
-
|
|
323
|
-
### When to Use Each
|
|
324
|
-
|
|
325
|
-
```
|
|
326
|
-
FastAPI BackgroundTasks:
|
|
327
|
-
├── Quick operations
|
|
328
|
-
├── No persistence needed
|
|
329
|
-
├── Fire-and-forget
|
|
330
|
-
└── Same process
|
|
331
|
-
|
|
332
|
-
Celery/ARQ:
|
|
333
|
-
├── Long-running tasks
|
|
334
|
-
├── Need retry logic
|
|
335
|
-
├── Distributed workers
|
|
336
|
-
├── Persistent queue
|
|
337
|
-
└── Complex workflows
|
|
338
|
-
```
|
|
339
|
-
|
|
340
|
-
---
|
|
341
|
-
|
|
342
|
-
## 8. Error Handling Principles
|
|
343
|
-
|
|
344
|
-
### Exception Strategy
|
|
345
|
-
|
|
346
|
-
```
|
|
347
|
-
In FastAPI:
|
|
348
|
-
├── Create custom exception classes
|
|
349
|
-
├── Register exception handlers
|
|
350
|
-
├── Return consistent error format
|
|
351
|
-
└── Log without exposing internals
|
|
352
|
-
|
|
353
|
-
Pattern:
|
|
354
|
-
├── Raise domain exceptions in services
|
|
355
|
-
├── Catch and transform in handlers
|
|
356
|
-
└── Client gets clean error response
|
|
357
|
-
```
|
|
358
|
-
|
|
359
|
-
### Error Response Philosophy
|
|
360
|
-
|
|
361
|
-
```
|
|
362
|
-
Include:
|
|
363
|
-
├── Error code (programmatic)
|
|
364
|
-
├── Message (human readable)
|
|
365
|
-
├── Details (field-level when applicable)
|
|
366
|
-
└── NOT stack traces (security)
|
|
367
|
-
```
|
|
368
|
-
|
|
369
|
-
---
|
|
370
|
-
|
|
371
|
-
## 9. Testing Principles
|
|
372
|
-
|
|
373
|
-
### Testing Strategy
|
|
374
|
-
|
|
375
|
-
| Type | Purpose | Tools |
|
|
376
|
-
|------|---------|-------|
|
|
377
|
-
| **Unit** | Business logic | pytest |
|
|
378
|
-
| **Integration** | API endpoints | pytest + httpx/TestClient |
|
|
379
|
-
| **E2E** | Full workflows | pytest + DB |
|
|
380
|
-
|
|
381
|
-
### Async Testing
|
|
382
|
-
|
|
383
|
-
```python
|
|
384
|
-
# Use pytest-asyncio for async tests
|
|
385
|
-
|
|
386
|
-
import pytest
|
|
387
|
-
from httpx import AsyncClient
|
|
388
|
-
|
|
389
|
-
@pytest.mark.asyncio
|
|
390
|
-
async def test_endpoint():
|
|
391
|
-
async with AsyncClient(app=app, base_url="http://test") as client:
|
|
392
|
-
response = await client.get("/users")
|
|
393
|
-
assert response.status_code == 200
|
|
394
|
-
```
|
|
395
|
-
|
|
396
|
-
### Fixtures Strategy
|
|
397
|
-
|
|
398
|
-
```
|
|
399
|
-
Common fixtures:
|
|
400
|
-
├── db_session → Database connection
|
|
401
|
-
├── client → Test client
|
|
402
|
-
├── authenticated_user → User with token
|
|
403
|
-
└── sample_data → Test data setup
|
|
404
|
-
```
|
|
405
|
-
|
|
406
|
-
---
|
|
407
|
-
|
|
408
|
-
## 10. Decision Checklist
|
|
409
|
-
|
|
410
|
-
Before implementing:
|
|
411
|
-
|
|
412
|
-
- [ ] **Asked user about framework preference?**
|
|
413
|
-
- [ ] **Chosen framework for THIS context?** (not just default)
|
|
414
|
-
- [ ] **Decided async vs sync?**
|
|
415
|
-
- [ ] **Planned type hint strategy?**
|
|
416
|
-
- [ ] **Defined project structure?**
|
|
417
|
-
- [ ] **Planned error handling?**
|
|
418
|
-
- [ ] **Considered background tasks?**
|
|
419
|
-
|
|
420
|
-
---
|
|
421
|
-
|
|
422
|
-
## 11. Anti-Patterns to Avoid
|
|
423
|
-
|
|
424
|
-
### ❌ DON'T:
|
|
425
|
-
- Default to Django for simple APIs (FastAPI may be better)
|
|
426
|
-
- Use sync libraries in async code
|
|
427
|
-
- Skip type hints for public APIs
|
|
428
|
-
- Put business logic in routes/views
|
|
429
|
-
- Ignore N+1 queries
|
|
430
|
-
- Mix async and sync carelessly
|
|
431
|
-
|
|
432
|
-
### ✅ DO:
|
|
433
|
-
- Choose framework based on context
|
|
434
|
-
- Ask about async requirements
|
|
435
|
-
- Use Pydantic for validation
|
|
436
|
-
- Separate concerns (routes → services → repos)
|
|
437
|
-
- Test critical paths
|
|
438
|
-
|
|
439
|
-
---
|
|
18
|
+
## Migration
|
|
440
19
|
|
|
441
|
-
|
|
20
|
+
1. Replace direct references to `python-patterns` with `python-pro`.
|
|
21
|
+
2. Apply the full workflow from `python-pro` for new work.
|
|
@@ -1,87 +1,59 @@
|
|
|
1
1
|
````markdown
|
|
2
2
|
---
|
|
3
3
|
inclusion: manual
|
|
4
|
-
name: python-pro
|
|
5
|
-
description: Use
|
|
4
|
+
name: "python-pro"
|
|
5
|
+
description: "Use for production Python with 3.14-era typing, async, packaging, and testing standards."
|
|
6
6
|
license: MIT
|
|
7
7
|
metadata:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
scope: implementation
|
|
14
|
-
output-format: code
|
|
15
|
-
related-skills: fastapi-expert, devops-engineer
|
|
8
|
+
version: "2.0.0"
|
|
9
|
+
domain: "language"
|
|
10
|
+
role: "specialist"
|
|
11
|
+
stack: "python"
|
|
12
|
+
baseline: "Python 3.14"
|
|
16
13
|
---
|
|
17
14
|
|
|
18
15
|
# Python Pro
|
|
19
16
|
|
|
20
|
-
|
|
17
|
+
## When to use
|
|
21
18
|
|
|
22
|
-
|
|
19
|
+
- Building backend services, automation, or data pipelines in Python.
|
|
20
|
+
- Migrating legacy Python to typed and testable architecture.
|
|
21
|
+
- Implementing async I/O with predictable behavior.
|
|
23
22
|
|
|
24
|
-
|
|
23
|
+
## Core workflow
|
|
25
24
|
|
|
26
|
-
|
|
25
|
+
1. Establish interpreter/runtime constraints.
|
|
26
|
+
2. Define typed interfaces and domain models.
|
|
27
|
+
3. Implement sync/async boundaries explicitly.
|
|
28
|
+
4. Validate with tests, type checks, and linting.
|
|
27
29
|
|
|
28
|
-
|
|
29
|
-
- Implementing async/await patterns for I/O operations
|
|
30
|
-
- Setting up pytest test suites with fixtures and mocking
|
|
31
|
-
- Creating Pythonic code with comprehensions, generators, context managers
|
|
32
|
-
- Building packages with Poetry and proper project structure
|
|
33
|
-
- Performance optimization and profiling
|
|
30
|
+
## Baseline standards
|
|
34
31
|
|
|
35
|
-
|
|
32
|
+
- Type annotate public functions and critical internal APIs.
|
|
33
|
+
- Use `pyproject.toml`-first packaging and tooling.
|
|
34
|
+
- Use `pytest` for tests and parametrize edge cases.
|
|
35
|
+
- Keep business logic separate from framework glue.
|
|
36
|
+
- Prefer stdlib clarity before adding dependencies.
|
|
36
37
|
|
|
37
|
-
|
|
38
|
-
2. **Design interfaces** - Define protocols, dataclasses, type aliases
|
|
39
|
-
3. **Implement** - Write Pythonic code with full type hints and error handling
|
|
40
|
-
4. **Test** - Create comprehensive pytest suite with >90% coverage
|
|
41
|
-
5. **Validate** - Run mypy, black, ruff; ensure quality standards met
|
|
38
|
+
## Implementation guidance
|
|
42
39
|
|
|
43
|
-
|
|
40
|
+
- Use `dataclass`/Pydantic models for domain boundaries.
|
|
41
|
+
- Use `TaskGroup`-style structured concurrency where possible.
|
|
42
|
+
- Preserve exception context; do not swallow root causes.
|
|
43
|
+
- Keep I/O async and CPU work isolated where needed.
|
|
44
|
+
- Treat free-threaded mode as opt-in until dependencies are validated.
|
|
44
45
|
|
|
45
|
-
|
|
46
|
+
## Avoid
|
|
46
47
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
| Async Patterns | `references/async-patterns.md` | async/await, asyncio, task groups |
|
|
51
|
-
| Standard Library | `references/standard-library.md` | pathlib, dataclasses, functools, itertools |
|
|
52
|
-
| Testing | `references/testing.md` | pytest, fixtures, mocking, parametrize |
|
|
53
|
-
| Packaging | `references/packaging.md` | poetry, pip, pyproject.toml, distribution |
|
|
48
|
+
- Untyped public APIs in shared modules.
|
|
49
|
+
- Hidden global state in request paths.
|
|
50
|
+
- Mixed sync/async call graphs without clear adapters.
|
|
54
51
|
|
|
55
|
-
##
|
|
52
|
+
## Reference files
|
|
56
53
|
|
|
57
|
-
|
|
58
|
-
-
|
|
59
|
-
-
|
|
60
|
-
-
|
|
61
|
-
-
|
|
62
|
-
- Use `X | None` instead of `Optional[X]` (Python 3.10+)
|
|
63
|
-
- Async/await for I/O-bound operations
|
|
64
|
-
- Dataclasses over manual __init__ methods
|
|
65
|
-
- Context managers for resource handling
|
|
66
|
-
|
|
67
|
-
### MUST NOT DO
|
|
68
|
-
- Skip type annotations on public APIs
|
|
69
|
-
- Use mutable default arguments
|
|
70
|
-
- Mix sync and async code improperly
|
|
71
|
-
- Ignore mypy errors in strict mode
|
|
72
|
-
- Use bare except clauses
|
|
73
|
-
- Hardcode secrets or configuration
|
|
74
|
-
- Use deprecated stdlib modules (use pathlib not os.path)
|
|
75
|
-
|
|
76
|
-
## Output Templates
|
|
77
|
-
|
|
78
|
-
When implementing Python features, provide:
|
|
79
|
-
1. Module file with complete type hints
|
|
80
|
-
2. Test file with pytest fixtures
|
|
81
|
-
3. Type checking confirmation (mypy --strict passes)
|
|
82
|
-
4. Brief explanation of Pythonic patterns used
|
|
83
|
-
|
|
84
|
-
## Knowledge Reference
|
|
85
|
-
|
|
86
|
-
Python 3.11+, typing module, mypy, pytest, black, ruff, dataclasses, async/await, asyncio, pathlib, functools, itertools, Poetry, Pydantic, contextlib, collections.abc, Protocol
|
|
54
|
+
- `references/type-system.md`
|
|
55
|
+
- `references/async-patterns.md`
|
|
56
|
+
- `references/testing.md`
|
|
57
|
+
- `references/packaging.md`
|
|
58
|
+
- `references/standard-library.md`
|
|
87
59
|
````
|
|
@@ -1,84 +1,56 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: python-pro
|
|
3
|
-
description: Use
|
|
2
|
+
name: "python-pro"
|
|
3
|
+
description: "Use for production Python with 3.14-era typing, async, packaging, and testing standards."
|
|
4
4
|
license: MIT
|
|
5
5
|
metadata:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
scope: implementation
|
|
12
|
-
output-format: code
|
|
13
|
-
related-skills: fastapi-expert, devops-engineer
|
|
6
|
+
version: "2.0.0"
|
|
7
|
+
domain: "language"
|
|
8
|
+
role: "specialist"
|
|
9
|
+
stack: "python"
|
|
10
|
+
baseline: "Python 3.14"
|
|
14
11
|
---
|
|
15
12
|
|
|
16
13
|
# Python Pro
|
|
17
14
|
|
|
18
|
-
|
|
15
|
+
## When to use
|
|
19
16
|
|
|
20
|
-
|
|
17
|
+
- Building backend services, automation, or data pipelines in Python.
|
|
18
|
+
- Migrating legacy Python to typed and testable architecture.
|
|
19
|
+
- Implementing async I/O with predictable behavior.
|
|
21
20
|
|
|
22
|
-
|
|
21
|
+
## Core workflow
|
|
23
22
|
|
|
24
|
-
|
|
23
|
+
1. Establish interpreter/runtime constraints.
|
|
24
|
+
2. Define typed interfaces and domain models.
|
|
25
|
+
3. Implement sync/async boundaries explicitly.
|
|
26
|
+
4. Validate with tests, type checks, and linting.
|
|
25
27
|
|
|
26
|
-
|
|
27
|
-
- Implementing async/await patterns for I/O operations
|
|
28
|
-
- Setting up pytest test suites with fixtures and mocking
|
|
29
|
-
- Creating Pythonic code with comprehensions, generators, context managers
|
|
30
|
-
- Building packages with Poetry and proper project structure
|
|
31
|
-
- Performance optimization and profiling
|
|
28
|
+
## Baseline standards
|
|
32
29
|
|
|
33
|
-
|
|
30
|
+
- Type annotate public functions and critical internal APIs.
|
|
31
|
+
- Use `pyproject.toml`-first packaging and tooling.
|
|
32
|
+
- Use `pytest` for tests and parametrize edge cases.
|
|
33
|
+
- Keep business logic separate from framework glue.
|
|
34
|
+
- Prefer stdlib clarity before adding dependencies.
|
|
34
35
|
|
|
35
|
-
|
|
36
|
-
2. **Design interfaces** - Define protocols, dataclasses, type aliases
|
|
37
|
-
3. **Implement** - Write Pythonic code with full type hints and error handling
|
|
38
|
-
4. **Test** - Create comprehensive pytest suite with >90% coverage
|
|
39
|
-
5. **Validate** - Run mypy, black, ruff; ensure quality standards met
|
|
36
|
+
## Implementation guidance
|
|
40
37
|
|
|
41
|
-
|
|
38
|
+
- Use `dataclass`/Pydantic models for domain boundaries.
|
|
39
|
+
- Use `TaskGroup`-style structured concurrency where possible.
|
|
40
|
+
- Preserve exception context; do not swallow root causes.
|
|
41
|
+
- Keep I/O async and CPU work isolated where needed.
|
|
42
|
+
- Treat free-threaded mode as opt-in until dependencies are validated.
|
|
42
43
|
|
|
43
|
-
|
|
44
|
+
## Avoid
|
|
44
45
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
| Async Patterns | `references/async-patterns.md` | async/await, asyncio, task groups |
|
|
49
|
-
| Standard Library | `references/standard-library.md` | pathlib, dataclasses, functools, itertools |
|
|
50
|
-
| Testing | `references/testing.md` | pytest, fixtures, mocking, parametrize |
|
|
51
|
-
| Packaging | `references/packaging.md` | poetry, pip, pyproject.toml, distribution |
|
|
46
|
+
- Untyped public APIs in shared modules.
|
|
47
|
+
- Hidden global state in request paths.
|
|
48
|
+
- Mixed sync/async call graphs without clear adapters.
|
|
52
49
|
|
|
53
|
-
##
|
|
50
|
+
## Reference files
|
|
54
51
|
|
|
55
|
-
|
|
56
|
-
-
|
|
57
|
-
-
|
|
58
|
-
-
|
|
59
|
-
-
|
|
60
|
-
- Use `X | None` instead of `Optional[X]` (Python 3.10+)
|
|
61
|
-
- Async/await for I/O-bound operations
|
|
62
|
-
- Dataclasses over manual __init__ methods
|
|
63
|
-
- Context managers for resource handling
|
|
64
|
-
|
|
65
|
-
### MUST NOT DO
|
|
66
|
-
- Skip type annotations on public APIs
|
|
67
|
-
- Use mutable default arguments
|
|
68
|
-
- Mix sync and async code improperly
|
|
69
|
-
- Ignore mypy errors in strict mode
|
|
70
|
-
- Use bare except clauses
|
|
71
|
-
- Hardcode secrets or configuration
|
|
72
|
-
- Use deprecated stdlib modules (use pathlib not os.path)
|
|
73
|
-
|
|
74
|
-
## Output Templates
|
|
75
|
-
|
|
76
|
-
When implementing Python features, provide:
|
|
77
|
-
1. Module file with complete type hints
|
|
78
|
-
2. Test file with pytest fixtures
|
|
79
|
-
3. Type checking confirmation (mypy --strict passes)
|
|
80
|
-
4. Brief explanation of Pythonic patterns used
|
|
81
|
-
|
|
82
|
-
## Knowledge Reference
|
|
83
|
-
|
|
84
|
-
Python 3.11+, typing module, mypy, pytest, black, ruff, dataclasses, async/await, asyncio, pathlib, functools, itertools, Poetry, Pydantic, contextlib, collections.abc, Protocol
|
|
52
|
+
- `references/type-system.md`
|
|
53
|
+
- `references/async-patterns.md`
|
|
54
|
+
- `references/testing.md`
|
|
55
|
+
- `references/packaging.md`
|
|
56
|
+
- `references/standard-library.md`
|