@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,240 +1,18 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: "postman"
|
|
3
|
-
description: "
|
|
3
|
+
description: "Compatibility wrapper skill. Canonical MCP skill moved to mcp/skills/postman."
|
|
4
|
+
metadata:
|
|
5
|
+
deprecated: true
|
|
6
|
+
replaced_by: "postman"
|
|
7
|
+
moved_to: "mcp/skills/postman/SKILL.md"
|
|
8
|
+
removal_target: "v0.6.0"
|
|
4
9
|
---
|
|
5
10
|
|
|
11
|
+
# postman (Compatibility Wrapper)
|
|
6
12
|
|
|
7
|
-
|
|
13
|
+
This legacy workflow-path skill is kept for backward compatibility.
|
|
8
14
|
|
|
9
|
-
|
|
15
|
+
Canonical MCP skill path:
|
|
16
|
+
- mcp/skills/postman/SKILL.md
|
|
10
17
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
Generate and maintain `cbx_config.json` as the only Postman configuration source (workspace: `./cbx_config.json`, global: `~/.cbx/cbx_config.json`). Use named profiles in `postman.profiles` and choose `postman.activeProfileName`. Use env-first authentication by default: keep `apiKey` as `null`, set `apiKeyEnvVar` to `POSTMAN_API_KEY` (or another profile alias), and read the key from environment variables. Only store `apiKey` inline when the user explicitly requests file-based key storage. Keep workspace selection in the active profile `workspaceId` (`null` when unknown).
|
|
14
|
-
|
|
15
|
-
## Step 2
|
|
16
|
-
|
|
17
|
-
Create a hook that runs anytime the source code or configuration file has been changed. Save the hook in .kiro/hooks/hookname.kiro.hook. Example hook format. Please update the patterns to match the project's file structure.
|
|
18
|
-
|
|
19
|
-
```json
|
|
20
|
-
{
|
|
21
|
-
"enabled": true,
|
|
22
|
-
"name": "API Postman Testing",
|
|
23
|
-
"description": "Monitors API source code changes across multiple programming languages and automatically runs Postman collection tests to validate functionality",
|
|
24
|
-
"version": "1",
|
|
25
|
-
"when": {
|
|
26
|
-
"type": "fileEdited",
|
|
27
|
-
"patterns": [
|
|
28
|
-
"*.js",
|
|
29
|
-
"*.ts",
|
|
30
|
-
"*.py",
|
|
31
|
-
"*.java",
|
|
32
|
-
"*.cs",
|
|
33
|
-
"*.go",
|
|
34
|
-
"*.rs",
|
|
35
|
-
"*.php",
|
|
36
|
-
"*.rb",
|
|
37
|
-
"*.kt",
|
|
38
|
-
"*.swift",
|
|
39
|
-
"*.scala",
|
|
40
|
-
"package.json",
|
|
41
|
-
"requirements.txt",
|
|
42
|
-
"Pipfile",
|
|
43
|
-
"pom.xml",
|
|
44
|
-
"build.gradle",
|
|
45
|
-
"*.csproj",
|
|
46
|
-
"go.mod",
|
|
47
|
-
"Cargo.toml",
|
|
48
|
-
"composer.json",
|
|
49
|
-
"Gemfile",
|
|
50
|
-
"build.sbt",
|
|
51
|
-
"openapi.yaml",
|
|
52
|
-
"openapi.yml",
|
|
53
|
-
"swagger.yaml",
|
|
54
|
-
"swagger.yml",
|
|
55
|
-
"api.yaml",
|
|
56
|
-
"api.yml"
|
|
57
|
-
]
|
|
58
|
-
},
|
|
59
|
-
"then": {
|
|
60
|
-
"type": "askAgent",
|
|
61
|
-
"prompt": "API source code or configuration has been modified. Please retrieve the contents of the .postman.json file. If the file does not exist or is empty, create a Postman collection for the API. If it exists, get the collection ID and run the collection, showing me the results and propose fixes for any errors found."
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
```
|
|
65
|
-
# Overview
|
|
66
|
-
|
|
67
|
-
Automate API testing and collection management with Postman. Create workspaces, collections, environments, and run tests programmatically.
|
|
68
|
-
|
|
69
|
-
**Authentication**: Env-first via `cbx_config.json` + profile env alias (default `POSTMAN_API_KEY`); inline `apiKey` is optional.
|
|
70
|
-
|
|
71
|
-
## Available MCP Servers
|
|
72
|
-
|
|
73
|
-
### postman
|
|
74
|
-
**Package:** `@postman/postman-mcp-server`
|
|
75
|
-
**Connection:** SSE-based MCP server
|
|
76
|
-
**Authentication:** Postman API key via Bearer token
|
|
77
|
-
**Mode:** Minimal (40 essential tools) - Default configuration
|
|
78
|
-
**Endpoint:** https://mcp.postman.com/minimal
|
|
79
|
-
|
|
80
|
-
**Note:** This power connects to Postman's hosted MCP server via SSE. To enable Full mode (112 tools) for advanced collaboration and enterprise features, change the URL to `https://mcp.postman.com/full`.
|
|
81
|
-
|
|
82
|
-
**Available Tools (40 in Minimal Mode):**
|
|
83
|
-
|
|
84
|
-
**Workspace Management:**
|
|
85
|
-
- `createWorkspace` - Create a new workspace
|
|
86
|
-
- `getWorkspace` - Get workspace details
|
|
87
|
-
- `getWorkspaces` - List all accessible workspaces
|
|
88
|
-
- `updateWorkspace` - Update workspace properties
|
|
89
|
-
|
|
90
|
-
**Collection Management:**
|
|
91
|
-
- `createCollection` - Create a new API collection
|
|
92
|
-
- `getCollection` - Get detailed collection information
|
|
93
|
-
- `getCollections` - List all collections in a workspace
|
|
94
|
-
- `putCollection` - Replace/update entire collection
|
|
95
|
-
- `duplicateCollection` - Create a copy of a collection
|
|
96
|
-
- `createCollectionRequest` - Add a request to a collection
|
|
97
|
-
- `createCollectionResponse` - Add a response example to a request
|
|
98
|
-
|
|
99
|
-
**Environment Management:**
|
|
100
|
-
- `createEnvironment` - Create a new environment
|
|
101
|
-
- `getEnvironment` - Get environment details
|
|
102
|
-
- `getEnvironments` - List all environments
|
|
103
|
-
- `putEnvironment` - Replace/update entire environment
|
|
104
|
-
|
|
105
|
-
**Mock Server Management:**
|
|
106
|
-
- `createMock` - Create a mock server
|
|
107
|
-
- `getMock` - Get mock server details
|
|
108
|
-
- `getMocks` - List all mock servers
|
|
109
|
-
- `updateMock` - Update mock server configuration
|
|
110
|
-
- `publishMock` - Make mock server public
|
|
111
|
-
|
|
112
|
-
**API Specification Management:**
|
|
113
|
-
- `createSpec` - Create a new API specification
|
|
114
|
-
- `getSpec` - Get specification details
|
|
115
|
-
- `getAllSpecs` - List all specifications
|
|
116
|
-
- `getSpecDefinition` - Get complete spec definition
|
|
117
|
-
- `updateSpecProperties` - Update spec metadata
|
|
118
|
-
- `createSpecFile` - Add a file to a spec
|
|
119
|
-
- `getSpecFile` - Get a specific spec file
|
|
120
|
-
- `getSpecFiles` - List all files in a spec
|
|
121
|
-
- `updateSpecFile` - Update a spec file
|
|
122
|
-
|
|
123
|
-
**Code Generation & Sync:**
|
|
124
|
-
- `generateCollection` - Generate collection from API spec
|
|
125
|
-
- `generateSpecFromCollection` - Generate spec from collection
|
|
126
|
-
- `getGeneratedCollectionSpecs` - Get specs generated from a collection
|
|
127
|
-
- `getSpecCollections` - Get collections generated from a spec
|
|
128
|
-
- `syncCollectionWithSpec` - Sync collection with its spec
|
|
129
|
-
- `syncSpecWithCollection` - Sync spec with its collection
|
|
130
|
-
|
|
131
|
-
**Testing & Execution:**
|
|
132
|
-
- `runCollection` - Execute a collection with automated tests
|
|
133
|
-
|
|
134
|
-
**User & Metadata:**
|
|
135
|
-
- `getAuthenticatedUser` - Get current user information
|
|
136
|
-
- `getTaggedEntities` - Get entities by tag
|
|
137
|
-
- `getStatusOfAnAsyncApiTask` - Check async task status
|
|
138
|
-
- `getEnabledTools` - List available tools by mode
|
|
139
|
-
|
|
140
|
-
## Tool Usage Examples
|
|
141
|
-
|
|
142
|
-
```javascript
|
|
143
|
-
// Create workspace
|
|
144
|
-
mcp_postman_createWorkspace({
|
|
145
|
-
"workspace": { "name": "My API Project", "type": "personal" }
|
|
146
|
-
})
|
|
147
|
-
|
|
148
|
-
// Create collection
|
|
149
|
-
mcp_postman_createCollection({
|
|
150
|
-
"workspace": "workspace-id",
|
|
151
|
-
"collection": {
|
|
152
|
-
"info": {
|
|
153
|
-
"name": "User API",
|
|
154
|
-
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
})
|
|
158
|
-
|
|
159
|
-
// Create environment
|
|
160
|
-
mcp_postman_createEnvironment({
|
|
161
|
-
"workspace": "workspace-id",
|
|
162
|
-
"environment": {
|
|
163
|
-
"name": "Local",
|
|
164
|
-
"values": [
|
|
165
|
-
{ "key": "base_url", "value": "http://localhost:3000", "enabled": true }
|
|
166
|
-
]
|
|
167
|
-
}
|
|
168
|
-
})
|
|
169
|
-
|
|
170
|
-
// Run collection
|
|
171
|
-
mcp_postman_runCollection({
|
|
172
|
-
"collectionId": "collection-id",
|
|
173
|
-
"environmentId": "environment-id"
|
|
174
|
-
})
|
|
175
|
-
```
|
|
176
|
-
|
|
177
|
-
## Workflows
|
|
178
|
-
|
|
179
|
-
**Project Setup:**
|
|
180
|
-
```javascript
|
|
181
|
-
const { workspace } = await mcp_postman_createWorkspace({ "workspace": { "name": "Project", "type": "personal" }})
|
|
182
|
-
const { collection } = await mcp_postman_createCollection({ "workspace": workspace.id, "collection": { "info": { "name": "API", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }}})
|
|
183
|
-
const { environment } = await mcp_postman_createEnvironment({ "workspace": workspace.id, "environment": { "name": "Local", "values": [{ "key": "base_url", "value": "http://localhost:3000", "enabled": true }]}})
|
|
184
|
-
// Save IDs to .postman.json
|
|
185
|
-
```
|
|
186
|
-
|
|
187
|
-
**Generate from OpenAPI:**
|
|
188
|
-
```javascript
|
|
189
|
-
const { spec } = await mcp_postman_createSpec({ "workspaceId": "workspace-id", "name": "API Spec", "type": "OPENAPI:3.0", "files": [{ "path": "openapi.yaml", "content": "..." }]})
|
|
190
|
-
const result = await mcp_postman_generateCollection({ "specId": spec.id, "elementType": "collection", "name": "Generated Collection" })
|
|
191
|
-
```
|
|
192
|
-
|
|
193
|
-
**Automated Testing:**
|
|
194
|
-
```javascript
|
|
195
|
-
const { workspaces } = await mcp_postman_getWorkspaces()
|
|
196
|
-
const { collections } = await mcp_postman_getCollections({ "workspace": workspaces[0].id })
|
|
197
|
-
const { environments } = await mcp_postman_getEnvironments({ "workspace": workspaces[0].id })
|
|
198
|
-
for (const collection of collections) {
|
|
199
|
-
await mcp_postman_runCollection({ "collectionId": collection.uid, "environmentId": environments[0]?.id })
|
|
200
|
-
}
|
|
201
|
-
```
|
|
202
|
-
|
|
203
|
-
## Best Practices
|
|
204
|
-
|
|
205
|
-
- Store workspace/collection/environment IDs in `.postman.json`
|
|
206
|
-
- Use environment variables for different contexts (local/staging/production)
|
|
207
|
-
- Add post-request test scripts for validation
|
|
208
|
-
- Organize requests in folders
|
|
209
|
-
- Run collections before deployment
|
|
210
|
-
- Ensure API server is running before tests
|
|
211
|
-
|
|
212
|
-
## Troubleshooting
|
|
213
|
-
|
|
214
|
-
**"Collection not found"**: Call `getCollections` to verify ID and permissions
|
|
215
|
-
|
|
216
|
-
**"Environment not found"**: Call `getEnvironments` with correct workspace ID
|
|
217
|
-
|
|
218
|
-
**Test failures**: Verify API server running, check environment variables (base_url, api_key), review test scripts
|
|
219
|
-
|
|
220
|
-
**"Invalid API key"**: Generate new key at postman.com Settings → API Keys, verify permissions
|
|
221
|
-
|
|
222
|
-
## Configuration
|
|
223
|
-
|
|
224
|
-
**MCP Configuration (Minimal mode - 40 tools):**
|
|
225
|
-
```json
|
|
226
|
-
{
|
|
227
|
-
"mcpServers": {
|
|
228
|
-
"postman": {
|
|
229
|
-
"url": "https://mcp.postman.com/minimal",
|
|
230
|
-
"headers": {
|
|
231
|
-
"Authorization": "Bearer ${POSTMAN_API_KEY}"
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
```
|
|
237
|
-
|
|
238
|
-
**Full mode (112 tools):** Change URL to `https://mcp.postman.com/full`
|
|
239
|
-
|
|
240
|
-
**API Key Permissions:** Workspace management, collection read/write, environment read/write, collection runs
|
|
18
|
+
Install MCP skills with: cbx workflows install --include-mcp
|
|
@@ -2,443 +2,23 @@
|
|
|
2
2
|
---
|
|
3
3
|
inclusion: manual
|
|
4
4
|
name: python-patterns
|
|
5
|
-
description:
|
|
6
|
-
|
|
5
|
+
description: "Compatibility alias skill. Deprecated: use python-pro."
|
|
6
|
+
metadata:
|
|
7
|
+
deprecated: true
|
|
8
|
+
replaced_by: python-pro
|
|
9
|
+
removal_target: v0.6.0
|
|
7
10
|
---
|
|
8
11
|
|
|
9
12
|
# Python Patterns
|
|
10
13
|
|
|
11
|
-
|
|
12
|
-
> **Learn to THINK, not memorize patterns.**
|
|
14
|
+
## Compatibility Alias
|
|
13
15
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
## ⚠️ How to Use This Skill
|
|
17
|
-
|
|
18
|
-
This skill teaches **decision-making principles**, not fixed code to copy.
|
|
19
|
-
|
|
20
|
-
- ASK user for framework preference when unclear
|
|
21
|
-
- Choose async vs sync based on CONTEXT
|
|
22
|
-
- Don't default to same framework every time
|
|
23
|
-
|
|
24
|
-
---
|
|
25
|
-
|
|
26
|
-
## 1. Framework Selection (2025)
|
|
27
|
-
|
|
28
|
-
### Decision Tree
|
|
29
|
-
|
|
30
|
-
```
|
|
31
|
-
What are you building?
|
|
32
|
-
│
|
|
33
|
-
├── API-first / Microservices
|
|
34
|
-
│ └── FastAPI (async, modern, fast)
|
|
35
|
-
│
|
|
36
|
-
├── Full-stack web / CMS / Admin
|
|
37
|
-
│ └── Django (batteries-included)
|
|
38
|
-
│
|
|
39
|
-
├── Simple / Script / Learning
|
|
40
|
-
│ └── Flask (minimal, flexible)
|
|
41
|
-
│
|
|
42
|
-
├── AI/ML API serving
|
|
43
|
-
│ └── FastAPI (Pydantic, async, uvicorn)
|
|
44
|
-
│
|
|
45
|
-
└── Background workers
|
|
46
|
-
└── Celery + any framework
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
### Comparison Principles
|
|
50
|
-
|
|
51
|
-
| Factor | FastAPI | Django | Flask |
|
|
52
|
-
|--------|---------|--------|-------|
|
|
53
|
-
| **Best for** | APIs, microservices | Full-stack, CMS | Simple, learning |
|
|
54
|
-
| **Async** | Native | Django 5.0+ | Via extensions |
|
|
55
|
-
| **Admin** | Manual | Built-in | Via extensions |
|
|
56
|
-
| **ORM** | Choose your own | Django ORM | Choose your own |
|
|
57
|
-
| **Learning curve** | Low | Medium | Low |
|
|
58
|
-
|
|
59
|
-
### Selection Questions to Ask:
|
|
60
|
-
1. Is this API-only or full-stack?
|
|
61
|
-
2. Need admin interface?
|
|
62
|
-
3. Team familiar with async?
|
|
63
|
-
4. Existing infrastructure?
|
|
64
|
-
|
|
65
|
-
---
|
|
66
|
-
|
|
67
|
-
## 2. Async vs Sync Decision
|
|
68
|
-
|
|
69
|
-
### When to Use Async
|
|
70
|
-
|
|
71
|
-
```
|
|
72
|
-
async def is better when:
|
|
73
|
-
├── I/O-bound operations (database, HTTP, file)
|
|
74
|
-
├── Many concurrent connections
|
|
75
|
-
├── Real-time features
|
|
76
|
-
├── Microservices communication
|
|
77
|
-
└── FastAPI/Starlette/Django ASGI
|
|
78
|
-
|
|
79
|
-
def (sync) is better when:
|
|
80
|
-
├── CPU-bound operations
|
|
81
|
-
├── Simple scripts
|
|
82
|
-
├── Legacy codebase
|
|
83
|
-
├── Team unfamiliar with async
|
|
84
|
-
└── Blocking libraries (no async version)
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
### The Golden Rule
|
|
88
|
-
|
|
89
|
-
```
|
|
90
|
-
I/O-bound → async (waiting for external)
|
|
91
|
-
CPU-bound → sync + multiprocessing (computing)
|
|
92
|
-
|
|
93
|
-
Don't:
|
|
94
|
-
├── Mix sync and async carelessly
|
|
95
|
-
├── Use sync libraries in async code
|
|
96
|
-
└── Force async for CPU work
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
### Async Library Selection
|
|
100
|
-
|
|
101
|
-
| Need | Async Library |
|
|
102
|
-
|------|---------------|
|
|
103
|
-
| HTTP client | httpx |
|
|
104
|
-
| PostgreSQL | asyncpg |
|
|
105
|
-
| Redis | aioredis / redis-py async |
|
|
106
|
-
| File I/O | aiofiles |
|
|
107
|
-
| Database ORM | SQLAlchemy 2.0 async, Tortoise |
|
|
108
|
-
|
|
109
|
-
---
|
|
110
|
-
|
|
111
|
-
## 3. Type Hints Strategy
|
|
112
|
-
|
|
113
|
-
### When to Type
|
|
114
|
-
|
|
115
|
-
```
|
|
116
|
-
Always type:
|
|
117
|
-
├── Function parameters
|
|
118
|
-
├── Return types
|
|
119
|
-
├── Class attributes
|
|
120
|
-
├── Public APIs
|
|
121
|
-
|
|
122
|
-
Can skip:
|
|
123
|
-
├── Local variables (let inference work)
|
|
124
|
-
├── One-off scripts
|
|
125
|
-
├── Tests (usually)
|
|
126
|
-
```
|
|
127
|
-
|
|
128
|
-
### Common Type Patterns
|
|
129
|
-
|
|
130
|
-
```python
|
|
131
|
-
# These are patterns, understand them:
|
|
132
|
-
|
|
133
|
-
# Optional → might be None
|
|
134
|
-
from typing import Optional
|
|
135
|
-
def find_user(id: int) -> Optional[User]: ...
|
|
136
|
-
|
|
137
|
-
# Union → one of multiple types
|
|
138
|
-
def process(data: str | dict) -> None: ...
|
|
139
|
-
|
|
140
|
-
# Generic collections
|
|
141
|
-
def get_items() -> list[Item]: ...
|
|
142
|
-
def get_mapping() -> dict[str, int]: ...
|
|
143
|
-
|
|
144
|
-
# Callable
|
|
145
|
-
from typing import Callable
|
|
146
|
-
def apply(fn: Callable[[int], str]) -> str: ...
|
|
147
|
-
```
|
|
148
|
-
|
|
149
|
-
### Pydantic for Validation
|
|
150
|
-
|
|
151
|
-
```
|
|
152
|
-
When to use Pydantic:
|
|
153
|
-
├── API request/response models
|
|
154
|
-
├── Configuration/settings
|
|
155
|
-
├── Data validation
|
|
156
|
-
├── Serialization
|
|
157
|
-
|
|
158
|
-
Benefits:
|
|
159
|
-
├── Runtime validation
|
|
160
|
-
├── Auto-generated JSON schema
|
|
161
|
-
├── Works with FastAPI natively
|
|
162
|
-
└── Clear error messages
|
|
163
|
-
```
|
|
164
|
-
|
|
165
|
-
---
|
|
166
|
-
|
|
167
|
-
## 4. Project Structure Principles
|
|
168
|
-
|
|
169
|
-
### Structure Selection
|
|
170
|
-
|
|
171
|
-
```
|
|
172
|
-
Small project / Script:
|
|
173
|
-
├── main.py
|
|
174
|
-
├── utils.py
|
|
175
|
-
└── requirements.txt
|
|
176
|
-
|
|
177
|
-
Medium API:
|
|
178
|
-
├── app/
|
|
179
|
-
│ ├── __init__.py
|
|
180
|
-
│ ├── main.py
|
|
181
|
-
│ ├── models/
|
|
182
|
-
│ ├── routes/
|
|
183
|
-
│ ├── services/
|
|
184
|
-
│ └── schemas/
|
|
185
|
-
├── tests/
|
|
186
|
-
└── pyproject.toml
|
|
187
|
-
|
|
188
|
-
Large application:
|
|
189
|
-
├── src/
|
|
190
|
-
│ └── myapp/
|
|
191
|
-
│ ├── core/
|
|
192
|
-
│ ├── api/
|
|
193
|
-
│ ├── services/
|
|
194
|
-
│ ├── models/
|
|
195
|
-
│ └── ...
|
|
196
|
-
├── tests/
|
|
197
|
-
└── pyproject.toml
|
|
198
|
-
```
|
|
199
|
-
|
|
200
|
-
### FastAPI Structure Principles
|
|
201
|
-
|
|
202
|
-
```
|
|
203
|
-
Organize by feature or layer:
|
|
204
|
-
|
|
205
|
-
By layer:
|
|
206
|
-
├── routes/ (API endpoints)
|
|
207
|
-
├── services/ (business logic)
|
|
208
|
-
├── models/ (database models)
|
|
209
|
-
├── schemas/ (Pydantic models)
|
|
210
|
-
└── dependencies/ (shared deps)
|
|
211
|
-
|
|
212
|
-
By feature:
|
|
213
|
-
├── users/
|
|
214
|
-
│ ├── routes.py
|
|
215
|
-
│ ├── service.py
|
|
216
|
-
│ └── schemas.py
|
|
217
|
-
└── products/
|
|
218
|
-
└── ...
|
|
219
|
-
```
|
|
220
|
-
|
|
221
|
-
---
|
|
222
|
-
|
|
223
|
-
## 5. Django Principles (2025)
|
|
224
|
-
|
|
225
|
-
### Django Async (Django 5.0+)
|
|
226
|
-
|
|
227
|
-
```
|
|
228
|
-
Django supports async:
|
|
229
|
-
├── Async views
|
|
230
|
-
├── Async middleware
|
|
231
|
-
├── Async ORM (limited)
|
|
232
|
-
└── ASGI deployment
|
|
233
|
-
|
|
234
|
-
When to use async in Django:
|
|
235
|
-
├── External API calls
|
|
236
|
-
├── WebSocket (Channels)
|
|
237
|
-
├── High-concurrency views
|
|
238
|
-
└── Background task triggering
|
|
239
|
-
```
|
|
16
|
+
This skill is deprecated and kept for backward compatibility.
|
|
240
17
|
|
|
241
|
-
|
|
18
|
+
Use `python-pro` as the canonical skill.
|
|
242
19
|
|
|
243
|
-
|
|
244
|
-
Model design:
|
|
245
|
-
├── Fat models, thin views
|
|
246
|
-
├── Use managers for common queries
|
|
247
|
-
├── Abstract base classes for shared fields
|
|
248
|
-
|
|
249
|
-
Views:
|
|
250
|
-
├── Class-based for complex CRUD
|
|
251
|
-
├── Function-based for simple endpoints
|
|
252
|
-
├── Use viewsets with DRF
|
|
253
|
-
|
|
254
|
-
Queries:
|
|
255
|
-
├── select_related() for FKs
|
|
256
|
-
├── prefetch_related() for M2M
|
|
257
|
-
├── Avoid N+1 queries
|
|
258
|
-
└── Use .only() for specific fields
|
|
259
|
-
```
|
|
260
|
-
|
|
261
|
-
---
|
|
262
|
-
|
|
263
|
-
## 6. FastAPI Principles
|
|
264
|
-
|
|
265
|
-
### async def vs def in FastAPI
|
|
266
|
-
|
|
267
|
-
```
|
|
268
|
-
Use async def when:
|
|
269
|
-
├── Using async database drivers
|
|
270
|
-
├── Making async HTTP calls
|
|
271
|
-
├── I/O-bound operations
|
|
272
|
-
└── Want to handle concurrency
|
|
273
|
-
|
|
274
|
-
Use def when:
|
|
275
|
-
├── Blocking operations
|
|
276
|
-
├── Sync database drivers
|
|
277
|
-
├── CPU-bound work
|
|
278
|
-
└── FastAPI runs in threadpool automatically
|
|
279
|
-
```
|
|
280
|
-
|
|
281
|
-
### Dependency Injection
|
|
282
|
-
|
|
283
|
-
```
|
|
284
|
-
Use dependencies for:
|
|
285
|
-
├── Database sessions
|
|
286
|
-
├── Current user / Auth
|
|
287
|
-
├── Configuration
|
|
288
|
-
├── Shared resources
|
|
289
|
-
|
|
290
|
-
Benefits:
|
|
291
|
-
├── Testability (mock dependencies)
|
|
292
|
-
├── Clean separation
|
|
293
|
-
├── Automatic cleanup (yield)
|
|
294
|
-
```
|
|
295
|
-
|
|
296
|
-
### Pydantic v2 Integration
|
|
297
|
-
|
|
298
|
-
```python
|
|
299
|
-
# FastAPI + Pydantic are tightly integrated:
|
|
300
|
-
|
|
301
|
-
# Request validation
|
|
302
|
-
@app.post("/users")
|
|
303
|
-
async def create(user: UserCreate) -> UserResponse:
|
|
304
|
-
# user is already validated
|
|
305
|
-
...
|
|
306
|
-
|
|
307
|
-
# Response serialization
|
|
308
|
-
# Return type becomes response schema
|
|
309
|
-
```
|
|
310
|
-
|
|
311
|
-
---
|
|
312
|
-
|
|
313
|
-
## 7. Background Tasks
|
|
314
|
-
|
|
315
|
-
### Selection Guide
|
|
316
|
-
|
|
317
|
-
| Solution | Best For |
|
|
318
|
-
|----------|----------|
|
|
319
|
-
| **BackgroundTasks** | Simple, in-process tasks |
|
|
320
|
-
| **Celery** | Distributed, complex workflows |
|
|
321
|
-
| **ARQ** | Async, Redis-based |
|
|
322
|
-
| **RQ** | Simple Redis queue |
|
|
323
|
-
| **Dramatiq** | Actor-based, simpler than Celery |
|
|
324
|
-
|
|
325
|
-
### When to Use Each
|
|
326
|
-
|
|
327
|
-
```
|
|
328
|
-
FastAPI BackgroundTasks:
|
|
329
|
-
├── Quick operations
|
|
330
|
-
├── No persistence needed
|
|
331
|
-
├── Fire-and-forget
|
|
332
|
-
└── Same process
|
|
333
|
-
|
|
334
|
-
Celery/ARQ:
|
|
335
|
-
├── Long-running tasks
|
|
336
|
-
├── Need retry logic
|
|
337
|
-
├── Distributed workers
|
|
338
|
-
├── Persistent queue
|
|
339
|
-
└── Complex workflows
|
|
340
|
-
```
|
|
341
|
-
|
|
342
|
-
---
|
|
343
|
-
|
|
344
|
-
## 8. Error Handling Principles
|
|
345
|
-
|
|
346
|
-
### Exception Strategy
|
|
347
|
-
|
|
348
|
-
```
|
|
349
|
-
In FastAPI:
|
|
350
|
-
├── Create custom exception classes
|
|
351
|
-
├── Register exception handlers
|
|
352
|
-
├── Return consistent error format
|
|
353
|
-
└── Log without exposing internals
|
|
354
|
-
|
|
355
|
-
Pattern:
|
|
356
|
-
├── Raise domain exceptions in services
|
|
357
|
-
├── Catch and transform in handlers
|
|
358
|
-
└── Client gets clean error response
|
|
359
|
-
```
|
|
360
|
-
|
|
361
|
-
### Error Response Philosophy
|
|
362
|
-
|
|
363
|
-
```
|
|
364
|
-
Include:
|
|
365
|
-
├── Error code (programmatic)
|
|
366
|
-
├── Message (human readable)
|
|
367
|
-
├── Details (field-level when applicable)
|
|
368
|
-
└── NOT stack traces (security)
|
|
369
|
-
```
|
|
370
|
-
|
|
371
|
-
---
|
|
372
|
-
|
|
373
|
-
## 9. Testing Principles
|
|
374
|
-
|
|
375
|
-
### Testing Strategy
|
|
376
|
-
|
|
377
|
-
| Type | Purpose | Tools |
|
|
378
|
-
|------|---------|-------|
|
|
379
|
-
| **Unit** | Business logic | pytest |
|
|
380
|
-
| **Integration** | API endpoints | pytest + httpx/TestClient |
|
|
381
|
-
| **E2E** | Full workflows | pytest + DB |
|
|
382
|
-
|
|
383
|
-
### Async Testing
|
|
384
|
-
|
|
385
|
-
```python
|
|
386
|
-
# Use pytest-asyncio for async tests
|
|
387
|
-
|
|
388
|
-
import pytest
|
|
389
|
-
from httpx import AsyncClient
|
|
390
|
-
|
|
391
|
-
@pytest.mark.asyncio
|
|
392
|
-
async def test_endpoint():
|
|
393
|
-
async with AsyncClient(app=app, base_url="http://test") as client:
|
|
394
|
-
response = await client.get("/users")
|
|
395
|
-
assert response.status_code == 200
|
|
396
|
-
```
|
|
397
|
-
|
|
398
|
-
### Fixtures Strategy
|
|
399
|
-
|
|
400
|
-
```
|
|
401
|
-
Common fixtures:
|
|
402
|
-
├── db_session → Database connection
|
|
403
|
-
├── client → Test client
|
|
404
|
-
├── authenticated_user → User with token
|
|
405
|
-
└── sample_data → Test data setup
|
|
406
|
-
```
|
|
407
|
-
|
|
408
|
-
---
|
|
409
|
-
|
|
410
|
-
## 10. Decision Checklist
|
|
411
|
-
|
|
412
|
-
Before implementing:
|
|
413
|
-
|
|
414
|
-
- [ ] **Asked user about framework preference?**
|
|
415
|
-
- [ ] **Chosen framework for THIS context?** (not just default)
|
|
416
|
-
- [ ] **Decided async vs sync?**
|
|
417
|
-
- [ ] **Planned type hint strategy?**
|
|
418
|
-
- [ ] **Defined project structure?**
|
|
419
|
-
- [ ] **Planned error handling?**
|
|
420
|
-
- [ ] **Considered background tasks?**
|
|
421
|
-
|
|
422
|
-
---
|
|
423
|
-
|
|
424
|
-
## 11. Anti-Patterns to Avoid
|
|
425
|
-
|
|
426
|
-
### ❌ DON'T:
|
|
427
|
-
- Default to Django for simple APIs (FastAPI may be better)
|
|
428
|
-
- Use sync libraries in async code
|
|
429
|
-
- Skip type hints for public APIs
|
|
430
|
-
- Put business logic in routes/views
|
|
431
|
-
- Ignore N+1 queries
|
|
432
|
-
- Mix async and sync carelessly
|
|
433
|
-
|
|
434
|
-
### ✅ DO:
|
|
435
|
-
- Choose framework based on context
|
|
436
|
-
- Ask about async requirements
|
|
437
|
-
- Use Pydantic for validation
|
|
438
|
-
- Separate concerns (routes → services → repos)
|
|
439
|
-
- Test critical paths
|
|
440
|
-
|
|
441
|
-
---
|
|
20
|
+
## Migration
|
|
442
21
|
|
|
443
|
-
|
|
22
|
+
1. Replace direct references to `python-patterns` with `python-pro`.
|
|
23
|
+
2. Apply the full workflow from `python-pro` for new work.
|
|
444
24
|
````
|