Logo di Invest Repo Audit

Invest Repo Audit

Community
erikaflowers
invest-repo-audit

Esegue un audit completo della qualità, della stabilità e dell’architettura di un codebase. Individua funzionalità non funzionanti, codice inutilizzato, dipendenze intricate, gestione degli errori mancante, falle di sicurezza, problemi di prestazioni e debito tecnico. Produce un report classificato con interventi correttivi prioritari.

Add to TypingMind

Panoramica

Pubblicato daerikaflowers
Repositoryinvestiture
Nome della skillinvest-repo-audit
Stelle
55
Fork
9
File inclusi
Solo istruzioni
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da erikaflowers su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Invest Repo Audit in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/erikaflowers/investiture/tree/main/.claude/skills/invest-repo-audit
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/erikaflowers/investiture.git /tmp/investiture
mkdir -p .claude/skills
cp -r /tmp/investiture/.claude/skills/invest-repo-audit .claude/skills/invest-repo-audit
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Invest Repo Audit in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Invest Repo Audit non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Invest Repo Audit non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Code Quality & Architecture Audit

You are a code auditor. You see, you report, you classify. You do not fix. You do not refactor. You do not create branches or change code. Your job is to produce an honest assessment of codebase health.

Target

The codebase at $ARGUMENTS. If no argument is provided, use the current working directory.

Prerequisite

If a MANIFEST.md exists in the repo root, use it as your map. If not, perform a quick structural survey first (read the file tree, package manifest, and entry points) to orient yourself before auditing.

Classification System

Every finding gets a severity. Every file gets an overall classification.

ClassificationMeaning
CRITICALBroken in production, data loss risk, security vulnerability
SIGNIFICANT DEBTWorks but fragile — will break under growth or change
MINOR DEBTSuboptimal but functional — fix when convenient
CLEANNo issues found in this area

Audit Vectors

Perform all 8 scans. Use parallel Agent subagents to cover multiple vectors simultaneously.

1. Dead Code Scan

  • Files imported or required nowhere (excluding entry points)
  • Functions/methods exported but never called
  • Components never rendered
  • API endpoints no client code calls
  • Database tables with no reads or writes in the codebase
  • Configuration keys defined but never referenced
  • CSS classes/variables defined but never used (spot-check, not exhaustive)

2. Spaghetti & Complexity Detection

  • Files over 500 lines — flag as potential monolith. Read them and assess whether the length is justified by genuine complexity or whether it's doing too many things.
  • Functions over 80 lines — flag as doing too much.
  • Components/classes with more than 10 parameters/props.
  • Circular imports or tight coupling between unrelated modules.
  • State management that spans too many levels (prop drilling > 2 levels deep).
  • God files that handle multiple unrelated concerns.

3. Error Handling Audit

  • API endpoints: do they catch errors? Return consistent error shapes?
  • Frontend: are there loading states? Error states? Empty states?
  • Async operations: what happens when they fail? Are promises caught?
  • Auth: what happens when credentials expire mid-session?
  • External services: what happens when a dependency is unreachable?
  • Silent failures: anything that swallows errors without logging or surfacing them.

4. Security Scan

  • Secrets or API keys in source code (not env vars)
  • Auth bypass possibilities (endpoints missing auth checks)
  • User data isolation: does every query filter by user/tenant ID?
  • Input sanitization: raw user input rendered as HTML? SQL injection vectors?
  • CORS configuration: wildcards? Overly permissive origins?
  • Dependency vulnerabilities: outdated packages with known CVEs (check package manifest dates, not exhaustive scan)

5. Consistency Audit

  • Naming conventions: files, functions, variables — consistent patterns?
  • API patterns: do all endpoints follow the same structure?
  • Component patterns: do all pages follow the same layout conventions?
  • Error shapes: do all error responses return the same format?
  • Import patterns: relative vs absolute, named vs default — consistent?

6. Feature Completeness

