Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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:

  1. If --all flag present: Full codebase audit

    find src -name "*.ts" -type f | grep -v ".d.ts" | grep -v "node_modules"
    
  2. If --category=X flag present: Filter to that category's patterns only

  3. If specific file path provided: Analyze that file

    ls -la <provided-path>
    
  4. Default (no args): Changed files only

    git diff --name-only main...HEAD | grep -E '\.tsx?$'
    

Report mode to user:

  • --all mode: "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.md for principle references
  • Check for previous review at .claude/reviews/tech-debt-*.json for 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
Полный SKILL.md на GitHub

Установить dev-tech-debt-review в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

metadata.json

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), без исполняемых скриптов.

Похожие скиллы

Сравнить dev-tech-debt-review с