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.
Files changed (444) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +170 -0
  3. package/bin/proagents.js +90 -0
  4. package/lib/commands/feature.js +125 -0
  5. package/lib/commands/fix.js +60 -0
  6. package/lib/commands/help.js +76 -0
  7. package/lib/commands/init.js +64 -0
  8. package/lib/commands/status.js +91 -0
  9. package/lib/index.js +28 -0
  10. package/package.json +52 -0
  11. package/proagents/.learning/global/common-patterns.json +77 -0
  12. package/proagents/.learning/global/user-preferences.json +76 -0
  13. package/proagents/.learning/projects/example-project/corrections.json +99 -0
  14. package/proagents/.learning/projects/example-project/feedback.json +109 -0
  15. package/proagents/.learning/projects/example-project/metrics.json +101 -0
  16. package/proagents/.learning/projects/example-project/patterns.json +102 -0
  17. package/proagents/.learning/schemas/README.md +48 -0
  18. package/proagents/.learning/schemas/corrections-schema.json +100 -0
  19. package/proagents/.learning/schemas/feedback-schema.json +144 -0
  20. package/proagents/.learning/schemas/metrics-schema.json +96 -0
  21. package/proagents/.learning/schemas/patterns-schema.json +82 -0
  22. package/proagents/.learning/schemas/project-patterns-schema.json +125 -0
  23. package/proagents/.learning/schemas/user-preferences-schema.json +136 -0
  24. package/proagents/GETTING-STARTED-STORY.md +708 -0
  25. package/proagents/README.md +99 -0
  26. package/proagents/WORKFLOW.md +1234 -0
  27. package/proagents/active-features/.gitkeep +0 -0
  28. package/proagents/active-features/README.md +176 -0
  29. package/proagents/active-features/_index.json +74 -0
  30. package/proagents/active-features/feature-user-auth/dependencies.json +81 -0
  31. package/proagents/active-features/feature-user-auth/files-modified.json +126 -0
  32. package/proagents/active-features/feature-user-auth/status.json +122 -0
  33. package/proagents/active-features/schemas/dependencies-schema.json +119 -0
  34. package/proagents/active-features/schemas/feature-schema.json +132 -0
  35. package/proagents/active-features/schemas/files-schema.json +100 -0
  36. package/proagents/active-features/schemas/index-schema.json +95 -0
  37. package/proagents/adr/README.md +302 -0
  38. package/proagents/adr/examples/api-versioning.md +297 -0
  39. package/proagents/adr/examples/database-choice.md +264 -0
  40. package/proagents/adr/template.md +273 -0
  41. package/proagents/ai-models/README.md +141 -0
  42. package/proagents/ai-models/cost-management.md +362 -0
  43. package/proagents/ai-models/fallbacks.md +342 -0
  44. package/proagents/ai-models/model-config.md +318 -0
  45. package/proagents/ai-models/task-routing.md +503 -0
  46. package/proagents/ai-training/README.md +155 -0
  47. package/proagents/ai-training/continuous-learning.md +413 -0
  48. package/proagents/ai-training/domain-knowledge.md +378 -0
  49. package/proagents/ai-training/pattern-learning.md +455 -0
  50. package/proagents/ai-training/training-data.md +337 -0
  51. package/proagents/ai-training/user-preferences.md +346 -0
  52. package/proagents/api-versioning/README.md +257 -0
  53. package/proagents/api-versioning/changelog-template.md +225 -0
  54. package/proagents/api-versioning/deprecation-workflow.md +470 -0
  55. package/proagents/api-versioning/versioning-strategy.md +291 -0
  56. package/proagents/approval-workflows/README.md +146 -0
  57. package/proagents/approval-workflows/approval-config.md +332 -0
  58. package/proagents/approval-workflows/approval-stages.md +503 -0
  59. package/proagents/approval-workflows/emergency-bypass.md +351 -0
  60. package/proagents/approval-workflows/examples.md +859 -0
  61. package/proagents/approval-workflows/notifications.md +320 -0
  62. package/proagents/automation/README.md +38 -0
  63. package/proagents/automation/ai-behavior-rules.md +339 -0
  64. package/proagents/automation/ai-prompt-injection.md +331 -0
  65. package/proagents/automation/auto-decisions.md +535 -0
  66. package/proagents/automation/decision-defaults.yaml +317 -0
  67. package/proagents/cache/README.md +110 -0
  68. package/proagents/cache/analysis-metadata.json +76 -0
  69. package/proagents/cache/conventions.json +125 -0
  70. package/proagents/cache/dependencies.json +85 -0
  71. package/proagents/cache/features.json +115 -0
  72. package/proagents/cache/patterns.json +105 -0
  73. package/proagents/cache/schemas/conventions-schema.json +138 -0
  74. package/proagents/cache/schemas/dependencies-schema.json +95 -0
  75. package/proagents/cache/schemas/features-schema.json +104 -0
  76. package/proagents/cache/schemas/metadata-schema.json +83 -0
  77. package/proagents/cache/schemas/patterns-schema.json +136 -0
  78. package/proagents/cache/schemas/structure-schema.json +72 -0
  79. package/proagents/cache/structure.json +109 -0
  80. package/proagents/changelog/2024/01/2024-01-10-api-url-config.md +41 -0
  81. package/proagents/changelog/2024/01/2024-01-12-login-bug-fix.md +69 -0
  82. package/proagents/changelog/2024/01/2024-01-15-user-auth-feature.md +99 -0
  83. package/proagents/changelog/CHANGELOG.md +82 -0
  84. package/proagents/changelog/README.md +327 -0
  85. package/proagents/changelog/entry-template.md +283 -0
  86. package/proagents/checklists/README.md +261 -0
  87. package/proagents/checklists/code-quality.md +137 -0
  88. package/proagents/checklists/code-review.md +148 -0
  89. package/proagents/checklists/pr-checklist.md +78 -0
  90. package/proagents/checklists/pre-deployment.md +132 -0
  91. package/proagents/checklists/pre-implementation.md +80 -0
  92. package/proagents/checklists/testing.md +120 -0
  93. package/proagents/cicd/README.md +338 -0
  94. package/proagents/cicd/azure-devops.md +267 -0
  95. package/proagents/cicd/github-actions.md +375 -0
  96. package/proagents/cicd/gitlab-ci.md +278 -0
  97. package/proagents/cicd/jenkins.md +317 -0
  98. package/proagents/cli/README.md +392 -0
  99. package/proagents/cli/commands-reference.md +893 -0
  100. package/proagents/cli/ide-integration.md +584 -0
  101. package/proagents/cli/shortcuts.md +394 -0
  102. package/proagents/cli/slash-commands.md +507 -0
  103. package/proagents/collaboration/README.md +143 -0
  104. package/proagents/collaboration/roles.md +248 -0
  105. package/proagents/collaboration/sessions.md +390 -0
  106. package/proagents/collaboration/sync.md +358 -0
  107. package/proagents/compliance/README.md +206 -0
  108. package/proagents/compliance/access-control.md +310 -0
  109. package/proagents/compliance/audit-logging.md +444 -0
  110. package/proagents/compliance/compliance-frameworks.md +429 -0
  111. package/proagents/compliance/reports.md +491 -0
  112. package/proagents/compliance/retention-policies.md +454 -0
  113. package/proagents/config/README.md +181 -0
  114. package/proagents/config/integrations/README.md +68 -0
  115. package/proagents/config/integrations/github.yaml +211 -0
  116. package/proagents/config/integrations/jira.yaml +144 -0
  117. package/proagents/config/integrations/linear.yaml +157 -0
  118. package/proagents/config/integrations/notion.yaml +203 -0
  119. package/proagents/config/integrations/slack.yaml +230 -0
  120. package/proagents/config/rules/README.md +73 -0
  121. package/proagents/config/rules/custom-rules.template.yaml +188 -0
  122. package/proagents/config/rules/validation-rules.template.yaml +177 -0
  123. package/proagents/config/standards/README.md +58 -0
  124. package/proagents/config/standards/architecture-rules.template.md +124 -0
  125. package/proagents/config/standards/coding-standards.template.md +107 -0
  126. package/proagents/config/standards/naming-conventions.template.md +114 -0
  127. package/proagents/config/standards/testing-standards.template.md +213 -0
  128. package/proagents/config/templates/README.md +74 -0
  129. package/proagents/config/templates/api-route.template.ts +142 -0
  130. package/proagents/config/templates/component.template.tsx +55 -0
  131. package/proagents/config/templates/hook.template.ts +93 -0
  132. package/proagents/config/templates/test.template.ts +171 -0
  133. package/proagents/config-versioning/README.md +120 -0
  134. package/proagents/config-versioning/changelog.md +300 -0
  135. package/proagents/config-versioning/rollback.md +283 -0
  136. package/proagents/config-versioning/versioning.md +330 -0
  137. package/proagents/contract-testing/README.md +223 -0
  138. package/proagents/contract-testing/contract-testing.md +614 -0
  139. package/proagents/contract-testing/pact-integration.md +507 -0
  140. package/proagents/contract-testing/schema-validation.md +565 -0
  141. package/proagents/cost/README.md +48 -0
  142. package/proagents/cost/cost-template.md +283 -0
  143. package/proagents/cost/estimation-framework.md +287 -0
  144. package/proagents/database/README.md +72 -0
  145. package/proagents/database/examples/001-create-users.sql +129 -0
  146. package/proagents/database/examples/002-add-preferences.sql +94 -0
  147. package/proagents/database/examples/003-add-index.sql +105 -0
  148. package/proagents/database/examples/004-rename-column.sql +122 -0
  149. package/proagents/database/examples/005-add-foreign-key.sql +142 -0
  150. package/proagents/database/examples/006-data-migration.sql +196 -0
  151. package/proagents/database/examples/007-drop-column.sql +163 -0
  152. package/proagents/database/examples/README.md +89 -0
  153. package/proagents/database/migration-workflow.md +478 -0
  154. package/proagents/database/rollback-scripts.md +487 -0
  155. package/proagents/database/safety-checks.md +447 -0
  156. package/proagents/dependency-management/README.md +140 -0
  157. package/proagents/dependency-management/automation.md +363 -0
  158. package/proagents/dependency-management/compatibility.md +319 -0
  159. package/proagents/dependency-management/security-scanning.md +413 -0
  160. package/proagents/dependency-management/update-policies.md +374 -0
  161. package/proagents/disaster-recovery/README.md +247 -0
  162. package/proagents/disaster-recovery/automation.md +366 -0
  163. package/proagents/disaster-recovery/backup-recovery.md +571 -0
  164. package/proagents/disaster-recovery/incident-response.md +565 -0
  165. package/proagents/disaster-recovery/rollback-procedures.md +499 -0
  166. package/proagents/disaster-recovery/runbooks.md +603 -0
  167. package/proagents/disaster-recovery/scenarios.md +892 -0
  168. package/proagents/disaster-recovery/testing.md +438 -0
  169. package/proagents/environments/README.md +244 -0
  170. package/proagents/environments/configuration.md +437 -0
  171. package/proagents/environments/promotion.md +434 -0
  172. package/proagents/environments/setup.md +420 -0
  173. package/proagents/examples/README.md +55 -0
  174. package/proagents/examples/backend-nodejs/README.md +188 -0
  175. package/proagents/examples/backend-nodejs/complete-conversation.md +601 -0
  176. package/proagents/examples/backend-nodejs/proagents.config.yaml +415 -0
  177. package/proagents/examples/backend-nodejs/workflow-example.md +909 -0
  178. package/proagents/examples/fullstack-nextjs/README.md +155 -0
  179. package/proagents/examples/fullstack-nextjs/complete-conversation.md +604 -0
  180. package/proagents/examples/fullstack-nextjs/proagents.config.yaml +287 -0
  181. package/proagents/examples/fullstack-nextjs/workflow-example.md +553 -0
  182. package/proagents/examples/mobile-react-native/README.md +171 -0
  183. package/proagents/examples/mobile-react-native/complete-conversation.md +825 -0
  184. package/proagents/examples/mobile-react-native/proagents.config.yaml +330 -0
  185. package/proagents/examples/mobile-react-native/workflow-example.md +723 -0
  186. package/proagents/examples/web-frontend-react/README.md +125 -0
  187. package/proagents/examples/web-frontend-react/complete-conversation.md +556 -0
  188. package/proagents/examples/web-frontend-react/proagents.config.yaml +183 -0
  189. package/proagents/examples/web-frontend-react/workflow-example.md +603 -0
  190. package/proagents/existing-projects/README.md +65 -0
  191. package/proagents/existing-projects/challenges.md +861 -0
  192. package/proagents/existing-projects/coexistence-mode.md +483 -0
  193. package/proagents/existing-projects/compatibility-assessment.md +541 -0
  194. package/proagents/existing-projects/gradual-adoption.md +515 -0
  195. package/proagents/existing-projects/migration-strategies.md +788 -0
  196. package/proagents/existing-projects/pattern-reconciliation.md +489 -0
  197. package/proagents/existing-projects/team-onboarding.md +617 -0
  198. package/proagents/existing-projects/technical-debt-handling.md +644 -0
  199. package/proagents/feature-flags/README.md +263 -0
  200. package/proagents/feature-flags/ab-testing.md +413 -0
  201. package/proagents/feature-flags/configuration.md +420 -0
  202. package/proagents/feature-flags/kill-switches.md +444 -0
  203. package/proagents/feature-flags/rollout-strategies.md +392 -0
  204. package/proagents/getting-started/README.md +60 -0
  205. package/proagents/getting-started/ai-training-setup.md +380 -0
  206. package/proagents/getting-started/ide-setup.md +195 -0
  207. package/proagents/getting-started/mcp-setup.md +239 -0
  208. package/proagents/getting-started/pm-integration.md +336 -0
  209. package/proagents/getting-started/prompt-engineering.md +478 -0
  210. package/proagents/getting-started/team-onboarding.md +236 -0
  211. package/proagents/git/README.md +68 -0
  212. package/proagents/git/branch-strategy.md +164 -0
  213. package/proagents/git/commit-conventions.md +241 -0
  214. package/proagents/git/pr-workflow.md +286 -0
  215. package/proagents/git/rollback-procedures.md +416 -0
  216. package/proagents/i18n/README.md +133 -0
  217. package/proagents/i18n/extraction.md +433 -0
  218. package/proagents/i18n/tms-integration.md +332 -0
  219. package/proagents/i18n/translation-workflow.md +413 -0
  220. package/proagents/i18n/validation.md +355 -0
  221. package/proagents/ide-integration/README.md +124 -0
  222. package/proagents/ide-integration/cline-config.md +429 -0
  223. package/proagents/ide-integration/continue-config.md +380 -0
  224. package/proagents/ide-integration/cursor-rules.md +280 -0
  225. package/proagents/ide-integration/github-copilot.md +384 -0
  226. package/proagents/ide-integration/windsurf-rules.md +314 -0
  227. package/proagents/integrations/README.md +97 -0
  228. package/proagents/integrations/pm/README.md +344 -0
  229. package/proagents/learning/README.md +136 -0
  230. package/proagents/learning/adaptation.md +305 -0
  231. package/proagents/learning/data-collection.md +283 -0
  232. package/proagents/learning/implementation-guide.md +865 -0
  233. package/proagents/learning/reports.md +306 -0
  234. package/proagents/logging/README.md +276 -0
  235. package/proagents/logging/aggregation.md +475 -0
  236. package/proagents/logging/log-levels.md +376 -0
  237. package/proagents/logging/sensitive-data.md +423 -0
  238. package/proagents/logging/structured-logging.md +406 -0
  239. package/proagents/mcp/README.md +133 -0
  240. package/proagents/mcp/context-providers.md +442 -0
  241. package/proagents/mcp/server-config.md +306 -0
  242. package/proagents/mcp/tools-definition.md +513 -0
  243. package/proagents/metrics/README.md +174 -0
  244. package/proagents/metrics/code-quality-kpis.md +461 -0
  245. package/proagents/metrics/deployment-metrics.md +517 -0
  246. package/proagents/metrics/developer-productivity.md +368 -0
  247. package/proagents/metrics/learning-effectiveness.md +478 -0
  248. package/proagents/migrations/README.md +77 -0
  249. package/proagents/migrations/from-claude-projects.md +312 -0
  250. package/proagents/migrations/from-cursor-rules.md +345 -0
  251. package/proagents/migrations/from-custom-workflows.md +410 -0
  252. package/proagents/monitoring/README.md +308 -0
  253. package/proagents/monitoring/alerting.md +449 -0
  254. package/proagents/monitoring/dashboards.md +454 -0
  255. package/proagents/monitoring/health-checks.md +436 -0
  256. package/proagents/monitoring/metrics.md +434 -0
  257. package/proagents/multi-project/README.md +170 -0
  258. package/proagents/multi-project/coordinated-deploy.md +510 -0
  259. package/proagents/multi-project/cross-project-deps.md +395 -0
  260. package/proagents/multi-project/unified-changelog.md +477 -0
  261. package/proagents/multi-project/walkthroughs/monorepo-setup.md +787 -0
  262. package/proagents/multi-project/workspace-config.md +408 -0
  263. package/proagents/notifications/README.md +151 -0
  264. package/proagents/notifications/channels.md +457 -0
  265. package/proagents/notifications/preferences.md +415 -0
  266. package/proagents/notifications/routing.md +449 -0
  267. package/proagents/notifications/scheduling.md +425 -0
  268. package/proagents/notifications/templates.md +446 -0
  269. package/proagents/offline-mode/README.md +145 -0
  270. package/proagents/offline-mode/caching.md +344 -0
  271. package/proagents/offline-mode/offline-operations.md +312 -0
  272. package/proagents/offline-mode/queue-specifications.md +679 -0
  273. package/proagents/offline-mode/sync.md +475 -0
  274. package/proagents/parallel-features/README.md +85 -0
  275. package/proagents/parallel-features/conflict-detection.md +226 -0
  276. package/proagents/parallel-features/dependency-management.md +392 -0
  277. package/proagents/parallel-features/merge-coordination.md +506 -0
  278. package/proagents/parallel-features/tracking-system.md +416 -0
  279. package/proagents/patterns/README.md +305 -0
  280. package/proagents/patterns/api-errors.md +453 -0
  281. package/proagents/patterns/async-errors.md +521 -0
  282. package/proagents/patterns/error-types.md +437 -0
  283. package/proagents/patterns/ui-errors.md +595 -0
  284. package/proagents/performance/README.md +59 -0
  285. package/proagents/performance/bundle-analysis.md +375 -0
  286. package/proagents/performance/load-testing.md +563 -0
  287. package/proagents/performance/runtime-metrics.md +489 -0
  288. package/proagents/performance/web-vitals.md +425 -0
  289. package/proagents/plugins/README.md +139 -0
  290. package/proagents/plugins/creating-plugins.md +504 -0
  291. package/proagents/plugins/plugin-api.md +467 -0
  292. package/proagents/plugins/plugin-registry.md +276 -0
  293. package/proagents/pm-integration/README.md +151 -0
  294. package/proagents/pm-integration/asana.md +346 -0
  295. package/proagents/pm-integration/github-issues.md +308 -0
  296. package/proagents/pm-integration/gitlab-issues.md +482 -0
  297. package/proagents/pm-integration/jira.md +364 -0
  298. package/proagents/pm-integration/linear.md +409 -0
  299. package/proagents/pm-integration/notion.md +275 -0
  300. package/proagents/pm-integration/sync-config.md +533 -0
  301. package/proagents/pm-integration/trello.md +159 -0
  302. package/proagents/proagents.config.yaml +213 -0
  303. package/proagents/prompts/00-init-wizard.md +426 -0
  304. package/proagents/prompts/00-init.md +219 -0
  305. package/proagents/prompts/01-analysis.md +244 -0
  306. package/proagents/prompts/02-requirements.md +399 -0
  307. package/proagents/prompts/03-ui-design.md +493 -0
  308. package/proagents/prompts/04-planning.md +505 -0
  309. package/proagents/prompts/05-implementation.md +518 -0
  310. package/proagents/prompts/06-testing.md +620 -0
  311. package/proagents/prompts/06.5-code-review.md +512 -0
  312. package/proagents/prompts/07-documentation.md +673 -0
  313. package/proagents/prompts/08-deployment.md +539 -0
  314. package/proagents/prompts/09-rollback.md +554 -0
  315. package/proagents/prompts/README.md +51 -0
  316. package/proagents/prompts/accessibility/README.md +146 -0
  317. package/proagents/prompts/accessibility/aria.md +276 -0
  318. package/proagents/prompts/accessibility/audit.md +233 -0
  319. package/proagents/prompts/accessibility/keyboard.md +392 -0
  320. package/proagents/prompts/accessibility/wcag.md +189 -0
  321. package/proagents/prompts/debugging/README.md +51 -0
  322. package/proagents/prompts/debugging/error-analysis.md +385 -0
  323. package/proagents/prompts/debugging/performance-debug.md +381 -0
  324. package/proagents/prompts/debugging/systematic.md +270 -0
  325. package/proagents/prompts/performance/README.md +47 -0
  326. package/proagents/prompts/performance/analyze.md +265 -0
  327. package/proagents/prompts/performance/optimize.md +347 -0
  328. package/proagents/prompts/refactoring/README.md +51 -0
  329. package/proagents/prompts/refactoring/architecture.md +531 -0
  330. package/proagents/prompts/refactoring/code-smells.md +174 -0
  331. package/proagents/prompts/refactoring/patterns.md +516 -0
  332. package/proagents/prompts/security-audit/README.md +197 -0
  333. package/proagents/prompts/security-audit/code-review.md +260 -0
  334. package/proagents/prompts/security-audit/vulnerability-scan.md +288 -0
  335. package/proagents/reporting/README.md +158 -0
  336. package/proagents/reporting/dashboards.md +366 -0
  337. package/proagents/reporting/exports.md +524 -0
  338. package/proagents/reporting/quality-metrics.md +385 -0
  339. package/proagents/reporting/templates/README.md +56 -0
  340. package/proagents/reporting/templates/dashboard-config.json +187 -0
  341. package/proagents/reporting/templates/metrics-queries.md +427 -0
  342. package/proagents/reporting/templates/react-dashboard.tsx +544 -0
  343. package/proagents/reporting/templates/widgets.md +451 -0
  344. package/proagents/reporting/velocity-metrics.md +340 -0
  345. package/proagents/reverse-engineering/README.md +151 -0
  346. package/proagents/reverse-engineering/architecture-extraction.md +325 -0
  347. package/proagents/reverse-engineering/code-analysis.md +377 -0
  348. package/proagents/reverse-engineering/dependency-mapping.md +567 -0
  349. package/proagents/reverse-engineering/diagram-generation.md +586 -0
  350. package/proagents/reverse-engineering/documentation-generation.md +468 -0
  351. package/proagents/reverse-engineering/pattern-detection.md +569 -0
  352. package/proagents/reverse-engineering/quality-assessment.md +733 -0
  353. package/proagents/rules/README.md +179 -0
  354. package/proagents/rules/custom-rules-template.yaml +286 -0
  355. package/proagents/rules/custom-rules.md +754 -0
  356. package/proagents/rules/validation-rules-template.yaml +517 -0
  357. package/proagents/runbooks/README.md +219 -0
  358. package/proagents/runbooks/dependency-vulnerability.md +505 -0
  359. package/proagents/runbooks/incident-response.md +451 -0
  360. package/proagents/runbooks/performance-degradation.md +584 -0
  361. package/proagents/runbooks/production-debugging.md +489 -0
  362. package/proagents/scaffolding/README.md +64 -0
  363. package/proagents/scaffolding/nextjs/README.md +578 -0
  364. package/proagents/scaffolding/nextjs/templates/api-route.ts.template +185 -0
  365. package/proagents/scaffolding/nextjs/templates/page.tsx.template +109 -0
  366. package/proagents/scaffolding/nextjs/templates/server-action.ts.template +204 -0
  367. package/proagents/scaffolding/nodejs/README.md +558 -0
  368. package/proagents/scaffolding/nodejs/templates/controller.ts.template +167 -0
  369. package/proagents/scaffolding/nodejs/templates/repository.ts.template +155 -0
  370. package/proagents/scaffolding/nodejs/templates/service.ts.template +207 -0
  371. package/proagents/scaffolding/project-types.md +401 -0
  372. package/proagents/scaffolding/react/README.md +399 -0
  373. package/proagents/scaffolding/react/templates/component.tsx.template +88 -0
  374. package/proagents/scaffolding/react/templates/hook.ts.template +127 -0
  375. package/proagents/scaffolding/react/templates/service.ts.template +155 -0
  376. package/proagents/scaffolding/react/templates/test.tsx.template +149 -0
  377. package/proagents/scaffolding/react-native/README.md +476 -0
  378. package/proagents/scaffolding/react-native/templates/hook.ts.template +226 -0
  379. package/proagents/scaffolding/react-native/templates/screen.tsx.template +247 -0
  380. package/proagents/secrets/README.md +278 -0
  381. package/proagents/secrets/access-control.md +443 -0
  382. package/proagents/secrets/rotation.md +403 -0
  383. package/proagents/secrets/scanning.md +487 -0
  384. package/proagents/secrets/storage.md +394 -0
  385. package/proagents/security/README.md +71 -0
  386. package/proagents/security/owasp-checklist.md +390 -0
  387. package/proagents/security/sast-guide.md +473 -0
  388. package/proagents/security/security-report-template.md +343 -0
  389. package/proagents/security/vulnerability-scanning.md +329 -0
  390. package/proagents/slash-commands.json +161 -0
  391. package/proagents/standards/README.md +120 -0
  392. package/proagents/standards/architecture-patterns.md +728 -0
  393. package/proagents/standards/architecture-rules-template.md +489 -0
  394. package/proagents/standards/coding-standards-template.md +489 -0
  395. package/proagents/standards/examples/README.md +61 -0
  396. package/proagents/standards/examples/nodejs-api.md +560 -0
  397. package/proagents/standards/examples/react-nextjs.md +428 -0
  398. package/proagents/standards/naming-conventions-template.md +526 -0
  399. package/proagents/standards/override-system.md +717 -0
  400. package/proagents/standards/testing-standards-template.md +220 -0
  401. package/proagents/team/README.md +256 -0
  402. package/proagents/team/code-ownership.md +306 -0
  403. package/proagents/team/communication-templates.md +441 -0
  404. package/proagents/team/handoff-protocol.md +380 -0
  405. package/proagents/team/ide-setup/README.md +103 -0
  406. package/proagents/team/ide-setup/cursor.md +276 -0
  407. package/proagents/team/ide-setup/jetbrains.md +330 -0
  408. package/proagents/team/ide-setup/neovim.md +640 -0
  409. package/proagents/team/ide-setup/vscode.md +348 -0
  410. package/proagents/team/onboarding.md +278 -0
  411. package/proagents/templates/README.md +57 -0
  412. package/proagents/templates/code-review-report.md +255 -0
  413. package/proagents/templates/codebase-analysis-report.md +315 -0
  414. package/proagents/templates/deployment-checklist.md +277 -0
  415. package/proagents/templates/feature-requirements.md +142 -0
  416. package/proagents/templates/feature-status.md +231 -0
  417. package/proagents/templates/implementation-plan.md +373 -0
  418. package/proagents/templates/rollback-plan.md +331 -0
  419. package/proagents/templates/test-plan.md +336 -0
  420. package/proagents/templates/ui-specification.md +431 -0
  421. package/proagents/testing-standards/README.md +229 -0
  422. package/proagents/testing-standards/coverage-requirements.md +198 -0
  423. package/proagents/testing-standards/mocking-guidelines.md +478 -0
  424. package/proagents/testing-standards/test-naming.md +485 -0
  425. package/proagents/testing-standards/test-patterns.md +488 -0
  426. package/proagents/troubleshooting/README.md +730 -0
  427. package/proagents/troubleshooting/ai-issues.md +601 -0
  428. package/proagents/troubleshooting/workflow-issues.md +571 -0
  429. package/proagents/ui-integration/README.md +77 -0
  430. package/proagents/ui-integration/figma-guide.md +217 -0
  431. package/proagents/ui-integration/manual-export-guide.md +358 -0
  432. package/proagents/ui-integration/sketch-interpretation.md +471 -0
  433. package/proagents/webhooks/README.md +126 -0
  434. package/proagents/webhooks/endpoints.md +298 -0
  435. package/proagents/webhooks/events.md +316 -0
  436. package/proagents/webhooks/payloads.md +325 -0
  437. package/proagents/webhooks/reliability.md +363 -0
  438. package/proagents/webhooks/security.md +380 -0
  439. package/proagents/workflow-modes/README.md +136 -0
  440. package/proagents/workflow-modes/deferred-tracking.md +405 -0
  441. package/proagents/workflow-modes/entry-modes.md +397 -0
  442. package/proagents/workflow-modes/guardrails.md +405 -0
  443. package/proagents/workflow-modes/mode-detection.md +358 -0
  444. package/proagents/workflow-modes/mode-switching.md +372 -0
