proagents 1.6.17 → 1.6.19

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 (185) hide show
  1. package/.claude/settings.local.json +169 -0
  2. package/.proagents/AGENTS.md +2 -0
  3. package/.proagents/AI_INSTRUCTIONS.md +13 -0
  4. package/.proagents/ANTIGRAVITY.md +2 -0
  5. package/.proagents/BOLT.md +2 -0
  6. package/.proagents/CHATGPT.md +2 -0
  7. package/.proagents/CLAUDE.md +2 -0
  8. package/.proagents/GEMINI.md +2 -0
  9. package/.proagents/GROQ.md +2 -0
  10. package/.proagents/KIRO.md +2 -0
  11. package/.proagents/LOVABLE.md +2 -0
  12. package/.proagents/PROAGENTS.md +2 -0
  13. package/.proagents/REPLIT.md +2 -0
  14. package/.proagents/prompts/00-project-setup.md +878 -0
  15. package/.proagents/prompts/04-planning.md +38 -0
  16. package/.proagents/prompts/12-rnd.md +957 -0
  17. package/.proagents/workflow-modes/entry-modes.md +27 -0
  18. package/.proagents/worklog/_context.template.md +47 -0
  19. package/COMMANDS.md +654 -0
  20. package/README.md +16 -24
  21. package/package.json +2 -7
  22. package/.proagents/ai-models/README.md +0 -141
  23. package/.proagents/ai-models/cost-management.md +0 -362
  24. package/.proagents/ai-models/fallbacks.md +0 -342
  25. package/.proagents/ai-models/model-config.md +0 -318
  26. package/.proagents/ai-models/task-routing.md +0 -503
  27. package/.proagents/ai-training/README.md +0 -155
  28. package/.proagents/ai-training/continuous-learning.md +0 -413
  29. package/.proagents/ai-training/domain-knowledge.md +0 -378
  30. package/.proagents/ai-training/pattern-learning.md +0 -455
  31. package/.proagents/ai-training/training-data.md +0 -337
  32. package/.proagents/ai-training/user-preferences.md +0 -346
  33. package/.proagents/approval-workflows/README.md +0 -146
  34. package/.proagents/approval-workflows/approval-config.md +0 -332
  35. package/.proagents/approval-workflows/approval-stages.md +0 -503
  36. package/.proagents/approval-workflows/emergency-bypass.md +0 -351
  37. package/.proagents/approval-workflows/examples.md +0 -859
  38. package/.proagents/approval-workflows/notifications.md +0 -320
  39. package/.proagents/compliance/README.md +0 -206
  40. package/.proagents/compliance/access-control.md +0 -310
  41. package/.proagents/compliance/audit-logging.md +0 -444
  42. package/.proagents/compliance/compliance-frameworks.md +0 -429
  43. package/.proagents/compliance/reports.md +0 -491
  44. package/.proagents/compliance/retention-policies.md +0 -454
  45. package/.proagents/config-versioning/README.md +0 -120
  46. package/.proagents/config-versioning/changelog.md +0 -300
  47. package/.proagents/config-versioning/rollback.md +0 -283
  48. package/.proagents/config-versioning/versioning.md +0 -330
  49. package/.proagents/contract-testing/README.md +0 -223
  50. package/.proagents/contract-testing/contract-testing.md +0 -614
  51. package/.proagents/contract-testing/pact-integration.md +0 -507
  52. package/.proagents/contract-testing/schema-validation.md +0 -565
  53. package/.proagents/dependency-management/README.md +0 -140
  54. package/.proagents/dependency-management/automation.md +0 -363
  55. package/.proagents/dependency-management/compatibility.md +0 -319
  56. package/.proagents/dependency-management/security-scanning.md +0 -413
  57. package/.proagents/dependency-management/update-policies.md +0 -374
  58. package/.proagents/disaster-recovery/README.md +0 -247
  59. package/.proagents/disaster-recovery/automation.md +0 -366
  60. package/.proagents/disaster-recovery/backup-recovery.md +0 -571
  61. package/.proagents/disaster-recovery/incident-response.md +0 -565
  62. package/.proagents/disaster-recovery/rollback-procedures.md +0 -499
  63. package/.proagents/disaster-recovery/runbooks.md +0 -603
  64. package/.proagents/disaster-recovery/scenarios.md +0 -892
  65. package/.proagents/disaster-recovery/testing.md +0 -438
  66. package/.proagents/environments/README.md +0 -244
  67. package/.proagents/environments/configuration.md +0 -437
  68. package/.proagents/environments/promotion.md +0 -434
  69. package/.proagents/environments/setup.md +0 -420
  70. package/.proagents/examples/README.md +0 -55
  71. package/.proagents/examples/backend-nodejs/README.md +0 -188
  72. package/.proagents/examples/backend-nodejs/complete-conversation.md +0 -601
  73. package/.proagents/examples/backend-nodejs/proagents.config.yaml +0 -415
  74. package/.proagents/examples/backend-nodejs/workflow-example.md +0 -909
  75. package/.proagents/examples/fullstack-nextjs/README.md +0 -155
  76. package/.proagents/examples/fullstack-nextjs/complete-conversation.md +0 -604
  77. package/.proagents/examples/fullstack-nextjs/proagents.config.yaml +0 -287
  78. package/.proagents/examples/fullstack-nextjs/workflow-example.md +0 -553
  79. package/.proagents/examples/mobile-react-native/README.md +0 -171
  80. package/.proagents/examples/mobile-react-native/complete-conversation.md +0 -825
  81. package/.proagents/examples/mobile-react-native/proagents.config.yaml +0 -330
  82. package/.proagents/examples/mobile-react-native/workflow-example.md +0 -723
  83. package/.proagents/examples/web-frontend-react/README.md +0 -125
  84. package/.proagents/examples/web-frontend-react/complete-conversation.md +0 -556
  85. package/.proagents/examples/web-frontend-react/proagents.config.yaml +0 -183
  86. package/.proagents/examples/web-frontend-react/workflow-example.md +0 -603
  87. package/.proagents/existing-projects/README.md +0 -65
  88. package/.proagents/existing-projects/challenges.md +0 -861
  89. package/.proagents/existing-projects/coexistence-mode.md +0 -483
  90. package/.proagents/existing-projects/compatibility-assessment.md +0 -541
  91. package/.proagents/existing-projects/gradual-adoption.md +0 -515
  92. package/.proagents/existing-projects/migration-strategies.md +0 -788
  93. package/.proagents/existing-projects/pattern-reconciliation.md +0 -489
  94. package/.proagents/existing-projects/team-onboarding.md +0 -617
  95. package/.proagents/existing-projects/technical-debt-handling.md +0 -644
  96. package/.proagents/feature-flags/README.md +0 -263
  97. package/.proagents/feature-flags/ab-testing.md +0 -413
  98. package/.proagents/feature-flags/configuration.md +0 -420
  99. package/.proagents/feature-flags/kill-switches.md +0 -444
  100. package/.proagents/feature-flags/rollout-strategies.md +0 -392
  101. package/.proagents/history.log +0 -12
  102. package/.proagents/i18n/README.md +0 -133
  103. package/.proagents/i18n/extraction.md +0 -433
  104. package/.proagents/i18n/tms-integration.md +0 -332
  105. package/.proagents/i18n/translation-workflow.md +0 -413
  106. package/.proagents/i18n/validation.md +0 -355
  107. package/.proagents/logging/README.md +0 -276
  108. package/.proagents/logging/aggregation.md +0 -475
  109. package/.proagents/logging/log-levels.md +0 -376
  110. package/.proagents/logging/sensitive-data.md +0 -423
  111. package/.proagents/logging/structured-logging.md +0 -406
  112. package/.proagents/metrics/README.md +0 -69
  113. package/.proagents/metrics/code-quality-kpis.md +0 -461
  114. package/.proagents/metrics/deployment-metrics.md +0 -517
  115. package/.proagents/metrics/developer-productivity.md +0 -368
  116. package/.proagents/metrics/learning-effectiveness.md +0 -478
  117. package/.proagents/migrations/README.md +0 -77
  118. package/.proagents/migrations/from-claude-projects.md +0 -313
  119. package/.proagents/migrations/from-cursor-rules.md +0 -345
  120. package/.proagents/migrations/from-custom-workflows.md +0 -410
  121. package/.proagents/monitoring/README.md +0 -308
  122. package/.proagents/monitoring/alerting.md +0 -449
  123. package/.proagents/monitoring/dashboards.md +0 -454
  124. package/.proagents/monitoring/health-checks.md +0 -436
  125. package/.proagents/monitoring/metrics.md +0 -434
  126. package/.proagents/multi-project/README.md +0 -170
  127. package/.proagents/multi-project/coordinated-deploy.md +0 -510
  128. package/.proagents/multi-project/cross-project-deps.md +0 -395
  129. package/.proagents/multi-project/unified-changelog.md +0 -477
  130. package/.proagents/multi-project/walkthroughs/monorepo-setup.md +0 -787
  131. package/.proagents/multi-project/workspace-config.md +0 -408
  132. package/.proagents/notifications/README.md +0 -151
  133. package/.proagents/notifications/channels.md +0 -457
  134. package/.proagents/notifications/preferences.md +0 -415
  135. package/.proagents/notifications/routing.md +0 -449
  136. package/.proagents/notifications/scheduling.md +0 -425
  137. package/.proagents/notifications/templates.md +0 -446
  138. package/.proagents/offline-mode/README.md +0 -145
  139. package/.proagents/offline-mode/caching.md +0 -344
  140. package/.proagents/offline-mode/offline-operations.md +0 -312
  141. package/.proagents/offline-mode/queue-specifications.md +0 -679
  142. package/.proagents/offline-mode/sync.md +0 -475
  143. package/.proagents/parallel-features/README.md +0 -85
  144. package/.proagents/parallel-features/conflict-detection.md +0 -226
  145. package/.proagents/parallel-features/dependency-management.md +0 -392
  146. package/.proagents/parallel-features/merge-coordination.md +0 -506
  147. package/.proagents/parallel-features/tracking-system.md +0 -416
  148. package/.proagents/performance/README.md +0 -59
  149. package/.proagents/performance/bundle-analysis.md +0 -375
  150. package/.proagents/performance/load-testing.md +0 -563
  151. package/.proagents/performance/runtime-metrics.md +0 -489
  152. package/.proagents/performance/web-vitals.md +0 -425
  153. package/.proagents/plugins/README.md +0 -139
  154. package/.proagents/plugins/creating-plugins.md +0 -504
  155. package/.proagents/plugins/plugin-api.md +0 -467
  156. package/.proagents/plugins/plugin-registry.md +0 -276
  157. package/.proagents/reporting/README.md +0 -158
  158. package/.proagents/reporting/dashboards.md +0 -366
  159. package/.proagents/reporting/exports.md +0 -524
  160. package/.proagents/reporting/quality-metrics.md +0 -385
  161. package/.proagents/reporting/templates/README.md +0 -56
  162. package/.proagents/reporting/templates/dashboard-config.json +0 -187
  163. package/.proagents/reporting/templates/metrics-queries.md +0 -427
  164. package/.proagents/reporting/templates/react-dashboard.tsx +0 -544
  165. package/.proagents/reporting/templates/widgets.md +0 -451
  166. package/.proagents/reporting/velocity-metrics.md +0 -340
  167. package/.proagents/reverse-engineering/README.md +0 -151
  168. package/.proagents/reverse-engineering/architecture-extraction.md +0 -325
  169. package/.proagents/reverse-engineering/code-analysis.md +0 -377
  170. package/.proagents/reverse-engineering/dependency-mapping.md +0 -567
  171. package/.proagents/reverse-engineering/diagram-generation.md +0 -586
  172. package/.proagents/reverse-engineering/documentation-generation.md +0 -468
  173. package/.proagents/reverse-engineering/pattern-detection.md +0 -569
  174. package/.proagents/reverse-engineering/quality-assessment.md +0 -733
  175. package/.proagents/secrets/README.md +0 -278
  176. package/.proagents/secrets/access-control.md +0 -443
  177. package/.proagents/secrets/rotation.md +0 -403
  178. package/.proagents/secrets/scanning.md +0 -487
  179. package/.proagents/secrets/storage.md +0 -394
  180. package/.proagents/webhooks/README.md +0 -126
  181. package/.proagents/webhooks/endpoints.md +0 -298
  182. package/.proagents/webhooks/events.md +0 -316
  183. package/.proagents/webhooks/payloads.md +0 -325
  184. package/.proagents/webhooks/reliability.md +0 -363
  185. package/.proagents/webhooks/security.md +0 -380
