dev-tech-debt-review
БесплатноБез исполняемых скриптовНе проверенDetect AI/agentic-specific anti-patterns that traditional linters miss. Analyzes tool/agent boundary violations, prompt debt, context window issues, testing…
от diegosouzapw★ 68 звёзд на GitHubОб этом скилле
dev.tech-debt-review
Detect AI/agentic-specific tech debt that traditional linters miss.
User Input
$ARGUMENTS
You MUST consider the user input before proceeding (if not empty).
Usage Modes
| Mode | Command | Scope | When to Use |
|---|---|---|---|
| Changed Files | /dev.tech-debt-review |
Files changed vs main | Before PR (default) |
| Full Audit | /dev.tech-debt-review --all |
Full src/ directory | Release gate, quarterly review |
| Category Focus | /dev.tech-debt-review --category=boundary |
Specific category | Targeted cleanup |
Categories: boundary, prompt, context, testing, error, state, observability, subagent
Goal
Detect AI/agentic-specific anti-patterns that traditional linters miss:
| Category | What It Finds | Why It Matters |
|---|---|---|
| Tool/Agent Boundary | Tools making decisions, encoding thresholds | Violates Constitution VII |
| Prompt Debt | Hardcoded prompts, no versioning, injection risks | Maintenance nightmare |
| Context Window | Unbounded data, no truncation, raw dumps | Performance/reliability |
| Testing | Live LLM in unit tests, missing VCR, no evals | CI flakiness, cost |
| Error Handling | No retry/backoff, missing timeouts | Reliability |
| State Management | Unbounded conversation history | Memory leaks |
| Observability | No tracing, missing metrics | Debugging blind spots |
| Subagent | Depth > 1, unclear boundaries | Architecture violation |
Traditional linters catch syntax and style. This skill catches semantic anti-patterns specific to agentic systems.
Operating Constraints
STRICTLY READ-ONLY: Do not modify any files. Output analysis and recommendations.
SEMANTIC ANALYSIS: Read and understand code patterns, don't just grep.
EVIDENCE-BASED: Every finding must cite file:line and code snippet.
SCORING: Aggregate findings into 0-100 score for PR gate decisions.
Constitution Alignment
This skill validates adherence to project principles:
| Principle | What We Check |
|---|---|
| I. Local-First | No data transmission, security of prompts |
| III. Causal-First | Recommendations trace to evidence |
| VII. Intelligent Tooling | Tools provide data, agent provides judgment |
| VIII. Compounding Value | Historical tracking of tech debt |
| IX. Agent-Aware | Context optimized for agent cognition |
Reference: Constitution Mapping
Execution Steps
Phase 0: Scope Determination
You handle this phase directly.
Parse user input to determine scope:
If
--allflag present: Full codebase auditfind src -name "*.ts" -type f | grep -v ".d.ts" | grep -v "node_modules"If
--category=Xflag present: Filter to that category's patterns onlyIf specific file path provided: Analyze that file
ls -la <provided-path>Default (no args): Changed files only
git diff --name-only main...HEAD | grep -E '\.tsx?$'
Report mode to user:
--allmode: "Running FULL CODEBASE audit on N files"--category=X: "Running targeted audit for category: X"- Default: "Reviewing N files changed vs main"
Load context:
- Read
.specify/memory/constitution.mdfor principle references - Check for previous review at
.claude/reviews/tech-debt-*.jsonfor trend comparison
Phase 1: Parallel Category Analysis (Subagents)
Invoke 8 category-specific analyzers IN PARALLEL (single message, multiple Task calls).
Each subagent focuses on one category. Use Haiku for single-file analysis, Sonnet for cross-file patterns.
Task(boundary-analyzer, model=haiku, "Analyze files for Tool/Agent Boundary violations.
PATTERNS TO DETECT:
- JUDGMENT_IN_TOOL: Functions that return judgments ('good', 'bad', 'low', 'high')
- ORCHESTRATION_IN_TOOL: Tools that decide when/how to call other tools
- THRESHOLD_ENCODING: Hardcoded thresholds that encode decisions (if score < 0.3)
- DECISION_RETURN: Functions returning 'suggestedAction', 'shouldDo', etc.
FILES: [list]
For each finding, return:
- pattern: The pattern code (e.g., JUDGMENT_IN_TOOL)
- file: Absolute path
- line: Line number
- snippet: The offending code (max 5 lines)
- evidence: Why this matches the pattern
Return JSON array of findings. Return empty array if no issues.")
Task(prompt-analyzer, model=haiku, "Analyze files for Prompt Debt.
PATTERNS TO DETECT:
- HARDCODED_PROMPT: Prompt strings embedded directly in code (not in prompt files)
- NO_VERSIONING: Prompts without version tracking or timestamps
- INJECTION_RISK: User input concatenated into prompts without sanitization
- PROMPT_SPRAWL: Same prompt logic duplicated in multiple places
FILES: [list]
Return JSON array of findings with pattern, file, line, snippet, evidence.")
Task(c
Установить dev-tech-debt-review в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл dev-tech-debt-review?
Detect AI/agentic-specific anti-patterns that traditional linters miss. Analyzes tool/agent boundary violations, prompt debt, context window issues, testing patterns, and more. Returns scored findings with remediation guidance.
Как установить скилл dev-tech-debt-review?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл dev-tech-debt-review запускает скрипты?
Нет, скилл состоит только из инструкций (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