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,320 @@
|
|
|
1
|
+
# Approval Notifications
|
|
2
|
+
|
|
3
|
+
Configure notifications for approval workflow events.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Notification Events
|
|
8
|
+
|
|
9
|
+
| Event | Description | Default |
|
|
10
|
+
|-------|-------------|---------|
|
|
11
|
+
| `approval_requested` | New approval needed | Notify approvers |
|
|
12
|
+
| `approval_granted` | Approval given | Notify requester |
|
|
13
|
+
| `approval_rejected` | Approval denied | Notify requester |
|
|
14
|
+
| `approval_reminder` | Pending reminder | Notify approvers |
|
|
15
|
+
| `approval_escalated` | Escalated to next level | Notify escalation target |
|
|
16
|
+
| `approval_expired` | Timeout reached | Notify all parties |
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## Configuration
|
|
21
|
+
|
|
22
|
+
### Notification Setup
|
|
23
|
+
|
|
24
|
+
```yaml
|
|
25
|
+
approvals:
|
|
26
|
+
notifications:
|
|
27
|
+
enabled: true
|
|
28
|
+
|
|
29
|
+
# Default channels
|
|
30
|
+
default_channels:
|
|
31
|
+
- "email"
|
|
32
|
+
- "slack"
|
|
33
|
+
|
|
34
|
+
# Event-specific settings
|
|
35
|
+
events:
|
|
36
|
+
approval_requested:
|
|
37
|
+
channels: ["slack", "email"]
|
|
38
|
+
template: "approval_request"
|
|
39
|
+
priority: "high"
|
|
40
|
+
|
|
41
|
+
approval_granted:
|
|
42
|
+
channels: ["slack"]
|
|
43
|
+
template: "approval_granted"
|
|
44
|
+
priority: "normal"
|
|
45
|
+
|
|
46
|
+
approval_rejected:
|
|
47
|
+
channels: ["slack", "email"]
|
|
48
|
+
template: "approval_rejected"
|
|
49
|
+
priority: "high"
|
|
50
|
+
|
|
51
|
+
approval_reminder:
|
|
52
|
+
channels: ["slack"]
|
|
53
|
+
template: "approval_reminder"
|
|
54
|
+
schedule:
|
|
55
|
+
- after: "4h"
|
|
56
|
+
- after: "12h"
|
|
57
|
+
- after: "20h"
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### Channel Configuration
|
|
61
|
+
|
|
62
|
+
```yaml
|
|
63
|
+
approvals:
|
|
64
|
+
notifications:
|
|
65
|
+
channels:
|
|
66
|
+
slack:
|
|
67
|
+
webhook_url_env: "SLACK_WEBHOOK_URL"
|
|
68
|
+
default_channel: "#approvals"
|
|
69
|
+
|
|
70
|
+
# Channel routing
|
|
71
|
+
routing:
|
|
72
|
+
security_review: "#security-approvals"
|
|
73
|
+
production_deploy: "#prod-approvals"
|
|
74
|
+
|
|
75
|
+
email:
|
|
76
|
+
smtp:
|
|
77
|
+
host: "smtp.company.com"
|
|
78
|
+
port: 587
|
|
79
|
+
from: "approvals@company.com"
|
|
80
|
+
|
|
81
|
+
teams:
|
|
82
|
+
webhook_url_env: "TEAMS_WEBHOOK_URL"
|
|
83
|
+
|
|
84
|
+
pagerduty:
|
|
85
|
+
api_key_env: "PAGERDUTY_API_KEY"
|
|
86
|
+
service_id: "P123ABC"
|
|
87
|
+
# Only for urgent approvals
|
|
88
|
+
events: ["approval_escalated"]
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
## Notification Templates
|
|
94
|
+
|
|
95
|
+
### Slack Templates
|
|
96
|
+
|
|
97
|
+
```yaml
|
|
98
|
+
approvals:
|
|
99
|
+
notifications:
|
|
100
|
+
templates:
|
|
101
|
+
approval_request:
|
|
102
|
+
slack:
|
|
103
|
+
blocks:
|
|
104
|
+
- type: "header"
|
|
105
|
+
text: "🔔 Approval Required"
|
|
106
|
+
- type: "section"
|
|
107
|
+
fields:
|
|
108
|
+
- "*Feature:*\n{{feature.name}}"
|
|
109
|
+
- "*Requester:*\n{{requester.name}}"
|
|
110
|
+
- "*Stage:*\n{{stage.name}}"
|
|
111
|
+
- type: "section"
|
|
112
|
+
text: "{{description}}"
|
|
113
|
+
- type: "actions"
|
|
114
|
+
elements:
|
|
115
|
+
- type: "button"
|
|
116
|
+
text: "Review"
|
|
117
|
+
url: "{{review_url}}"
|
|
118
|
+
style: "primary"
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
### Email Templates
|
|
122
|
+
|
|
123
|
+
```yaml
|
|
124
|
+
approvals:
|
|
125
|
+
notifications:
|
|
126
|
+
templates:
|
|
127
|
+
approval_request:
|
|
128
|
+
email:
|
|
129
|
+
subject: "[Action Required] Approval needed: {{feature.name}}"
|
|
130
|
+
body: |
|
|
131
|
+
Hi {{approver.name}},
|
|
132
|
+
|
|
133
|
+
Your approval is required for:
|
|
134
|
+
|
|
135
|
+
**Feature:** {{feature.name}}
|
|
136
|
+
**Requester:** {{requester.name}}
|
|
137
|
+
**Stage:** {{stage.name}}
|
|
138
|
+
|
|
139
|
+
**Description:**
|
|
140
|
+
{{description}}
|
|
141
|
+
|
|
142
|
+
Please review and approve at:
|
|
143
|
+
{{review_url}}
|
|
144
|
+
|
|
145
|
+
This request will expire in {{timeout}}.
|
|
146
|
+
|
|
147
|
+
---
|
|
148
|
+
ProAgents Approval System
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
---
|
|
152
|
+
|
|
153
|
+
## Reminder Configuration
|
|
154
|
+
|
|
155
|
+
### Reminder Schedule
|
|
156
|
+
|
|
157
|
+
```yaml
|
|
158
|
+
approvals:
|
|
159
|
+
notifications:
|
|
160
|
+
reminders:
|
|
161
|
+
enabled: true
|
|
162
|
+
|
|
163
|
+
schedule:
|
|
164
|
+
# First reminder
|
|
165
|
+
- after: "4h"
|
|
166
|
+
message: "Reminder: Approval pending for {{feature.name}}"
|
|
167
|
+
|
|
168
|
+
# Second reminder
|
|
169
|
+
- after: "12h"
|
|
170
|
+
message: "Second reminder: Approval still pending"
|
|
171
|
+
escalate: false
|
|
172
|
+
|
|
173
|
+
# Final reminder before escalation
|
|
174
|
+
- after: "20h"
|
|
175
|
+
message: "Final reminder: Will escalate in 4 hours"
|
|
176
|
+
escalate_warning: true
|
|
177
|
+
|
|
178
|
+
# Business hours only
|
|
179
|
+
business_hours:
|
|
180
|
+
enabled: true
|
|
181
|
+
start: "09:00"
|
|
182
|
+
end: "18:00"
|
|
183
|
+
timezone: "America/New_York"
|
|
184
|
+
skip_weekends: true
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
---
|
|
188
|
+
|
|
189
|
+
## Escalation Notifications
|
|
190
|
+
|
|
191
|
+
### Escalation Setup
|
|
192
|
+
|
|
193
|
+
```yaml
|
|
194
|
+
approvals:
|
|
195
|
+
notifications:
|
|
196
|
+
escalation:
|
|
197
|
+
# Notify when escalating
|
|
198
|
+
notify_original_approvers: true
|
|
199
|
+
notify_escalation_target: true
|
|
200
|
+
notify_requester: true
|
|
201
|
+
|
|
202
|
+
template:
|
|
203
|
+
subject: "⚠️ Escalated: {{feature.name}} approval"
|
|
204
|
+
message: |
|
|
205
|
+
This approval has been escalated due to timeout.
|
|
206
|
+
|
|
207
|
+
Original approvers: {{original_approvers}}
|
|
208
|
+
Escalated to: {{escalation_target}}
|
|
209
|
+
Pending since: {{pending_duration}}
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
---
|
|
213
|
+
|
|
214
|
+
## Recipient Configuration
|
|
215
|
+
|
|
216
|
+
### Dynamic Recipients
|
|
217
|
+
|
|
218
|
+
```yaml
|
|
219
|
+
approvals:
|
|
220
|
+
notifications:
|
|
221
|
+
recipients:
|
|
222
|
+
# Always notify
|
|
223
|
+
always:
|
|
224
|
+
- "{{requester.email}}"
|
|
225
|
+
|
|
226
|
+
# Based on stage
|
|
227
|
+
by_stage:
|
|
228
|
+
code_review:
|
|
229
|
+
- "{{codeowners}}"
|
|
230
|
+
- "@tech-leads"
|
|
231
|
+
|
|
232
|
+
security_review:
|
|
233
|
+
- "@security-team"
|
|
234
|
+
|
|
235
|
+
production_deploy:
|
|
236
|
+
- "@devops"
|
|
237
|
+
- "{{manager.email}}"
|
|
238
|
+
|
|
239
|
+
# Escalation chain
|
|
240
|
+
escalation:
|
|
241
|
+
- level: 1
|
|
242
|
+
recipients: ["@tech-leads"]
|
|
243
|
+
- level: 2
|
|
244
|
+
recipients: ["@engineering-managers"]
|
|
245
|
+
- level: 3
|
|
246
|
+
recipients: ["@directors"]
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
---
|
|
250
|
+
|
|
251
|
+
## Notification Preferences
|
|
252
|
+
|
|
253
|
+
### User Preferences
|
|
254
|
+
|
|
255
|
+
```yaml
|
|
256
|
+
approvals:
|
|
257
|
+
notifications:
|
|
258
|
+
user_preferences:
|
|
259
|
+
enabled: true
|
|
260
|
+
|
|
261
|
+
# Users can configure
|
|
262
|
+
configurable:
|
|
263
|
+
- channels # Which channels to use
|
|
264
|
+
- frequency # Immediate vs digest
|
|
265
|
+
- quiet_hours # Do not disturb
|
|
266
|
+
|
|
267
|
+
defaults:
|
|
268
|
+
channels: ["slack", "email"]
|
|
269
|
+
frequency: "immediate"
|
|
270
|
+
quiet_hours:
|
|
271
|
+
enabled: false
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
### Digest Mode
|
|
275
|
+
|
|
276
|
+
```yaml
|
|
277
|
+
approvals:
|
|
278
|
+
notifications:
|
|
279
|
+
digest:
|
|
280
|
+
enabled: true
|
|
281
|
+
|
|
282
|
+
# Combine notifications
|
|
283
|
+
schedule: "0 9 * * *" # Daily at 9 AM
|
|
284
|
+
|
|
285
|
+
template:
|
|
286
|
+
subject: "Daily Approval Summary"
|
|
287
|
+
include:
|
|
288
|
+
- pending_approvals
|
|
289
|
+
- completed_approvals
|
|
290
|
+
- upcoming_deadlines
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
---
|
|
294
|
+
|
|
295
|
+
## Commands
|
|
296
|
+
|
|
297
|
+
```bash
|
|
298
|
+
# Test notification
|
|
299
|
+
proagents approvals test-notification --event approval_requested
|
|
300
|
+
|
|
301
|
+
# View notification history
|
|
302
|
+
proagents approvals notifications --last 24h
|
|
303
|
+
|
|
304
|
+
# Configure preferences
|
|
305
|
+
proagents approvals preferences set --channel slack --frequency immediate
|
|
306
|
+
|
|
307
|
+
# Mute notifications temporarily
|
|
308
|
+
proagents approvals mute --duration 2h
|
|
309
|
+
```
|
|
310
|
+
|
|
311
|
+
---
|
|
312
|
+
|
|
313
|
+
## Best Practices
|
|
314
|
+
|
|
315
|
+
1. **Don't Over-Notify**: Balance urgency with noise
|
|
316
|
+
2. **Use Right Channels**: Urgent → Slack/PagerDuty, Normal → Email
|
|
317
|
+
3. **Clear Templates**: Include all needed context
|
|
318
|
+
4. **Respect Time Zones**: Send during business hours
|
|
319
|
+
5. **Allow Preferences**: Let users configure their notifications
|
|
320
|
+
6. **Track Delivery**: Monitor notification delivery rates
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Automation
|
|
2
|
+
|
|
3
|
+
Configure AI behavior and automated decision-making in the workflow.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Overview
|
|
8
|
+
|
|
9
|
+
Control how the AI makes decisions, handles ambiguity, and automates routine tasks.
|
|
10
|
+
|
|
11
|
+
## Documentation
|
|
12
|
+
|
|
13
|
+
| Document | Description |
|
|
14
|
+
|----------|-------------|
|
|
15
|
+
| [Auto Decisions](./auto-decisions.md) | Configure automatic decision-making |
|
|
16
|
+
| [AI Behavior Rules](./ai-behavior-rules.md) | Define AI behavior constraints |
|
|
17
|
+
| [AI Prompt Injection](./ai-prompt-injection.md) | Custom context injection for AI |
|
|
18
|
+
|
|
19
|
+
## Quick Start
|
|
20
|
+
|
|
21
|
+
```yaml
|
|
22
|
+
# proagents.config.yaml
|
|
23
|
+
automation:
|
|
24
|
+
auto_decisions:
|
|
25
|
+
enabled: true
|
|
26
|
+
confidence_threshold: 0.8
|
|
27
|
+
|
|
28
|
+
behavior:
|
|
29
|
+
ask_before_destructive: true
|
|
30
|
+
prefer_existing_patterns: true
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Key Features
|
|
34
|
+
|
|
35
|
+
- **Auto-Decisions**: Let AI make routine decisions automatically
|
|
36
|
+
- **Behavior Rules**: Define constraints for AI actions
|
|
37
|
+
- **Context Injection**: Add project-specific context to AI prompts
|
|
38
|
+
- **Confidence Thresholds**: Control when AI asks vs decides
|
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
# AI Behavior Rules for Automation
|
|
2
|
+
|
|
3
|
+
Instructions for AI to maintain uninterrupted workflow execution.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Core Principle
|
|
8
|
+
|
|
9
|
+
**NEVER ASK QUESTIONS DURING AUTOMATED WORKFLOWS**
|
|
10
|
+
|
|
11
|
+
Instead of asking:
|
|
12
|
+
- Check pre-configured decisions
|
|
13
|
+
- Use inference rules
|
|
14
|
+
- Apply defaults
|
|
15
|
+
- Log the decision
|
|
16
|
+
- Continue working
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## Decision Resolution Flow
|
|
21
|
+
|
|
22
|
+
```
|
|
23
|
+
┌─────────────────────────────────────────────────────────┐
|
|
24
|
+
│ AI needs to make a decision │
|
|
25
|
+
├─────────────────────────────────────────────────────────┤
|
|
26
|
+
│ │
|
|
27
|
+
│ 1. Check explicit config │
|
|
28
|
+
│ └─ decisions.yaml has answer? → Use it │
|
|
29
|
+
│ │
|
|
30
|
+
│ 2. Check project type defaults │
|
|
31
|
+
│ └─ Project type defines it? → Use it │
|
|
32
|
+
│ │
|
|
33
|
+
│ 3. Check codebase patterns │
|
|
34
|
+
│ └─ Similar pattern exists? → Follow it │
|
|
35
|
+
│ │
|
|
36
|
+
│ 4. Check inference rules │
|
|
37
|
+
│ └─ Can infer from context? → Use inference │
|
|
38
|
+
│ │
|
|
39
|
+
│ 5. Use global default │
|
|
40
|
+
│ └─ Default exists? → Use it │
|
|
41
|
+
│ │
|
|
42
|
+
│ 6. Use safest option │
|
|
43
|
+
│ └─ Pick most conservative choice │
|
|
44
|
+
│ │
|
|
45
|
+
│ NEVER reach step 7: Ask user │
|
|
46
|
+
│ │
|
|
47
|
+
└─────────────────────────────────────────────────────────┘
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
## Rules for AI
|
|
53
|
+
|
|
54
|
+
### Rule 1: No Questions in Full Automation
|
|
55
|
+
|
|
56
|
+
```
|
|
57
|
+
❌ WRONG:
|
|
58
|
+
"Should I use REST or GraphQL for this API?"
|
|
59
|
+
|
|
60
|
+
✅ CORRECT:
|
|
61
|
+
[Check config: api_style = "rest"]
|
|
62
|
+
"Creating REST API endpoint as per project configuration."
|
|
63
|
+
[Continue working]
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
### Rule 2: State Decisions, Don't Ask
|
|
67
|
+
|
|
68
|
+
```
|
|
69
|
+
❌ WRONG:
|
|
70
|
+
"Where should I put this component? Options:
|
|
71
|
+
1. src/components/
|
|
72
|
+
2. src/features/auth/components/"
|
|
73
|
+
|
|
74
|
+
✅ CORRECT:
|
|
75
|
+
"Placing component in src/components/auth/ following existing project structure."
|
|
76
|
+
[Continue working]
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### Rule 3: Log Uncertain Decisions
|
|
80
|
+
|
|
81
|
+
```
|
|
82
|
+
❌ WRONG:
|
|
83
|
+
"I'm not sure if this should be a hook or a utility function. What do you think?"
|
|
84
|
+
|
|
85
|
+
✅ CORRECT:
|
|
86
|
+
"Creating as custom hook (useAuth) - matches similar patterns in codebase."
|
|
87
|
+
[Log: decision=hook, confidence=medium, reason=pattern_match]
|
|
88
|
+
[Continue working]
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### Rule 4: Use Defaults for Ambiguous Situations
|
|
92
|
+
|
|
93
|
+
```
|
|
94
|
+
❌ WRONG:
|
|
95
|
+
"There are multiple ways to implement this. Which approach do you prefer?"
|
|
96
|
+
|
|
97
|
+
✅ CORRECT:
|
|
98
|
+
"Implementing using [default approach] as per project settings."
|
|
99
|
+
[Continue working]
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### Rule 5: Follow Existing Patterns
|
|
103
|
+
|
|
104
|
+
```
|
|
105
|
+
❌ WRONG:
|
|
106
|
+
"I see you have both class and functional components. Which should I use?"
|
|
107
|
+
|
|
108
|
+
✅ CORRECT:
|
|
109
|
+
[Analyze: 90% functional components]
|
|
110
|
+
"Using functional component to match project conventions."
|
|
111
|
+
[Continue working]
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
## Decision Templates
|
|
117
|
+
|
|
118
|
+
### When Creating Components
|
|
119
|
+
|
|
120
|
+
```yaml
|
|
121
|
+
auto_decide:
|
|
122
|
+
location: "src/components/[category]/"
|
|
123
|
+
style: "functional"
|
|
124
|
+
naming: "PascalCase"
|
|
125
|
+
test: "colocated"
|
|
126
|
+
export: "named"
|
|
127
|
+
|
|
128
|
+
action:
|
|
129
|
+
1. Create component file
|
|
130
|
+
2. Create test file
|
|
131
|
+
3. Update index exports
|
|
132
|
+
4. Log decision
|
|
133
|
+
5. Continue
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
### When Creating API Endpoints
|
|
137
|
+
|
|
138
|
+
```yaml
|
|
139
|
+
auto_decide:
|
|
140
|
+
style: "{{config.api_style}}"
|
|
141
|
+
validation: "zod"
|
|
142
|
+
error_handling: "centralized"
|
|
143
|
+
documentation: "auto_generate"
|
|
144
|
+
|
|
145
|
+
action:
|
|
146
|
+
1. Create route file
|
|
147
|
+
2. Create controller
|
|
148
|
+
3. Create service
|
|
149
|
+
4. Add validation
|
|
150
|
+
5. Generate docs
|
|
151
|
+
6. Log decision
|
|
152
|
+
7. Continue
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
### When Choosing Libraries
|
|
156
|
+
|
|
157
|
+
```yaml
|
|
158
|
+
auto_decide:
|
|
159
|
+
rule: "Use already installed, or project default"
|
|
160
|
+
|
|
161
|
+
priority:
|
|
162
|
+
1. Already in package.json
|
|
163
|
+
2. Project type default
|
|
164
|
+
3. Global default
|
|
165
|
+
4. Most popular stable option
|
|
166
|
+
|
|
167
|
+
action:
|
|
168
|
+
1. Check package.json
|
|
169
|
+
2. Use found or default
|
|
170
|
+
3. Log decision
|
|
171
|
+
4. Continue
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
### When Naming Things
|
|
175
|
+
|
|
176
|
+
```yaml
|
|
177
|
+
auto_decide:
|
|
178
|
+
components: "PascalCase"
|
|
179
|
+
hooks: "useCamelCase"
|
|
180
|
+
services: "camelCaseService"
|
|
181
|
+
utils: "camelCase"
|
|
182
|
+
constants: "UPPER_SNAKE_CASE"
|
|
183
|
+
files:
|
|
184
|
+
components: "PascalCase.tsx"
|
|
185
|
+
others: "camelCase.ts"
|
|
186
|
+
|
|
187
|
+
action:
|
|
188
|
+
1. Determine type
|
|
189
|
+
2. Apply naming rule
|
|
190
|
+
3. Continue
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
---
|
|
194
|
+
|
|
195
|
+
## Confidence Levels
|
|
196
|
+
|
|
197
|
+
When making auto-decisions, assess confidence:
|
|
198
|
+
|
|
199
|
+
### High Confidence (Just do it)
|
|
200
|
+
- Explicit config exists
|
|
201
|
+
- Clear project pattern exists
|
|
202
|
+
- Standard best practice
|
|
203
|
+
|
|
204
|
+
```
|
|
205
|
+
"Using Zustand for state management (configured in project settings)."
|
|
206
|
+
[confidence: high]
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
### Medium Confidence (Do it, flag for review)
|
|
210
|
+
- Inferred from context
|
|
211
|
+
- Multiple valid options
|
|
212
|
+
- Slight uncertainty
|
|
213
|
+
|
|
214
|
+
```
|
|
215
|
+
"Creating separate service file for API calls (inferred from similar features)."
|
|
216
|
+
[confidence: medium, flagged_for_review: true]
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
### Low Confidence (Do safest, definitely flag)
|
|
220
|
+
- No clear guidance
|
|
221
|
+
- Novel situation
|
|
222
|
+
- Potential impact
|
|
223
|
+
|
|
224
|
+
```
|
|
225
|
+
"Using default error handling pattern (no specific guidance found)."
|
|
226
|
+
[confidence: low, flagged_for_review: true, requires_post_review: true]
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
---
|
|
230
|
+
|
|
231
|
+
## Communication Style
|
|
232
|
+
|
|
233
|
+
### During Execution
|
|
234
|
+
|
|
235
|
+
```
|
|
236
|
+
✅ DO:
|
|
237
|
+
"Creating UserProfile component in src/components/user/..."
|
|
238
|
+
"Adding Zod validation schema..."
|
|
239
|
+
"Generating tests with 85% coverage target..."
|
|
240
|
+
|
|
241
|
+
❌ DON'T:
|
|
242
|
+
"Should I create this in components or features?"
|
|
243
|
+
"Do you want me to add validation?"
|
|
244
|
+
"What coverage target should I aim for?"
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
### Decision Announcements
|
|
248
|
+
|
|
249
|
+
```
|
|
250
|
+
Format:
|
|
251
|
+
"[Action] [what] [where/how] [reason if non-obvious]"
|
|
252
|
+
|
|
253
|
+
Examples:
|
|
254
|
+
"Creating AuthService in src/services/ following existing service pattern."
|
|
255
|
+
"Using React Query for server state as configured."
|
|
256
|
+
"Adding error boundary wrapper (standard for page components)."
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
### Uncertainty Handling
|
|
260
|
+
|
|
261
|
+
```
|
|
262
|
+
Format:
|
|
263
|
+
"[Action] using [choice] ([brief reason]). Flagged for review."
|
|
264
|
+
|
|
265
|
+
Examples:
|
|
266
|
+
"Implementing pagination using cursor-based approach (better for large datasets). Flagged for review."
|
|
267
|
+
"Splitting into micro-components (file was getting large). Flagged for review."
|
|
268
|
+
```
|
|
269
|
+
|
|
270
|
+
---
|
|
271
|
+
|
|
272
|
+
## Post-Workflow Summary
|
|
273
|
+
|
|
274
|
+
After completing automated workflow, provide:
|
|
275
|
+
|
|
276
|
+
```markdown
|
|
277
|
+
## Workflow Complete
|
|
278
|
+
|
|
279
|
+
### Summary
|
|
280
|
+
- Feature: User Authentication
|
|
281
|
+
- Files created: 12
|
|
282
|
+
- Files modified: 3
|
|
283
|
+
- Tests added: 8
|
|
284
|
+
|
|
285
|
+
### Decisions Made
|
|
286
|
+
| Decision | Choice | Confidence | Rule Applied |
|
|
287
|
+
|----------|--------|------------|--------------|
|
|
288
|
+
| State management | Zustand | High | Explicit config |
|
|
289
|
+
| Component location | src/components/auth | High | Pattern match |
|
|
290
|
+
| API style | REST | High | Explicit config |
|
|
291
|
+
| Error handling | Error boundary | Medium | Inference |
|
|
292
|
+
|
|
293
|
+
### Flagged for Review (2)
|
|
294
|
+
1. **Token storage**: Used httpOnly cookies (security best practice)
|
|
295
|
+
- Alternative: localStorage (faster but less secure)
|
|
296
|
+
|
|
297
|
+
2. **Session duration**: Set to 7 days
|
|
298
|
+
- Based on: Default config
|
|
299
|
+
- Consider: Shorter for sensitive apps
|
|
300
|
+
|
|
301
|
+
### No Issues Found
|
|
302
|
+
✅ All decisions within confidence thresholds
|
|
303
|
+
✅ No blocking questions needed
|
|
304
|
+
✅ Automation completed successfully
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
---
|
|
308
|
+
|
|
309
|
+
## Emergency Override
|
|
310
|
+
|
|
311
|
+
If AI truly cannot proceed without input:
|
|
312
|
+
|
|
313
|
+
```yaml
|
|
314
|
+
emergency_protocol:
|
|
315
|
+
condition: "Truly ambiguous AND high-impact decision"
|
|
316
|
+
|
|
317
|
+
actions:
|
|
318
|
+
1. Try harder to find a default
|
|
319
|
+
2. Use safest/most conservative option
|
|
320
|
+
3. Mark as "CRITICAL_REVIEW_NEEDED"
|
|
321
|
+
4. Continue with safest option
|
|
322
|
+
5. Do NOT block workflow
|
|
323
|
+
|
|
324
|
+
example:
|
|
325
|
+
situation: "Delete user data permanently vs soft delete"
|
|
326
|
+
action: "Use soft delete (safer), flag as CRITICAL_REVIEW_NEEDED"
|
|
327
|
+
reason: "Data deletion is irreversible, chose conservative option"
|
|
328
|
+
```
|
|
329
|
+
|
|
330
|
+
---
|
|
331
|
+
|
|
332
|
+
## Slash Commands for AI
|
|
333
|
+
|
|
334
|
+
| Command | Description |
|
|
335
|
+
|---------|-------------|
|
|
336
|
+
| `[AUTO-DECIDE]` | Marker in logs for auto-decisions |
|
|
337
|
+
| `[FLAGGED]` | Decision flagged for review |
|
|
338
|
+
| `[CONFIDENCE:HIGH/MEDIUM/LOW]` | Decision confidence level |
|
|
339
|
+
| `[RULE:rule_name]` | Which rule was applied |
|