@patricio0312rev/skillset 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +29 -0
- package/LICENSE +21 -0
- package/README.md +176 -0
- package/bin/cli.js +37 -0
- package/package.json +55 -0
- package/src/commands/init.js +301 -0
- package/src/index.js +168 -0
- package/src/lib/config.js +200 -0
- package/src/lib/generator.js +166 -0
- package/src/utils/display.js +95 -0
- package/src/utils/readme.js +196 -0
- package/src/utils/tool-specific.js +233 -0
- package/templates/ai-engineering/agent-orchestration-planner/ SKILL.md +266 -0
- package/templates/ai-engineering/cost-latency-optimizer/ SKILL.md +270 -0
- package/templates/ai-engineering/doc-to-vector-dataset-generator/ SKILL.md +239 -0
- package/templates/ai-engineering/evaluation-harness/ SKILL.md +219 -0
- package/templates/ai-engineering/guardrails-safety-filter-builder/ SKILL.md +226 -0
- package/templates/ai-engineering/llm-debugger/ SKILL.md +283 -0
- package/templates/ai-engineering/prompt-regression-tester/ SKILL.md +216 -0
- package/templates/ai-engineering/prompt-template-builder/ SKILL.md +393 -0
- package/templates/ai-engineering/rag-pipeline-builder/ SKILL.md +244 -0
- package/templates/ai-engineering/tool-function-schema-designer/ SKILL.md +219 -0
- package/templates/architecture/adr-writer/ SKILL.md +250 -0
- package/templates/architecture/api-versioning-deprecation-planner/ SKILL.md +331 -0
- package/templates/architecture/domain-model-boundaries-mapper/ SKILL.md +300 -0
- package/templates/architecture/migration-planner/ SKILL.md +376 -0
- package/templates/architecture/performance-budget-setter/ SKILL.md +318 -0
- package/templates/architecture/reliability-strategy-builder/ SKILL.md +286 -0
- package/templates/architecture/rfc-generator/ SKILL.md +362 -0
- package/templates/architecture/scalability-playbook/ SKILL.md +279 -0
- package/templates/architecture/system-design-generator/ SKILL.md +339 -0
- package/templates/architecture/tech-debt-prioritizer/ SKILL.md +329 -0
- package/templates/backend/api-contract-normalizer/ SKILL.md +487 -0
- package/templates/backend/api-endpoint-generator/ SKILL.md +415 -0
- package/templates/backend/auth-module-builder/ SKILL.md +99 -0
- package/templates/backend/background-jobs-designer/ SKILL.md +166 -0
- package/templates/backend/caching-strategist/ SKILL.md +190 -0
- package/templates/backend/error-handling-standardizer/ SKILL.md +174 -0
- package/templates/backend/rate-limiting-abuse-protection/ SKILL.md +147 -0
- package/templates/backend/rbac-permissions-builder/ SKILL.md +158 -0
- package/templates/backend/service-layer-extractor/ SKILL.md +269 -0
- package/templates/backend/webhook-receiver-hardener/ SKILL.md +211 -0
- package/templates/ci-cd/artifact-sbom-publisher/ SKILL.md +236 -0
- package/templates/ci-cd/caching-strategy-optimizer/ SKILL.md +195 -0
- package/templates/ci-cd/deployment-checklist-generator/ SKILL.md +381 -0
- package/templates/ci-cd/github-actions-pipeline-creator/ SKILL.md +348 -0
- package/templates/ci-cd/monorepo-ci-optimizer/ SKILL.md +298 -0
- package/templates/ci-cd/preview-environments-builder/ SKILL.md +187 -0
- package/templates/ci-cd/quality-gates-enforcer/ SKILL.md +342 -0
- package/templates/ci-cd/release-automation-builder/ SKILL.md +281 -0
- package/templates/ci-cd/rollback-workflow-builder/ SKILL.md +372 -0
- package/templates/ci-cd/secrets-env-manager/ SKILL.md +242 -0
- package/templates/db-management/backup-restore-runbook-generator/ SKILL.md +505 -0
- package/templates/db-management/data-integrity-auditor/ SKILL.md +505 -0
- package/templates/db-management/data-retention-archiving-planner/ SKILL.md +430 -0
- package/templates/db-management/data-seeding-fixtures-builder/ SKILL.md +375 -0
- package/templates/db-management/db-performance-watchlist/ SKILL.md +425 -0
- package/templates/db-management/etl-sync-job-builder/ SKILL.md +457 -0
- package/templates/db-management/multi-tenant-safety-checker/ SKILL.md +398 -0
- package/templates/db-management/prisma-migration-assistant/ SKILL.md +379 -0
- package/templates/db-management/schema-consistency-checker/ SKILL.md +440 -0
- package/templates/db-management/sql-query-optimizer/ SKILL.md +324 -0
- package/templates/foundation/changelog-writer/ SKILL.md +431 -0
- package/templates/foundation/code-formatter-installer/ SKILL.md +320 -0
- package/templates/foundation/codebase-summarizer/ SKILL.md +360 -0
- package/templates/foundation/dependency-doctor/ SKILL.md +163 -0
- package/templates/foundation/dev-environment-bootstrapper/ SKILL.md +259 -0
- package/templates/foundation/dev-onboarding-builder/ SKILL.md +556 -0
- package/templates/foundation/docs-starter-kit/ SKILL.md +574 -0
- package/templates/foundation/explaining-code/SKILL.md +13 -0
- package/templates/foundation/git-hygiene-enforcer/ SKILL.md +455 -0
- package/templates/foundation/project-scaffolder/ SKILL.md +65 -0
- package/templates/foundation/project-scaffolder/references/templates.md +126 -0
- package/templates/foundation/repo-structure-linter/ SKILL.md +0 -0
- package/templates/foundation/repo-structure-linter/references/conventions.md +98 -0
- package/templates/frontend/animation-micro-interaction-pack/ SKILL.md +41 -0
- package/templates/frontend/component-scaffold-generator/ SKILL.md +562 -0
- package/templates/frontend/design-to-component-translator/ SKILL.md +547 -0
- package/templates/frontend/form-wizard-builder/ SKILL.md +553 -0
- package/templates/frontend/frontend-refactor-planner/ SKILL.md +37 -0
- package/templates/frontend/i18n-frontend-implementer/ SKILL.md +44 -0
- package/templates/frontend/modal-drawer-system/ SKILL.md +377 -0
- package/templates/frontend/page-layout-builder/ SKILL.md +630 -0
- package/templates/frontend/state-ux-flow-builder/ SKILL.md +23 -0
- package/templates/frontend/table-builder/ SKILL.md +350 -0
- package/templates/performance/alerting-dashboard-builder/ SKILL.md +162 -0
- package/templates/performance/backend-latency-profiler-helper/ SKILL.md +108 -0
- package/templates/performance/caching-cdn-strategy-planner/ SKILL.md +150 -0
- package/templates/performance/capacity-planning-helper/ SKILL.md +242 -0
- package/templates/performance/core-web-vitals-tuner/ SKILL.md +126 -0
- package/templates/performance/incident-runbook-generator/ SKILL.md +162 -0
- package/templates/performance/load-test-scenario-builder/ SKILL.md +256 -0
- package/templates/performance/observability-setup/ SKILL.md +232 -0
- package/templates/performance/postmortem-writer/ SKILL.md +203 -0
- package/templates/performance/structured-logging-standardizer/ SKILL.md +122 -0
- package/templates/security/auth-security-reviewer/ SKILL.md +428 -0
- package/templates/security/dependency-vulnerability-triage/ SKILL.md +495 -0
- package/templates/security/input-validation-sanitization-auditor/ SKILL.md +76 -0
- package/templates/security/pii-redaction-logging-policy-builder/ SKILL.md +65 -0
- package/templates/security/rbac-policy-tester/ SKILL.md +80 -0
- package/templates/security/secrets-scanner/ SKILL.md +462 -0
- package/templates/security/secure-headers-csp-builder/ SKILL.md +404 -0
- package/templates/security/security-incident-playbook-generator/ SKILL.md +76 -0
- package/templates/security/security-pr-checklist-skill/ SKILL.md +62 -0
- package/templates/security/threat-model-generator/ SKILL.md +394 -0
- package/templates/testing/contract-testing-builder/ SKILL.md +492 -0
- package/templates/testing/coverage-strategist/ SKILL.md +436 -0
- package/templates/testing/e2e-test-builder/ SKILL.md +382 -0
- package/templates/testing/flaky-test-detective/ SKILL.md +416 -0
- package/templates/testing/integration-test-builder/ SKILL.md +525 -0
- package/templates/testing/mocking-assistant/ SKILL.md +383 -0
- package/templates/testing/snapshot-test-refactorer/ SKILL.md +375 -0
- package/templates/testing/test-data-factory-builder/ SKILL.md +449 -0
- package/templates/testing/test-reporting-triage-skill/ SKILL.md +469 -0
- package/templates/testing/unit-test-generator/ SKILL.md +548 -0
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: tech-debt-prioritizer
|
|
3
|
+
description: Scores and prioritizes technical debt by impact, risk, and effort. Provides ranked backlog with ROI analysis and quarterly paydown recommendations. Use for "tech debt", "technical debt management", "code quality", or "refactoring priorities".
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Tech Debt Prioritizer
|
|
7
|
+
|
|
8
|
+
Systematically prioritize and pay down technical debt.
|
|
9
|
+
|
|
10
|
+
## Scoring Rubric
|
|
11
|
+
|
|
12
|
+
### Impact Score (1-10)
|
|
13
|
+
|
|
14
|
+
**10 - Critical:**
|
|
15
|
+
|
|
16
|
+
- Prevents new features
|
|
17
|
+
- Causes frequent prod incidents
|
|
18
|
+
- Blocks multiple teams
|
|
19
|
+
|
|
20
|
+
**7-9 - High:**
|
|
21
|
+
|
|
22
|
+
- Significantly slows development
|
|
23
|
+
- Causes occasional incidents
|
|
24
|
+
- Affects one team heavily
|
|
25
|
+
|
|
26
|
+
**4-6 - Medium:**
|
|
27
|
+
|
|
28
|
+
- Moderate development friction
|
|
29
|
+
- Rare incidents
|
|
30
|
+
- Workarounds exist
|
|
31
|
+
|
|
32
|
+
**1-3 - Low:**
|
|
33
|
+
|
|
34
|
+
- Minor annoyance
|
|
35
|
+
- No incidents
|
|
36
|
+
- Easy workarounds
|
|
37
|
+
|
|
38
|
+
### Risk Score (1-10)
|
|
39
|
+
|
|
40
|
+
**10 - Critical:**
|
|
41
|
+
|
|
42
|
+
- Security vulnerability
|
|
43
|
+
- Data integrity issues
|
|
44
|
+
- Legal/compliance risk
|
|
45
|
+
|
|
46
|
+
**7-9 - High:**
|
|
47
|
+
|
|
48
|
+
- Potential data loss
|
|
49
|
+
- System instability
|
|
50
|
+
- Vendor end-of-life soon
|
|
51
|
+
|
|
52
|
+
**4-6 - Medium:**
|
|
53
|
+
|
|
54
|
+
- Performance degradation
|
|
55
|
+
- Occasional failures
|
|
56
|
+
- Deprecated but working
|
|
57
|
+
|
|
58
|
+
**1-3 - Low:**
|
|
59
|
+
|
|
60
|
+
- Code quality issues
|
|
61
|
+
- Minor bugs
|
|
62
|
+
- Style inconsistencies
|
|
63
|
+
|
|
64
|
+
### Effort Score (1-10)
|
|
65
|
+
|
|
66
|
+
**10 - Herculean:**
|
|
67
|
+
|
|
68
|
+
- 3+ months
|
|
69
|
+
- Multiple teams
|
|
70
|
+
- High risk changes
|
|
71
|
+
|
|
72
|
+
**7-9 - Large:**
|
|
73
|
+
|
|
74
|
+
- 1-3 months
|
|
75
|
+
- One team
|
|
76
|
+
- Medium risk
|
|
77
|
+
|
|
78
|
+
**4-6 - Medium:**
|
|
79
|
+
|
|
80
|
+
- 1-4 weeks
|
|
81
|
+
- 1-2 developers
|
|
82
|
+
- Low risk
|
|
83
|
+
|
|
84
|
+
**1-3 - Small:**
|
|
85
|
+
|
|
86
|
+
- Days
|
|
87
|
+
- Single developer
|
|
88
|
+
- Very low risk
|
|
89
|
+
|
|
90
|
+
## Priority Formula
|
|
91
|
+
|
|
92
|
+
```
|
|
93
|
+
Priority Score = (Impact * 2 + Risk * 1.5) / Effort
|
|
94
|
+
|
|
95
|
+
Higher score = Higher priority
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
## Tech Debt Inventory
|
|
99
|
+
|
|
100
|
+
```markdown
|
|
101
|
+
| ID | Title | Impact | Risk | Effort | Score | Owner |
|
|
102
|
+
| ------ | ---------------------- | ------ | ---- | ------ | ----- | --------- |
|
|
103
|
+
| TD-001 | Legacy auth system | 9 | 10 | 8 | 3.7 | Auth Team |
|
|
104
|
+
| TD-002 | No database indexes | 8 | 7 | 3 | 7.8 | Backend |
|
|
105
|
+
| TD-003 | Monolithic build | 7 | 4 | 6 | 4.0 | DevOps |
|
|
106
|
+
| TD-004 | Duplicate API logic | 6 | 3 | 4 | 4.1 | Backend |
|
|
107
|
+
| TD-005 | Outdated dependencies | 5 | 8 | 2 | 9.0 | All Teams |
|
|
108
|
+
| TD-006 | Missing error handling | 4 | 6 | 3 | 5.7 | Backend |
|
|
109
|
+
| TD-007 | Poor test coverage | 4 | 5 | 7 | 2.3 | All Teams |
|
|
110
|
+
| TD-008 | Inconsistent naming | 3 | 2 | 5 | 1.6 | Frontend |
|
|
111
|
+
|
|
112
|
+
**Sorted by Priority Score:**
|
|
113
|
+
|
|
114
|
+
1. TD-005: Outdated dependencies (9.0)
|
|
115
|
+
2. TD-002: No database indexes (7.8)
|
|
116
|
+
3. TD-006: Missing error handling (5.7)
|
|
117
|
+
4. TD-004: Duplicate API logic (4.1)
|
|
118
|
+
5. TD-003: Monolithic build (4.0)
|
|
119
|
+
...
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
## Detailed Assessment Template
|
|
123
|
+
|
|
124
|
+
```markdown
|
|
125
|
+
## TD-002: No Database Indexes
|
|
126
|
+
|
|
127
|
+
### Description
|
|
128
|
+
|
|
129
|
+
Critical queries lack indexes, causing slow response times and high CPU usage.
|
|
130
|
+
|
|
131
|
+
### Impact (8/10)
|
|
132
|
+
|
|
133
|
+
- Search queries take 2-5 seconds (should be <500ms)
|
|
134
|
+
- Database CPU at 85% during peak hours
|
|
135
|
+
- User complaints about slow searches
|
|
136
|
+
- Blocks performance optimization work
|
|
137
|
+
|
|
138
|
+
### Risk (7/10)
|
|
139
|
+
|
|
140
|
+
- Database may crash under load
|
|
141
|
+
- Losing customers to slow experience
|
|
142
|
+
- Cannot scale without addressing
|
|
143
|
+
|
|
144
|
+
### Effort (3/10)
|
|
145
|
+
|
|
146
|
+
- Identify missing indexes: 2 days
|
|
147
|
+
- Add indexes: 1 day
|
|
148
|
+
- Test performance: 1 day
|
|
149
|
+
- Deploy: 1 day
|
|
150
|
+
**Total: 5 days**
|
|
151
|
+
|
|
152
|
+
### ROI Analysis
|
|
153
|
+
|
|
154
|
+
**Cost:** 5 developer-days = $5,000
|
|
155
|
+
**Benefit:**
|
|
156
|
+
|
|
157
|
+
- 80% faster queries
|
|
158
|
+
- 50% less DB CPU
|
|
159
|
+
- Better user experience
|
|
160
|
+
- Enables scaling
|
|
161
|
+
|
|
162
|
+
**ROI:** Very High
|
|
163
|
+
|
|
164
|
+
### Implementation Plan
|
|
165
|
+
|
|
166
|
+
1. Run EXPLAIN on slow queries
|
|
167
|
+
2. Identify missing indexes
|
|
168
|
+
3. Add indexes in development
|
|
169
|
+
4. Test query performance
|
|
170
|
+
5. Deploy to production (off-peak)
|
|
171
|
+
6. Monitor impact
|
|
172
|
+
|
|
173
|
+
### Dependencies
|
|
174
|
+
|
|
175
|
+
- None (can start immediately)
|
|
176
|
+
|
|
177
|
+
### Owner
|
|
178
|
+
|
|
179
|
+
Backend Team
|
|
180
|
+
|
|
181
|
+
### Status
|
|
182
|
+
|
|
183
|
+
Backlog → Prioritized for Q1
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
## Quarterly Paydown Plan
|
|
187
|
+
|
|
188
|
+
```markdown
|
|
189
|
+
# Q1 2024 Tech Debt Paydown
|
|
190
|
+
|
|
191
|
+
**Budget:** 20% of engineering time (4 weeks total)
|
|
192
|
+
|
|
193
|
+
## Week 1-2: High Priority
|
|
194
|
+
|
|
195
|
+
- TD-005: Update dependencies (2 days)
|
|
196
|
+
- TD-002: Add database indexes (5 days)
|
|
197
|
+
- TD-006: Add error handling (3 days)
|
|
198
|
+
|
|
199
|
+
## Week 3: Medium Priority
|
|
200
|
+
|
|
201
|
+
- TD-004: Eliminate duplicate logic (5 days)
|
|
202
|
+
|
|
203
|
+
## Week 4: Quick Wins
|
|
204
|
+
|
|
205
|
+
- TD-012: Fix broken tests (2 days)
|
|
206
|
+
- TD-015: Remove dead code (2 days)
|
|
207
|
+
- TD-018: Update README (1 day)
|
|
208
|
+
|
|
209
|
+
## Success Metrics
|
|
210
|
+
|
|
211
|
+
- Reduce P1 incidents by 30%
|
|
212
|
+
- Improve deployment confidence
|
|
213
|
+
- Decrease development friction
|
|
214
|
+
- Team morale improvement
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
## Decision Framework
|
|
218
|
+
|
|
219
|
+
### When to Pay Down Debt
|
|
220
|
+
|
|
221
|
+
**Pay down NOW if:**
|
|
222
|
+
|
|
223
|
+
- Security vulnerability
|
|
224
|
+
- Causing frequent incidents
|
|
225
|
+
- Blocking critical features
|
|
226
|
+
- High impact, low effort
|
|
227
|
+
|
|
228
|
+
**Pay down SOON if:**
|
|
229
|
+
|
|
230
|
+
- Slowing development significantly
|
|
231
|
+
- Medium-high risk
|
|
232
|
+
- Reasonable effort
|
|
233
|
+
|
|
234
|
+
**Defer if:**
|
|
235
|
+
|
|
236
|
+
- Low impact and low risk
|
|
237
|
+
- Very high effort
|
|
238
|
+
- Better alternatives exist
|
|
239
|
+
|
|
240
|
+
### When to Increase Budget
|
|
241
|
+
|
|
242
|
+
```markdown
|
|
243
|
+
**Indicators debt budget needs increase:**
|
|
244
|
+
|
|
245
|
+
- Velocity declining
|
|
246
|
+
- Incident rate increasing
|
|
247
|
+
- Developer satisfaction down
|
|
248
|
+
- Onboarding time increasing
|
|
249
|
+
- "It's too hard to..." complaints
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
## Tech Debt Registry
|
|
253
|
+
|
|
254
|
+
```typescript
|
|
255
|
+
interface TechDebt {
|
|
256
|
+
id: string;
|
|
257
|
+
title: string;
|
|
258
|
+
description: string;
|
|
259
|
+
|
|
260
|
+
// Scoring
|
|
261
|
+
impact: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
|
262
|
+
risk: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
|
263
|
+
effort: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
|
264
|
+
|
|
265
|
+
// Metadata
|
|
266
|
+
owner: string;
|
|
267
|
+
createdAt: Date;
|
|
268
|
+
targetQuarter?: string;
|
|
269
|
+
status: "backlog" | "prioritized" | "in-progress" | "done";
|
|
270
|
+
|
|
271
|
+
// Context
|
|
272
|
+
affectedSystems: string[];
|
|
273
|
+
relatedDebt: string[];
|
|
274
|
+
|
|
275
|
+
// Plan
|
|
276
|
+
implementationPlan?: string;
|
|
277
|
+
roi?: "low" | "medium" | "high" | "very-high";
|
|
278
|
+
}
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
## Quarterly Review Process
|
|
282
|
+
|
|
283
|
+
```markdown
|
|
284
|
+
1. **Collect new debt** (Week 1)
|
|
285
|
+
|
|
286
|
+
- Team submits tech debt items
|
|
287
|
+
- Engineering leads review and score
|
|
288
|
+
|
|
289
|
+
2. **Prioritize** (Week 2)
|
|
290
|
+
|
|
291
|
+
- Calculate priority scores
|
|
292
|
+
- Review high-priority items
|
|
293
|
+
- Assign owners
|
|
294
|
+
|
|
295
|
+
3. **Plan quarter** (Week 3)
|
|
296
|
+
|
|
297
|
+
- Allocate 10-20% capacity
|
|
298
|
+
- Schedule work
|
|
299
|
+
- Set success metrics
|
|
300
|
+
|
|
301
|
+
4. **Review results** (End of quarter)
|
|
302
|
+
- Measure impact
|
|
303
|
+
- Adjust process
|
|
304
|
+
- Celebrate wins
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
## Best Practices
|
|
308
|
+
|
|
309
|
+
1. **Track systematically**: Don't rely on memory
|
|
310
|
+
2. **Score objectively**: Use rubric consistently
|
|
311
|
+
3. **Regular reviews**: Quarterly minimum
|
|
312
|
+
4. **Budget time**: 10-20% of sprint capacity
|
|
313
|
+
5. **Quick wins**: Include easy items for morale
|
|
314
|
+
6. **Measure impact**: Track improvements
|
|
315
|
+
7. **Make visible**: Dashboard, reports
|
|
316
|
+
8. **No judgment**: Tech debt is normal
|
|
317
|
+
|
|
318
|
+
## Output Checklist
|
|
319
|
+
|
|
320
|
+
- [ ] Tech debt items catalogued
|
|
321
|
+
- [ ] Impact/risk/effort scores assigned
|
|
322
|
+
- [ ] Priority scores calculated
|
|
323
|
+
- [ ] Items ranked by priority
|
|
324
|
+
- [ ] Top 10 items detailed
|
|
325
|
+
- [ ] Quarterly plan created
|
|
326
|
+
- [ ] Budget allocated (% of time)
|
|
327
|
+
- [ ] Owners assigned
|
|
328
|
+
- [ ] Success metrics defined
|
|
329
|
+
- [ ] Review cadence established
|