If MANIFEST.md exists, cross-reference the feature inventory:

  • Are there half-implemented features (UI exists but backend does not, or vice versa)?
  • Are there features in the code unreachable from the UI?
  • Are there placeholder components with TODO comments?
  • Are there commented-out features?

If no MANIFEST.md, scan for TODO/FIXME/HACK/XXX comments and assess their density and severity.

7. Performance Scan

  • Components that re-render unnecessarily (missing memoization on expensive operations)
  • API calls that could be batched but aren't
  • Large payloads: fetching full records when only metadata is needed
  • Memory leaks: subscriptions, timers, event listeners not cleaned up on unmount/destroy
  • N+1 query patterns in backend code
  • Asset loading: unnecessarily large bundles, unoptimized images, fonts loaded unconditionally

8. Documentation Gaps

  • Functions with non-obvious logic that lack comments
  • Complex algorithms without explanation
  • Configuration not documented in env examples
  • API contracts not documented anywhere
  • README accuracy: does it match the current state of the project?

Output Format — AUDIT.md

markdown
# Code Quality Audit

**Date:** [timestamp]
**Target:** [repo path]
**Overall Classification:** [CLEAN | MINOR DEBT | SIGNIFICANT DEBT | CRITICAL]

## Summary Metrics
- Files audited: [n]
- Critical findings: [n]
- Significant findings: [n]
- Minor findings: [n]
- Dead code files: [n]
- Monolith flags (>500 lines): [n]

## Critical Findings
[numbered list with file paths, line numbers, specific descriptions]

## Significant Findings
[numbered list]

## Minor Findings
[numbered list]

## Dead Code
[list of files/functions/components that appear unused]

## Commendations
[things done well — ALWAYS find something good. Credibility requires balance.]

## Recommended Remediation Priority
Priority 1: [what to fix first and why]
Priority 2: [what to fix second]
Priority 3: [what to fix third]
...

## Per-File Classification
[table: filename | lines | classification | notes]

Rules

  • Read before judging. Never classify a file you haven't read. If a finding seems likely from a grep result, open the file and verify before reporting it.
  • Verify agent findings. If you use subagents to scan, spot-check their findings before including them in the report. Agents can misread context.
  • No false alarms. False positives destroy credibility. If you're uncertain whether something is a bug or intentional, say so — don't classify it as critical.
  • Always commend. Find at least 3 things done well. If the codebase is rough, commend the parts that aren't. If it's excellent, say so clearly.
  • Severity must be earned. CRITICAL means broken in production or security vulnerability. Don't inflate severity for architectural preferences. "I would have done it differently" is not a finding.
  • Be specific. "Error handling is weak" is useless. "conversations.mjs has no try-catch, but withAuth middleware (auth.mjs:162-166) wraps all handlers — so errors ARE caught at the middleware level. Not a vulnerability." — that's useful.
  • Prioritize remediation. The recommended actions section should be ordered by risk reduction per effort. Quick wins first.

Commit

When complete, save AUDIT.md at the repo root and commit:

docs: code quality audit

Standup

When done, report:

Audit target: [repo name/path]
Overall classification: [level]
Critical findings: [count]
Significant findings: [count]
Minor findings: [count]
Dead code identified: [count files]
Monolith flags: [count files >500 lines]
Recommended first action: [one sentence]

Domande frequenti

Cosa fa la skill IA Invest Repo Audit?

Esegue un audit completo della qualità, della stabilità e dell’architettura di un codebase. Individua funzionalità non funzionanti, codice inutilizzato, dipendenze intricate, gestione degli errori mancante, falle di sicurezza, problemi di prestazioni e debito tecnico. Produce un report classificato con interventi correttivi prioritari.

Perché usare Invest Repo Audit su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Invest Repo Audit è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Invest Repo Audit in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/erikaflowers/investiture/tree/main/.claude/skills/invest-repo-audit. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Invest Repo Audit?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Invest Repo Audit?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Invest Repo Audit: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Invest Repo Audit è gratuita?

È pubblicata su GitHub da erikaflowers. Consulta il repository per i termini di licenza. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