proagents 1.6.19 → 1.6.21

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 (143) hide show
  1. package/.claude/settings.local.json +13 -1
  2. package/.proagents/.cursorrules +25 -10
  3. package/.proagents/.windsurfrules +25 -10
  4. package/.proagents/AGENTS.md +30 -11
  5. package/.proagents/AI_INSTRUCTIONS.md +86 -30
  6. package/.proagents/BOLT.md +25 -10
  7. package/.proagents/CLAUDE.md +25 -10
  8. package/.proagents/GEMINI.md +25 -10
  9. package/.proagents/KIRO.md +25 -10
  10. package/.proagents/LOVABLE.md +25 -10
  11. package/.proagents/PROAGENTS.md +96 -343
  12. package/.proagents/REPLIT.md +25 -10
  13. package/.proagents/activity.log +1 -0
  14. package/.proagents/custom-commands.yaml +0 -1
  15. package/.proagents/docs/command-details.md +1 -2
  16. package/.proagents/getting-started/ai-training-setup.md +0 -1
  17. package/.proagents/performance/README.md +59 -0
  18. package/.proagents/performance/bundle-analysis.md +375 -0
  19. package/.proagents/performance/load-testing.md +563 -0
  20. package/.proagents/performance/runtime-metrics.md +489 -0
  21. package/.proagents/performance/web-vitals.md +425 -0
  22. package/.proagents/platforms.yaml +66 -0
  23. package/.proagents/proagents.config.yaml +0 -1
  24. package/.proagents/prompts/ai-add.md +80 -0
  25. package/.proagents/prompts/ai-list.md +41 -0
  26. package/.proagents/prompts/ai-remove.md +112 -0
  27. package/.proagents/prompts/ai-sync.md +96 -0
  28. package/.proagents/workflow-modes/entry-modes.md +1 -6
  29. package/lib/commands/ai.js +100 -48
  30. package/lib/commands/init.js +89 -22
  31. package/package.json +1 -1
  32. package/.proagents/ANTIGRAVITY.md +0 -61
  33. package/.proagents/CHATGPT.md +0 -57
  34. package/.proagents/GROQ.md +0 -57
  35. package/.proagents/api-versioning/README.md +0 -257
  36. package/.proagents/api-versioning/changelog-template.md +0 -225
  37. package/.proagents/api-versioning/deprecation-workflow.md +0 -470
  38. package/.proagents/api-versioning/versioning-strategy.md +0 -291
  39. package/.proagents/automation/README.md +0 -38
  40. package/.proagents/automation/ai-behavior-rules.md +0 -339
  41. package/.proagents/automation/ai-prompt-injection.md +0 -331
  42. package/.proagents/automation/auto-decisions.md +0 -535
  43. package/.proagents/automation/decision-defaults.yaml +0 -317
  44. package/.proagents/cache/README.md +0 -110
  45. package/.proagents/cache/analysis-metadata.json +0 -76
  46. package/.proagents/cache/conventions.json +0 -125
  47. package/.proagents/cache/dependencies.json +0 -85
  48. package/.proagents/cache/features.json +0 -115
  49. package/.proagents/cache/patterns.json +0 -105
  50. package/.proagents/cache/schemas/conventions-schema.json +0 -138
  51. package/.proagents/cache/schemas/dependencies-schema.json +0 -95
  52. package/.proagents/cache/schemas/features-schema.json +0 -104
  53. package/.proagents/cache/schemas/metadata-schema.json +0 -83
  54. package/.proagents/cache/schemas/patterns-schema.json +0 -136
  55. package/.proagents/cache/schemas/structure-schema.json +0 -72
  56. package/.proagents/cache/structure.json +0 -109
  57. package/.proagents/checklists/README.md +0 -261
  58. package/.proagents/checklists/code-quality.md +0 -137
  59. package/.proagents/checklists/code-review.md +0 -148
  60. package/.proagents/checklists/pr-checklist.md +0 -78
  61. package/.proagents/checklists/pre-deployment.md +0 -132
  62. package/.proagents/checklists/pre-implementation.md +0 -80
  63. package/.proagents/checklists/testing.md +0 -120
  64. package/.proagents/checkpoints.json +0 -13
  65. package/.proagents/cicd/README.md +0 -338
  66. package/.proagents/cicd/azure-devops.md +0 -267
  67. package/.proagents/cicd/github-actions.md +0 -375
  68. package/.proagents/cicd/gitlab-ci.md +0 -278
  69. package/.proagents/cicd/jenkins.md +0 -317
  70. package/.proagents/collaboration/README.md +0 -143
  71. package/.proagents/collaboration/roles.md +0 -248
  72. package/.proagents/collaboration/sessions.md +0 -390
  73. package/.proagents/collaboration/sync.md +0 -358
  74. package/.proagents/cost/README.md +0 -48
  75. package/.proagents/cost/cost-template.md +0 -283
  76. package/.proagents/cost/estimation-framework.md +0 -287
  77. package/.proagents/database/README.md +0 -72
  78. package/.proagents/database/examples/001-create-users.sql +0 -129
  79. package/.proagents/database/examples/002-add-preferences.sql +0 -94
  80. package/.proagents/database/examples/003-add-index.sql +0 -105
  81. package/.proagents/database/examples/004-rename-column.sql +0 -122
  82. package/.proagents/database/examples/005-add-foreign-key.sql +0 -142
  83. package/.proagents/database/examples/006-data-migration.sql +0 -196
  84. package/.proagents/database/examples/007-drop-column.sql +0 -163
  85. package/.proagents/database/examples/README.md +0 -89
  86. package/.proagents/database/migration-workflow.md +0 -478
  87. package/.proagents/database/rollback-scripts.md +0 -487
  88. package/.proagents/database/safety-checks.md +0 -447
  89. package/.proagents/git/README.md +0 -68
  90. package/.proagents/git/branch-strategy.md +0 -164
  91. package/.proagents/git/commit-conventions.md +0 -241
  92. package/.proagents/git/pr-workflow.md +0 -286
  93. package/.proagents/git/rollback-procedures.md +0 -416
  94. package/.proagents/ide-integration/README.md +0 -124
  95. package/.proagents/ide-integration/cline-config.md +0 -429
  96. package/.proagents/ide-integration/continue-config.md +0 -380
  97. package/.proagents/ide-integration/cursor-rules.md +0 -280
  98. package/.proagents/ide-integration/github-copilot.md +0 -384
  99. package/.proagents/ide-integration/windsurf-rules.md +0 -314
  100. package/.proagents/integrations/README.md +0 -97
  101. package/.proagents/integrations/pm/README.md +0 -344
  102. package/.proagents/learning/README.md +0 -136
  103. package/.proagents/learning/adaptation.md +0 -305
  104. package/.proagents/learning/data-collection.md +0 -283
  105. package/.proagents/learning/implementation-guide.md +0 -865
  106. package/.proagents/learning/reports.md +0 -306
  107. package/.proagents/mcp/README.md +0 -133
  108. package/.proagents/mcp/context-providers.md +0 -442
  109. package/.proagents/mcp/server-config.md +0 -306
  110. package/.proagents/mcp/tools-definition.md +0 -513
  111. package/.proagents/pm-integration/README.md +0 -151
  112. package/.proagents/pm-integration/asana.md +0 -346
  113. package/.proagents/pm-integration/github-issues.md +0 -308
  114. package/.proagents/pm-integration/gitlab-issues.md +0 -482
  115. package/.proagents/pm-integration/jira.md +0 -364
  116. package/.proagents/pm-integration/linear.md +0 -409
  117. package/.proagents/pm-integration/notion.md +0 -275
  118. package/.proagents/pm-integration/sync-config.md +0 -533
  119. package/.proagents/pm-integration/trello.md +0 -159
  120. package/.proagents/rules/README.md +0 -179
  121. package/.proagents/rules/custom-rules-template.yaml +0 -286
  122. package/.proagents/rules/custom-rules.md +0 -754
  123. package/.proagents/rules/validation-rules-template.yaml +0 -517
  124. package/.proagents/runbooks/README.md +0 -219
  125. package/.proagents/runbooks/dependency-vulnerability.md +0 -505
  126. package/.proagents/runbooks/incident-response.md +0 -451
  127. package/.proagents/runbooks/performance-degradation.md +0 -584
  128. package/.proagents/runbooks/production-debugging.md +0 -489
  129. package/.proagents/sprints/README.md +0 -58
  130. package/.proagents/team/README.md +0 -256
  131. package/.proagents/team/code-ownership.md +0 -306
  132. package/.proagents/team/communication-templates.md +0 -441
  133. package/.proagents/team/handoff-protocol.md +0 -380
  134. package/.proagents/team/ide-setup/README.md +0 -103
  135. package/.proagents/team/ide-setup/cursor.md +0 -276
  136. package/.proagents/team/ide-setup/jetbrains.md +0 -330
  137. package/.proagents/team/ide-setup/neovim.md +0 -640
  138. package/.proagents/team/ide-setup/vscode.md +0 -348
  139. package/.proagents/team/onboarding.md +0 -278
  140. package/.proagents/time-tracking.json +0 -19
  141. package/.proagents/troubleshooting/README.md +0 -730
  142. package/.proagents/troubleshooting/ai-issues.md +0 -601
  143. package/.proagents/troubleshooting/workflow-issues.md +0 -571
