Logo: Invest Repo Audit

Invest Repo Audit

Communautéit
erikaflowers
invest-repo-audit

Féiert e kompletten Audit vun der Qualitéit, Stabilitéit an Architektur vun engem Codebestand duerch. Erkennt futtis Funktiounen, doudege Code, schlecht vernetzte Komponenten, feelend Feelerbehandlung, Sécherheetslächer, Leeschtungsproblemer an technesch Scholden. Erstellt e kategoriséierte Rapport mat no Prioritéit sortéierte Verbesserungsmoossnamen.

Add to TypingMind

Iwwersiicht

Editeurerikaflowers
Repositoryinvestiture
Skill-Numminvest-repo-audit
Stären
55
Forks
9
Matgeliwwert Dateien
Nëmmen Instruktiounen
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    erikaflowers huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Invest Repo Audit an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/erikaflowers/investiture/tree/main/.claude/skills/invest-repo-audit
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

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
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Invest Repo Audit an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Invest Repo Audit automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Invest Repo Audit net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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]

Heefeg gestallte Froen

Wat mécht de KI-Skill Invest Repo Audit?

Féiert e kompletten Audit vun der Qualitéit, Stabilitéit an Architektur vun engem Codebestand duerch. Erkennt futtis Funktiounen, doudege Code, schlecht vernetzte Komponenten, feelend Feelerbehandlung, Sécherheetslächer, Leeschtungsproblemer an technesch Scholden. Erstellt e kategoriséierte Rapport mat no Prioritéit sortéierte Verbesserungsmoossnamen.

Firwat Invest Repo Audit op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Invest Repo Audit besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Invest Repo Audit an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/erikaflowers/investiture/tree/main/.claude/skills/invest-repo-audit an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Invest Repo Audit benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Invest Repo Audit benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Invest Repo Audit domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Invest Repo Audit gratis?

erikaflowers huet de Skill op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