Logo: Check Audit

Check Audit

OrganisatiounBeléift
udecode
check-audit

Audit tests, landing speed, Local CI reliability, check tiers, verification hooks, and tooling scripts to cut bloat, flakes, and dead gates while keeping E2E, public boundary, and invariant coverage intact.

Iwwersiicht

Editeurudecode
Repositoryustack
Skill-Nummcheck-audit
Stären
1.2K
Forks
82
Matgeliwwert Dateien
2
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.

  • 2 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

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

Installatioun

Installéiert de KI-Skill Check 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/udecode/ustack/tree/main/skills/check-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/udecode/ustack.git /tmp/ustack
mkdir -p .claude/skills
cp -r /tmp/ustack/skills/check-audit .claude/skills/check-audit
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Check 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 Check 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 Check 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.

Check audit

Test-pruning core adapted from openclaw's test-audit skill (MIT, OpenClaw Foundation; see LICENSE).

Read AGENTS.md and .agents/pstack/rules/tests.md first. Stay read-only when asked only for candidates or gaps, and skip third-party skills or vendor code. skill-audit owns agent prose (skills, playbooks, AGENTS.md); check-audit owns everything executable that tests, gates, or slows down delivery.

Run the scanner

sh
node <skill>/scripts/audit.mjs <target> [--json] [--events <path>]

Reports landChecks and always: true generators, check.mjs land step counts, large baseline files, hook parity and missing-script references across .agents/hooks.json, .claude/settings.json, and .codex/hooks.json, oversized or zero-caller scripts under tooling/scripts/ or scripts/, and recent Local CI events.jsonl red/flake counts.

Default bar

Internal, helper, and post-hoc unit tests, slow land checks, and micro-scripts are guilty until they guard a real user defect that E2E, public boundary, type, lint, or zero-baseline invariant checks miss. Keep a test only when breaking public behavior fails it and refactoring internals keeps it passing (principle-test-behavior-not-implementation).

Hard safety net

  • Never cut E2E, deterministic concurrency/sync, or public golden tests without an explicit replacement.
  • Never silently delete an unwired security, access, auth, PHI, consent, or customer-send guard whose only caller is a test; flag it as a finding so production wires or retires it intentionally.
  • Never delete a test failing on the current tree or raise a timeout/limit to make CI green; reproduce and fix the bug or fixture first.

Pass 1: Tests

Cut coherent package or owner batches without per-test scratch mutation courtrooms:

  1. Internal and test-only entries: *.internal.* files and tests importing non-public or test-only exports. Delete dead test-only exports and helpers with them (knip --production or git grep).
  2. Low-signal shapes: mock-verifying, constant-pinning (unless user-promised with the promise named), source-text/grep, assertion-free, self-comparing, snapshot, and exhaustive-matrix tests.
  3. Timing bounds: wall-clock assertions outside dedicated benchmarks.
  4. Duplicate coverage: unit tests whose user behavior is already exercised by a kept E2E, golden, or public boundary test.
  5. Flaky and slow tests: fix deterministic flakes in one pass or cut and replace; cut slow tests that duplicate boundary coverage and shrink inputs on unique slow tests.

Reserve targeted scratch mutant or refactor checks only for genuinely uncertain edge cases, never as mandatory paperwork on clear cuts.

Pass 2: Landing speed

Audit what blocks every land.mjs run (landChecks, land: true steps in check.mjs, and generated entries with always: true):

  • Measure wall-clock time and real failure-catch rate per landing step.
  • Demote slow, rarely tripped, or broad-blast steps from land to post-landing Local CI or on-demand --audit.
  • Remove always: true regeneration on outputs that only change when specific sources change.

Pass 3: Local CI and baselines

Audit check.mjs, CI workflows, and baseline files against recent failure history (events.jsonl or CI logs):

  • Rank steps by red count, flake rate, and time-to-green; fix root causes of chronic flakes or cut checks that only produce noise.
  • Demote multi-hundred-line known-bad baseline sweeps out of blocking CI into on-demand audit commands.
  • Fold static invariants into types or lint rules and delete redundant micro-scripts.

Pass 4: Scripts and gate hooks

Audit tooling/scripts/, scripts/, and runtime hook configs (.agents/hooks.json, .claude/settings.json, .codex/hooks.json):

  • Delete zero-caller orphan scripts, retired-runtime helpers, and Stop hooks that fire after land.mjs has already pushed commits.
  • Move land-time invariants into landChecks over git diff <base>..HEAD instead of parsing per-runtime JSONL transcripts in Stop hooks.
  • Close hook parity gaps across active agent runtimes and flag oversized single-purpose scripts (>= 600 lines) for simplification.

Full mode and validation

In /check-audit full, run the scanner, write an area ledger in the run directory (files, line counts, timings, failure counts, state), and process one area per batch, highest leverage first. Ask the owner before changing hooks, landChecks, or blocking CI policy unless explicitly authorized.

Validate every deleted or changed batch:

  1. Run remaining tests, boundary/E2E suites, typecheck, lint, and hook/contract tests.
  2. When removing files, scripts, or exports, run the project's full check (pnpm check or equivalent) to catch stale contract lists, hook paths, or manifests.
  3. Report removed categories, landing/CI speed delta, production or script deletions unlocked, kept edge cases, commands run, and separate production, test, and tooling line counts.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Check Audit?

Audit tests, landing speed, Local CI reliability, check tiers, verification hooks, and tooling scripts to cut bloat, flakes, and dead gates while keeping E2E, public boundary, and invariant coverage intact.

Firwat Check Audit op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Check 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 Check Audit an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/udecode/ustack/tree/main/skills/check-audit an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Check 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 Check Audit benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Check 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 Check Audit gratis?

udecode 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 👇