@@ -1,644 +0,0 @@
1
- # Technical Debt Handling
2
-
3
- Manage and reduce technical debt during ProAgents adoption.
4
-
5
- ---
6
-
7
- ## Overview
8
-
9
- Technical debt in existing projects includes:
10
- - Low test coverage
11
- - Security vulnerabilities
12
- - Outdated dependencies
13
- - Missing documentation
14
- - Inconsistent patterns
15
- - Code quality issues
16
-
17
- ProAgents helps track and gradually reduce debt without blocking progress.
18
-
19
- ---
20
-
21
- ## Technical Debt Categories
22
-
23
- ```
24
- ┌─────────────────────────────────────────────────────────────┐
25
- │ Technical Debt Inventory │
26
- ├─────────────────────────────────────────────────────────────┤
27
- │ │
28
- │ Testing Debt Documentation Debt │
29
- │ ───────────── ────────────────── │
30
- │ • Low coverage • Missing README │
31
- │ • Missing tests • Outdated docs │
32
- │ • Flaky tests • No API docs │
33
- │ • No E2E tests • No architecture docs │
34
- │ │
35
- │ Code Quality Debt Security Debt │
36
- │ ───────────────── ───────────── │
37
- │ • Code smells • Vulnerabilities │
38
- │ • High complexity • Outdated deps │
39
- │ • Duplication • Hardcoded secrets │
40
- │ • Poor naming • Missing auth checks │
41
- │ │
42
- │ Pattern Debt Infrastructure Debt │
43
- │ ──────────── ────────────────── │
44
- │ • Multiple patterns • No CI/CD │
45
- │ • Legacy code • Manual deployments │
46
- │ • Inconsistency • No monitoring │
47
- │ │
48
- └─────────────────────────────────────────────────────────────┘
49
- ```
50
-
51
- ---
52
-
53
- ## Debt Assessment
54
-
55
- ### Running Assessment
56
-
57
- ```bash
58
- # Full technical debt assessment
59
- pa:debt-assess
60
-
61
- # Assess specific category
62
- pa:debt-assess --category testing
63
- pa:debt-assess --category security
64
- pa:debt-assess --category patterns
65
-
66
- # Quick assessment
67
- pa:debt-assess --quick
68
- ```
69
-
70
- ### Assessment Output
71
-
72
- ```yaml
73
- technical_debt_assessment:
74
- date: "2024-01-15"
75
- overall_score: 45 # 0-100 (lower = more debt)
76
-
77
- categories:
78
- testing:
79
- score: 35
80
- issues:
81
- - type: "low_coverage"
82
- severity: "high"
83
- details: "Overall coverage 35%, target 80%"
84
- files_affected: 234
85
-
86
- - type: "missing_tests"
87
- severity: "high"
88
- details: "Critical paths untested"
89
- paths:
90
- - "src/services/paymentService.ts"
91
- - "src/services/authService.ts"
92
-
93
- - type: "flaky_tests"
94
- severity: "medium"
95
- count: 5
96
-
97
- security:
98
- score: 60
99
- issues:
100
- - type: "vulnerable_dependencies"
101
- severity: "high"
102
- count: 3
103
-
104
- - type: "hardcoded_secrets"
105
- severity: "critical"
106
- files: 2
107
-
108
- documentation:
109
- score: 40
110
- issues:
111
- - type: "outdated_readme"
112
- severity: "medium"
113
- last_updated: "2022-06-15"
114
-
115
- - type: "missing_api_docs"
116
- severity: "medium"
117
- endpoints_undocumented: 45
118
-
119
- code_quality:
120
- score: 55
121
- issues:
122
- - type: "high_complexity"
123
- severity: "medium"
124
- files: 12
125
-
126
- - type: "code_duplication"
127
- severity: "low"
128
- percentage: 8
129
-
130
- patterns:
131
- score: 50
132
- issues:
133
- - type: "inconsistent_patterns"
134
- severity: "medium"
135
- patterns: ["redux", "zustand", "context"]
136
- ```
137
-
138
- ---
139
-
140
- ## Debt Tracking
141
-
142
- ### Debt Registry
143
-
144
- ```yaml
145
- # .proagents/debt/registry.yaml
146
-
147
- debt_items:
148
- - id: "DEBT-001"
149
- category: "testing"
150
- type: "low_coverage"
151
- created: "2024-01-15"
152
- severity: "high"
153
- status: "open"
154
- description: "Payment service has 0% test coverage"
155
- location: "src/services/paymentService.ts"
156
- estimated_effort: "4 hours"
157
- assigned_to: null
158
- target_date: null
159
-
160
- - id: "DEBT-002"
161
- category: "security"
162
- type: "hardcoded_secret"
163
- created: "2024-01-15"
164
- severity: "critical"
165
- status: "in_progress"
166
- description: "API key hardcoded in config"
167
- location: "src/config/api.ts:15"
168
- estimated_effort: "1 hour"
169
- assigned_to: "dev-1"
170
- target_date: "2024-01-20"
171
-
172
- - id: "DEBT-003"
173
- category: "patterns"
174
- type: "legacy_code"
175
- created: "2024-01-15"
176
- severity: "low"
177
- status: "open"
178
- description: "Class components in admin module"
179
- location: "src/admin/**"
180
- estimated_effort: "8 hours"
181
- assigned_to: null
182
- target_date: null
183
- ```
184
-
185
- ### Debt Dashboard
186
-
187
- ```
188
- ┌─────────────────────────────────────────────────────────────┐
189
- │ Technical Debt Dashboard │
190
- ├─────────────────────────────────────────────────────────────┤
191
- │ │
192
- │ Total Debt Items: 45 │
193
- │ ├── Critical: 2 🔴 │
194
- │ ├── High: 12 🟠 │
195
- │ ├── Medium: 18 🟡 │
196
- │ └── Low: 13 🟢 │
197
- │ │
198
- │ Status: │
199
- │ ├── Open: 35 │
200
- │ ├── In Progress: 7 │
201
- │ └── Resolved (this month): 8 │
202
- │ │
203
- │ By Category: │
204
- │ Testing ████████████░░░░░░░░ 12 │
205
- │ Security ██████░░░░░░░░░░░░░░ 6 │
206
- │ Documentation ████████░░░░░░░░░░░░ 8 │
207
- │ Code Quality ██████████░░░░░░░░░░ 10 │
208
- │ Patterns ██████████░░░░░░░░░░ 9 │
209
- │ │
210
- │ Trend: ↓ 15% from last month │
211
- │ │
212
- └─────────────────────────────────────────────────────────────┘
213
- ```
214
-
215
- ---
216
-
217
- ## Debt Reduction Strategies
218
-
219
- ### Strategy 1: Touch-and-Fix
220
-
221
- ```yaml
222
- touch_and_fix:
223
- description: "Fix debt when you touch related code"
224
-
225
- trigger: "Developer modifies a file"
226
-
227
- actions:
228
- - check_debt_items_for_file
229
- - suggest_fixes
230
- - track_if_skipped
231
-
232
- example:
233
- scenario: "Developer modifies paymentService.ts"
234
- debt_found: "No tests for this file"
235
- suggestion: "Add tests while you're here? (30 min estimated)"
236
- options:
237
- - "Add tests now"
238
- - "Create debt ticket for later"
239
- - "Skip (not recommended)"
240
-
241
- configuration:
242
- enforce: false # Suggest, don't block
243
- track_skips: true
244
- max_additional_time: "30%" # Don't suggest if > 30% extra work
245
- ```
246
-
247
- ### Strategy 2: Dedicated Sprints
248
-
249
- ```yaml
250
- dedicated_sprints:
251
- description: "Allocate time specifically for debt reduction"
252
-
253
- allocation:
254
- - option: "20% of each sprint"
255
- suitable_for: "Continuous improvement"
256
-
257
- - option: "Full debt sprint monthly"
258
- suitable_for: "Larger items"
259
-
260
- - option: "Quarterly debt week"
261
- suitable_for: "Major refactoring"
262
-
263
- prioritization:
264
- - "Critical security issues first"
265
- - "High-impact items second"
266
- - "Quick wins (< 1 hour) third"
267
- - "Low priority last"
268
-
269
- tracking:
270
- sprint_goal: "Reduce debt score by 5 points"
271
- metrics:
272
- - "Items resolved"
273
- - "Debt score change"
274
- - "Coverage improvement"
275
- ```
276
-
277
- ### Strategy 3: New Code Standards
278
-
279
- ```yaml
280
- new_code_standards:
281
- description: "Prevent new debt, fix old gradually"
282
-
283
- for_new_code:
284
- testing:
285
- coverage_minimum: 80%
286
- required_tests: ["unit", "integration"]
287
- enforce: true
288
-
289
- documentation:
290
- required: true
291
- minimum: ["function_docs", "readme_update"]
292
-
293
- code_quality:
294
- max_complexity: 10
295
- no_code_smells: true
296
-
297
- for_existing_code:
298
- testing:
299
- required: false
300
- suggest_on_touch: true
301
-
302
- documentation:
303
- required: false
304
- auto_generate: true
305
-
306
- code_quality:
307
- required: false
308
- track_issues: true
309
- ```
310
-
311
- ---
312
-
313
- ## Handling Specific Debt Types
314
-
315
- ### Testing Debt
316
-
317
- ```yaml
318
- testing_debt:
319
- assessment:
320
- current_coverage: 35%
321
- target_coverage: 80%
322
- gap: 45%
323
-
324
- strategy:
325
- phase_1:
326
- name: "Critical paths"
327
- focus:
328
- - "Payment processing"
329
- - "Authentication"
330
- - "Core business logic"
331
- target: "+15% coverage"
332
-
333
- phase_2:
334
- name: "High-traffic code"
335
- focus:
336
- - "Most modified files"
337
- - "Bug-prone areas"
338
- target: "+15% coverage"
339
-
340
- phase_3:
341
- name: "Everything else"
342
- focus:
343
- - "Remaining code"
344
- target: "+15% coverage"
345
-
346
- tools:
347
- - name: "Coverage report"
348
- command: "pa:test-coverage"
349
- - name: "Untested code finder"
350
- command: "pa:find-untested"
351
- - name: "Test generator"
352
- command: "pa:generate-tests [file]"
353
-
354
- configuration:
355
- block_pr_below: null # Don't block existing
356
- require_for_new: 80%
357
- report_in_pr: true
358
- ```
359
-
360
- ### Security Debt
361
-
362
- ```yaml
363
- security_debt:
364
- priority: "HIGHEST"
365
-
366
- immediate_actions:
367
- critical:
368
- - "Remove hardcoded secrets"
369
- - "Patch critical vulnerabilities"
370
- timeline: "24 hours"
371
-
372
- high:
373
- - "Update vulnerable dependencies"
374
- - "Fix authentication gaps"
375
- timeline: "1 week"
376
-
377
- process:
378
- 1_scan: "pa:security-scan"
379
- 2_prioritize: "Critical → High → Medium → Low"
380
- 3_fix: "Dedicated security sprint if needed"
381
- 4_verify: "pa:security-scan --verify"
382
-
383
- automation:
384
- dependency_scanning: "daily"
385
- secret_detection: "pre-commit"
386
- vulnerability_alerts: true
387
-
388
- configuration:
389
- block_critical: true
390
- block_high: false
391
- report_all: true
392
- ```
393
-
394
- ### Documentation Debt
395
-
396
- ```yaml
397
- documentation_debt:
398
- assessment:
399
- readme: "outdated"
400
- api_docs: "50% coverage"
401
- code_docs: "25% coverage"
402
-
403
- strategy:
404
- auto_generate:
405
- enabled: true
406
- scope: ["api", "components", "functions"]
407
- output: ".proagents/docs/"
408
-
409
- manual_priority:
410
- - "Architecture decisions"
411
- - "Setup guide"
412
- - "Contribution guide"
413
-
414
- commands:
415
- - name: "Generate all docs"
416
- command: "pa:doc-full"
417
- - name: "Update README"
418
- command: "pa:doc-readme"
419
- - name: "API documentation"
420
- command: "pa:doc-api"
421
-
422
- configuration:
423
- auto_update: true
424
- mark_generated: true
425
- require_for_new_code: true
426
- ```
427
-
428
- ### Code Quality Debt
429
-
430
- ```yaml
431
- code_quality_debt:
432
- assessment:
433
- complexity:
434
- high_complexity_files: 12
435
- average_complexity: 15
436
- target: 10
437
-
438
- duplication:
439
- percentage: 8%
440
- target: 3%
441
-
442
- code_smells:
443
- count: 45
444
- categories: ["long_methods", "large_classes", "deep_nesting"]
445
-
446
- strategy:
447
- refactoring:
448
- approach: "gradual"
449
- trigger: "when_touched"
450
-
451
- tools:
452
- - name: "Complexity report"
453
- command: "pa:quality-complexity"
454
- - name: "Duplication finder"
455
- command: "pa:quality-duplicates"
456
- - name: "Code smell detector"
457
- command: "pa:quality-smells"
458
-
459
- configuration:
460
- block_new_smells: true
461
- suggest_refactoring: true
462
- max_complexity_new_code: 10
463
- ```
464
-
465
- ---
466
-
467
- ## Debt Prevention
468
-
469
- ### Pre-commit Checks
470
-
471
- ```yaml
472
- pre_commit:
473
- checks:
474
- - name: "No hardcoded secrets"
475
- tool: "detect-secrets"
476
- block: true
477
-
478
- - name: "Tests for new code"
479
- tool: "coverage-check"
480
- block: false
481
- warn: true
482
-
483
- - name: "Complexity check"
484
- tool: "complexity-check"
485
- threshold: 15
486
- block: false
487
-
488
- - name: "Lint check"
489
- tool: "eslint"
490
- block: true
491
- ```
492
-
493
- ### PR Checks
494
-
495
- ```yaml
496
- pr_checks:
497
- required:
498
- - name: "No new security issues"
499
- tool: "security-scan"
500
-
501
- - name: "Coverage not decreased"
502
- tool: "coverage-compare"
503
-
504
- informational:
505
- - name: "New debt items"
506
- tool: "debt-scan"
507
- display: "pr_comment"
508
-
509
- - name: "Quality metrics"
510
- tool: "quality-report"
511
- display: "pr_comment"
512
- ```
513
-
514
- ### Continuous Monitoring
515
-
516
- ```yaml
517
- continuous_monitoring:
518
- daily:
519
- - "Dependency vulnerability scan"
520
- - "Secret detection"
521
-
522
- weekly:
523
- - "Full debt assessment"
524
- - "Quality trend report"
525
-
526
- monthly:
527
- - "Debt reduction progress report"
528
- - "Priority reassessment"
529
- ```
530
-
531
- ---
532
-
533
- ## Reporting
534
-
535
- ### Debt Trends Report
536
-
537
- ```
538
- ┌─────────────────────────────────────────────────────────────┐
539
- │ Technical Debt Trends - Q1 2024 │
540
- ├─────────────────────────────────────────────────────────────┤
541
- │ │
542
- │ Debt Score (0-100, higher is better) │
543
- │ │
544
- │ 100│ │
545
- │ 80│ ╱──── │
546
- │ 60│ ╱──────────╱ │
547
- │ 40│ ╱──────────╱ │
548
- │ 20│ ─────────╱ │
549
- │ 0│ │
550
- │ └──────────────────────────────────────────── │
551
- │ Jan Feb Mar Apr May Jun │
552
- │ │
553
- │ Items Resolved: │
554
- │ Jan: 5 │ Feb: 8 │ Mar: 12 │ Apr: 15 │ May: 10 │ Jun: 8 │
555
- │ │
556
- │ Coverage: │
557
- │ Jan: 35% │ Feb: 42% │ Mar: 55% │ Apr: 62% │ May: 70% │
558
- │ │
559
- └─────────────────────────────────────────────────────────────┘
560
- ```
561
-
562
- ### Sprint Report
563
-
564
- ```markdown
565
- # Debt Reduction Sprint Report
566
-
567
- ## Sprint: 2024-W03
568
-
569
- ### Goals
570
- - [ ] Resolve 5 high-priority items
571
- - [x] Increase coverage by 5%
572
- - [x] Fix all critical security issues
573
-
574
- ### Resolved Items
575
- | ID | Category | Description | Effort |
576
- |----|----------|-------------|--------|
577
- | DEBT-002 | Security | Hardcoded API key | 1h |
578
- | DEBT-005 | Testing | Payment tests | 4h |
579
- | DEBT-008 | Docs | Update README | 2h |
580
-
581
- ### Metrics
582
- - Debt score: 45 → 52 (+7)
583
- - Coverage: 35% → 42% (+7%)
584
- - Items resolved: 8
585
- - Items added: 3 (net: -5)
586
-
587
- ### Blockers
588
- - DEBT-010 blocked by external dependency update
589
-
590
- ### Next Sprint
591
- - Focus on remaining security items
592
- - Continue coverage improvement
593
- ```
594
-
595
- ---
596
-
597
- ## Configuration
598
-
599
- ```yaml
600
- # proagents.config.yaml
601
-
602
- technical_debt:
603
- tracking:
604
- enabled: true
605
- registry_path: ".proagents/debt/registry.yaml"
606
-
607
- assessment:
608
- run_on_init: true
609
- run_weekly: true
610
-
611
- thresholds:
612
- critical_block: true
613
- high_warn: true
614
- medium_track: true
615
- low_track: true
616
-
617
- reduction:
618
- strategy: "touch_and_fix"
619
- sprint_allocation: 20%
620
- suggest_fixes: true
621
-
622
- prevention:
623
- new_code_standards: true
624
- block_new_debt: false # Suggest, don't block
625
-
626
- reporting:
627
- weekly_report: true
628
- pr_comments: true
629
- dashboard: true
630
- ```
631
-
632
- ---
633
-
634
- ## Commands
635
-
636
- | Command | Description |
637
- |---------|-------------|
638
- | `pa:debt-assess` | Run debt assessment |
639
- | `pa:debt-status` | View debt dashboard |
640
- | `pa:debt-list` | List all debt items |
641
- | `pa:debt-add` | Add debt item manually |
642
- | `pa:debt-resolve [id]` | Mark item as resolved |
643
- | `pa:debt-report` | Generate debt report |
644
- | `pa:debt-trends` | View debt trends |