Logo de Invest Repo Audit

Invest Repo Audit

Comunidade
erikaflowers
invest-repo-audit

Faça uma auditoria completa de qualidade, estabilidade e arquitetura de uma base de código. Identifica recursos com falhas, código não utilizado, acoplamento desorganizado, tratamento de erros ausente, falhas de segurança, problemas de desempenho e dívida técnica. Gera um relatório classificado, com correções priorizadas.

Add to TypingMind

Visão geral

Publicado porerikaflowers
Repositórioinvestiture
Nome da habilidadeinvest-repo-audit
Estrelas
55
Forks
9
Arquivos incluídos
Somente instruções
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    As habilidades de IA são escritas em Markdown simples, não em código específico de um provedor. Por isso, funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Sem arquivos extras

    Tudo de que o modelo precisa está nas instruções — sem arquivos extras para sincronizar.

  • Código aberto

    Publicada por erikaflowers no GitHub. Leia os arquivos da habilidade antes de instalá-la.

Instalação

Instale a habilidade de IA Invest Repo Audit no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL abaixo, que aponta para a pasta da habilidade, e confirme.
    https://github.com/erikaflowers/investiture/tree/main/.claude/skills/invest-repo-audit
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Adicionar habilidade → Via URL do GitHub. Depois, cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse 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
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Invest Repo Audit em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Invest Repo Audit automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Invest Repo Audit não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo 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]

Perguntas frequentes

O que a habilidade de IA Invest Repo Audit faz?

Faça uma auditoria completa de qualidade, estabilidade e arquitetura de uma base de código. Identifica recursos com falhas, código não utilizado, acoplamento desorganizado, tratamento de erros ausente, falhas de segurança, problemas de desempenho e dívida técnica. Gera um relatório classificado, com correções priorizadas.

Por que usar Invest Repo Audit no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade Invest Repo Audit é escrita em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. No TypingMind, você usa suas próprias chaves de API e paga diretamente aos provedores, em vez de pagar uma assinatura por licença de usuário. Suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Invest Repo Audit no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/erikaflowers/investiture/tree/main/.claude/skills/invest-repo-audit. O TypingMind lê o arquivo SKILL.md e instala a habilidade para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Invest Repo Audit?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Invest Repo Audit?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Invest Repo Audit com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Invest Repo Audit é gratuita?

A habilidade é publicada no GitHub por erikaflowers. Consulte os termos de licenciamento no repositório. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, templates ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas que ele pode acionar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA dá ao modelo o conhecimento e as orientações de que ele precisa: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