tech-debt-collector
БесплатноБез исполняемых скриптовНе проверенEvidence-gated tech debt and bloat detection. Scouts signals, ranks by materiality, validates by refutation, reports up to 5 findings with actions.
от rp1-run★ 38 звёзд на GitHubОб этом скилле
Tech Debt Collector Orchestrator
Role: Pure orchestrator for evidence-gated tech debt and software bloat detection.
This workflow identifies candidate tech debt signals via a scout agent, clusters discoveries by root cause, ranks by materiality using burden signals, validates claims via hypothesis-tester, and produces a final report with up to 5 findings, each with concrete remediation actions and rollback plans.
Key Constraints:
- Analysis-only: no source code edits or project state changes
- Scope: supports whole project, specific file path, branch, or PR diff
- Output: 0-5 findings per run (0 findings is valid success)
- Confidence: C1-C4 ordinal tier system only (no C5)
- Non-destructive runs: work artifacts (
hypotheses.md,leads.json,report.md) live at fixed paths underfeatures/tech-debt-collector/; at run start any prior versions are archived intofeatures/tech-debt-collector/runs/<prior-run-id>/(§1.4) before the new run writes, so completed runs remain retrievable
§CTX: Use the pre-resolved SCOPE, LENS, RUN_ID, projectRoot, kbRoot, workRoot, and codeRoot values from the generated Workflow Bootstrap section. Do not hardcode .rp1/work/ or .rp1/context/ paths.
References
| File | Purpose | When to Load |
|---|---|---|
references/validation-scoring.md |
C1-C4 confidence tiers, evidence caps, C3+ promotion gate | Validating phase, after §3.3 collects hypothesis-tester results |
references/report-format.md |
Finding template, section ordering, artifact registration | Reporting phase, after §4.1 emits the reporting state |
references/run-archival.md |
Archiving a prior run's artifacts | Scoping phase, only when prior-run artifacts exist |
references/scope-resolution.md |
SCOPE classification order, PR-reference forms, cross-repository guard | Scoping phase, at §1.1 |
references/lead-processing.md |
Root-cause clustering and materiality ranking | Scouting phase, once the scout returns leads |
§1. Phase 1: Scoping
Objective: Parse and validate the scope parameter, resolving the target for analysis.
Scope Types:
project— Analyze entire project from root/path/to/file— Analyze specific file or directorybranch-name— Analyze named branch (relative to main)pull/NNN/diff— Analyze PR diff only
1.1 Validate Scope and Resolve Target
Read references/scope-resolution.md and follow it to set SCOPE_TYPE and TARGET. It carries the classification order, accepted PR-reference forms, and the cross-repository guard.
1.2 Pin the Analyzed Snapshot (Base/Head SHAs)
Resolve immutable BASE_COMMIT/HEAD_COMMIT SHAs NOW — before any scout runs — so the report identifies the exact snapshot the analysis observed. PR and branch refs are mutable; capturing them after analysis (or only at reporting) can attribute findings to commits that were never analyzed. §4.2 re-verifies these values at reporting time and fails closed if the refs moved mid-run.
case "$SCOPE_TYPE" in
pr-diff)
BASE_COMMIT=$(gh pr view "$TARGET" --json baseRefOid --jq '.baseRefOid')
HEAD_COMMIT=$(gh pr view "$TARGET" --json headRefOid --jq '.headRefOid')
;;
branch)
BASE_COMMIT=$(git merge-base main "$TARGET")
HEAD_COMMIT=$(git rev-parse "$TARGET")
;;
project|file)
BASE_COMMIT="N/A"
HEAD_COMMIT=$(git rev-parse HEAD)
;;
esac
This is read-only VCS metadata capture, permitted under §6.1.
1.3 Emit Scoping State
rp1 agent-tools emit \
--workflow tech-debt-collector \
--type status_change \
--run-id {RUN_ID} \
--step scoping \
--data "{\"status\": \"running\", \"scope_type\": \"$SCOPE_TYPE\", \"target\": \"$TARGET\", \"base_commit\": \"$BASE_COMMIT\", \"head_commit\": \"$HEAD_COMMIT\"}"
1.4 Archive Prior Run Artifacts
If a prior run left artifacts for this scope, read references/run-archival.md and follow it. Otherwise continue to §1.5.
1.5 Transition to Scouting
Scoping validation and archival complete. Proceed to Phase 2.
§2. Phase 2: Scouting
Objective: Dispatch scout agent to discover candidate bloat signals, cluster by root cause, rank by materiality, and select top 8 leads for validation.
2.1 Determine Dispatch Strategy
Based on scope type and lens, decide how many scout dispatches (1-3):
# Strategy: start with primary lens, optionally add secondary lenses
PRIMARY_LENS="$LENS" # From resolved argument (unused-code, over-abstraction, etc.)
DISPATCH_COUNT=1
# For whole-project scope, use 2-3 dispatches for broader coverage
if [ "$SCOPE_TYPE" = "project" ]; then
DISPATCH_COUNT=2
# First: unused-code (primary), Second: over-abstraction
LENSES=("unused-code" "over-abstraction")
elif [ "$SCOPE_TYPE" = "pr-diff" ]; then
DISPATCH_COUNT=2
# For PR diffs: focus on incoming bloat
LENSES=("$PRIMARY_LENS" "speculative-generalization")
else
# Single dispatch for file-level or branch scope
Установить tech-debt-collector в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Bash(echo *)Bash(rp1 *)Bash(git rev-parse *)Bash(gh *)Bash(git merge-base *)Bash(mkdir *)Bash(mv *)Bash(grep *)Bash(sed *)Bash(date *)ReadWriteTaskВложенные файлы
FAQ
Что делает скилл tech-debt-collector?
Evidence-gated tech debt and bloat detection. Scouts signals, ranks by materiality, validates by refutation, reports up to 5 findings with actions.
Как установить скилл tech-debt-collector?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл tech-debt-collector запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic