Receber por email
← Voltar para o catálogo

audit

Run comprehensive codebase audit for gaps, deprecated code, TODOs, FIXMEs, architectural anti-patterns, type issues, and code smells. Use when user asks to audit code, find issues, check code quality, or identify architectural problems.

367estrelas
Atualizado há 4 meses

Ver no GitHub ↗

Como adicionar

/plugin marketplace add aiskillstore/marketplace

O comando exato pode variar conforme o repositório. Confira o README no GitHub.

Para o autor da skill

Cole no README do seu repo

Mostra que sua skill está catalogada na Skillteca, gera backlink e tráfego rastreável.

[![Skillteca](https://www.skillteca.com.br/api/badge/audit-aiskillstore/svg)](https://www.skillteca.com.br/skills/audit-aiskillstore)

Skills relacionadas

Ver todas de Segurança →

Alerta por categoria

Receba novas skills de Segurança toda segunda

1 email curto, só com as skills novas de Segurança. 4 minutos de leitura, sem spam, cancela com 1 clique.

Você confirma o email no primeiro envio. Sem spam. Cancela com 1 clique.

Ler descrição completa

Codebase Audit

Instructions

Perform a comprehensive, systematic audit of the codebase to identify quality issues, architectural problems, and technical debt.

Phase 1: Discovery & Planning

  1. Identify scope - Determine which files/directories to audit based on user request
  2. Create comprehensive file list - Use Glob to find all relevant files
  3. Initialize todo list - Create a todo with one item per file to audit
  4. Set up audit report - Create structured markdown report at .audit/audit-report-[timestamp].md

Phase 2: Automated Analysis

Run automated tools to supplement manual review:

  • TypeScript compiler diagnostics
  • ESLint (if configured)
  • Grep for common patterns: TODO, FIXME, HACK, XXX, @deprecated

Phase 3: Systematic File Review

For EACH file in the todo list:

  1. Read and analyze the file thoroughly
  2. Check for issues in these categories:
  3. Deprecations: Deprecated APIs, patterns, or code marked for removal
  4. TODOs/FIXMEs: Unfinished work or known issues
  5. Architectural anti-patterns:
  6. God objects/classes
  7. Circular dependencies
  8. Tight coupling
  9. Violation of SOLID principles
  10. Inconsistent patterns
  11. Type issues:
  12. Use of any or unknown
  13. Missing type annotations
  14. Incorrect type usage
  15. Type casts that hide issues
  16. Code smells:
  17. Duplicated code
  18. Long functions/classes
  19. Complex conditionals
  20. Dead code
  21. Magic numbers/strings
  22. Poor naming
  1. Assign severity to each finding:
  2. CRITICAL: Breaks functionality, security issues, data corruption risks
  3. HIGH: Architectural violations, major maintainability issues
  4. MEDIUM: Code smells, minor anti-patterns, missing types
  5. LOW: Style issues, minor TODOs, cosmetic improvements
  1. Check for cross-file patterns - As you review, note patterns that appear across multiple files
  1. Update report - Add findings to the structured report
  1. Mark file as completed in todo list

Phase 4: Cross-File Analysis

After reviewing all individual files:

  1. Identify systemic patterns - Issues that appear across multiple files
  2. Architectural assessment - Overall system architecture health
  3. Dependency analysis - Check for circular dependencies or coupling issues
  4. Consistency check - Verify naming conventions, patterns are followed

Phase 5: Validation & Summary

  1. Run final checks:
  2. TypeScript type check (tsc --noEmit or similar)
  3. Linting (npm run lint or similar)
  4. Build process if applicable
  1. Generate executive summary:
  2. Total issues by category
  3. Total issues by severity
  4. Top 10 most critical findings

Audit Report Structure

# Audit Report - [Date]

## Executive Summary
- **Files Audited**: X
- **Total Issues Found**: Y
- **Critical**: A | **High**: B | **Medium**: C | **Low**: D

## Top 10 Critical Findings
1. [Issue description] - Severity: CRITICAL - File: path/to/file.ts:line

## Issues by Category

### Deprecations
- [Issue] - Severity - File:line

### TODOs/FIXMEs
- [Issue] - Severity - File:line

### Architectural Anti-Patterns
- [Issue] - Severity - File:line

### Type Issues
- [Issue] - Severity - File:line

### Code Smells
- [Issue] - Severity - File:line

## Cross-File Patterns
- [Pattern description and affected files]

## Automated Tool Results
- TypeScript diagnostics summary
- ESLint results summary

Critical Principles

  • NEVER skip files - Audit every file in the todo list
  • NEVER edit files during audit - This is read-only analysis
  • NEVER provide recommendations - Only identify and report problems
  • NEVER create action plans - That's a separate responsibility
  • DO use memory/pinboard - Store context as you discover patterns
  • DO be thorough - Think critically about each file
  • DO be objective - Report what you find, not what to do about it
  • DO track progress - Keep todo list updated in real-time
  • DO find all relevant files - If you discover new files that should be audited, add them to the todo

Dynamic File Discovery

If during audit you discover additional files that should be reviewed:

  1. Add them to the todo list immediately
  2. Continue systematic review
  3. Ensure no stone is left unturned
Compartilhar X LinkedIn