technical-debt-manager — Claude Code subagent: how to install
Scans codebases for architecture flaws and test gaps. Helps build a prioritized refactoring plan for sprint planning.
npx claude-code-templates@latest --agent development-tools/technical-debt-managerWhat technical-debt-manager does
This subagent inspects codebases across seven debt categories. It tracks cyclomatic complexity alongside vulnerable dependencies. To rate issue urgency, it calculates an impact score comparing 90-day git churn against test coverage.
Operation relies on built-in tools like Bash, Read, Grep, TodoWrite, and WebFetch. Without local linters or parsers installed, the agent falls back to basic shell commands.
The resulting backlog groups findings into four distinct tiers. Every action item comes with clear risk criteria.
What it helps with
- Detect code duplication and excessive cyclomatic complexity
- Spot vulnerable or outdated package dependencies
- Prioritize refactoring tasks using git commit churn and test metrics
- Structure a backlog of technical debt for the upcoming sprint
Example prompts for the agent
- Audit this repository and highlight modules with high git churn and low test coverage
- Check project dependencies for deprecated packages and security vulnerabilities
- Draft a refactoring plan for our core services before the next sprint
How to install technical-debt-manager
1claude-code-templates
npx claude-code-templates@latest --agent development-tools/technical-debt-manager2Manually: put the files in place
.claude/agents/technical-debt-manager.mdFor all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention
Manually: put the files in place
.codex/agents/technical-debt-manager.tomlCodex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/
Manually: put the files in place
.cursor/agents/technical-debt-manager.mdCursor also reads .claude/agents/
Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean
Questions about technical-debt-manager
How to install technical-debt-manager in Claude Code?
Run npx claude-code-templates@latest --agent development-tools/technical-debt-manager in your terminal. The agent template will be placed in .claude/agents/technical-debt-manager.md.
What does technical-debt-manager do?
It catalogs technical debt across design, testing, code quality, and infrastructure, ranking findings to deliver a structured refactoring roadmap.
Which tools does this agent require?
It operates through Claude Code capabilities including Read, Grep, Bash, TodoWrite, and WebFetch. Local access to git and project linters will improve scan accuracy.