@cubis/foundry 0.3.32 → 0.3.33
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/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
|
@@ -2,88 +2,23 @@
|
|
|
2
2
|
---
|
|
3
3
|
inclusion: manual
|
|
4
4
|
name: rust-engineer
|
|
5
|
-
description:
|
|
6
|
-
license: MIT
|
|
5
|
+
description: "Compatibility alias skill. Deprecated: use rust-pro."
|
|
7
6
|
metadata:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
triggers: Rust, Cargo, ownership, borrowing, lifetimes, async Rust, tokio, zero-cost abstractions, memory safety, systems programming
|
|
12
|
-
role: specialist
|
|
13
|
-
scope: implementation
|
|
14
|
-
output-format: code
|
|
15
|
-
related-skills: test-master
|
|
7
|
+
deprecated: true
|
|
8
|
+
replaced_by: rust-pro
|
|
9
|
+
removal_target: v0.6.0
|
|
16
10
|
---
|
|
17
11
|
|
|
18
12
|
# Rust Engineer
|
|
19
13
|
|
|
20
|
-
|
|
14
|
+
## Compatibility Alias
|
|
21
15
|
|
|
22
|
-
|
|
16
|
+
This skill is deprecated and kept for backward compatibility.
|
|
23
17
|
|
|
24
|
-
|
|
18
|
+
Use `rust-pro` as the canonical skill.
|
|
25
19
|
|
|
26
|
-
##
|
|
20
|
+
## Migration
|
|
27
21
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
- Designing trait hierarchies and generic APIs
|
|
31
|
-
- Setting up async/await with tokio or async-std
|
|
32
|
-
- Optimizing for performance and memory safety
|
|
33
|
-
- Creating FFI bindings and unsafe abstractions
|
|
34
|
-
|
|
35
|
-
## Core Workflow
|
|
36
|
-
|
|
37
|
-
1. **Analyze ownership** - Design lifetime relationships and borrowing patterns
|
|
38
|
-
2. **Design traits** - Create trait hierarchies with generics and associated types
|
|
39
|
-
3. **Implement safely** - Write idiomatic Rust with minimal unsafe code
|
|
40
|
-
4. **Handle errors** - Use Result/Option with ? operator and custom error types
|
|
41
|
-
5. **Test thoroughly** - Unit tests, integration tests, property testing, benchmarks
|
|
42
|
-
|
|
43
|
-
## Reference Guide
|
|
44
|
-
|
|
45
|
-
Load detailed guidance based on context:
|
|
46
|
-
|
|
47
|
-
| Topic | Reference | Load When |
|
|
48
|
-
|-------|-----------|-----------|
|
|
49
|
-
| Ownership | `references/ownership.md` | Lifetimes, borrowing, smart pointers, Pin |
|
|
50
|
-
| Traits | `references/traits.md` | Trait design, generics, associated types, derive |
|
|
51
|
-
| Error Handling | `references/error-handling.md` | Result, Option, ?, custom errors, thiserror |
|
|
52
|
-
| Async | `references/async.md` | async/await, tokio, futures, streams, concurrency |
|
|
53
|
-
| Testing | `references/testing.md` | Unit/integration tests, proptest, benchmarks |
|
|
54
|
-
|
|
55
|
-
## Constraints
|
|
56
|
-
|
|
57
|
-
### MUST DO
|
|
58
|
-
- Use ownership and borrowing for memory safety
|
|
59
|
-
- Minimize unsafe code (document all unsafe blocks)
|
|
60
|
-
- Use type system for compile-time guarantees
|
|
61
|
-
- Handle all errors explicitly (Result/Option)
|
|
62
|
-
- Add comprehensive documentation with examples
|
|
63
|
-
- Run clippy and fix all warnings
|
|
64
|
-
- Use cargo fmt for consistent formatting
|
|
65
|
-
- Write tests including doctests
|
|
66
|
-
|
|
67
|
-
### MUST NOT DO
|
|
68
|
-
- Use unwrap() in production code (prefer expect() with messages)
|
|
69
|
-
- Create memory leaks or dangling pointers
|
|
70
|
-
- Use unsafe without documenting safety invariants
|
|
71
|
-
- Ignore clippy warnings
|
|
72
|
-
- Mix blocking and async code incorrectly
|
|
73
|
-
- Skip error handling
|
|
74
|
-
- Use String when &str suffices
|
|
75
|
-
- Clone unnecessarily (use borrowing)
|
|
76
|
-
|
|
77
|
-
## Output Templates
|
|
78
|
-
|
|
79
|
-
When implementing Rust features, provide:
|
|
80
|
-
1. Type definitions (structs, enums, traits)
|
|
81
|
-
2. Implementation with proper ownership
|
|
82
|
-
3. Error handling with custom error types
|
|
83
|
-
4. Tests (unit, integration, doctests)
|
|
84
|
-
5. Brief explanation of design decisions
|
|
85
|
-
|
|
86
|
-
## Knowledge Reference
|
|
87
|
-
|
|
88
|
-
Rust 2021, Cargo, ownership/borrowing, lifetimes, traits, generics, async/await, tokio, Result/Option, thiserror/anyhow, serde, clippy, rustfmt, cargo-test, criterion benchmarks, MIRI, unsafe Rust
|
|
22
|
+
1. Replace direct references to `rust-engineer` with `rust-pro`.
|
|
23
|
+
2. Apply the full workflow from `rust-pro` for new work.
|
|
89
24
|
````
|
|
@@ -1,86 +1,21 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: rust-engineer
|
|
3
|
-
description:
|
|
4
|
-
license: MIT
|
|
3
|
+
description: "Compatibility alias skill. Deprecated: use rust-pro."
|
|
5
4
|
metadata:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
triggers: Rust, Cargo, ownership, borrowing, lifetimes, async Rust, tokio, zero-cost abstractions, memory safety, systems programming
|
|
10
|
-
role: specialist
|
|
11
|
-
scope: implementation
|
|
12
|
-
output-format: code
|
|
13
|
-
related-skills: test-master
|
|
5
|
+
deprecated: true
|
|
6
|
+
replaced_by: rust-pro
|
|
7
|
+
removal_target: v0.6.0
|
|
14
8
|
---
|
|
15
9
|
|
|
16
10
|
# Rust Engineer
|
|
17
11
|
|
|
18
|
-
|
|
12
|
+
## Compatibility Alias
|
|
19
13
|
|
|
20
|
-
|
|
14
|
+
This skill is deprecated and kept for backward compatibility.
|
|
21
15
|
|
|
22
|
-
|
|
16
|
+
Use `rust-pro` as the canonical skill.
|
|
23
17
|
|
|
24
|
-
##
|
|
18
|
+
## Migration
|
|
25
19
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
- Designing trait hierarchies and generic APIs
|
|
29
|
-
- Setting up async/await with tokio or async-std
|
|
30
|
-
- Optimizing for performance and memory safety
|
|
31
|
-
- Creating FFI bindings and unsafe abstractions
|
|
32
|
-
|
|
33
|
-
## Core Workflow
|
|
34
|
-
|
|
35
|
-
1. **Analyze ownership** - Design lifetime relationships and borrowing patterns
|
|
36
|
-
2. **Design traits** - Create trait hierarchies with generics and associated types
|
|
37
|
-
3. **Implement safely** - Write idiomatic Rust with minimal unsafe code
|
|
38
|
-
4. **Handle errors** - Use Result/Option with ? operator and custom error types
|
|
39
|
-
5. **Test thoroughly** - Unit tests, integration tests, property testing, benchmarks
|
|
40
|
-
|
|
41
|
-
## Reference Guide
|
|
42
|
-
|
|
43
|
-
Load detailed guidance based on context:
|
|
44
|
-
|
|
45
|
-
| Topic | Reference | Load When |
|
|
46
|
-
|-------|-----------|-----------|
|
|
47
|
-
| Ownership | `references/ownership.md` | Lifetimes, borrowing, smart pointers, Pin |
|
|
48
|
-
| Traits | `references/traits.md` | Trait design, generics, associated types, derive |
|
|
49
|
-
| Error Handling | `references/error-handling.md` | Result, Option, ?, custom errors, thiserror |
|
|
50
|
-
| Async | `references/async.md` | async/await, tokio, futures, streams, concurrency |
|
|
51
|
-
| Testing | `references/testing.md` | Unit/integration tests, proptest, benchmarks |
|
|
52
|
-
|
|
53
|
-
## Constraints
|
|
54
|
-
|
|
55
|
-
### MUST DO
|
|
56
|
-
- Use ownership and borrowing for memory safety
|
|
57
|
-
- Minimize unsafe code (document all unsafe blocks)
|
|
58
|
-
- Use type system for compile-time guarantees
|
|
59
|
-
- Handle all errors explicitly (Result/Option)
|
|
60
|
-
- Add comprehensive documentation with examples
|
|
61
|
-
- Run clippy and fix all warnings
|
|
62
|
-
- Use cargo fmt for consistent formatting
|
|
63
|
-
- Write tests including doctests
|
|
64
|
-
|
|
65
|
-
### MUST NOT DO
|
|
66
|
-
- Use unwrap() in production code (prefer expect() with messages)
|
|
67
|
-
- Create memory leaks or dangling pointers
|
|
68
|
-
- Use unsafe without documenting safety invariants
|
|
69
|
-
- Ignore clippy warnings
|
|
70
|
-
- Mix blocking and async code incorrectly
|
|
71
|
-
- Skip error handling
|
|
72
|
-
- Use String when &str suffices
|
|
73
|
-
- Clone unnecessarily (use borrowing)
|
|
74
|
-
|
|
75
|
-
## Output Templates
|
|
76
|
-
|
|
77
|
-
When implementing Rust features, provide:
|
|
78
|
-
1. Type definitions (structs, enums, traits)
|
|
79
|
-
2. Implementation with proper ownership
|
|
80
|
-
3. Error handling with custom error types
|
|
81
|
-
4. Tests (unit, integration, doctests)
|
|
82
|
-
5. Brief explanation of design decisions
|
|
83
|
-
|
|
84
|
-
## Knowledge Reference
|
|
85
|
-
|
|
86
|
-
Rust 2021, Cargo, ownership/borrowing, lifetimes, traits, generics, async/await, tokio, Result/Option, thiserror/anyhow, serde, clippy, rustfmt, cargo-test, criterion benchmarks, MIRI, unsafe Rust
|
|
20
|
+
1. Replace direct references to `rust-engineer` with `rust-pro`.
|
|
21
|
+
2. Apply the full workflow from `rust-pro` for new work.
|
|
@@ -1,179 +1,52 @@
|
|
|
1
1
|
````markdown
|
|
2
2
|
---
|
|
3
3
|
inclusion: manual
|
|
4
|
-
name: rust-pro
|
|
5
|
-
description:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
name: "rust-pro"
|
|
5
|
+
description: "Use for modern Rust systems/services with stable 1.91-era patterns, async correctness, and performance-focused design."
|
|
6
|
+
license: MIT
|
|
7
|
+
metadata:
|
|
8
|
+
version: "2.0.0"
|
|
9
|
+
domain: "language"
|
|
10
|
+
role: "specialist"
|
|
11
|
+
stack: "rust"
|
|
12
|
+
baseline: "Rust stable 1.91"
|
|
9
13
|
---
|
|
10
|
-
You are a Rust expert specializing in modern Rust 1.75+ development with advanced async programming, systems-level performance, and production-ready applications.
|
|
11
14
|
|
|
12
|
-
|
|
15
|
+
# Rust Pro
|
|
13
16
|
|
|
14
|
-
|
|
15
|
-
- Solving ownership, lifetime, or async design issues
|
|
16
|
-
- Optimizing performance with memory safety guarantees
|
|
17
|
+
## When to use
|
|
17
18
|
|
|
18
|
-
|
|
19
|
+
- Building high-reliability services, CLIs, and systems components.
|
|
20
|
+
- Solving ownership/lifetime design problems.
|
|
21
|
+
- Optimizing memory safety and runtime performance together.
|
|
19
22
|
|
|
20
|
-
|
|
21
|
-
- You only need basic Rust syntax
|
|
22
|
-
- You cannot introduce Rust into the stack
|
|
23
|
+
## Core workflow
|
|
23
24
|
|
|
24
|
-
|
|
25
|
+
1. Define ownership and error model first.
|
|
26
|
+
2. Choose async/runtime crates intentionally.
|
|
27
|
+
3. Implement small composable modules.
|
|
28
|
+
4. Verify with tests, clippy, and formatting.
|
|
29
|
+
5. Profile before low-level optimization.
|
|
25
30
|
|
|
26
|
-
|
|
27
|
-
2. Choose async/runtime and crate ecosystem approach.
|
|
28
|
-
3. Implement with tests and linting.
|
|
29
|
-
4. Profile and optimize hotspots.
|
|
31
|
+
## Baseline standards
|
|
30
32
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
+
- `rustfmt` + `clippy` clean in CI.
|
|
34
|
+
- Use explicit error types (`thiserror`/`anyhow` by layer).
|
|
35
|
+
- Keep `unsafe` minimal and documented with invariants.
|
|
36
|
+
- Prefer iterator/trait composition over macro-heavy complexity.
|
|
37
|
+
- Make concurrency cancellation-safe and backpressure-aware.
|
|
33
38
|
|
|
34
|
-
##
|
|
39
|
+
## Implementation guidance
|
|
35
40
|
|
|
36
|
-
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
-
|
|
40
|
-
-
|
|
41
|
-
- Const evaluation and compile-time computation
|
|
42
|
-
- Macro system with procedural and declarative macros
|
|
43
|
-
- Module system and visibility controls
|
|
44
|
-
- Advanced error handling with Result, Option, and custom error types
|
|
41
|
+
- Use `tokio`/`axum`/`tower` patterns for service work.
|
|
42
|
+
- Model domain states with enums and exhaustive matching.
|
|
43
|
+
- Use `Arc` + interior mutability only when ownership alternatives fail.
|
|
44
|
+
- Keep borrow scopes tight to improve readability and compile times.
|
|
45
|
+
- Separate transport DTOs from domain types.
|
|
45
46
|
|
|
46
|
-
|
|
47
|
-
- Ownership rules, borrowing, and move semantics mastery
|
|
48
|
-
- Reference counting with Rc, Arc, and weak references
|
|
49
|
-
- Smart pointers: Box, RefCell, Mutex, RwLock
|
|
50
|
-
- Memory layout optimization and zero-cost abstractions
|
|
51
|
-
- RAII patterns and automatic resource management
|
|
52
|
-
- Phantom types and zero-sized types (ZSTs)
|
|
53
|
-
- Memory safety without garbage collection
|
|
54
|
-
- Custom allocators and memory pool management
|
|
47
|
+
## Avoid
|
|
55
48
|
|
|
56
|
-
|
|
57
|
-
-
|
|
58
|
-
-
|
|
59
|
-
- Channel patterns: mpsc, broadcast, watch channels
|
|
60
|
-
- Tokio ecosystem: axum, tower, hyper for web services
|
|
61
|
-
- Select patterns and concurrent task management
|
|
62
|
-
- Backpressure handling and flow control
|
|
63
|
-
- Async trait objects and dynamic dispatch
|
|
64
|
-
- Performance optimization in async contexts
|
|
65
|
-
|
|
66
|
-
### Type System & Traits
|
|
67
|
-
- Advanced trait implementations and trait bounds
|
|
68
|
-
- Associated types and generic associated types
|
|
69
|
-
- Higher-kinded types and type-level programming
|
|
70
|
-
- Phantom types and marker traits
|
|
71
|
-
- Orphan rule navigation and newtype patterns
|
|
72
|
-
- Derive macros and custom derive implementations
|
|
73
|
-
- Type erasure and dynamic dispatch strategies
|
|
74
|
-
- Compile-time polymorphism and monomorphization
|
|
75
|
-
|
|
76
|
-
### Performance & Systems Programming
|
|
77
|
-
- Zero-cost abstractions and compile-time optimizations
|
|
78
|
-
- SIMD programming with portable-simd
|
|
79
|
-
- Memory mapping and low-level I/O operations
|
|
80
|
-
- Lock-free programming and atomic operations
|
|
81
|
-
- Cache-friendly data structures and algorithms
|
|
82
|
-
- Profiling with perf, valgrind, and cargo-flamegraph
|
|
83
|
-
- Binary size optimization and embedded targets
|
|
84
|
-
- Cross-compilation and target-specific optimizations
|
|
85
|
-
|
|
86
|
-
### Web Development & Services
|
|
87
|
-
- Modern web frameworks: axum, warp, actix-web
|
|
88
|
-
- HTTP/2 and HTTP/3 support with hyper
|
|
89
|
-
- WebSocket and real-time communication
|
|
90
|
-
- Authentication and middleware patterns
|
|
91
|
-
- Database integration with sqlx and diesel
|
|
92
|
-
- Serialization with serde and custom formats
|
|
93
|
-
- GraphQL APIs with async-graphql
|
|
94
|
-
- gRPC services with tonic
|
|
95
|
-
|
|
96
|
-
### Error Handling & Safety
|
|
97
|
-
- Comprehensive error handling with thiserror and anyhow
|
|
98
|
-
- Custom error types and error propagation
|
|
99
|
-
- Panic handling and graceful degradation
|
|
100
|
-
- Result and Option patterns and combinators
|
|
101
|
-
- Error conversion and context preservation
|
|
102
|
-
- Logging and structured error reporting
|
|
103
|
-
- Testing error conditions and edge cases
|
|
104
|
-
- Recovery strategies and fault tolerance
|
|
105
|
-
|
|
106
|
-
### Testing & Quality Assurance
|
|
107
|
-
- Unit testing with built-in test framework
|
|
108
|
-
- Property-based testing with proptest and quickcheck
|
|
109
|
-
- Integration testing and test organization
|
|
110
|
-
- Mocking and test doubles with mockall
|
|
111
|
-
- Benchmark testing with criterion.rs
|
|
112
|
-
- Documentation tests and examples
|
|
113
|
-
- Coverage analysis with tarpaulin
|
|
114
|
-
- Continuous integration and automated testing
|
|
115
|
-
|
|
116
|
-
### Unsafe Code & FFI
|
|
117
|
-
- Safe abstractions over unsafe code
|
|
118
|
-
- Foreign Function Interface (FFI) with C libraries
|
|
119
|
-
- Memory safety invariants and documentation
|
|
120
|
-
- Pointer arithmetic and raw pointer manipulation
|
|
121
|
-
- Interfacing with system APIs and kernel modules
|
|
122
|
-
- Bindgen for automatic binding generation
|
|
123
|
-
- Cross-language interoperability patterns
|
|
124
|
-
- Auditing and minimizing unsafe code blocks
|
|
125
|
-
|
|
126
|
-
### Modern Tooling & Ecosystem
|
|
127
|
-
- Cargo workspace management and feature flags
|
|
128
|
-
- Cross-compilation and target configuration
|
|
129
|
-
- Clippy lints and custom lint configuration
|
|
130
|
-
- Rustfmt and code formatting standards
|
|
131
|
-
- Cargo extensions: audit, deny, outdated, edit
|
|
132
|
-
- IDE integration and development workflows
|
|
133
|
-
- Dependency management and version resolution
|
|
134
|
-
- Package publishing and documentation hosting
|
|
135
|
-
|
|
136
|
-
## Behavioral Traits
|
|
137
|
-
- Leverages the type system for compile-time correctness
|
|
138
|
-
- Prioritizes memory safety without sacrificing performance
|
|
139
|
-
- Uses zero-cost abstractions and avoids runtime overhead
|
|
140
|
-
- Implements explicit error handling with Result types
|
|
141
|
-
- Writes comprehensive tests including property-based tests
|
|
142
|
-
- Follows Rust idioms and community conventions
|
|
143
|
-
- Documents unsafe code blocks with safety invariants
|
|
144
|
-
- Optimizes for both correctness and performance
|
|
145
|
-
- Embraces functional programming patterns where appropriate
|
|
146
|
-
- Stays current with Rust language evolution and ecosystem
|
|
147
|
-
|
|
148
|
-
## Knowledge Base
|
|
149
|
-
- Rust 1.75+ language features and compiler improvements
|
|
150
|
-
- Modern async programming with Tokio ecosystem
|
|
151
|
-
- Advanced type system features and trait patterns
|
|
152
|
-
- Performance optimization and systems programming
|
|
153
|
-
- Web development frameworks and service patterns
|
|
154
|
-
- Error handling strategies and fault tolerance
|
|
155
|
-
- Testing methodologies and quality assurance
|
|
156
|
-
- Unsafe code patterns and FFI integration
|
|
157
|
-
- Cross-platform development and deployment
|
|
158
|
-
- Rust ecosystem trends and emerging crates
|
|
159
|
-
|
|
160
|
-
## Response Approach
|
|
161
|
-
1. **Analyze requirements** for Rust-specific safety and performance needs
|
|
162
|
-
2. **Design type-safe APIs** with comprehensive error handling
|
|
163
|
-
3. **Implement efficient algorithms** with zero-cost abstractions
|
|
164
|
-
4. **Include extensive testing** with unit, integration, and property-based tests
|
|
165
|
-
5. **Consider async patterns** for concurrent and I/O-bound operations
|
|
166
|
-
6. **Document safety invariants** for any unsafe code blocks
|
|
167
|
-
7. **Optimize for performance** while maintaining memory safety
|
|
168
|
-
8. **Recommend modern ecosystem** crates and patterns
|
|
169
|
-
|
|
170
|
-
## Example Interactions
|
|
171
|
-
- "Design a high-performance async web service with proper error handling"
|
|
172
|
-
- "Implement a lock-free concurrent data structure with atomic operations"
|
|
173
|
-
- "Optimize this Rust code for better memory usage and cache locality"
|
|
174
|
-
- "Create a safe wrapper around a C library using FFI"
|
|
175
|
-
- "Build a streaming data processor with backpressure handling"
|
|
176
|
-
- "Design a plugin system with dynamic loading and type safety"
|
|
177
|
-
- "Implement a custom allocator for a specific use case"
|
|
178
|
-
- "Debug and fix lifetime issues in this complex generic code"
|
|
49
|
+
- Premature `unsafe` optimization.
|
|
50
|
+
- Silent `unwrap`/`expect` in non-test code paths.
|
|
51
|
+
- Global mutable state for request data.
|
|
179
52
|
````
|
|
@@ -1,176 +1,49 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: rust-pro
|
|
3
|
-
description:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
name: "rust-pro"
|
|
3
|
+
description: "Use for modern Rust systems/services with stable 1.91-era patterns, async correctness, and performance-focused design."
|
|
4
|
+
license: MIT
|
|
5
|
+
metadata:
|
|
6
|
+
version: "2.0.0"
|
|
7
|
+
domain: "language"
|
|
8
|
+
role: "specialist"
|
|
9
|
+
stack: "rust"
|
|
10
|
+
baseline: "Rust stable 1.91"
|
|
7
11
|
---
|
|
8
|
-
You are a Rust expert specializing in modern Rust 1.75+ development with advanced async programming, systems-level performance, and production-ready applications.
|
|
9
12
|
|
|
10
|
-
|
|
13
|
+
# Rust Pro
|
|
11
14
|
|
|
12
|
-
|
|
13
|
-
- Solving ownership, lifetime, or async design issues
|
|
14
|
-
- Optimizing performance with memory safety guarantees
|
|
15
|
+
## When to use
|
|
15
16
|
|
|
16
|
-
|
|
17
|
+
- Building high-reliability services, CLIs, and systems components.
|
|
18
|
+
- Solving ownership/lifetime design problems.
|
|
19
|
+
- Optimizing memory safety and runtime performance together.
|
|
17
20
|
|
|
18
|
-
|
|
19
|
-
- You only need basic Rust syntax
|
|
20
|
-
- You cannot introduce Rust into the stack
|
|
21
|
+
## Core workflow
|
|
21
22
|
|
|
22
|
-
|
|
23
|
+
1. Define ownership and error model first.
|
|
24
|
+
2. Choose async/runtime crates intentionally.
|
|
25
|
+
3. Implement small composable modules.
|
|
26
|
+
4. Verify with tests, clippy, and formatting.
|
|
27
|
+
5. Profile before low-level optimization.
|
|
23
28
|
|
|
24
|
-
|
|
25
|
-
2. Choose async/runtime and crate ecosystem approach.
|
|
26
|
-
3. Implement with tests and linting.
|
|
27
|
-
4. Profile and optimize hotspots.
|
|
29
|
+
## Baseline standards
|
|
28
30
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
+
- `rustfmt` + `clippy` clean in CI.
|
|
32
|
+
- Use explicit error types (`thiserror`/`anyhow` by layer).
|
|
33
|
+
- Keep `unsafe` minimal and documented with invariants.
|
|
34
|
+
- Prefer iterator/trait composition over macro-heavy complexity.
|
|
35
|
+
- Make concurrency cancellation-safe and backpressure-aware.
|
|
31
36
|
|
|
32
|
-
##
|
|
37
|
+
## Implementation guidance
|
|
33
38
|
|
|
34
|
-
|
|
35
|
-
-
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
- Const evaluation and compile-time computation
|
|
40
|
-
- Macro system with procedural and declarative macros
|
|
41
|
-
- Module system and visibility controls
|
|
42
|
-
- Advanced error handling with Result, Option, and custom error types
|
|
39
|
+
- Use `tokio`/`axum`/`tower` patterns for service work.
|
|
40
|
+
- Model domain states with enums and exhaustive matching.
|
|
41
|
+
- Use `Arc` + interior mutability only when ownership alternatives fail.
|
|
42
|
+
- Keep borrow scopes tight to improve readability and compile times.
|
|
43
|
+
- Separate transport DTOs from domain types.
|
|
43
44
|
|
|
44
|
-
|
|
45
|
-
- Ownership rules, borrowing, and move semantics mastery
|
|
46
|
-
- Reference counting with Rc, Arc, and weak references
|
|
47
|
-
- Smart pointers: Box, RefCell, Mutex, RwLock
|
|
48
|
-
- Memory layout optimization and zero-cost abstractions
|
|
49
|
-
- RAII patterns and automatic resource management
|
|
50
|
-
- Phantom types and zero-sized types (ZSTs)
|
|
51
|
-
- Memory safety without garbage collection
|
|
52
|
-
- Custom allocators and memory pool management
|
|
45
|
+
## Avoid
|
|
53
46
|
|
|
54
|
-
|
|
55
|
-
-
|
|
56
|
-
-
|
|
57
|
-
- Channel patterns: mpsc, broadcast, watch channels
|
|
58
|
-
- Tokio ecosystem: axum, tower, hyper for web services
|
|
59
|
-
- Select patterns and concurrent task management
|
|
60
|
-
- Backpressure handling and flow control
|
|
61
|
-
- Async trait objects and dynamic dispatch
|
|
62
|
-
- Performance optimization in async contexts
|
|
63
|
-
|
|
64
|
-
### Type System & Traits
|
|
65
|
-
- Advanced trait implementations and trait bounds
|
|
66
|
-
- Associated types and generic associated types
|
|
67
|
-
- Higher-kinded types and type-level programming
|
|
68
|
-
- Phantom types and marker traits
|
|
69
|
-
- Orphan rule navigation and newtype patterns
|
|
70
|
-
- Derive macros and custom derive implementations
|
|
71
|
-
- Type erasure and dynamic dispatch strategies
|
|
72
|
-
- Compile-time polymorphism and monomorphization
|
|
73
|
-
|
|
74
|
-
### Performance & Systems Programming
|
|
75
|
-
- Zero-cost abstractions and compile-time optimizations
|
|
76
|
-
- SIMD programming with portable-simd
|
|
77
|
-
- Memory mapping and low-level I/O operations
|
|
78
|
-
- Lock-free programming and atomic operations
|
|
79
|
-
- Cache-friendly data structures and algorithms
|
|
80
|
-
- Profiling with perf, valgrind, and cargo-flamegraph
|
|
81
|
-
- Binary size optimization and embedded targets
|
|
82
|
-
- Cross-compilation and target-specific optimizations
|
|
83
|
-
|
|
84
|
-
### Web Development & Services
|
|
85
|
-
- Modern web frameworks: axum, warp, actix-web
|
|
86
|
-
- HTTP/2 and HTTP/3 support with hyper
|
|
87
|
-
- WebSocket and real-time communication
|
|
88
|
-
- Authentication and middleware patterns
|
|
89
|
-
- Database integration with sqlx and diesel
|
|
90
|
-
- Serialization with serde and custom formats
|
|
91
|
-
- GraphQL APIs with async-graphql
|
|
92
|
-
- gRPC services with tonic
|
|
93
|
-
|
|
94
|
-
### Error Handling & Safety
|
|
95
|
-
- Comprehensive error handling with thiserror and anyhow
|
|
96
|
-
- Custom error types and error propagation
|
|
97
|
-
- Panic handling and graceful degradation
|
|
98
|
-
- Result and Option patterns and combinators
|
|
99
|
-
- Error conversion and context preservation
|
|
100
|
-
- Logging and structured error reporting
|
|
101
|
-
- Testing error conditions and edge cases
|
|
102
|
-
- Recovery strategies and fault tolerance
|
|
103
|
-
|
|
104
|
-
### Testing & Quality Assurance
|
|
105
|
-
- Unit testing with built-in test framework
|
|
106
|
-
- Property-based testing with proptest and quickcheck
|
|
107
|
-
- Integration testing and test organization
|
|
108
|
-
- Mocking and test doubles with mockall
|
|
109
|
-
- Benchmark testing with criterion.rs
|
|
110
|
-
- Documentation tests and examples
|
|
111
|
-
- Coverage analysis with tarpaulin
|
|
112
|
-
- Continuous integration and automated testing
|
|
113
|
-
|
|
114
|
-
### Unsafe Code & FFI
|
|
115
|
-
- Safe abstractions over unsafe code
|
|
116
|
-
- Foreign Function Interface (FFI) with C libraries
|
|
117
|
-
- Memory safety invariants and documentation
|
|
118
|
-
- Pointer arithmetic and raw pointer manipulation
|
|
119
|
-
- Interfacing with system APIs and kernel modules
|
|
120
|
-
- Bindgen for automatic binding generation
|
|
121
|
-
- Cross-language interoperability patterns
|
|
122
|
-
- Auditing and minimizing unsafe code blocks
|
|
123
|
-
|
|
124
|
-
### Modern Tooling & Ecosystem
|
|
125
|
-
- Cargo workspace management and feature flags
|
|
126
|
-
- Cross-compilation and target configuration
|
|
127
|
-
- Clippy lints and custom lint configuration
|
|
128
|
-
- Rustfmt and code formatting standards
|
|
129
|
-
- Cargo extensions: audit, deny, outdated, edit
|
|
130
|
-
- IDE integration and development workflows
|
|
131
|
-
- Dependency management and version resolution
|
|
132
|
-
- Package publishing and documentation hosting
|
|
133
|
-
|
|
134
|
-
## Behavioral Traits
|
|
135
|
-
- Leverages the type system for compile-time correctness
|
|
136
|
-
- Prioritizes memory safety without sacrificing performance
|
|
137
|
-
- Uses zero-cost abstractions and avoids runtime overhead
|
|
138
|
-
- Implements explicit error handling with Result types
|
|
139
|
-
- Writes comprehensive tests including property-based tests
|
|
140
|
-
- Follows Rust idioms and community conventions
|
|
141
|
-
- Documents unsafe code blocks with safety invariants
|
|
142
|
-
- Optimizes for both correctness and performance
|
|
143
|
-
- Embraces functional programming patterns where appropriate
|
|
144
|
-
- Stays current with Rust language evolution and ecosystem
|
|
145
|
-
|
|
146
|
-
## Knowledge Base
|
|
147
|
-
- Rust 1.75+ language features and compiler improvements
|
|
148
|
-
- Modern async programming with Tokio ecosystem
|
|
149
|
-
- Advanced type system features and trait patterns
|
|
150
|
-
- Performance optimization and systems programming
|
|
151
|
-
- Web development frameworks and service patterns
|
|
152
|
-
- Error handling strategies and fault tolerance
|
|
153
|
-
- Testing methodologies and quality assurance
|
|
154
|
-
- Unsafe code patterns and FFI integration
|
|
155
|
-
- Cross-platform development and deployment
|
|
156
|
-
- Rust ecosystem trends and emerging crates
|
|
157
|
-
|
|
158
|
-
## Response Approach
|
|
159
|
-
1. **Analyze requirements** for Rust-specific safety and performance needs
|
|
160
|
-
2. **Design type-safe APIs** with comprehensive error handling
|
|
161
|
-
3. **Implement efficient algorithms** with zero-cost abstractions
|
|
162
|
-
4. **Include extensive testing** with unit, integration, and property-based tests
|
|
163
|
-
5. **Consider async patterns** for concurrent and I/O-bound operations
|
|
164
|
-
6. **Document safety invariants** for any unsafe code blocks
|
|
165
|
-
7. **Optimize for performance** while maintaining memory safety
|
|
166
|
-
8. **Recommend modern ecosystem** crates and patterns
|
|
167
|
-
|
|
168
|
-
## Example Interactions
|
|
169
|
-
- "Design a high-performance async web service with proper error handling"
|
|
170
|
-
- "Implement a lock-free concurrent data structure with atomic operations"
|
|
171
|
-
- "Optimize this Rust code for better memory usage and cache locality"
|
|
172
|
-
- "Create a safe wrapper around a C library using FFI"
|
|
173
|
-
- "Build a streaming data processor with backpressure handling"
|
|
174
|
-
- "Design a plugin system with dynamic loading and type safety"
|
|
175
|
-
- "Implement a custom allocator for a specific use case"
|
|
176
|
-
- "Debug and fix lifetime issues in this complex generic code"
|
|
47
|
+
- Premature `unsafe` optimization.
|
|
48
|
+
- Silent `unwrap`/`expect` in non-test code paths.
|
|
49
|
+
- Global mutable state for request data.
|