This skill should be used when analyzing technical debt in a codebase, documenting code quality issues, creating technical debt registers, or assessing code maintainability. Use this for identifying code smells, architectural issues, dependency problems, missing documentation, security vulnerabilities, and creating comprehensive technical debt documentation.
Systematically identify, analyze, and document technical debt.
Use for:
Don't use when:
generic-feature-developergeneric-code-reviewertest-specialist# Find large files (>500 lines)
find src -name "*.ts" -exec wc -l {} + | awk '$1 > 500' | sort -rn
# Find TODO/FIXME markers
grep -rn "TODO\|FIXME\|HACK\|XXX" src/
# Check for console.log in production code
grep -rn "console.log" src/ --include="*.ts" --include="*.tsx"
# Find TypeScript 'any' usage
grep -rn ": any" src/ --include="*.ts" --include="*.tsx"
# Check outdated dependencies
npm outdated
# Security vulnerabilities
npm audit
# Unused exports (requires ts-unused-exports)
npx ts-unused-exports tsconfig.json
| Category | Examples | | ------------- | ------------------------------------------------------ | | Code Quality | Large files, complex functions, TODO/FIXME markers | | Architectural | Tight coupling, missing abstractions, circular deps | | Test | Missing coverage, fragile tests, slow execution | | Documentation | Missing README, outdated docs, no ADRs | | Dependency | Outdated packages, security vulnerabilities | | Performance | N+1 queries, memory leaks, large bundles | | Security | Missing validation, exposed secrets, XSS/SQL injection |
Code Smells to Check:
any types in TypeScriptDependency Issues:
| Severity | Criteria | Action | | -------- | ------------------------------------- | --------------- | | Critical | Security vulns, data loss risk | Immediate fix | | High | Performance problems, blocking issues | Current sprint | | Medium | Code quality, missing docs | This quarter | | Low | Minor smells, optimizations | When convenient |
| Impact / Effort | Low | Medium | High | | --------------- | --------- | --------- | --------- | | High Impact | Do First | Do Second | Plan & Do | | Medium Impact | Do Second | Plan & Do | Consider | | Low Impact | Quick Win | Consider | Avoid |
## DEBT-001: Description
**Category:** Code Quality | **Severity:** High
**Location:** src/services/UserService.ts
**Description:** Brief description of the issue
**Impact:**
- Business: How it affects delivery
- Technical: Why it's problematic
- Risk: What could go wrong
**Proposed Solution:** What to do about it
**Effort:** Days/hours estimate
**Target:** Sprint/quarter
{
"rules": {
"complexity": ["error", 10],
"max-lines-per-function": ["error", 50],
"max-params": ["error", 5],
"max-depth": ["error", 4]
}
}
| Frequency | Tasks | | --------- | ---------------------------------- | | Weekly | Review TODO/FIXME, update register | | Monthly | Dependency updates, debt review | | Quarterly | Full analysis, architecture review |
After completing debt analysis:
CLAUDE.md - Workflow rulesnpx skills add travisjneuman/tech-debt-analyzer下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer