proagents 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +170 -0
- package/bin/proagents.js +90 -0
- package/lib/commands/feature.js +125 -0
- package/lib/commands/fix.js +60 -0
- package/lib/commands/help.js +76 -0
- package/lib/commands/init.js +64 -0
- package/lib/commands/status.js +91 -0
- package/lib/index.js +28 -0
- package/package.json +52 -0
- package/proagents/.learning/global/common-patterns.json +77 -0
- package/proagents/.learning/global/user-preferences.json +76 -0
- package/proagents/.learning/projects/example-project/corrections.json +99 -0
- package/proagents/.learning/projects/example-project/feedback.json +109 -0
- package/proagents/.learning/projects/example-project/metrics.json +101 -0
- package/proagents/.learning/projects/example-project/patterns.json +102 -0
- package/proagents/.learning/schemas/README.md +48 -0
- package/proagents/.learning/schemas/corrections-schema.json +100 -0
- package/proagents/.learning/schemas/feedback-schema.json +144 -0
- package/proagents/.learning/schemas/metrics-schema.json +96 -0
- package/proagents/.learning/schemas/patterns-schema.json +82 -0
- package/proagents/.learning/schemas/project-patterns-schema.json +125 -0
- package/proagents/.learning/schemas/user-preferences-schema.json +136 -0
- package/proagents/GETTING-STARTED-STORY.md +708 -0
- package/proagents/README.md +99 -0
- package/proagents/WORKFLOW.md +1234 -0
- package/proagents/active-features/.gitkeep +0 -0
- package/proagents/active-features/README.md +176 -0
- package/proagents/active-features/_index.json +74 -0
- package/proagents/active-features/feature-user-auth/dependencies.json +81 -0
- package/proagents/active-features/feature-user-auth/files-modified.json +126 -0
- package/proagents/active-features/feature-user-auth/status.json +122 -0
- package/proagents/active-features/schemas/dependencies-schema.json +119 -0
- package/proagents/active-features/schemas/feature-schema.json +132 -0
- package/proagents/active-features/schemas/files-schema.json +100 -0
- package/proagents/active-features/schemas/index-schema.json +95 -0
- package/proagents/adr/README.md +302 -0
- package/proagents/adr/examples/api-versioning.md +297 -0
- package/proagents/adr/examples/database-choice.md +264 -0
- package/proagents/adr/template.md +273 -0
- package/proagents/ai-models/README.md +141 -0
- package/proagents/ai-models/cost-management.md +362 -0
- package/proagents/ai-models/fallbacks.md +342 -0
- package/proagents/ai-models/model-config.md +318 -0
- package/proagents/ai-models/task-routing.md +503 -0
- package/proagents/ai-training/README.md +155 -0
- package/proagents/ai-training/continuous-learning.md +413 -0
- package/proagents/ai-training/domain-knowledge.md +378 -0
- package/proagents/ai-training/pattern-learning.md +455 -0
- package/proagents/ai-training/training-data.md +337 -0
- package/proagents/ai-training/user-preferences.md +346 -0
- package/proagents/api-versioning/README.md +257 -0
- package/proagents/api-versioning/changelog-template.md +225 -0
- package/proagents/api-versioning/deprecation-workflow.md +470 -0
- package/proagents/api-versioning/versioning-strategy.md +291 -0
- package/proagents/approval-workflows/README.md +146 -0
- package/proagents/approval-workflows/approval-config.md +332 -0
- package/proagents/approval-workflows/approval-stages.md +503 -0
- package/proagents/approval-workflows/emergency-bypass.md +351 -0
- package/proagents/approval-workflows/examples.md +859 -0
- package/proagents/approval-workflows/notifications.md +320 -0
- package/proagents/automation/README.md +38 -0
- package/proagents/automation/ai-behavior-rules.md +339 -0
- package/proagents/automation/ai-prompt-injection.md +331 -0
- package/proagents/automation/auto-decisions.md +535 -0
- package/proagents/automation/decision-defaults.yaml +317 -0
- package/proagents/cache/README.md +110 -0
- package/proagents/cache/analysis-metadata.json +76 -0
- package/proagents/cache/conventions.json +125 -0
- package/proagents/cache/dependencies.json +85 -0
- package/proagents/cache/features.json +115 -0
- package/proagents/cache/patterns.json +105 -0
- package/proagents/cache/schemas/conventions-schema.json +138 -0
- package/proagents/cache/schemas/dependencies-schema.json +95 -0
- package/proagents/cache/schemas/features-schema.json +104 -0
- package/proagents/cache/schemas/metadata-schema.json +83 -0
- package/proagents/cache/schemas/patterns-schema.json +136 -0
- package/proagents/cache/schemas/structure-schema.json +72 -0
- package/proagents/cache/structure.json +109 -0
- package/proagents/changelog/2024/01/2024-01-10-api-url-config.md +41 -0
- package/proagents/changelog/2024/01/2024-01-12-login-bug-fix.md +69 -0
- package/proagents/changelog/2024/01/2024-01-15-user-auth-feature.md +99 -0
- package/proagents/changelog/CHANGELOG.md +82 -0
- package/proagents/changelog/README.md +327 -0
- package/proagents/changelog/entry-template.md +283 -0
- package/proagents/checklists/README.md +261 -0
- package/proagents/checklists/code-quality.md +137 -0
- package/proagents/checklists/code-review.md +148 -0
- package/proagents/checklists/pr-checklist.md +78 -0
- package/proagents/checklists/pre-deployment.md +132 -0
- package/proagents/checklists/pre-implementation.md +80 -0
- package/proagents/checklists/testing.md +120 -0
- package/proagents/cicd/README.md +338 -0
- package/proagents/cicd/azure-devops.md +267 -0
- package/proagents/cicd/github-actions.md +375 -0
- package/proagents/cicd/gitlab-ci.md +278 -0
- package/proagents/cicd/jenkins.md +317 -0
- package/proagents/cli/README.md +392 -0
- package/proagents/cli/commands-reference.md +893 -0
- package/proagents/cli/ide-integration.md +584 -0
- package/proagents/cli/shortcuts.md +394 -0
- package/proagents/cli/slash-commands.md +507 -0
- package/proagents/collaboration/README.md +143 -0
- package/proagents/collaboration/roles.md +248 -0
- package/proagents/collaboration/sessions.md +390 -0
- package/proagents/collaboration/sync.md +358 -0
- package/proagents/compliance/README.md +206 -0
- package/proagents/compliance/access-control.md +310 -0
- package/proagents/compliance/audit-logging.md +444 -0
- package/proagents/compliance/compliance-frameworks.md +429 -0
- package/proagents/compliance/reports.md +491 -0
- package/proagents/compliance/retention-policies.md +454 -0
- package/proagents/config/README.md +181 -0
- package/proagents/config/integrations/README.md +68 -0
- package/proagents/config/integrations/github.yaml +211 -0
- package/proagents/config/integrations/jira.yaml +144 -0
- package/proagents/config/integrations/linear.yaml +157 -0
- package/proagents/config/integrations/notion.yaml +203 -0
- package/proagents/config/integrations/slack.yaml +230 -0
- package/proagents/config/rules/README.md +73 -0
- package/proagents/config/rules/custom-rules.template.yaml +188 -0
- package/proagents/config/rules/validation-rules.template.yaml +177 -0
- package/proagents/config/standards/README.md +58 -0
- package/proagents/config/standards/architecture-rules.template.md +124 -0
- package/proagents/config/standards/coding-standards.template.md +107 -0
- package/proagents/config/standards/naming-conventions.template.md +114 -0
- package/proagents/config/standards/testing-standards.template.md +213 -0
- package/proagents/config/templates/README.md +74 -0
- package/proagents/config/templates/api-route.template.ts +142 -0
- package/proagents/config/templates/component.template.tsx +55 -0
- package/proagents/config/templates/hook.template.ts +93 -0
- package/proagents/config/templates/test.template.ts +171 -0
- package/proagents/config-versioning/README.md +120 -0
- package/proagents/config-versioning/changelog.md +300 -0
- package/proagents/config-versioning/rollback.md +283 -0
- package/proagents/config-versioning/versioning.md +330 -0
- package/proagents/contract-testing/README.md +223 -0
- package/proagents/contract-testing/contract-testing.md +614 -0
- package/proagents/contract-testing/pact-integration.md +507 -0
- package/proagents/contract-testing/schema-validation.md +565 -0
- package/proagents/cost/README.md +48 -0
- package/proagents/cost/cost-template.md +283 -0
- package/proagents/cost/estimation-framework.md +287 -0
- package/proagents/database/README.md +72 -0
- package/proagents/database/examples/001-create-users.sql +129 -0
- package/proagents/database/examples/002-add-preferences.sql +94 -0
- package/proagents/database/examples/003-add-index.sql +105 -0
- package/proagents/database/examples/004-rename-column.sql +122 -0
- package/proagents/database/examples/005-add-foreign-key.sql +142 -0
- package/proagents/database/examples/006-data-migration.sql +196 -0
- package/proagents/database/examples/007-drop-column.sql +163 -0
- package/proagents/database/examples/README.md +89 -0
- package/proagents/database/migration-workflow.md +478 -0
- package/proagents/database/rollback-scripts.md +487 -0
- package/proagents/database/safety-checks.md +447 -0
- package/proagents/dependency-management/README.md +140 -0
- package/proagents/dependency-management/automation.md +363 -0
- package/proagents/dependency-management/compatibility.md +319 -0
- package/proagents/dependency-management/security-scanning.md +413 -0
- package/proagents/dependency-management/update-policies.md +374 -0
- package/proagents/disaster-recovery/README.md +247 -0
- package/proagents/disaster-recovery/automation.md +366 -0
- package/proagents/disaster-recovery/backup-recovery.md +571 -0
- package/proagents/disaster-recovery/incident-response.md +565 -0
- package/proagents/disaster-recovery/rollback-procedures.md +499 -0
- package/proagents/disaster-recovery/runbooks.md +603 -0
- package/proagents/disaster-recovery/scenarios.md +892 -0
- package/proagents/disaster-recovery/testing.md +438 -0
- package/proagents/environments/README.md +244 -0
- package/proagents/environments/configuration.md +437 -0
- package/proagents/environments/promotion.md +434 -0
- package/proagents/environments/setup.md +420 -0
- package/proagents/examples/README.md +55 -0
- package/proagents/examples/backend-nodejs/README.md +188 -0
- package/proagents/examples/backend-nodejs/complete-conversation.md +601 -0
- package/proagents/examples/backend-nodejs/proagents.config.yaml +415 -0
- package/proagents/examples/backend-nodejs/workflow-example.md +909 -0
- package/proagents/examples/fullstack-nextjs/README.md +155 -0
- package/proagents/examples/fullstack-nextjs/complete-conversation.md +604 -0
- package/proagents/examples/fullstack-nextjs/proagents.config.yaml +287 -0
- package/proagents/examples/fullstack-nextjs/workflow-example.md +553 -0
- package/proagents/examples/mobile-react-native/README.md +171 -0
- package/proagents/examples/mobile-react-native/complete-conversation.md +825 -0
- package/proagents/examples/mobile-react-native/proagents.config.yaml +330 -0
- package/proagents/examples/mobile-react-native/workflow-example.md +723 -0
- package/proagents/examples/web-frontend-react/README.md +125 -0
- package/proagents/examples/web-frontend-react/complete-conversation.md +556 -0
- package/proagents/examples/web-frontend-react/proagents.config.yaml +183 -0
- package/proagents/examples/web-frontend-react/workflow-example.md +603 -0
- package/proagents/existing-projects/README.md +65 -0
- package/proagents/existing-projects/challenges.md +861 -0
- package/proagents/existing-projects/coexistence-mode.md +483 -0
- package/proagents/existing-projects/compatibility-assessment.md +541 -0
- package/proagents/existing-projects/gradual-adoption.md +515 -0
- package/proagents/existing-projects/migration-strategies.md +788 -0
- package/proagents/existing-projects/pattern-reconciliation.md +489 -0
- package/proagents/existing-projects/team-onboarding.md +617 -0
- package/proagents/existing-projects/technical-debt-handling.md +644 -0
- package/proagents/feature-flags/README.md +263 -0
- package/proagents/feature-flags/ab-testing.md +413 -0
- package/proagents/feature-flags/configuration.md +420 -0
- package/proagents/feature-flags/kill-switches.md +444 -0
- package/proagents/feature-flags/rollout-strategies.md +392 -0
- package/proagents/getting-started/README.md +60 -0
- package/proagents/getting-started/ai-training-setup.md +380 -0
- package/proagents/getting-started/ide-setup.md +195 -0
- package/proagents/getting-started/mcp-setup.md +239 -0
- package/proagents/getting-started/pm-integration.md +336 -0
- package/proagents/getting-started/prompt-engineering.md +478 -0
- package/proagents/getting-started/team-onboarding.md +236 -0
- package/proagents/git/README.md +68 -0
- package/proagents/git/branch-strategy.md +164 -0
- package/proagents/git/commit-conventions.md +241 -0
- package/proagents/git/pr-workflow.md +286 -0
- package/proagents/git/rollback-procedures.md +416 -0
- package/proagents/i18n/README.md +133 -0
- package/proagents/i18n/extraction.md +433 -0
- package/proagents/i18n/tms-integration.md +332 -0
- package/proagents/i18n/translation-workflow.md +413 -0
- package/proagents/i18n/validation.md +355 -0
- package/proagents/ide-integration/README.md +124 -0
- package/proagents/ide-integration/cline-config.md +429 -0
- package/proagents/ide-integration/continue-config.md +380 -0
- package/proagents/ide-integration/cursor-rules.md +280 -0
- package/proagents/ide-integration/github-copilot.md +384 -0
- package/proagents/ide-integration/windsurf-rules.md +314 -0
- package/proagents/integrations/README.md +97 -0
- package/proagents/integrations/pm/README.md +344 -0
- package/proagents/learning/README.md +136 -0
- package/proagents/learning/adaptation.md +305 -0
- package/proagents/learning/data-collection.md +283 -0
- package/proagents/learning/implementation-guide.md +865 -0
- package/proagents/learning/reports.md +306 -0
- package/proagents/logging/README.md +276 -0
- package/proagents/logging/aggregation.md +475 -0
- package/proagents/logging/log-levels.md +376 -0
- package/proagents/logging/sensitive-data.md +423 -0
- package/proagents/logging/structured-logging.md +406 -0
- package/proagents/mcp/README.md +133 -0
- package/proagents/mcp/context-providers.md +442 -0
- package/proagents/mcp/server-config.md +306 -0
- package/proagents/mcp/tools-definition.md +513 -0
- package/proagents/metrics/README.md +174 -0
- package/proagents/metrics/code-quality-kpis.md +461 -0
- package/proagents/metrics/deployment-metrics.md +517 -0
- package/proagents/metrics/developer-productivity.md +368 -0
- package/proagents/metrics/learning-effectiveness.md +478 -0
- package/proagents/migrations/README.md +77 -0
- package/proagents/migrations/from-claude-projects.md +312 -0
- package/proagents/migrations/from-cursor-rules.md +345 -0
- package/proagents/migrations/from-custom-workflows.md +410 -0
- package/proagents/monitoring/README.md +308 -0
- package/proagents/monitoring/alerting.md +449 -0
- package/proagents/monitoring/dashboards.md +454 -0
- package/proagents/monitoring/health-checks.md +436 -0
- package/proagents/monitoring/metrics.md +434 -0
- package/proagents/multi-project/README.md +170 -0
- package/proagents/multi-project/coordinated-deploy.md +510 -0
- package/proagents/multi-project/cross-project-deps.md +395 -0
- package/proagents/multi-project/unified-changelog.md +477 -0
- package/proagents/multi-project/walkthroughs/monorepo-setup.md +787 -0
- package/proagents/multi-project/workspace-config.md +408 -0
- package/proagents/notifications/README.md +151 -0
- package/proagents/notifications/channels.md +457 -0
- package/proagents/notifications/preferences.md +415 -0
- package/proagents/notifications/routing.md +449 -0
- package/proagents/notifications/scheduling.md +425 -0
- package/proagents/notifications/templates.md +446 -0
- package/proagents/offline-mode/README.md +145 -0
- package/proagents/offline-mode/caching.md +344 -0
- package/proagents/offline-mode/offline-operations.md +312 -0
- package/proagents/offline-mode/queue-specifications.md +679 -0
- package/proagents/offline-mode/sync.md +475 -0
- package/proagents/parallel-features/README.md +85 -0
- package/proagents/parallel-features/conflict-detection.md +226 -0
- package/proagents/parallel-features/dependency-management.md +392 -0
- package/proagents/parallel-features/merge-coordination.md +506 -0
- package/proagents/parallel-features/tracking-system.md +416 -0
- package/proagents/patterns/README.md +305 -0
- package/proagents/patterns/api-errors.md +453 -0
- package/proagents/patterns/async-errors.md +521 -0
- package/proagents/patterns/error-types.md +437 -0
- package/proagents/patterns/ui-errors.md +595 -0
- package/proagents/performance/README.md +59 -0
- package/proagents/performance/bundle-analysis.md +375 -0
- package/proagents/performance/load-testing.md +563 -0
- package/proagents/performance/runtime-metrics.md +489 -0
- package/proagents/performance/web-vitals.md +425 -0
- package/proagents/plugins/README.md +139 -0
- package/proagents/plugins/creating-plugins.md +504 -0
- package/proagents/plugins/plugin-api.md +467 -0
- package/proagents/plugins/plugin-registry.md +276 -0
- package/proagents/pm-integration/README.md +151 -0
- package/proagents/pm-integration/asana.md +346 -0
- package/proagents/pm-integration/github-issues.md +308 -0
- package/proagents/pm-integration/gitlab-issues.md +482 -0
- package/proagents/pm-integration/jira.md +364 -0
- package/proagents/pm-integration/linear.md +409 -0
- package/proagents/pm-integration/notion.md +275 -0
- package/proagents/pm-integration/sync-config.md +533 -0
- package/proagents/pm-integration/trello.md +159 -0
- package/proagents/proagents.config.yaml +213 -0
- package/proagents/prompts/00-init-wizard.md +426 -0
- package/proagents/prompts/00-init.md +219 -0
- package/proagents/prompts/01-analysis.md +244 -0
- package/proagents/prompts/02-requirements.md +399 -0
- package/proagents/prompts/03-ui-design.md +493 -0
- package/proagents/prompts/04-planning.md +505 -0
- package/proagents/prompts/05-implementation.md +518 -0
- package/proagents/prompts/06-testing.md +620 -0
- package/proagents/prompts/06.5-code-review.md +512 -0
- package/proagents/prompts/07-documentation.md +673 -0
- package/proagents/prompts/08-deployment.md +539 -0
- package/proagents/prompts/09-rollback.md +554 -0
- package/proagents/prompts/README.md +51 -0
- package/proagents/prompts/accessibility/README.md +146 -0
- package/proagents/prompts/accessibility/aria.md +276 -0
- package/proagents/prompts/accessibility/audit.md +233 -0
- package/proagents/prompts/accessibility/keyboard.md +392 -0
- package/proagents/prompts/accessibility/wcag.md +189 -0
- package/proagents/prompts/debugging/README.md +51 -0
- package/proagents/prompts/debugging/error-analysis.md +385 -0
- package/proagents/prompts/debugging/performance-debug.md +381 -0
- package/proagents/prompts/debugging/systematic.md +270 -0
- package/proagents/prompts/performance/README.md +47 -0
- package/proagents/prompts/performance/analyze.md +265 -0
- package/proagents/prompts/performance/optimize.md +347 -0
- package/proagents/prompts/refactoring/README.md +51 -0
- package/proagents/prompts/refactoring/architecture.md +531 -0
- package/proagents/prompts/refactoring/code-smells.md +174 -0
- package/proagents/prompts/refactoring/patterns.md +516 -0
- package/proagents/prompts/security-audit/README.md +197 -0
- package/proagents/prompts/security-audit/code-review.md +260 -0
- package/proagents/prompts/security-audit/vulnerability-scan.md +288 -0
- package/proagents/reporting/README.md +158 -0
- package/proagents/reporting/dashboards.md +366 -0
- package/proagents/reporting/exports.md +524 -0
- package/proagents/reporting/quality-metrics.md +385 -0
- package/proagents/reporting/templates/README.md +56 -0
- package/proagents/reporting/templates/dashboard-config.json +187 -0
- package/proagents/reporting/templates/metrics-queries.md +427 -0
- package/proagents/reporting/templates/react-dashboard.tsx +544 -0
- package/proagents/reporting/templates/widgets.md +451 -0
- package/proagents/reporting/velocity-metrics.md +340 -0
- package/proagents/reverse-engineering/README.md +151 -0
- package/proagents/reverse-engineering/architecture-extraction.md +325 -0
- package/proagents/reverse-engineering/code-analysis.md +377 -0
- package/proagents/reverse-engineering/dependency-mapping.md +567 -0
- package/proagents/reverse-engineering/diagram-generation.md +586 -0
- package/proagents/reverse-engineering/documentation-generation.md +468 -0
- package/proagents/reverse-engineering/pattern-detection.md +569 -0
- package/proagents/reverse-engineering/quality-assessment.md +733 -0
- package/proagents/rules/README.md +179 -0
- package/proagents/rules/custom-rules-template.yaml +286 -0
- package/proagents/rules/custom-rules.md +754 -0
- package/proagents/rules/validation-rules-template.yaml +517 -0
- package/proagents/runbooks/README.md +219 -0
- package/proagents/runbooks/dependency-vulnerability.md +505 -0
- package/proagents/runbooks/incident-response.md +451 -0
- package/proagents/runbooks/performance-degradation.md +584 -0
- package/proagents/runbooks/production-debugging.md +489 -0
- package/proagents/scaffolding/README.md +64 -0
- package/proagents/scaffolding/nextjs/README.md +578 -0
- package/proagents/scaffolding/nextjs/templates/api-route.ts.template +185 -0
- package/proagents/scaffolding/nextjs/templates/page.tsx.template +109 -0
- package/proagents/scaffolding/nextjs/templates/server-action.ts.template +204 -0
- package/proagents/scaffolding/nodejs/README.md +558 -0
- package/proagents/scaffolding/nodejs/templates/controller.ts.template +167 -0
- package/proagents/scaffolding/nodejs/templates/repository.ts.template +155 -0
- package/proagents/scaffolding/nodejs/templates/service.ts.template +207 -0
- package/proagents/scaffolding/project-types.md +401 -0
- package/proagents/scaffolding/react/README.md +399 -0
- package/proagents/scaffolding/react/templates/component.tsx.template +88 -0
- package/proagents/scaffolding/react/templates/hook.ts.template +127 -0
- package/proagents/scaffolding/react/templates/service.ts.template +155 -0
- package/proagents/scaffolding/react/templates/test.tsx.template +149 -0
- package/proagents/scaffolding/react-native/README.md +476 -0
- package/proagents/scaffolding/react-native/templates/hook.ts.template +226 -0
- package/proagents/scaffolding/react-native/templates/screen.tsx.template +247 -0
- package/proagents/secrets/README.md +278 -0
- package/proagents/secrets/access-control.md +443 -0
- package/proagents/secrets/rotation.md +403 -0
- package/proagents/secrets/scanning.md +487 -0
- package/proagents/secrets/storage.md +394 -0
- package/proagents/security/README.md +71 -0
- package/proagents/security/owasp-checklist.md +390 -0
- package/proagents/security/sast-guide.md +473 -0
- package/proagents/security/security-report-template.md +343 -0
- package/proagents/security/vulnerability-scanning.md +329 -0
- package/proagents/slash-commands.json +161 -0
- package/proagents/standards/README.md +120 -0
- package/proagents/standards/architecture-patterns.md +728 -0
- package/proagents/standards/architecture-rules-template.md +489 -0
- package/proagents/standards/coding-standards-template.md +489 -0
- package/proagents/standards/examples/README.md +61 -0
- package/proagents/standards/examples/nodejs-api.md +560 -0
- package/proagents/standards/examples/react-nextjs.md +428 -0
- package/proagents/standards/naming-conventions-template.md +526 -0
- package/proagents/standards/override-system.md +717 -0
- package/proagents/standards/testing-standards-template.md +220 -0
- package/proagents/team/README.md +256 -0
- package/proagents/team/code-ownership.md +306 -0
- package/proagents/team/communication-templates.md +441 -0
- package/proagents/team/handoff-protocol.md +380 -0
- package/proagents/team/ide-setup/README.md +103 -0
- package/proagents/team/ide-setup/cursor.md +276 -0
- package/proagents/team/ide-setup/jetbrains.md +330 -0
- package/proagents/team/ide-setup/neovim.md +640 -0
- package/proagents/team/ide-setup/vscode.md +348 -0
- package/proagents/team/onboarding.md +278 -0
- package/proagents/templates/README.md +57 -0
- package/proagents/templates/code-review-report.md +255 -0
- package/proagents/templates/codebase-analysis-report.md +315 -0
- package/proagents/templates/deployment-checklist.md +277 -0
- package/proagents/templates/feature-requirements.md +142 -0
- package/proagents/templates/feature-status.md +231 -0
- package/proagents/templates/implementation-plan.md +373 -0
- package/proagents/templates/rollback-plan.md +331 -0
- package/proagents/templates/test-plan.md +336 -0
- package/proagents/templates/ui-specification.md +431 -0
- package/proagents/testing-standards/README.md +229 -0
- package/proagents/testing-standards/coverage-requirements.md +198 -0
- package/proagents/testing-standards/mocking-guidelines.md +478 -0
- package/proagents/testing-standards/test-naming.md +485 -0
- package/proagents/testing-standards/test-patterns.md +488 -0
- package/proagents/troubleshooting/README.md +730 -0
- package/proagents/troubleshooting/ai-issues.md +601 -0
- package/proagents/troubleshooting/workflow-issues.md +571 -0
- package/proagents/ui-integration/README.md +77 -0
- package/proagents/ui-integration/figma-guide.md +217 -0
- package/proagents/ui-integration/manual-export-guide.md +358 -0
- package/proagents/ui-integration/sketch-interpretation.md +471 -0
- package/proagents/webhooks/README.md +126 -0
- package/proagents/webhooks/endpoints.md +298 -0
- package/proagents/webhooks/events.md +316 -0
- package/proagents/webhooks/payloads.md +325 -0
- package/proagents/webhooks/reliability.md +363 -0
- package/proagents/webhooks/security.md +380 -0
- package/proagents/workflow-modes/README.md +136 -0
- package/proagents/workflow-modes/deferred-tracking.md +405 -0
- package/proagents/workflow-modes/entry-modes.md +397 -0
- package/proagents/workflow-modes/guardrails.md +405 -0
- package/proagents/workflow-modes/mode-detection.md +358 -0
- package/proagents/workflow-modes/mode-switching.md +372 -0
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
# Cost Estimation Template
|
|
2
|
+
|
|
3
|
+
Standardized template for estimating feature and infrastructure costs.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Feature Cost Estimation
|
|
8
|
+
|
|
9
|
+
```markdown
|
|
10
|
+
# Cost Estimate: [Feature Name]
|
|
11
|
+
|
|
12
|
+
## Summary
|
|
13
|
+
|
|
14
|
+
| Category | Monthly Cost | Annual Cost |
|
|
15
|
+
|----------|-------------|-------------|
|
|
16
|
+
| Compute | $XXX | $X,XXX |
|
|
17
|
+
| Storage | $XXX | $X,XXX |
|
|
18
|
+
| Network | $XXX | $X,XXX |
|
|
19
|
+
| Third-party | $XXX | $X,XXX |
|
|
20
|
+
| **Total** | **$XXX** | **$X,XXX** |
|
|
21
|
+
|
|
22
|
+
## Assumptions
|
|
23
|
+
|
|
24
|
+
- Expected users: [X,XXX]
|
|
25
|
+
- Requests per user/day: [XX]
|
|
26
|
+
- Average request size: [X KB]
|
|
27
|
+
- Data retention: [X months]
|
|
28
|
+
- Growth rate: [X% monthly]
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## Detailed Breakdown
|
|
33
|
+
|
|
34
|
+
### Compute Costs
|
|
35
|
+
|
|
36
|
+
| Resource | Quantity | Unit Cost | Monthly Total |
|
|
37
|
+
|----------|----------|-----------|---------------|
|
|
38
|
+
| Lambda invocations | X,XXX,XXX | $0.20/1M | $XX |
|
|
39
|
+
| Lambda compute (GB-s) | XXX,XXX | $0.0000166667 | $XX |
|
|
40
|
+
| EC2 instances | X | $XX/month | $XX |
|
|
41
|
+
| ECS Fargate | X vCPU, X GB | $XX/month | $XX |
|
|
42
|
+
| **Compute Total** | | | **$XXX** |
|
|
43
|
+
|
|
44
|
+
### Storage Costs
|
|
45
|
+
|
|
46
|
+
| Resource | Quantity | Unit Cost | Monthly Total |
|
|
47
|
+
|----------|----------|-----------|---------------|
|
|
48
|
+
| RDS PostgreSQL | X GB | $0.115/GB | $XX |
|
|
49
|
+
| RDS IOPS | X,XXX | $0.10/IOPS | $XX |
|
|
50
|
+
| S3 Standard | X GB | $0.023/GB | $XX |
|
|
51
|
+
| S3 Requests | X,XXX | $0.005/1000 | $XX |
|
|
52
|
+
| ElastiCache | X GB | $XX/GB | $XX |
|
|
53
|
+
| **Storage Total** | | | **$XXX** |
|
|
54
|
+
|
|
55
|
+
### Network Costs
|
|
56
|
+
|
|
57
|
+
| Resource | Quantity | Unit Cost | Monthly Total |
|
|
58
|
+
|----------|----------|-----------|---------------|
|
|
59
|
+
| Data transfer out | X GB | $0.09/GB | $XX |
|
|
60
|
+
| CloudFront | X TB | $0.085/GB | $XX |
|
|
61
|
+
| NAT Gateway | X GB | $0.045/GB | $XX |
|
|
62
|
+
| API Gateway | X M requests | $3.50/M | $XX |
|
|
63
|
+
| **Network Total** | | | **$XXX** |
|
|
64
|
+
|
|
65
|
+
### Third-Party Services
|
|
66
|
+
|
|
67
|
+
| Service | Tier/Plan | Monthly Cost |
|
|
68
|
+
|---------|-----------|--------------|
|
|
69
|
+
| Auth0 | Professional | $XX |
|
|
70
|
+
| SendGrid | Pro 100K | $XX |
|
|
71
|
+
| Twilio | Pay-as-you-go | $XX |
|
|
72
|
+
| Sentry | Team | $XX |
|
|
73
|
+
| **Third-Party Total** | | **$XXX** |
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
## Cost by Scale
|
|
78
|
+
|
|
79
|
+
### Current (1,000 users)
|
|
80
|
+
|
|
81
|
+
| Category | Cost |
|
|
82
|
+
|----------|------|
|
|
83
|
+
| Compute | $50 |
|
|
84
|
+
| Storage | $30 |
|
|
85
|
+
| Network | $20 |
|
|
86
|
+
| Third-party | $100 |
|
|
87
|
+
| **Total** | **$200** |
|
|
88
|
+
|
|
89
|
+
### Growth (10,000 users)
|
|
90
|
+
|
|
91
|
+
| Category | Cost |
|
|
92
|
+
|----------|------|
|
|
93
|
+
| Compute | $200 |
|
|
94
|
+
| Storage | $150 |
|
|
95
|
+
| Network | $100 |
|
|
96
|
+
| Third-party | $300 |
|
|
97
|
+
| **Total** | **$750** |
|
|
98
|
+
|
|
99
|
+
### Scale (100,000 users)
|
|
100
|
+
|
|
101
|
+
| Category | Cost |
|
|
102
|
+
|----------|------|
|
|
103
|
+
| Compute | $1,500 |
|
|
104
|
+
| Storage | $800 |
|
|
105
|
+
| Network | $600 |
|
|
106
|
+
| Third-party | $1,000 |
|
|
107
|
+
| **Total** | **$3,900** |
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
## Cost Optimization Opportunities
|
|
112
|
+
|
|
113
|
+
### Immediate Savings
|
|
114
|
+
|
|
115
|
+
| Optimization | Current Cost | Optimized Cost | Savings |
|
|
116
|
+
|--------------|-------------|----------------|---------|
|
|
117
|
+
| Reserved instances | $500/mo | $300/mo | $200/mo |
|
|
118
|
+
| S3 lifecycle policies | $100/mo | $60/mo | $40/mo |
|
|
119
|
+
| CloudFront caching | $200/mo | $150/mo | $50/mo |
|
|
120
|
+
| **Total Savings** | | | **$290/mo** |
|
|
121
|
+
|
|
122
|
+
### Recommendations
|
|
123
|
+
|
|
124
|
+
1. **Use Reserved Instances**
|
|
125
|
+
- Current: On-demand EC2
|
|
126
|
+
- Recommendation: 1-year reserved
|
|
127
|
+
- Savings: 40%
|
|
128
|
+
|
|
129
|
+
2. **Implement Caching**
|
|
130
|
+
- Add Redis for API responses
|
|
131
|
+
- Reduce database queries by 60%
|
|
132
|
+
- Cost: $50/mo, Saves: $150/mo
|
|
133
|
+
|
|
134
|
+
3. **Optimize Storage**
|
|
135
|
+
- Move old data to S3 Glacier
|
|
136
|
+
- Implement S3 lifecycle policies
|
|
137
|
+
- Savings: 30%
|
|
138
|
+
|
|
139
|
+
---
|
|
140
|
+
|
|
141
|
+
## ROI Analysis
|
|
142
|
+
|
|
143
|
+
### Investment
|
|
144
|
+
|
|
145
|
+
| Item | Cost |
|
|
146
|
+
|------|------|
|
|
147
|
+
| Development | $XX,XXX |
|
|
148
|
+
| Infrastructure (Year 1) | $X,XXX |
|
|
149
|
+
| Third-party setup | $XXX |
|
|
150
|
+
| **Total Investment** | **$XX,XXX** |
|
|
151
|
+
|
|
152
|
+
### Expected Returns
|
|
153
|
+
|
|
154
|
+
| Metric | Value |
|
|
155
|
+
|--------|-------|
|
|
156
|
+
| New revenue/month | $XX,XXX |
|
|
157
|
+
| Cost savings/month | $X,XXX |
|
|
158
|
+
| Payback period | X months |
|
|
159
|
+
| First year ROI | XXX% |
|
|
160
|
+
|
|
161
|
+
---
|
|
162
|
+
|
|
163
|
+
## Risk Factors
|
|
164
|
+
|
|
165
|
+
| Risk | Impact | Mitigation |
|
|
166
|
+
|------|--------|------------|
|
|
167
|
+
| Higher traffic than expected | +50% costs | Auto-scaling with budget alerts |
|
|
168
|
+
| Third-party price increase | +20% costs | Multi-vendor strategy |
|
|
169
|
+
| Data growth exceeds estimate | +30% storage | Early archival policies |
|
|
170
|
+
|
|
171
|
+
---
|
|
172
|
+
|
|
173
|
+
## Approval
|
|
174
|
+
|
|
175
|
+
| Level | Monthly Increase | Required Approval |
|
|
176
|
+
|-------|-----------------|-------------------|
|
|
177
|
+
| < $100 | Auto-approved | - |
|
|
178
|
+
| $100 - $500 | Team Lead | [Name] |
|
|
179
|
+
| $500 - $2,000 | Manager | [Name] |
|
|
180
|
+
| > $2,000 | Director | [Name] |
|
|
181
|
+
|
|
182
|
+
**Estimated Monthly Cost:** $XXX
|
|
183
|
+
**Approval Required:** [Level]
|
|
184
|
+
**Approved By:** _____________
|
|
185
|
+
**Date:** _____________
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
---
|
|
189
|
+
|
|
190
|
+
## Quick Estimate Calculator
|
|
191
|
+
|
|
192
|
+
```yaml
|
|
193
|
+
# quick-estimate.yaml
|
|
194
|
+
# Fill in your estimates for quick cost calculation
|
|
195
|
+
|
|
196
|
+
feature_name: "User Dashboard"
|
|
197
|
+
|
|
198
|
+
# Traffic Estimates
|
|
199
|
+
traffic:
|
|
200
|
+
daily_active_users: 1000
|
|
201
|
+
requests_per_user: 20
|
|
202
|
+
average_request_size_kb: 5
|
|
203
|
+
peak_multiplier: 3 # Peak vs average
|
|
204
|
+
|
|
205
|
+
# Compute
|
|
206
|
+
compute:
|
|
207
|
+
type: "serverless" # serverless | container | vm
|
|
208
|
+
estimated_duration_ms: 100
|
|
209
|
+
memory_mb: 256
|
|
210
|
+
|
|
211
|
+
# Storage
|
|
212
|
+
storage:
|
|
213
|
+
database_gb: 10
|
|
214
|
+
file_storage_gb: 50
|
|
215
|
+
cache_gb: 1
|
|
216
|
+
|
|
217
|
+
# Third-party
|
|
218
|
+
third_party:
|
|
219
|
+
- name: "Auth Provider"
|
|
220
|
+
monthly_cost: 50
|
|
221
|
+
- name: "Email Service"
|
|
222
|
+
monthly_cost: 25
|
|
223
|
+
|
|
224
|
+
# Calculated Results (auto-generated)
|
|
225
|
+
results:
|
|
226
|
+
monthly_requests: 600000 # users * requests * 30
|
|
227
|
+
lambda_cost: 12 # $0.20/M * 0.6M
|
|
228
|
+
lambda_compute: 25 # GB-s * cost
|
|
229
|
+
storage_cost: 15 # RDS + S3
|
|
230
|
+
network_cost: 5 # Data transfer
|
|
231
|
+
third_party_cost: 75
|
|
232
|
+
total_monthly: 132
|
|
233
|
+
total_annual: 1584
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
---
|
|
237
|
+
|
|
238
|
+
## Cost Tracking Dashboard
|
|
239
|
+
|
|
240
|
+
```
|
|
241
|
+
┌─────────────────────────────────────────────────────────────┐
|
|
242
|
+
│ Cost Dashboard - January 2024 │
|
|
243
|
+
├──────────────────┬──────────────────┬───────────────────────┤
|
|
244
|
+
│ Budget: $500 │ Actual: $423 │ Remaining: $77 │
|
|
245
|
+
│ │ (85%) │ 15% under budget │
|
|
246
|
+
├──────────────────┴──────────────────┴───────────────────────┤
|
|
247
|
+
│ │
|
|
248
|
+
│ Cost Trend (Last 6 Months) │
|
|
249
|
+
│ ┌─────────────────────────────────────────────────────┐ │
|
|
250
|
+
│ │ ╭─╮ │ │
|
|
251
|
+
│ │ ╭╯ ╰╮ ╭──╮ ╭─╮ │ │
|
|
252
|
+
│ │ ──╯ ╰──╯ ╰─────╯ ╰───────────────────── │ │
|
|
253
|
+
│ │ Aug Sep Oct Nov Dec Jan │ │
|
|
254
|
+
│ │ $380 $420 $450 $480 $445 $423 │ │
|
|
255
|
+
│ └─────────────────────────────────────────────────────┘ │
|
|
256
|
+
│ │
|
|
257
|
+
│ By Category │ Top Costs │
|
|
258
|
+
│ ┌───────────────────────┐ │ ┌──────────────────┐ │
|
|
259
|
+
│ │ Compute ████ 42% │ │ │ RDS $150 │ │
|
|
260
|
+
│ │ Storage ███ 30% │ │ │ Lambda $100 │ │
|
|
261
|
+
│ │ Network ██ 15% │ │ │ Auth0 $50 │ │
|
|
262
|
+
│ │ Third-party█ 13% │ │ │ S3 $45 │ │
|
|
263
|
+
│ └───────────────────────┘ │ └──────────────────┘ │
|
|
264
|
+
│ │
|
|
265
|
+
│ Alerts │
|
|
266
|
+
│ ⚠️ Lambda usage up 25% - consider optimization │
|
|
267
|
+
│ ✅ Storage costs stable │
|
|
268
|
+
│ ℹ️ New feature estimated +$75/month │
|
|
269
|
+
│ │
|
|
270
|
+
└─────────────────────────────────────────────────────────────┘
|
|
271
|
+
```
|
|
272
|
+
|
|
273
|
+
---
|
|
274
|
+
|
|
275
|
+
## Slash Commands
|
|
276
|
+
|
|
277
|
+
| Command | Description |
|
|
278
|
+
|---------|-------------|
|
|
279
|
+
| `/cost-estimate` | Start cost estimation wizard |
|
|
280
|
+
| `/cost-estimate --template` | Get blank template |
|
|
281
|
+
| `/cost-estimate --quick` | Quick estimate calculator |
|
|
282
|
+
| `/cost-report` | Generate cost report |
|
|
283
|
+
| `/cost-compare` | Compare actual vs estimated |
|
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
# Cost Estimation Framework
|
|
2
|
+
|
|
3
|
+
Estimate infrastructure and operational costs for new features.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Cost Categories
|
|
8
|
+
|
|
9
|
+
### 1. Compute Costs
|
|
10
|
+
|
|
11
|
+
**Serverless Functions:**
|
|
12
|
+
```yaml
|
|
13
|
+
compute:
|
|
14
|
+
serverless:
|
|
15
|
+
provider: "aws_lambda" # aws_lambda | vercel | cloudflare_workers
|
|
16
|
+
|
|
17
|
+
estimate:
|
|
18
|
+
invocations_per_month: 1000000
|
|
19
|
+
avg_duration_ms: 200
|
|
20
|
+
memory_mb: 256
|
|
21
|
+
|
|
22
|
+
calculation:
|
|
23
|
+
# AWS Lambda pricing (example)
|
|
24
|
+
request_cost: "$0.20 per 1M requests"
|
|
25
|
+
duration_cost: "$0.0000166667 per GB-second"
|
|
26
|
+
|
|
27
|
+
monthly_estimate:
|
|
28
|
+
requests: "$0.20"
|
|
29
|
+
duration: "$0.83" # 1M × 0.2s × 0.25GB × $0.0000166667
|
|
30
|
+
total: "$1.03"
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
**Container/Server:**
|
|
34
|
+
```yaml
|
|
35
|
+
compute:
|
|
36
|
+
containers:
|
|
37
|
+
provider: "aws_ecs" # aws_ecs | gcp_cloud_run | azure_container
|
|
38
|
+
|
|
39
|
+
estimate:
|
|
40
|
+
instances: 2
|
|
41
|
+
vcpu: 0.5
|
|
42
|
+
memory_gb: 1
|
|
43
|
+
hours_per_month: 730
|
|
44
|
+
|
|
45
|
+
monthly_estimate: "$30"
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
### 2. Storage Costs
|
|
51
|
+
|
|
52
|
+
**Database:**
|
|
53
|
+
```yaml
|
|
54
|
+
storage:
|
|
55
|
+
database:
|
|
56
|
+
provider: "aws_rds" # aws_rds | planetscale | supabase
|
|
57
|
+
|
|
58
|
+
estimate:
|
|
59
|
+
storage_gb: 20
|
|
60
|
+
iops: 1000
|
|
61
|
+
backup_retention_days: 7
|
|
62
|
+
|
|
63
|
+
monthly_estimate:
|
|
64
|
+
storage: "$2.30"
|
|
65
|
+
iops: "$10.00"
|
|
66
|
+
backup: "$1.00"
|
|
67
|
+
total: "$13.30"
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
**File Storage:**
|
|
71
|
+
```yaml
|
|
72
|
+
storage:
|
|
73
|
+
files:
|
|
74
|
+
provider: "aws_s3" # aws_s3 | cloudflare_r2 | gcp_storage
|
|
75
|
+
|
|
76
|
+
estimate:
|
|
77
|
+
storage_gb: 100
|
|
78
|
+
requests_per_month: 100000
|
|
79
|
+
bandwidth_gb: 50
|
|
80
|
+
|
|
81
|
+
monthly_estimate:
|
|
82
|
+
storage: "$2.30"
|
|
83
|
+
requests: "$0.04"
|
|
84
|
+
bandwidth: "$4.50"
|
|
85
|
+
total: "$6.84"
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
|
|
90
|
+
### 3. Network Costs
|
|
91
|
+
|
|
92
|
+
```yaml
|
|
93
|
+
network:
|
|
94
|
+
cdn:
|
|
95
|
+
provider: "cloudflare" # cloudflare | aws_cloudfront | vercel
|
|
96
|
+
|
|
97
|
+
estimate:
|
|
98
|
+
bandwidth_gb: 100
|
|
99
|
+
requests_per_month: 10000000
|
|
100
|
+
|
|
101
|
+
monthly_estimate:
|
|
102
|
+
cloudflare_free: "$0"
|
|
103
|
+
cloudflare_pro: "$20"
|
|
104
|
+
aws_cloudfront: "$8.50"
|
|
105
|
+
|
|
106
|
+
api_gateway:
|
|
107
|
+
provider: "aws_api_gateway"
|
|
108
|
+
|
|
109
|
+
estimate:
|
|
110
|
+
requests_per_month: 1000000
|
|
111
|
+
|
|
112
|
+
monthly_estimate: "$3.50"
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
---
|
|
116
|
+
|
|
117
|
+
### 4. Third-Party Services
|
|
118
|
+
|
|
119
|
+
```yaml
|
|
120
|
+
third_party:
|
|
121
|
+
auth:
|
|
122
|
+
provider: "auth0"
|
|
123
|
+
estimate:
|
|
124
|
+
monthly_active_users: 1000
|
|
125
|
+
monthly_estimate: "$0 (free tier)" # Up to 7000 MAU
|
|
126
|
+
|
|
127
|
+
email:
|
|
128
|
+
provider: "sendgrid"
|
|
129
|
+
estimate:
|
|
130
|
+
emails_per_month: 10000
|
|
131
|
+
monthly_estimate: "$0 (free tier)" # Up to 100/day
|
|
132
|
+
|
|
133
|
+
monitoring:
|
|
134
|
+
provider: "datadog"
|
|
135
|
+
estimate:
|
|
136
|
+
hosts: 2
|
|
137
|
+
custom_metrics: 100
|
|
138
|
+
monthly_estimate: "$30"
|
|
139
|
+
|
|
140
|
+
search:
|
|
141
|
+
provider: "algolia"
|
|
142
|
+
estimate:
|
|
143
|
+
records: 10000
|
|
144
|
+
searches_per_month: 100000
|
|
145
|
+
monthly_estimate: "$0 (free tier)"
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
---
|
|
149
|
+
|
|
150
|
+
## Cost Estimation Template
|
|
151
|
+
|
|
152
|
+
```markdown
|
|
153
|
+
# Feature Cost Estimate
|
|
154
|
+
|
|
155
|
+
## Feature: [Feature Name]
|
|
156
|
+
## Date: [YYYY-MM-DD]
|
|
157
|
+
## Estimated By: [Name]
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
## Summary
|
|
162
|
+
|
|
163
|
+
| Category | Monthly Cost | Annual Cost |
|
|
164
|
+
|----------|-------------|-------------|
|
|
165
|
+
| Compute | $XX | $XXX |
|
|
166
|
+
| Storage | $XX | $XXX |
|
|
167
|
+
| Network | $XX | $XXX |
|
|
168
|
+
| Third-party | $XX | $XXX |
|
|
169
|
+
| **Total** | **$XX** | **$XXX** |
|
|
170
|
+
|
|
171
|
+
---
|
|
172
|
+
|
|
173
|
+
## Detailed Breakdown
|
|
174
|
+
|
|
175
|
+
### Compute
|
|
176
|
+
| Resource | Specs | Cost |
|
|
177
|
+
|----------|-------|------|
|
|
178
|
+
| Lambda functions | 1M invocations, 256MB | $1.03 |
|
|
179
|
+
| ECS containers | 2 × 0.5 vCPU | $30.00 |
|
|
180
|
+
| **Subtotal** | | **$31.03** |
|
|
181
|
+
|
|
182
|
+
### Storage
|
|
183
|
+
| Resource | Specs | Cost |
|
|
184
|
+
|----------|-------|------|
|
|
185
|
+
| RDS PostgreSQL | 20GB, db.t3.micro | $13.30 |
|
|
186
|
+
| S3 bucket | 100GB, standard | $6.84 |
|
|
187
|
+
| **Subtotal** | | **$20.14** |
|
|
188
|
+
|
|
189
|
+
### Network
|
|
190
|
+
| Resource | Specs | Cost |
|
|
191
|
+
|----------|-------|------|
|
|
192
|
+
| CloudFront | 100GB bandwidth | $8.50 |
|
|
193
|
+
| API Gateway | 1M requests | $3.50 |
|
|
194
|
+
| **Subtotal** | | **$12.00** |
|
|
195
|
+
|
|
196
|
+
### Third-Party Services
|
|
197
|
+
| Service | Tier | Cost |
|
|
198
|
+
|---------|------|------|
|
|
199
|
+
| Auth0 | Free | $0 |
|
|
200
|
+
| SendGrid | Free | $0 |
|
|
201
|
+
| Datadog | Pro | $30 |
|
|
202
|
+
| **Subtotal** | | **$30.00** |
|
|
203
|
+
|
|
204
|
+
---
|
|
205
|
+
|
|
206
|
+
## Assumptions
|
|
207
|
+
- Traffic estimates based on [source]
|
|
208
|
+
- Growth rate: [X]% monthly
|
|
209
|
+
- Peak traffic: [X]× average
|
|
210
|
+
|
|
211
|
+
## Scaling Projections
|
|
212
|
+
|
|
213
|
+
| Users | Monthly Cost |
|
|
214
|
+
|-------|-------------|
|
|
215
|
+
| 1,000 | $93 |
|
|
216
|
+
| 10,000 | $250 |
|
|
217
|
+
| 100,000 | $1,200 |
|
|
218
|
+
|
|
219
|
+
## Cost Optimization Recommendations
|
|
220
|
+
1. Use reserved instances for predictable workloads
|
|
221
|
+
2. Implement caching to reduce database calls
|
|
222
|
+
3. Use CDN for static assets
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
---
|
|
226
|
+
|
|
227
|
+
## Approval Thresholds
|
|
228
|
+
|
|
229
|
+
```yaml
|
|
230
|
+
cost_approval:
|
|
231
|
+
thresholds:
|
|
232
|
+
- range: "$0-100"
|
|
233
|
+
approver: "auto_approved"
|
|
234
|
+
|
|
235
|
+
- range: "$100-500"
|
|
236
|
+
approver: "tech_lead"
|
|
237
|
+
requires: "cost_estimate_doc"
|
|
238
|
+
|
|
239
|
+
- range: "$500-2000"
|
|
240
|
+
approver: "engineering_manager"
|
|
241
|
+
requires:
|
|
242
|
+
- "cost_estimate_doc"
|
|
243
|
+
- "scaling_projections"
|
|
244
|
+
|
|
245
|
+
- range: "$2000+"
|
|
246
|
+
approver: "director"
|
|
247
|
+
requires:
|
|
248
|
+
- "cost_estimate_doc"
|
|
249
|
+
- "scaling_projections"
|
|
250
|
+
- "roi_analysis"
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
---
|
|
254
|
+
|
|
255
|
+
## Cost Monitoring
|
|
256
|
+
|
|
257
|
+
```yaml
|
|
258
|
+
monitoring:
|
|
259
|
+
alerts:
|
|
260
|
+
- threshold: "80% of budget"
|
|
261
|
+
action: "notify"
|
|
262
|
+
recipients: ["team-lead"]
|
|
263
|
+
|
|
264
|
+
- threshold: "100% of budget"
|
|
265
|
+
action: "notify_urgent"
|
|
266
|
+
recipients: ["team-lead", "manager"]
|
|
267
|
+
|
|
268
|
+
- threshold: "120% of budget"
|
|
269
|
+
action: "auto_scale_down"
|
|
270
|
+
notify: ["all"]
|
|
271
|
+
|
|
272
|
+
reports:
|
|
273
|
+
daily: true
|
|
274
|
+
weekly_summary: true
|
|
275
|
+
monthly_detailed: true
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
---
|
|
279
|
+
|
|
280
|
+
## Slash Commands
|
|
281
|
+
|
|
282
|
+
| Command | Description |
|
|
283
|
+
|---------|-------------|
|
|
284
|
+
| `/cost-estimate` | Generate cost estimate for feature |
|
|
285
|
+
| `/cost-compare` | Compare costs across providers |
|
|
286
|
+
| `/cost-report` | View current costs |
|
|
287
|
+
| `/cost-optimize` | Get optimization suggestions |
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# Database Management
|
|
2
|
+
|
|
3
|
+
Schema migrations, safety checks, and rollback procedures.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Overview
|
|
8
|
+
|
|
9
|
+
Safe database changes with version control, validation, and rollback capabilities.
|
|
10
|
+
|
|
11
|
+
## Documentation
|
|
12
|
+
|
|
13
|
+
| Document | Description |
|
|
14
|
+
|----------|-------------|
|
|
15
|
+
| [Migration Workflow](./migration-workflow.md) | Creating and running migrations |
|
|
16
|
+
| [Safety Checks](./safety-checks.md) | Pre-migration validation |
|
|
17
|
+
| [Rollback Scripts](./rollback-scripts.md) | Reverting database changes |
|
|
18
|
+
| [Examples](./examples/) | Concrete migration examples |
|
|
19
|
+
|
|
20
|
+
## Examples
|
|
21
|
+
|
|
22
|
+
Ready-to-use migration templates:
|
|
23
|
+
|
|
24
|
+
| Example | Description | Risk |
|
|
25
|
+
|---------|-------------|------|
|
|
26
|
+
| [001-create-users](./examples/001-create-users.sql) | Create table with indexes | Low |
|
|
27
|
+
| [002-add-preferences](./examples/002-add-preferences.sql) | Add JSONB column | Low |
|
|
28
|
+
| [003-add-index](./examples/003-add-index.sql) | Add performance index | Medium |
|
|
29
|
+
| [004-rename-column](./examples/004-rename-column.sql) | Rename column safely | Medium |
|
|
30
|
+
| [005-add-foreign-key](./examples/005-add-foreign-key.sql) | Add relationships | Medium |
|
|
31
|
+
| [006-data-migration](./examples/006-data-migration.sql) | Transform data | High |
|
|
32
|
+
| [007-drop-column](./examples/007-drop-column.sql) | Remove column | High |
|
|
33
|
+
|
|
34
|
+
## Quick Start
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
# Create a new migration
|
|
38
|
+
proagents db migration create "add_user_preferences"
|
|
39
|
+
|
|
40
|
+
# Run pending migrations
|
|
41
|
+
proagents db migrate
|
|
42
|
+
|
|
43
|
+
# Rollback last migration
|
|
44
|
+
proagents db rollback
|
|
45
|
+
|
|
46
|
+
# Check migration status
|
|
47
|
+
proagents db status
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Safety Features
|
|
51
|
+
|
|
52
|
+
- **Dry Run**: Preview changes before applying
|
|
53
|
+
- **Backup**: Automatic backup before migrations
|
|
54
|
+
- **Validation**: Check for breaking changes
|
|
55
|
+
- **Rollback Scripts**: Every migration has a rollback
|
|
56
|
+
|
|
57
|
+
## Configuration
|
|
58
|
+
|
|
59
|
+
```yaml
|
|
60
|
+
# proagents.config.yaml
|
|
61
|
+
database:
|
|
62
|
+
migrations:
|
|
63
|
+
directory: "./migrations"
|
|
64
|
+
backup_before: true
|
|
65
|
+
require_rollback: true
|
|
66
|
+
|
|
67
|
+
safety:
|
|
68
|
+
block_destructive: true
|
|
69
|
+
require_approval_for:
|
|
70
|
+
- "drop_table"
|
|
71
|
+
- "drop_column"
|
|
72
|
+
```
|