@@ -1,535 +0,0 @@
1
- # Auto-Decision System
2
-
3
- Eliminate AI questions during workflow execution through pre-configured decisions.
4
-
5
- ---
6
-
7
- ## The Problem
8
-
9
- When AI asks questions during workflow:
10
- ```
11
- AI: "Should I use REST or GraphQL for this API?"
12
-
13
- [FLOW BLOCKED - Waiting for user response]
14
-
15
- Automation broken!
16
- ```
17
-
18
- ## The Solution
19
-
20
- Pre-configure all possible decisions so AI never needs to ask:
21
- ```
22
- AI: Checks decision config → Uses pre-defined answer → Continues flow
23
-
24
- [NO INTERRUPTION]
25
-
26
- Automation continues!
27
- ```
28
-
29
- ---
30
-
31
- ## Automation Levels
32
-
33
- ### Level 1: Full Automation (No Interruptions)
34
- ```yaml
35
- automation:
36
- level: "full"
37
- user_intervention: false
38
-
39
- behavior:
40
- unknown_decisions: "use_default"
41
- log_decisions: true
42
- review_after_completion: true
43
- ```
44
- - AI makes ALL decisions using defaults
45
- - Never asks questions
46
- - Logs all decisions for post-review
47
- - Best for: CI/CD pipelines, batch processing
48
-
49
- ### Level 2: Semi-Automation (Critical Only)
50
- ```yaml
51
- automation:
52
- level: "semi"
53
- user_intervention: "critical_only"
54
-
55
- behavior:
56
- unknown_decisions: "use_default"
57
- pause_on:
58
- - "security_decisions"
59
- - "breaking_changes"
60
- - "deployment"
61
- ```
62
- - Auto-decides routine questions
63
- - Only pauses for critical decisions
64
- - Best for: Daily development with safety checks
65
-
66
- ### Level 3: Guided (Checkpoints Only)
67
- ```yaml
68
- automation:
69
- level: "guided"
70
- user_intervention: "checkpoints"
71
-
72
- behavior:
73
- auto_decide: true
74
- pause_at_checkpoints: true
75
- ```
76
- - Auto-decides within phases
77
- - Pauses at configured checkpoints
78
- - Best for: New projects, learning the workflow
79
-
80
- ### Level 4: Manual (Ask Everything)
81
- ```yaml
82
- automation:
83
- level: "manual"
84
- user_intervention: true
85
- ```
86
- - Traditional mode
87
- - AI asks for guidance
88
- - Best for: Complex/sensitive projects
89
-
90
- ---
91
-
92
- ## Pre-Configured Decision Categories
93
-
94
- ### 1. Architecture Decisions
95
-
96
- ```yaml
97
- decisions:
98
- architecture:
99
- # API Style
100
- api_style:
101
- default: "rest"
102
- options: ["rest", "graphql", "grpc", "trpc"]
103
-
104
- # State Management
105
- state_management:
106
- default: "zustand"
107
- options: ["zustand", "redux", "context", "jotai", "mobx"]
108
-
109
- # Styling Approach
110
- styling:
111
- default: "tailwind"
112
- options: ["tailwind", "css-modules", "styled-components", "scss"]
113
-
114
- # Database
115
- database:
116
- default: "postgresql"
117
- options: ["postgresql", "mysql", "mongodb", "sqlite"]
118
-
119
- # ORM
120
- orm:
121
- default: "prisma"
122
- options: ["prisma", "typeorm", "drizzle", "knex"]
123
-
124
- # Authentication
125
- auth_method:
126
- default: "jwt"
127
- options: ["jwt", "session", "oauth", "magic-link"]
128
- ```
129
-
130
- ### 2. Code Style Decisions
131
-
132
- ```yaml
133
- decisions:
134
- code_style:
135
- # Component Style
136
- component_style:
137
- default: "functional"
138
- options: ["functional", "class"]
139
-
140
- # File Naming
141
- file_naming:
142
- components: "PascalCase"
143
- utilities: "camelCase"
144
- constants: "UPPER_SNAKE_CASE"
145
-
146
- # Export Style
147
- export_style:
148
- default: "named"
149
- options: ["named", "default", "barrel"]
150
-
151
- # Props Definition
152
- props_style:
153
- default: "interface"
154
- options: ["interface", "type"]
155
- ```
156
-
157
- ### 3. Testing Decisions
158
-
159
- ```yaml
160
- decisions:
161
- testing:
162
- # Test Framework
163
- unit_framework:
164
- default: "vitest"
165
- options: ["vitest", "jest"]
166
-
167
- # E2E Framework
168
- e2e_framework:
169
- default: "playwright"
170
- options: ["playwright", "cypress"]
171
-
172
- # Coverage Threshold
173
- coverage_threshold:
174
- default: 80
175
- minimum: 60
176
-
177
- # Test Location
178
- test_location:
179
- default: "colocated" # Next to source files
180
- options: ["colocated", "separate"] # Or in /tests folder
181
- ```
182
-
183
- ### 4. Implementation Decisions
184
-
185
- ```yaml
186
- decisions:
187
- implementation:
188
- # When multiple approaches exist
189
- approach_selection:
190
- default: "simplest" # Choose simplest working solution
191
- options: ["simplest", "most_performant", "most_scalable"]
192
-
193
- # Error Handling
194
- error_handling:
195
- default: "try_catch"
196
- options: ["try_catch", "error_boundary", "result_type"]
197
-
198
- # Async Pattern
199
- async_pattern:
200
- default: "async_await"
201
- options: ["async_await", "promises", "callbacks"]
202
-
203
- # Null Handling
204
- null_handling:
205
- default: "optional_chaining"
206
- options: ["optional_chaining", "explicit_checks", "nullish_coalescing"]
207
- ```
208
-
209
- ### 5. Deployment Decisions
210
-
211
- ```yaml
212
- decisions:
213
- deployment:
214
- # Environment
215
- target_environment:
216
- default: "staging"
217
- options: ["development", "staging", "production"]
218
-
219
- # Strategy
220
- deployment_strategy:
221
- default: "rolling"
222
- options: ["rolling", "blue_green", "canary"]
223
-
224
- # Auto Deploy
225
- auto_deploy:
226
- staging: true
227
- production: false # Always require approval for prod
228
- ```
229
-
230
- ---
231
-
232
- ## Decision Rules Engine
233
-
234
- Define rules for automatic decisions:
235
-
236
- ```yaml
237
- decision_rules:
238
- # Rule: If creating API endpoint, use REST by default
239
- - condition: "creating_api_endpoint"
240
- decision: "api_style"
241
- value: "rest"
242
- unless: "graphql_already_used"
243
-
244
- # Rule: Match existing patterns in codebase
245
- - condition: "existing_pattern_found"
246
- action: "use_existing_pattern"
247
- priority: "high"
248
-
249
- # Rule: For new components, use project's component style
250
- - condition: "creating_component"
251
- decision: "component_style"
252
- value: "{{project.patterns.components.style}}"
253
-
254
- # Rule: Use TypeScript if project uses TypeScript
255
- - condition: "project_uses_typescript"
256
- decision: "language"
257
- value: "typescript"
258
-
259
- # Rule: For security-related code, add extra validation
260
- - condition: "security_related"
261
- action: "add_validation"
262
- requires_review: true
263
- ```
264
-
265
- ---
266
-
267
- ## Smart Defaults Based on Context
268
-
269
- ### Project Type Defaults
270
-
271
- ```yaml
272
- # Automatically set based on /init selection
273
- project_type_defaults:
274
- web-frontend:
275
- api_style: null # No API
276
- state_management: "zustand"
277
- styling: "tailwind"
278
- testing: "vitest"
279
-
280
- fullstack:
281
- api_style: "rest"
282
- state_management: "react-query"
283
- orm: "prisma"
284
- auth: "next-auth"
285
-
286
- mobile:
287
- navigation: "react-navigation"
288
- state_management: "zustand"
289
- storage: "async-storage"
290
-
291
- backend:
292
- api_style: "rest"
293
- orm: "prisma"
294
- validation: "zod"
295
- auth: "jwt"
296
- ```
297
-
298
- ### Codebase Analysis Defaults
299
-
300
- ```yaml
301
- # Learn from existing codebase
302
- analysis_based_defaults:
303
- enabled: true
304
-
305
- learn_from:
306
- - existing_patterns
307
- - naming_conventions
308
- - file_structure
309
- - dependency_choices
310
-
311
- apply_to:
312
- - new_components
313
- - new_services
314
- - new_tests
315
- ```
316
-
317
- ---
318
-
319
- ## Question Bypass Strategies
320
-
321
- ### Strategy 1: Pre-Answer Common Questions
322
-
323
- ```yaml
324
- common_questions:
325
- "Should I create a new component or modify existing?":
326
- rule: "If similar component exists with >70% match, modify. Otherwise create new."
327
- auto_answer: true
328
-
329
- "Which folder should this go in?":
330
- rule: "Follow existing project structure patterns."
331
- auto_answer: true
332
-
333
- "Should I add tests for this?":
334
- rule: "Always yes, follow testing.test_location config."
335
- auto_answer: true
336
-
337
- "What should I name this?":
338
- rule: "Follow naming conventions from decisions.code_style."
339
- auto_answer: true
340
-
341
- "Should I refactor this while I'm here?":
342
- rule: "No, stick to the requested task only."
343
- auto_answer: true
344
- ```
345
-
346
- ### Strategy 2: Decision Inference
347
-
348
- ```yaml
349
- inference_rules:
350
- # Infer from task description
351
- - pattern: "add.*api.*endpoint"
352
- infer:
353
- api_style: "match_existing_or_default"
354
- add_validation: true
355
- add_tests: true
356
-
357
- # Infer from file location
358
- - pattern: "src/components/*"
359
- infer:
360
- type: "component"
361
- style: "project_component_style"
362
- test_location: "colocated"
363
-
364
- # Infer from similar existing code
365
- - pattern: "similar_code_exists"
366
- infer:
367
- follow_existing_pattern: true
368
- ```
369
-
370
- ### Strategy 3: Fallback Chain
371
-
372
- ```yaml
373
- fallback_chain:
374
- # When decision needed, try in order:
375
- 1. Check explicit config (decisions.yaml)
376
- 2. Check project type defaults
377
- 3. Check codebase analysis results
378
- 4. Check inference rules
379
- 5. Use global defaults
380
- 6. If still unknown:
381
- - If automation=full: Use safest default
382
- - If automation=semi: Queue for review
383
- - If automation=guided: Pause and ask
384
- ```
385
-
386
- ---
387
-
388
- ## Decision Logging
389
-
390
- All auto-decisions are logged for review:
391
-
392
- ```yaml
393
- decision_log:
394
- enabled: true
395
- location: ".proagents/decisions/"
396
-
397
- log_format:
398
- timestamp: true
399
- decision_type: true
400
- rule_applied: true
401
- value_chosen: true
402
- alternatives: true
403
- confidence: true
404
- ```
405
-
406
- ### Sample Decision Log
407
-
408
- ```json
409
- {
410
- "session": "2024-01-15-feature-auth",
411
- "decisions": [
412
- {
413
- "timestamp": "2024-01-15T10:30:00Z",
414
- "question": "Which state management to use?",
415
- "decision": "zustand",
416
- "rule_applied": "project_type_defaults.web-frontend.state_management",
417
- "confidence": "high",
418
- "alternatives": ["redux", "context", "jotai"]
419
- },
420
- {
421
- "timestamp": "2024-01-15T10:32:00Z",
422
- "question": "Where to place AuthService?",
423
- "decision": "src/services/authService.ts",
424
- "rule_applied": "codebase_analysis.existing_pattern",
425
- "confidence": "high",
426
- "alternatives": []
427
- },
428
- {
429
- "timestamp": "2024-01-15T10:35:00Z",
430
- "question": "Add error boundary?",
431
- "decision": "yes",
432
- "rule_applied": "common_questions.error_handling",
433
- "confidence": "medium",
434
- "alternatives": ["no", "custom_error_handler"]
435
- }
436
- ],
437
- "summary": {
438
- "total_decisions": 15,
439
- "auto_resolved": 15,
440
- "user_intervention": 0,
441
- "confidence_breakdown": {
442
- "high": 12,
443
- "medium": 3,
444
- "low": 0
445
- }
446
- }
447
- }
448
- ```
449
-
450
- ---
451
-
452
- ## Post-Execution Review
453
-
454
- After automated workflow completes:
455
-
456
- ```
457
- ┌─────────────────────────────────────────────────────────┐
458
- │ Workflow Complete - Decision Review │
459
- ├─────────────────────────────────────────────────────────┤
460
- │ Feature: user-authentication │
461
- │ Duration: 45 minutes │
462
- │ Automation Level: Full │
463
- ├─────────────────────────────────────────────────────────┤
464
- │ Decisions Made: 23 │
465
- │ ├── High Confidence: 18 │
466
- │ ├── Medium Confidence: 4 │
467
- │ └── Low Confidence: 1 ⚠️ │
468
- ├─────────────────────────────────────────────────────────┤
469
- │ Low Confidence Decision: │
470
- │ • Used REST for user-preferences endpoint │
471
- │ Reason: No clear pattern, used default │
472
- │ Action: Review if GraphQL would be better │
473
- ├─────────────────────────────────────────────────────────┤
474
- │ [View Full Log] [Approve All] [Review Flagged] │
475
- └─────────────────────────────────────────────────────────┘
476
- ```
477
-
478
- ---
479
-
480
- ## Configuration Example
481
-
482
- ### Full Automation Config
483
-
484
- ```yaml
485
- # proagents.config.yaml
486
-
487
- automation:
488
- level: "full"
489
- user_intervention: false
490
-
491
- # Pre-configured decisions
492
- decisions:
493
- architecture:
494
- api_style: "rest"
495
- state_management: "zustand"
496
- styling: "tailwind"
497
- database: "postgresql"
498
- orm: "prisma"
499
-
500
- code_style:
501
- component_style: "functional"
502
- export_style: "named"
503
-
504
- testing:
505
- framework: "vitest"
506
- coverage: 80
507
-
508
- implementation:
509
- approach: "simplest"
510
- error_handling: "try_catch"
511
-
512
- # Behavior
513
- behavior:
514
- unknown_decisions: "use_safest_default"
515
- log_all_decisions: true
516
- review_after_completion: true
517
-
518
- # Safety
519
- safety:
520
- pause_on_security: false # Set true for extra safety
521
- pause_on_breaking: false
522
- pause_on_deployment: false
523
- ```
524
-
525
- ---
526
-
527
- ## Commands
528
-
529
- | Command | Description |
530
- |---------|-------------|
531
- | `pa:auto-config` | Configure automation settings |
532
- | `pa:auto-level [level]` | Set automation level |
533
- | `pa:decisions` | View/edit pre-configured decisions |
534
- | `pa:decision-log` | View decision log |
535
- | `pa:review-decisions` | Review flagged decisions |