skills/technical-debt/SKILL.md
Guides deliberate management of technical debt: recognition, tracking, prioritization, and paydown. ALWAYS trigger on "technical debt", "code shortcut", "pay down debt", "debt tracking", "just for now", "temporary hack", "hardcoded value", "copy-paste code", "missing tests", "TODO cleanup", "refactor plan", "debt priority", "interest cost", "boy scout rule", "code quality backlog". Use when taking a shortcut, discovering suboptimal code, planning debt paydown, or quantifying ongoing cost of compromises.
npx skillsauth add aj-geddes/unicorn-team technical-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.
Reckless Prudent
+---------------------+---------------------+
Deliberate | "We don't have | "We must ship |
| time for tests" | now and deal |
| [DANGEROUS] | with consequences"|
| | [STRATEGIC] |
+---------------------+---------------------+
Inadvertent | "What's a | "Now we know how |
| design pattern?" | we should have |
| [INCOMPETENCE] | done it" |
| | [LEARNING] |
+---------------------+---------------------+
| Quadrant | Action | |----------|--------| | Prudent + Deliberate | Target. Track and schedule paydown. | | Inadvertent + Prudent | Acceptable. Convert to tracked item. | | Reckless + Deliberate | Dangerous. Escalate; requires paydown plan before merge. | | Reckless + Inadvertent | Unacceptable. Training issue, not debt. |
except: pass)technical_debt_item:
id: TD-042
type: deliberate # deliberate | inadvertent
quadrant: prudent-deliberate
location: src/auth/login.py:45-89
description: >
Hardcoded session timeout to 30 minutes. Should be
configurable per environment.
why_taken: >
Config system not ready; needed auth for demo.
impact:
- Cannot adjust without redeploy
- Different envs need different values
interest: >
~2 hours per incident, ~3 incidents/month = 72 hours/year
payoff_plan:
effort: 2 hours
tasks:
- Add timeout config to settings
- Update login.py to read config
- Add tests for timeout values
- Deploy to all environments
priority: high
created: 2025-01-15
owner: "@developer"
due_date: 2025-02-01
status: tracked # tracked | scheduled | in_progress | paid
Inline marker format: # TODO(TD-042): Hardcoded timeout, see debt tracker
Trigger: shortcut taken, suboptimal code found, surprising behavior, repeated patterns.
Classify immediately:
TODO(TD-XXX) commentAnnual Interest = Cost per Incident x Incidents per Year
| Frequency | Multiplier | |-----------|-----------| | Daily | x 365 | | Weekly | x 52 | | Monthly | x 12 | | Quarterly | x 4 |
Examples:
Priority Score = Annual Interest / Payoff Effort
| Score | Priority | Payback Period | |-------|----------|---------------| | > 10 | HIGH | < 1 month | | 3-10 | MEDIUM | 1-4 months | | < 3 | LOW | > 4 months |
Examples:
Payment workflow:
debt/TD-042-descriptionstatus: paid, record actual_effortfix(TD-042): make session timeout configurableLeave the code better than you found it.
Small improvements (do these inline):
Large changes (separate commits):
grep -r "TODO\|FIXME\|HACK" src/ | grep -v "TD-[0-9]" # Untracked TODOs
bandit -r src/ # Security issues
pip list --outdated # Stale dependencies
| Don't Say | Do Say | |-----------|--------| | "We have technical debt" | "This shortcut costs us 10 hours/month in bug fixes" | | "We need to refactor" | "Paying this debt reduces deployment from 2h to 15min" | | "The code is messy" | "New features take 3x longer; investing 1 week saves 2 weeks/quarter" | | "We should rewrite it" | "Incremental fixes over 3 sprints eliminate 80% of incidents" |
See references/debt-communication.md for standup, sprint planning, and retrospective templates.
| Anti-Pattern | Fix | |-------------|-----| | Debt Bankruptcy ("rewrite from scratch") | Incremental refactoring with tests | | Hidden Debt (shortcuts without docs) | Document immediately, assign ID | | Eternal TODOs (years-old comments) | Convert to tracked items or delete | | Debt as Excuse ("can't add features") | Quantify impact, prioritize, schedule |
references/debt-examples.md - Before/after examples (TD-050, TD-051, TD-052)references/debt-communication.md - Team communication templatestools
Coordinates the 10X Unicorn agent team with cost-aware model tiering, MCP-aware routing, and workflow fan-out. ALWAYS trigger on "implement", "build", "create", "design system", "deploy", "learn new language", "refactor", "fix bug", "set up CI", "code review", "how long will this take", "estimate", "architecture", "add feature", "write code", "debug", "review PR", "set up pipeline", "migrate", "optimize". Use for any multi-step task, implementation request, architecture decision, or quality enforcement. Different from individual agent skills which handle execution -- this skill handles coordination, routing, model selection, and quality gates.
development
Guides the user through test-first development and test strategy decisions. ALWAYS trigger on "write tests", "TDD", "test coverage", "mock", "test fails", "flaky test", "how to test", "unit test", "integration test", "e2e test", "test structure", "what to test", "test organization", "coverage report", "testing strategy", "arrange act assert". Use when writing new tests, choosing test types, setting up mocking, debugging flaky tests, improving coverage, or designing testable code. Different from qa-security agent which focuses on code review and security audits rather than test authoring.
development
Guides the user through systematic pre-commit quality verification. ALWAYS trigger on "review my code", "check my work", "before commit", "self-review", "quality check", "am I ready to commit", "pre-commit review", "code quality", "verify my changes", "sanity check", "review before merge", "is this ready". Use before any commit, merge, or code review submission.
development
Guides secure development using defense-in-depth and attacker's mindset. ALWAYS trigger on "security review", "vulnerability", "authentication", "authorization", "input validation", "XSS", "SQL injection", "CSRF", "secrets management", "OWASP", "threat model", "security scan", "path traversal", "mass assignment", "privilege escalation", "security headers", "bandit", "dependency audit", "hardening". Use when implementing auth, handling user input, storing secrets, reviewing code for vulnerabilities, or preparing for production deployment. Different from devops skill which covers infrastructure; this covers application-level security patterns.