@@ -0,0 +1,1234 @@
1
+ # ProAgents Development Workflow - Complete Guide
2
+
3
+ The comprehensive reference for the ProAgents AI-powered development automation workflow.
4
+
5
+ ---
6
+
7
+ ## Table of Contents
8
+
9
+ 1. [Overview](#overview)
10
+ 2. [Core Principles](#core-principles)
11
+ 3. [Workflow Phases](#workflow-phases)
12
+ 4. [Flexible Entry Modes](#flexible-entry-modes)
13
+ 5. [Parallel Feature Development](#parallel-feature-development)
14
+ 6. [Checkpoint System](#checkpoint-system)
15
+ 7. [Self-Learning System](#self-learning-system)
16
+ 8. [Configuration](#configuration)
17
+ 9. [Commands Reference](#commands-reference)
18
+
19
+ ---
20
+
21
+ ## Overview
22
+
23
+ ProAgents is a 10-phase development workflow that guides you from idea to deployment. It's designed to be:
24
+
25
+ - **AI Agnostic**: Works with Claude, ChatGPT, Gemini, Copilot, or any AI
26
+ - **IDE Agnostic**: Works with VS Code, Cursor, JetBrains, Vim, or any editor
27
+ - **Project Agnostic**: Supports web, mobile, full-stack, and backend projects
28
+ - **Existing Project First**: Deep analysis before any changes
29
+
30
+ ```
31
+ ┌─────────────────────────────────────────────────────────────────────┐
32
+ │ ProAgents Workflow Overview │
33
+ ├─────────────────────────────────────────────────────────────────────┤
34
+ │ │
35
+ │ /init ──► Phase 0: Initialization │
36
+ │ │ │
37
+ │ ▼ │
38
+ │ Phase 1: Deep Analysis (existing projects) │
39
+ │ │ │
40
+ │ ▼ │
41
+ │ Phase 2: Requirements Engineering │
42
+ │ │ │
43
+ │ ▼ │
44
+ │ Phase 3: UI/UX Design Integration │
45
+ │ │ │
46
+ │ ▼ │
47
+ │ Phase 4: Implementation Planning │
48
+ │ │ │
49
+ │ ▼ │
50
+ │ Phase 5: Code Implementation │
51
+ │ │ │
52
+ │ ▼ │
53
+ │ Phase 6: Comprehensive Testing │
54
+ │ │ │
55
+ │ ▼ │
56
+ │ Phase 6.5: Code Review │
57
+ │ │ │
58
+ │ ▼ │
59
+ │ Phase 7: Documentation │
60
+ │ │ │
61
+ │ ▼ │
62
+ │ Phase 8: Deployment Preparation │
63
+ │ │ │
64
+ │ ▼ │
65
+ │ Phase 9: Rollback Strategy ──► COMPLETE │
66
+ │ │
67
+ └─────────────────────────────────────────────────────────────────────┘
68
+ ```
69
+
70
+ ---
71
+
72
+ ## Core Principles
73
+
74
+ ### 1. Existing Project First
75
+ Before making any changes to an existing codebase, ProAgents performs deep analysis to understand:
76
+ - Project structure and architecture
77
+ - Code conventions and patterns
78
+ - Dependencies and integrations
79
+ - Existing features and components
80
+
81
+ ### 2. Full Lifecycle Coverage
82
+ Every feature goes through all necessary phases:
83
+ - Requirements → Design → Code → Test → Deploy → Document
84
+
85
+ ### 3. Configurable Checkpoints
86
+ Users define where they want approval gates:
87
+ - After analysis, after design, before deployment, etc.
88
+
89
+ ### 4. Parallel Development Support
90
+ Multiple features can be developed simultaneously with:
91
+ - Conflict detection
92
+ - Dependency tracking
93
+ - Merge coordination
94
+
95
+ ### 5. Self-Learning
96
+ The system continuously improves by learning:
97
+ - User preferences and patterns
98
+ - Project-specific conventions
99
+ - Common corrections and feedback
100
+
101
+ ---
102
+
103
+ ## Workflow Phases
104
+
105
+ ### Phase 0: Initialization & Context Gathering
106
+
107
+ **Slash Command:** `/init` or `/feature-start "Feature name"`
108
+
109
+ **Purpose:** Set up the context for a new feature or task.
110
+
111
+ **Actions:**
112
+ 1. Detect project type (new vs existing)
113
+ 2. Load or run codebase analysis
114
+ 3. Gather feature requirements from user
115
+ 4. Identify affected areas/modules
116
+ 5. Check for conflicts with active features
117
+ 6. Create feature branch
118
+
119
+ **Inputs:**
120
+ - Feature description
121
+ - Project path (if not current directory)
122
+ - Priority level (optional)
123
+
124
+ **Outputs:**
125
+ - Project Context Document
126
+ - Feature branch created
127
+ - Feature tracking entry
128
+
129
+ **Example:**
130
+ ```bash
131
+ /feature-start "Add user authentication with OAuth2"
132
+
133
+ # Output:
134
+ # ✓ Project type: Next.js full-stack
135
+ # ✓ Analysis loaded (cached from 2 hours ago)
136
+ # ✓ Branch created: feature/user-auth-oauth2
137
+ # ✓ Feature tracking initialized
138
+ #
139
+ # Affected areas detected:
140
+ # - src/app/api/auth/
141
+ # - src/components/auth/
142
+ # - src/lib/auth.ts
143
+ #
144
+ # Ready for Phase 1: Analysis (or skip with /skip-to requirements)
145
+ ```
146
+
147
+ **Configuration:**
148
+ ```yaml
149
+ phase_0:
150
+ auto_create_branch: true
151
+ branch_prefix: "feature/"
152
+ check_conflicts: true
153
+ load_cached_analysis: true
154
+ cache_max_age: "24h"
155
+ ```
156
+
157
+ ---
158
+
159
+ ### Phase 1: Deep Analysis (Existing Projects)
160
+
161
+ **Slash Command:** `/analyze` or `/analyze-full`
162
+
163
+ **Purpose:** Thoroughly understand the existing codebase before making changes.
164
+
165
+ **Analysis Categories:**
166
+
167
+ #### 1.1 Structure Analysis
168
+ ```
169
+ Project structure mapping:
170
+ ├── Directory hierarchy
171
+ ├── Module organization
172
+ ├── File naming patterns
173
+ └── Architecture pattern detection (MVC, Clean, Feature-based)
174
+ ```
175
+
176
+ #### 1.2 Code Conventions
177
+ ```
178
+ Convention detection:
179
+ ├── Naming conventions (files, functions, variables)
180
+ ├── Code style (indentation, quotes, semicolons)
181
+ ├── Import ordering
182
+ ├── Comment style
183
+ └── Documentation patterns
184
+ ```
185
+
186
+ #### 1.3 Dependency Mapping
187
+ ```
188
+ Dependency analysis:
189
+ ├── External dependencies (npm, pip, etc.)
190
+ ├── Internal module dependencies
191
+ ├── Circular dependency detection
192
+ ├── Outdated/vulnerable packages
193
+ └── Third-party integrations
194
+ ```
195
+
196
+ #### 1.4 Feature Inventory
197
+ ```
198
+ Existing features:
199
+ ├── Component catalog
200
+ ├── API endpoint mapping
201
+ ├── Route definitions
202
+ ├── State management patterns
203
+ └── Data models
204
+ ```
205
+
206
+ #### 1.5 Pattern Recognition
207
+ ```
208
+ Detected patterns:
209
+ ├── State management (Redux, Zustand, Context)
210
+ ├── Error handling approaches
211
+ ├── Authentication patterns
212
+ ├── Data fetching patterns
213
+ └── Testing patterns
214
+ ```
215
+
216
+ **Analysis Depth Levels:**
217
+
218
+ | Level | Command | Use Case | Duration |
219
+ |-------|---------|----------|----------|
220
+ | Lite | `/analyze-lite` | Quick overview | 1-2 min |
221
+ | Moderate | `/analyze` | Standard analysis | 5-10 min |
222
+ | Full | `/analyze-full` | Comprehensive | 15-30 min |
223
+
224
+ **Caching:**
225
+ - Analysis results are cached for performance
226
+ - Cache invalidates on significant file changes
227
+ - Manual refresh: `/analyze --refresh`
228
+
229
+ **Output:** Codebase Analysis Report
230
+
231
+ **See:** [Analysis Prompt](./prompts/01-analysis.md)
232
+
233
+ ---
234
+
235
+ ### Phase 2: Requirements Engineering
236
+
237
+ **Slash Command:** `/requirements`
238
+
239
+ **Purpose:** Gather and document complete feature requirements.
240
+
241
+ **Requirements Categories:**
242
+
243
+ #### 2.1 Feature Specification
244
+ - Clear feature description
245
+ - User stories / use cases
246
+ - Acceptance criteria
247
+ - Success metrics
248
+
249
+ #### 2.2 Technical Requirements
250
+ - Performance requirements
251
+ - Security considerations
252
+ - Scalability needs
253
+ - Integration requirements
254
+
255
+ #### 2.3 Constraints
256
+ - Must align with existing patterns
257
+ - Technology constraints
258
+ - Time/resource constraints
259
+ - Regulatory requirements
260
+
261
+ #### 2.4 Edge Cases
262
+ - Error scenarios
263
+ - Boundary conditions
264
+ - Concurrent usage
265
+ - Offline behavior
266
+
267
+ **Requirements Template:**
268
+ ```markdown
269
+ ## Feature: [Name]
270
+
271
+ ### User Stories
272
+ - As a [user type], I want [action] so that [benefit]
273
+
274
+ ### Acceptance Criteria
275
+ - [ ] Criterion 1
276
+ - [ ] Criterion 2
277
+
278
+ ### Technical Requirements
279
+ - Performance: [targets]
280
+ - Security: [requirements]
281
+
282
+ ### Edge Cases
283
+ - Case 1: [description] → [expected behavior]
284
+ ```
285
+
286
+ **Output:** Feature Requirements Document
287
+
288
+ **See:** [Requirements Template](./templates/feature-requirements.md)
289
+
290
+ ---
291
+
292
+ ### Phase 3: UI/UX Design Integration
293
+
294
+ **Slash Command:** `/design`
295
+
296
+ **Purpose:** Integrate UI designs into implementation specifications.
297
+
298
+ **Design Input Methods:**
299
+
300
+ #### Option A: Figma Integration
301
+ ```bash
302
+ /design-figma --url "https://figma.com/file/..."
303
+ ```
304
+ - Extracts design tokens (colors, typography, spacing)
305
+ - Identifies components and variants
306
+ - Exports assets (icons, images)
307
+ - Maps to existing component library
308
+
309
+ #### Option B: Manual Export
310
+ ```bash
311
+ /design-export --file "./designs/dashboard.png"
312
+ ```
313
+ - AI analyzes design images
314
+ - Extracts layout structure
315
+ - Identifies UI components
316
+ - Suggests implementation approach
317
+
318
+ #### Option C: Sketches/Wireframes
319
+ ```bash
320
+ /design-sketch --file "./sketches/login-flow.jpg"
321
+ ```
322
+ - Interprets hand-drawn wireframes
323
+ - Generates component structure
324
+ - Creates basic layout specifications
325
+
326
+ **Design-to-Code Mapping:**
327
+ ```
328
+ Design Element → Code Implementation
329
+ ─────────────────────────────────────────────────
330
+ Button (primary) → <Button variant="primary" />
331
+ Card container → <Card> component
332
+ Form field → <Input> with validation
333
+ Navigation → <Nav> with routes
334
+ ```
335
+
336
+ **Output:** UI Implementation Specification
337
+
338
+ **See:** [UI Integration Guides](./ui-integration/)
339
+
340
+ ---
341
+
342
+ ### Phase 4: Implementation Planning
343
+
344
+ **Slash Command:** `/plan`
345
+
346
+ **Purpose:** Create a detailed implementation plan before coding.
347
+
348
+ **Planning Components:**
349
+
350
+ #### 4.1 Architecture Design
351
+ - Component/module design
352
+ - Data model design
353
+ - API design (if applicable)
354
+ - State management plan
355
+
356
+ #### 4.2 File Structure Plan
357
+ ```
358
+ Files to create:
359
+ ├── src/components/Auth/LoginForm.tsx (new)
360
+ ├── src/hooks/useAuth.ts (new)
361
+ ├── src/services/authService.ts (new)
362
+ └── src/types/auth.ts (new)
363
+
364
+ Files to modify:
365
+ ├── src/app/layout.tsx (add auth provider)
366
+ └── src/middleware.ts (add auth middleware)
367
+ ```
368
+
369
+ #### 4.3 Implementation Order
370
+ ```
371
+ 1. Create types and interfaces
372
+ 2. Implement service layer
373
+ 3. Create hooks
374
+ 4. Build UI components
375
+ 5. Integrate with app
376
+ 6. Add tests
377
+ ```
378
+
379
+ #### 4.4 Risk Assessment
380
+ - Potential breaking changes
381
+ - Integration risks
382
+ - Performance impact areas
383
+ - Security considerations
384
+
385
+ **Output:** Implementation Plan Document
386
+
387
+ **See:** [Planning Prompt](./prompts/04-planning.md)
388
+
389
+ ---
390
+
391
+ ### Phase 5: Code Implementation
392
+
393
+ **Slash Command:** `/implement`
394
+
395
+ **Purpose:** Write the actual code following the plan.
396
+
397
+ **Pre-Implementation Checklist:**
398
+ - [ ] Designs approved
399
+ - [ ] Requirements clear
400
+ - [ ] Existing patterns understood
401
+ - [ ] Test strategy defined
402
+
403
+ **Implementation Guidelines:**
404
+
405
+ #### Follow Project Conventions
406
+ ```typescript
407
+ // Match existing naming patterns
408
+ const getUserData = async () => { ... } // camelCase functions
409
+
410
+ // Match existing component patterns
411
+ export const UserProfile: FC<UserProfileProps> = ({ user }) => {
412
+ // Same structure as other components
413
+ }
414
+ ```
415
+
416
+ #### Quality Gates
417
+ - Follows project linting rules
418
+ - Type safety (TypeScript)
419
+ - No hardcoded values (use constants/env vars)
420
+ - Proper error handling
421
+ - Accessibility considerations
422
+
423
+ #### Implementation Commands
424
+ ```bash
425
+ /implement # Start implementing current plan
426
+ /implement --step 1 # Implement specific step
427
+ /implement --file auth.ts # Implement specific file
428
+ /implement --continue # Continue from last point
429
+ ```
430
+
431
+ **Output:** Implemented Feature Code
432
+
433
+ ---
434
+
435
+ ### Phase 6: Comprehensive Testing
436
+
437
+ **Slash Command:** `/test` or `/test-all`
438
+
439
+ **Purpose:** Ensure code quality through thorough testing.
440
+
441
+ **Test Types:**
442
+
443
+ #### 6.1 Unit Tests
444
+ ```bash
445
+ /test-unit
446
+ ```
447
+ - Test individual functions/components
448
+ - Mock external dependencies
449
+ - Cover edge cases
450
+ - Aim for high coverage
451
+
452
+ #### 6.2 Integration Tests
453
+ ```bash
454
+ /test-integration
455
+ ```
456
+ - Test component interactions
457
+ - Test API integrations
458
+ - Test data flow
459
+ - Test state management
460
+
461
+ #### 6.3 End-to-End Tests
462
+ ```bash
463
+ /test-e2e
464
+ ```
465
+ - Test complete user flows
466
+ - Test critical paths
467
+ - Cross-browser testing
468
+ - Accessibility testing
469
+
470
+ **Coverage Requirements:**
471
+
472
+ | Project Type | Unit | Integration | E2E |
473
+ |-------------|------|-------------|-----|
474
+ | Web Frontend | 80% | 60% | Critical flows |
475
+ | Full-stack | 80% | 70% | Critical flows |
476
+ | Mobile | 75% | 60% | Smoke tests |
477
+ | Backend/API | 85% | 75% | N/A |
478
+
479
+ **Test Pattern Matching:**
480
+ Tests should follow existing project patterns:
481
+ ```typescript
482
+ // If project uses describe/it pattern
483
+ describe('AuthService', () => {
484
+ it('should authenticate user with valid credentials', async () => {
485
+ // test implementation
486
+ });
487
+ });
488
+ ```
489
+
490
+ **Output:** Test Suite + Coverage Report
491
+
492
+ ---
493
+
494
+ ### Phase 6.5: Code Review
495
+
496
+ **Slash Command:** `/review`
497
+
498
+ **Purpose:** Ensure code quality before deployment.
499
+
500
+ **Review Types:**
501
+
502
+ #### Automated Review
503
+ ```bash
504
+ /review --auto
505
+ ```
506
+ - Linting checks
507
+ - Static analysis
508
+ - Security scanning
509
+ - Performance analysis
510
+ - Bundle size impact
511
+
512
+ #### AI-Assisted Review
513
+ ```bash
514
+ /review --ai
515
+ ```
516
+ - Code quality assessment
517
+ - Pattern consistency check
518
+ - Security vulnerability scan
519
+ - Performance optimization suggestions
520
+ - Accessibility compliance
521
+
522
+ #### Self-Review Checklist
523
+ ```markdown
524
+ - [ ] Code follows project conventions
525
+ - [ ] No hardcoded secrets
526
+ - [ ] Error handling is comprehensive
527
+ - [ ] Edge cases are handled
528
+ - [ ] No commented-out code
529
+ - [ ] No debug statements
530
+ - [ ] Tests are meaningful
531
+ - [ ] Documentation is complete
532
+ ```
533
+
534
+ #### Peer Review
535
+ ```bash
536
+ /review --pr
537
+ ```
538
+ - Creates pull request
539
+ - Assigns reviewers
540
+ - Includes review context
541
+
542
+ **Output:** Code Review Report
543
+
544
+ **See:** [Review Checklist](./checklists/code-review.md)
545
+
546
+ ---
547
+
548
+ ### Phase 7: Documentation
549
+
550
+ **Slash Command:** `/doc` or `/doc-full`
551
+
552
+ **Purpose:** Create comprehensive documentation.
553
+
554
+ **Documentation Modes:**
555
+
556
+ | Mode | Command | Content Level |
557
+ |------|---------|---------------|
558
+ | Full | `/doc-full` | Complete docs with examples |
559
+ | Moderate | `/doc` | Balanced coverage |
560
+ | Lite | `/doc-lite` | Quick reference |
561
+
562
+ **Documentation Scopes:**
563
+
564
+ ```bash
565
+ /doc # Full project documentation
566
+ /doc-module auth # Document auth module
567
+ /doc-file src/utils/api.ts # Document specific file
568
+ /doc-api # API documentation only
569
+ /doc-component Button # Component documentation
570
+ ```
571
+
572
+ **Documentation Includes:**
573
+ - Code documentation (JSDoc, docstrings)
574
+ - API documentation
575
+ - User documentation
576
+ - Architecture documentation
577
+ - README updates
578
+
579
+ **Output:** Complete Documentation
580
+
581
+ ---
582
+
583
+ ### Phase 8: Deployment Preparation
584
+
585
+ **Slash Command:** `/deploy` or `/deploy-staging`
586
+
587
+ **Purpose:** Prepare for deployment.
588
+
589
+ **Pre-Deployment Checklist:**
590
+ ```markdown
591
+ - [ ] All tests passing
592
+ - [ ] Code reviewed and approved
593
+ - [ ] Documentation complete
594
+ - [ ] Environment variables documented
595
+ - [ ] Migration scripts ready (if needed)
596
+ - [ ] Rollback plan prepared
597
+ - [ ] Monitoring configured
598
+ ```
599
+
600
+ **Deployment Strategies:**
601
+
602
+ | Strategy | Description | Use Case |
603
+ |----------|-------------|----------|
604
+ | Blue-Green | Two identical environments | Zero-downtime deploys |
605
+ | Canary | Gradual rollout | Risk mitigation |
606
+ | Rolling | Incremental updates | Standard deploys |
607
+ | Feature Flag | Deploy code, enable later | Decouple deploy from release |
608
+
609
+ **Deployment Commands:**
610
+ ```bash
611
+ /deploy-staging # Deploy to staging
612
+ /deploy-prod # Deploy to production
613
+ /deploy-check # Pre-deployment validation
614
+ /deploy-status # Check deployment status
615
+ ```
616
+
617
+ **Output:** Deployment-Ready Package
618
+
619
+ ---
620
+
621
+ ### Phase 9: Rollback Strategy
622
+
623
+ **Slash Command:** `/rollback-plan`
624
+
625
+ **Purpose:** Prepare for potential rollbacks.
626
+
627
+ **Rollback Triggers:**
628
+ - Error rate increases > 5%
629
+ - Response time degrades > 50%
630
+ - Critical health checks fail
631
+ - User-reported critical bugs
632
+
633
+ **Rollback Types:**
634
+
635
+ #### Code Rollback
636
+ ```bash
637
+ /rollback --to previous # Rollback to previous version
638
+ /rollback --to v1.2.3 # Rollback to specific version
639
+ ```
640
+
641
+ #### Database Rollback
642
+ ```bash
643
+ /rollback-db --to migration-5 # Rollback database migrations
644
+ ```
645
+
646
+ #### Infrastructure Rollback
647
+ ```bash
648
+ /rollback-infra # Revert infrastructure changes
649
+ ```
650
+
651
+ **Rollback Time Targets:**
652
+
653
+ | Component | Target Time |
654
+ |-----------|-------------|
655
+ | Frontend | < 5 minutes |
656
+ | Backend API | < 10 minutes |
657
+ | Database | < 30 minutes |
658
+ | Full System | < 1 hour |
659
+
660
+ **Output:** Rollback Plan Document
661
+
662
+ ---
663
+
664
+ ## Flexible Entry Modes
665
+
666
+ Not every task requires the full workflow. ProAgents supports multiple entry modes.
667
+
668
+ ### Mode Detection
669
+
670
+ When you start a task, the system detects the appropriate mode:
671
+
672
+ ```
673
+ User: "Fix the login button not working"
674
+ → Detected: Bug Fix Mode (Fast Track)
675
+
676
+ User: "Add dark mode to the app"
677
+ → Detected: Full Feature Mode
678
+
679
+ User: "Update the API endpoint URL"
680
+ → Detected: Quick Change Mode
681
+ ```
682
+
683
+ ### Available Modes
684
+
685
+ #### 1. Full Workflow Mode (Default)
686
+ ```bash
687
+ /feature-start "Feature name"
688
+ ```
689
+ All 10 phases for new features:
690
+ ```
691
+ Init → Analysis → Requirements → Design → Plan →
692
+ Implement → Test → Review → Doc → Deploy
693
+ ```
694
+
695
+ #### 2. Bug Fix Mode (Fast Track)
696
+ ```bash
697
+ /fix "Bug description"
698
+ /fix-quick "Bug description"
699
+ ```
700
+ Streamlined workflow:
701
+ ```
702
+ Context Scan → Root Cause → Fix → Test → Commit
703
+ ```
704
+
705
+ **Guardrails:**
706
+ - If fix touches > 3 files → Suggest full workflow
707
+ - If fix affects critical paths → Require review
708
+ - If fix duration > 2 hours → Prompt for planning
709
+
710
+ #### 3. Quick Change Mode (Hotfix)
711
+ ```bash
712
+ /hotfix "Change description"
713
+ /quick "Change description"
714
+ ```
715
+ Minimal workflow:
716
+ ```
717
+ Change → Verify → Commit
718
+ ```
719
+
720
+ **Use Cases:**
721
+ - Config changes
722
+ - URL updates
723
+ - Text fixes
724
+ - Simple bug fixes
725
+
726
+ #### 4. Resume Mode
727
+ ```bash
728
+ /resume
729
+ /resume feature-auth
730
+ ```
731
+ Continue work on a paused feature with full context.
732
+
733
+ ### Mode Switching
734
+
735
+ You can switch modes mid-workflow:
736
+
737
+ ```bash
738
+ # Started in bug fix mode, realized it's bigger
739
+ /upgrade-to-full
740
+
741
+ # Started full workflow, can simplify
742
+ /downgrade-to-quick
743
+ ```
744
+
745
+ ### Mode Configuration
746
+
747
+ ```yaml
748
+ # proagents.config.yaml
749
+ entry_modes:
750
+ allow_direct_implementation: true
751
+ allow_bug_fix_fast_track: true
752
+ allow_quick_changes: true
753
+
754
+ guardrails:
755
+ require_tests_always: true
756
+ require_review_for_critical: true
757
+ max_files_without_planning: 3
758
+
759
+ auto_upgrade_on:
760
+ - "changes_exceed_3_files"
761
+ - "touches_security_code"
762
+ - "modifies_database"
763
+ - "changes_api_contract"
764
+ ```
765
+
766
+ ---
767
+
768
+ ## Parallel Feature Development
769
+
770
+ ProAgents supports developing multiple features simultaneously.
771
+
772
+ ### Feature Tracking
773
+
774
+ ```
775
+ /proagents/active-features/
776
+ ├── _index.json # Master list
777
+ ├── feature-user-auth/
778
+ │ ├── status.json # Machine-readable
779
+ │ ├── status.md # Human-readable
780
+ │ ├── files-modified.json # Changed files
781
+ │ └── dependencies.json # Feature dependencies
782
+ └── feature-dashboard/
783
+ └── ...
784
+ ```
785
+
786
+ ### Conflict Detection
787
+
788
+ #### File-Level Conflicts
789
+ ```
790
+ Feature A wants to modify: [file1.ts, file2.ts, file3.ts]
791
+ Feature B already modifying: [file2.ts, file4.ts]
792
+
793
+ ⚠️ CONFLICT DETECTED: file2.ts
794
+ ```
795
+
796
+ #### Conflict Actions
797
+
798
+ | Risk Level | Description | Action |
799
+ |------------|-------------|--------|
800
+ | Low | Different sections of same file | Proceed with caution |
801
+ | Medium | Same component/module | Coordinate changes |
802
+ | High | Same functions/logic | Sequential development required |
803
+
804
+ ### Dependency Management
805
+
806
+ Features can declare dependencies:
807
+ ```json
808
+ {
809
+ "feature": "dashboard",
810
+ "depends_on": [
811
+ {
812
+ "feature": "user-auth",
813
+ "reason": "Needs auth context",
814
+ "required_phase": "implementation_complete"
815
+ }
816
+ ]
817
+ }
818
+ ```
819
+
820
+ ### Merge Coordination
821
+
822
+ ```bash
823
+ /features status # View all active features
824
+ /features conflicts # Check for conflicts
825
+ /features merge-order # Recommended merge order
826
+ ```
827
+
828
+ **Recommended Merge Order:**
829
+ ```
830
+ 1. feature-user-auth (no dependencies)
831
+ 2. feature-dashboard (depends on user-auth)
832
+ 3. feature-notifications (depends on dashboard)
833
+ ```
834
+
835
+ ### Parallel Development Dashboard
836
+
837
+ ```
838
+ ┌─────────────────────────────────────────────────────────┐
839
+ │ ProAgents Feature Tracker │
840
+ ├─────────────────────────────────────────────────────────┤
841
+ │ Active Features: 3 / 3 (max) │
842
+ ├─────────────────────────────────────────────────────────┤
843
+ │ ✅ user-auth │ Phase 6/9 │ 70% │ No blockers │
844
+ │ 🔄 dashboard │ Phase 4/9 │ 40% │ Waiting: auth │
845
+ │ ⏸️ notifications │ Phase 2/9 │ 20% │ Blocked: schema │
846
+ ├─────────────────────────────────────────────────────────┤
847
+ │ Conflicts: 1 file (file2.ts - auth vs dashboard) │
848
+ │ Recommended merge order: auth → dashboard → notifications│
849
+ └─────────────────────────────────────────────────────────┘
850
+ ```
851
+
852
+ ---
853
+
854
+ ## Checkpoint System
855
+
856
+ Checkpoints are approval gates where the workflow pauses for user review.
857
+
858
+ ### Configurable Checkpoints
859
+
860
+ ```yaml
861
+ # proagents.config.yaml
862
+ checkpoints:
863
+ after_analysis: true # Pause after codebase analysis
864
+ after_requirements: false # Skip requirements checkpoint
865
+ after_design: true # Pause after UI design
866
+ after_planning: false # Skip planning checkpoint
867
+ after_implementation: false # Skip implementation checkpoint
868
+ after_testing: false # Skip testing checkpoint
869
+ before_deployment: true # Pause before deploying
870
+ ```
871
+
872
+ ### Checkpoint Behavior
873
+
874
+ When a checkpoint is enabled:
875
+ ```
876
+ Phase 3: Design completed
877
+ ════════════════════════════════════════
878
+
879
+ Design Summary:
880
+ - 5 new components identified
881
+ - 2 existing components to modify
882
+ - 12 new style tokens needed
883
+
884
+ [Continue to Planning] [Revise Design] [View Details]
885
+ ```
886
+
887
+ ### Runtime Overrides
888
+
889
+ Override checkpoints when starting a feature:
890
+ ```bash
891
+ # Skip all optional checkpoints
892
+ /feature-start "Feature" --auto
893
+
894
+ # Stop at every phase
895
+ /feature-start "Feature" --checkpoint=all
896
+
897
+ # Only critical checkpoints
898
+ /feature-start "Feature" --checkpoint=critical
899
+ ```
900
+
901
+ ### Custom Checkpoints
902
+
903
+ Add custom checkpoints for specific needs:
904
+ ```yaml
905
+ checkpoints:
906
+ custom:
907
+ - name: "Security Review"
908
+ after_phase: "implementation"
909
+ condition: "touches_security_code"
910
+ required: true
911
+ reviewers: ["@security-team"]
912
+
913
+ - name: "Performance Review"
914
+ after_phase: "testing"
915
+ condition: "performance_sensitive"
916
+ required: false
917
+ ```
918
+
919
+ ---
920
+
921
+ ## Self-Learning System
922
+
923
+ ProAgents continuously improves based on usage.
924
+
925
+ ### What Gets Learned
926
+
927
+ #### User Preferences
928
+ - Checkpoint patterns (which ones you skip)
929
+ - Detail level preferences
930
+ - Common corrections to AI output
931
+ - Preferred coding patterns
932
+
933
+ #### Project Patterns
934
+ - Naming conventions
935
+ - Code style preferences
936
+ - Architecture patterns
937
+ - Testing patterns
938
+ - Error handling approaches
939
+
940
+ #### Common Corrections
941
+ ```json
942
+ {
943
+ "pattern": "suggested X approach",
944
+ "correction": "use Y instead",
945
+ "frequency": 5,
946
+ "apply_automatically": true
947
+ }
948
+ ```
949
+
950
+ ### Learning Storage
951
+
952
+ ```
953
+ /.proagents/.learning/
954
+ ├── global/ # Cross-project learnings
955
+ │ ├── user-preferences.json
956
+ │ └── common-patterns.json
957
+ └── projects/ # Per-project learnings
958
+ └── [project-hash]/
959
+ ├── patterns.json
960
+ ├── corrections.json
961
+ └── metrics.json
962
+ ```
963
+
964
+ ### Adaptive Behavior
965
+
966
+ **Before Learning (First Use):**
967
+ ```
968
+ AI: "What state management approach should we use?"
969
+ User: "Use Zustand, that's our standard"
970
+ ```
971
+
972
+ **After Learning (Subsequent Use):**
973
+ ```
974
+ AI: "I see this project uses Zustand for state management.
975
+ I'll follow that pattern."
976
+ ```
977
+
978
+ ### Learning Configuration
979
+
980
+ ```yaml
981
+ # proagents.config.yaml
982
+ learning:
983
+ enabled: true
984
+ track_preferences: true
985
+ track_patterns: true
986
+ track_corrections: true
987
+ auto_apply_corrections: true
988
+
989
+ # Privacy
990
+ share_learnings_globally: false
991
+ anonymize_metrics: true
992
+ ```
993
+
994
+ ### Learning Reports
995
+
996
+ ```bash
997
+ /learning report # View learning summary
998
+ /learning patterns # View learned patterns
999
+ /learning corrections # View auto-corrections
1000
+ /learning reset # Reset learning data
1001
+ ```
1002
+
1003
+ ---
1004
+
1005
+ ## Configuration
1006
+
1007
+ ### Main Configuration File
1008
+
1009
+ ```yaml
1010
+ # proagents.config.yaml
1011
+
1012
+ project:
1013
+ name: "My Project"
1014
+ type: "fullstack" # web-frontend | fullstack | mobile | backend
1015
+
1016
+ # Checkpoint configuration
1017
+ checkpoints:
1018
+ after_analysis: true
1019
+ after_requirements: false
1020
+ after_design: true
1021
+ after_implementation: false
1022
+ after_testing: false
1023
+ before_deployment: true
1024
+
1025
+ # Git integration
1026
+ git:
1027
+ enabled: true
1028
+ branch_prefix: "feature/"
1029
+ commit_convention: "conventional"
1030
+ require_pr: true
1031
+
1032
+ # Entry modes
1033
+ entry_modes:
1034
+ allow_direct_implementation: true
1035
+ allow_bug_fix_fast_track: true
1036
+ allow_quick_changes: true
1037
+ require_tests_always: true
1038
+ max_files_without_planning: 3
1039
+
1040
+ # Parallel features
1041
+ parallel_features:
1042
+ enabled: true
1043
+ max_concurrent: 3
1044
+
1045
+ # Learning system
1046
+ learning:
1047
+ enabled: true
1048
+ track_preferences: true
1049
+ track_patterns: true
1050
+ auto_apply_corrections: true
1051
+
1052
+ # Documentation
1053
+ documentation:
1054
+ default_mode: "moderate"
1055
+ include_diagrams: true
1056
+
1057
+ # Testing
1058
+ testing:
1059
+ minimum_coverage: 80
1060
+ require_e2e_for_critical: true
1061
+ ```
1062
+
1063
+ ### Environment-Specific Configuration
1064
+
1065
+ ```yaml
1066
+ # proagents.config.yaml
1067
+ environments:
1068
+ development:
1069
+ checkpoints:
1070
+ before_deployment: false
1071
+
1072
+ staging:
1073
+ checkpoints:
1074
+ before_deployment: true
1075
+
1076
+ production:
1077
+ checkpoints:
1078
+ before_deployment: true
1079
+ require_approval: true
1080
+ ```
1081
+
1082
+ ---
1083
+
1084
+ ## Commands Reference
1085
+
1086
+ ### Initialization Commands
1087
+
1088
+ | Command | Description |
1089
+ |---------|-------------|
1090
+ | `/init` | Initialize ProAgents in project |
1091
+ | `/feature-start "name"` | Start new feature |
1092
+ | `/fix "description"` | Start bug fix mode |
1093
+ | `/hotfix "description"` | Start quick change mode |
1094
+ | `/resume` | Resume paused feature |
1095
+
1096
+ ### Phase Commands
1097
+
1098
+ | Command | Description |
1099
+ |---------|-------------|
1100
+ | `/analyze` | Run codebase analysis |
1101
+ | `/requirements` | Gather requirements |
1102
+ | `/design` | Start design phase |
1103
+ | `/plan` | Create implementation plan |
1104
+ | `/implement` | Start implementation |
1105
+ | `/test` | Run tests |
1106
+ | `/review` | Code review |
1107
+ | `/doc` | Generate documentation |
1108
+ | `/deploy` | Deploy preparation |
1109
+ | `/rollback-plan` | Create rollback plan |
1110
+
1111
+ ### Navigation Commands
1112
+
1113
+ | Command | Description |
1114
+ |---------|-------------|
1115
+ | `/status` | View current status |
1116
+ | `/next` | Move to next phase |
1117
+ | `/back` | Go back to previous phase |
1118
+ | `/skip` | Skip current phase |
1119
+ | `/skip-to [phase]` | Skip to specific phase |
1120
+
1121
+ ### Feature Management
1122
+
1123
+ | Command | Description |
1124
+ |---------|-------------|
1125
+ | `/features` | List all features |
1126
+ | `/features status` | Feature status dashboard |
1127
+ | `/features conflicts` | Check for conflicts |
1128
+ | `/features pause` | Pause current feature |
1129
+ | `/features switch [name]` | Switch to another feature |
1130
+
1131
+ ### Configuration Commands
1132
+
1133
+ | Command | Description |
1134
+ |---------|-------------|
1135
+ | `/config` | View configuration |
1136
+ | `/config set [key] [value]` | Set config value |
1137
+ | `/config reset` | Reset to defaults |
1138
+
1139
+ ### Help Commands
1140
+
1141
+ | Command | Description |
1142
+ |---------|-------------|
1143
+ | `/help` | Show help |
1144
+ | `/help [command]` | Help for specific command |
1145
+ | `/commands` | List all commands |
1146
+
1147
+ ---
1148
+
1149
+ ## Best Practices
1150
+
1151
+ ### 1. Always Analyze First
1152
+ For existing projects, run analysis before making changes:
1153
+ ```bash
1154
+ /analyze
1155
+ ```
1156
+
1157
+ ### 2. Use Appropriate Entry Mode
1158
+ - New features → Full Workflow
1159
+ - Bug fixes → Bug Fix Mode
1160
+ - Config changes → Quick Change Mode
1161
+
1162
+ ### 3. Configure Meaningful Checkpoints
1163
+ Enable checkpoints for phases that need human review:
1164
+ ```yaml
1165
+ checkpoints:
1166
+ after_design: true # Review designs
1167
+ before_deployment: true # Final verification
1168
+ ```
1169
+
1170
+ ### 4. Follow Project Patterns
1171
+ Let the AI learn and follow existing patterns rather than introducing new ones.
1172
+
1173
+ ### 5. Document as You Go
1174
+ Use `/doc` after significant changes, not just at the end.
1175
+
1176
+ ### 6. Test Continuously
1177
+ Run tests frequently during implementation:
1178
+ ```bash
1179
+ /test --watch
1180
+ ```
1181
+
1182
+ ### 7. Review Before Commit
1183
+ Always run review before committing:
1184
+ ```bash
1185
+ /review
1186
+ ```
1187
+
1188
+ ---
1189
+
1190
+ ## Troubleshooting
1191
+
1192
+ ### Common Issues
1193
+
1194
+ **Issue:** Analysis is too slow
1195
+ ```bash
1196
+ /analyze-lite # Use lite analysis for quick overview
1197
+ ```
1198
+
1199
+ **Issue:** Conflicts with another feature
1200
+ ```bash
1201
+ /features conflicts # Check conflicts
1202
+ /features merge-order # Get recommended order
1203
+ ```
1204
+
1205
+ **Issue:** Wrong mode detected
1206
+ ```bash
1207
+ /upgrade-to-full # Switch to full workflow
1208
+ /downgrade-to-quick # Switch to quick mode
1209
+ ```
1210
+
1211
+ **Issue:** Learning gave wrong suggestion
1212
+ ```bash
1213
+ /learning correct # Provide correction
1214
+ /learning reset # Reset learned patterns
1215
+ ```
1216
+
1217
+ ---
1218
+
1219
+ ## Next Steps
1220
+
1221
+ 1. **Configure:** Set up [proagents.config.yaml](./proagents.config.yaml)
1222
+ 2. **Learn Commands:** Review [Slash Commands](./cli/slash-commands.md)
1223
+ 3. **Start Building:** Run `/feature-start "Your first feature"`
1224
+ 4. **Customize:** Set up [Standards](./standards/) for your project
1225
+
1226
+ ---
1227
+
1228
+ ## Related Documentation
1229
+
1230
+ - [Getting Started Guide](./getting-started/)
1231
+ - [Configuration Reference](./proagents.config.yaml)
1232
+ - [Prompts Reference](./prompts/)
1233
+ - [Templates](./templates/)
1234
+ - [Examples](./examples/)