packages/knowledge-hub/dataset/.skills/capability/assess-debt/SKILL.md
Assesses technical debt using resolution cascade (Argument > Adoption > Assessment). Categorizes debt (code, design, test, documentation, infrastructure), applies prioritization formula (impact x effort), proposes remediation priority. Idempotent: detects existing assessment. Invocable independently or composed by /review.
npx skillsauth add foomakers/pair assess-debtInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Detect, categorize, and prioritize technical debt items. Applies the prioritization framework from technical-debt.md guidelines. Produces a debt report with categorized items, severity, impact/effort scoring, and remediation recommendations.
| Argument | Required | Description |
| -------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| $scope | No | Limit assessment to specific categories: code, design, test, documentation, infrastructure, all (default: all) |
| $choice| No | Pre-identified debt item to assess (e.g., "missing error handling in API layer"). Skips detection, goes directly to categorization and scoring. |
| Skill | Type | Required |
| ------------------ | ---------- | ------------------------------------------------ |
| /record-decision | Capability | No — only if remediation requires a decision |
$choice provided?Check: Is there an existing debt assessment for this codebase/PR? (Look for a recent debt report in the conversation context or PR comments.)
Skip: If no existing assessment, go to Path C.
Act: Present the existing assessment:
Existing debt assessment found ([N items], [date]). Re-assess? (Only if explicitly requested by developer.)
Verify: If developer confirms existing → exit. If re-assessment requested → proceed to Path C.
Scan the codebase or PR changes for debt indicators per category. Follow check → skip → act → verify for each.
TODO, FIXME, HACK, WORKAROUND commentsxit, xdescribe, .skip)For each detected item, apply the prioritization formula:
Act: Assess Impact (1-5):
Act: Assess Effort (1-5):
Act: Calculate Priority Score: Impact × (6 - Effort) (higher = fix first)
Act: Assign Severity based on priority score:
/record-decision for each decision-worthy item:
$type: architectural (if it changes architecture) or $type: non-architectural (if it's a tooling/process change)$topic: debt-remediation-[item]TECH DEBT ASSESSMENT:
├── Items Found: [N total]
├── Categories: Code: [N] | Design: [N] | Test: [N] | Docs: [N] | Infra: [N]
├── Severity: High: [N] | Medium: [N] | Low: [N]
└── Decisions: [N recorded | none needed]
PRIORITIZED ITEMS:
# | Severity | Category | Impact | Effort | Score | Description | Location
---|----------|----------|--------|--------|-------|-------------|----------
1 | High | [cat] | [1-5] | [1-5] | [N] | [desc] | [file:line]
2 | ...
REMEDIATION PLAN (High severity):
1. [item] — [strategy] (est. [effort])
2. ...
RESULT: [N items assessed, N high-priority, N decisions recorded]
When composed by /review:
/assess-debt during the completeness phase (Phase 4).When invoked independently:
/record-decision is the only write action./record-decision is not installed, warn and skip decision recording./record-decision.Impact × (6 - Effort) favors quick wins: high-impact items with low effort get the highest scores.development
Creates or updates a Product Requirements Document through structured template analysis, hypothesis-driven information gathering, and iterative review. Idempotent — detects existing PRD and offers selective section update.
development
Reviews a pull request through a structured 6-phase process: validation, technical review, adoption compliance, completeness check, decision, and optional merge with parent cascade. Composes /verify-quality, /verify-done, /record-decision, /assess-debt (required) and /verify-adoption, /assess-stack (optional with graceful degradation). Output follows the code review template. Idempotent — re-invocation resumes from incomplete phases.
tools
Refines a user story from Todo to Refined state through structured phases: selection, requirements analysis (Given-When-Then), technical analysis, sprint readiness, and documentation. Section-level idempotency — detects partial refinement and resumes. Composes /write-issue for PM tool updates.
testing
Breaks a refined user story into implementation tasks. Task-level idempotency: detects existing tasks and creates only missing ones. Appends condensed Technical Analysis + Task Breakdown (checklist, Dependency Graph, AC Coverage table, detailed tasks) to the story body. Composes /write-issue to update the story issue body. Tasks are documented inline in the story — no separate task issues are created.