Check Audit logo

Check Audit

OrganizationPopular
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.

Overview

Publisherudecode
Repositoryustack
Skill namecheck-audit
Stars
1.2K
Forks
82
Bundled files
2
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by udecode on GitHub. Read the source before you install it.

Installation

Install the Check Audit AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/udecode/ustack/tree/main/skills/check-audit
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Check Audit in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Check Audit on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Check Audit is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Check Audit AI skill do?

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.

Why use Check Audit on TypingMind?

Because you install it once and use it with any model. Check Audit is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Check Audit in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/udecode/ustack/tree/main/skills/check-audit. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Check Audit?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Check Audit?

As many as you like. As long as a model supports skills, you can use Check Audit with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Check Audit AI skill free?

It is published on GitHub by udecode. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