managing-tech-debt
npx skills add https://github.com/liqiongyu/lenny_skills_plus --skill managing-tech-debt
Agent 安装分布
Skill 文档
Managing Tech Debt
Scope
Covers
- Identifying and making technical debt visible (including user-visible symptoms)
- Prioritizing debt work using a transparent scoring model
- Deciding refactor vs migrate vs rebuild vs deprecate with explicit criteria
- Planning incremental modernization (avoid ârewrite trapsâ)
- Building a business case for hard-to-measure investments (metrics + small tests)
- Creating an execution-ready paydown plan with risks, milestones, and comms
When to use
- âCreate a tech debt register and prioritize what to fix next quarter.â
- âWeâre considering a rewrite/migrationâhelp us make the call and plan it safely.â
- âOur legacy system slows deliveryâbuild a paydown plan with milestones and metrics.â
- âLeadership wonât fund refactorsâquantify impact and propose a measurable plan.â
When NOT to use
- You need to respond to an active incident (use incident response/runbooks)
- You only need to fix a small localized bug or a single refactor (just do the work)
- You need a full architecture redesign from scratch without existing constraints (separate architecture/design process)
- You need roadmap prioritization across many product bets (use
prioritizing-roadmap)
Inputs
Minimum required
- System/service(s) in scope + brief description
- Primary pain: reliability risk, velocity tax, scalability/perf, security/compliance, operability, UX fragmentation, cost
- Time horizon (e.g., â6 weeksâ, ânext quarterâ, â12 monthsâ) + any fixed deadlines
- Stakeholders + decision-maker(s) (Eng/PM/Design/Leadership)
- Constraints: team capacity, freeze windows, compliance/security requirements
Missing-info strategy
- Ask up to 5 questions from references/INTAKE.md, then proceed with explicit assumptions.
- If estimates are unavailable, use ranges and label confidence.
- Do not request secrets/credentials; use redacted or synthetic identifiers if needed.
Outputs (deliverables)
Produce a Tech Debt Management Pack in Markdown (in-chat; or as files if requested):
- Context snapshot (scope, pains, constraints, stakeholders, success definition)
- Tech Debt Register (inventory table with owners, symptoms, impact, effort range, risks)
- Scoring + prioritization (model + ranked list + rationale)
- Strategy decision(s) (refactor/migrate/rebuild/deprecate) with explicit criteria
- Execution plan (incremental milestones, sequencing, resourcing, decommission plan)
- Migration + rollback plan (if applicable; includes âdual-runâ cost/plan)
- Metrics plan (baseline, targets, leading indicators, instrumentation gaps, small tests)
- Risks / Open questions / Next steps (always included)
Templates: references/TEMPLATES.md
Workflow (8 steps)
1) Intake + decision framing
- Inputs: User context; references/INTAKE.md.
- Actions: Confirm the decision(s) to be made, scope boundaries, time horizon, and constraints. Define what âsuccessâ means (e.g., fewer incidents, faster deploys, simpler UX integration).
- Outputs: Context snapshot (draft).
- Checks: A stakeholder can answer: âWhat will we decide/do differently after reading this?â
2) Surface the âdebt symptomsâ (user + engineering)
- Inputs: Known pain points; incident/perf history if available; qualitative reports.
- Actions: List user-visible symptoms (inconsistent UX, broken integrations, slow workflows) and engineering symptoms (deploy pain, flaky tests, high MTTR, brittle dependencies). Map symptoms â suspected debt sources.
- Outputs: Symptoms â suspected causes map (bullet list).
- Checks: At least 1 symptom is tied to a measurable signal (latency, errors, cycle time, support volume) or explicitly marked âneeds instrumentationâ.
3) Build the Tech Debt Register (inventory)
- Inputs: Repos/services/components in scope; symptoms map.
- Actions: Create a debt register with a consistent schema (type, location, current workaround, impact, risk, rough effort, dependencies, owner). Separate âmust fixâ from ânice to have.â
- Outputs: Tech Debt Register (table).
- Checks: Every item has an owner, an impact statement, and an effort range (even if coarse).
4) Score and prioritize (make trade-offs explicit)
- Inputs: Debt register.
- Actions: Score items on impact and risk (user harm, reliability, security, velocity tax) vs effort and sequencing constraints. Produce a ranked list and explain the top 5â10.
- Outputs: Scoring model + prioritized list.
- Checks: Top-ranked items are defensible: rationale references symptoms/signals and constraints, not âtasteâ.
5) Decide strategy per top item: refactor vs migrate vs rebuild vs deprecate
- Inputs: Top-ranked debt items; constraints; required capabilities (incl. operational flexibility).
- Actions: For each top item, pick a strategy and document options + criteria. If proposing a rebuild, include a plan to avoid the rewrite trap: migration phases, parallel support cost, cutover and decommission.
- Outputs: Strategy decision(s) + decision memo(s).
- Checks: For any ârebuild/migrateâ decision, the plan includes a decommission path and acknowledges dual-run cost.
6) Create the incremental execution plan
- Inputs: Strategy decisions; constraints; dependencies.
- Actions: Convert work into milestones (thin slices), define sequencing, and set resourcing/capacity (e.g., % per sprint). Add explicit âdone means decommissionedâ criteria for migrations.
- Outputs: Execution plan (milestones + owners + timeline).
- Checks: Each milestone has a measurable acceptance criterion and a rollback/stop condition.
7) Quantify value: metrics + small tests
- Inputs: Baselines (or estimates); execution plan.
- Actions: Define metrics that make the investment fundable (e.g., incident rate, MTTR, p95 latency, deploy frequency, lead time, cost). Where impact is hard to measure, propose a small test (limited rollout, canary, instrumentation spike).
- Outputs: Metrics plan (baseline â target â measurement method).
- Checks: Metrics include at least 1 leading indicator and 1 guardrail; instrumentation gaps are listed with owners.
8) Align stakeholders + quality gate + finalization
- Inputs: Draft pack.
- Actions: Add stakeholder cadence (updates, review gates). Run references/CHECKLISTS.md and score using references/RUBRIC.md. Finalize Risks / Open questions / Next steps.
- Outputs: Final Tech Debt Management Pack.
- Checks: Plan is incrementally executable, risks are explicit, and the first milestone can start immediately.
Quality gate (required)
- Use references/CHECKLISTS.md and references/RUBRIC.md.
- Always include: Risks, Open questions, Next steps.
Examples
Example 1 (quarterly planning): âUse managing-tech-debt. System: payments-service. Pain: frequent incidents + slow delivery. Horizon: next quarter. Output: a Tech Debt Management Pack with a prioritized register and paydown plan.â
Example 2 (rewrite decision): âWe want to rebuild our pricing engine. Compare refactor vs rebuild, include migration phases, dual-run costs, rollback plan, and a metrics-based justification.â
Boundary example: âTell me whether tech debt is bad and how to avoid it.â
Response: explain this skill produces an actionable pack; ask for system + pain + horizon; otherwise provide a minimal intake checklist and an example register schema.