# System audit

> System audit is an open-source agent skill for developer tools. Audits an agent system's docs, rules, memory and tools for drift and dead layers. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/awrshift/agent-memory-kit/tree/main/plugins/memory-kit/skills/system-audit
- **Repository:** https://github.com/awrshift/agent-memory-kit
- **GitHub stars:** 33
- **License:** MIT
- **Skill name:** system-audit
- **Collection:** https://github.com/awrshift/agent-memory-kit
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill runs a periodic self-audit of an AI agent setup. It starts with a read-only shell collector that inventories layers, checks doc frontmatter, memory caps, broken path references, git activity and exposed secrets, then a Python transcript profiler reports which rules, skills and agents were actually used in recent sessions. A separate gate prober feeds a known-bad sample through each PreToolUse hook to see which tools are really guarded.

The audit is organized into seven lenses covering delivery claims, knowledge drift, the operational layer, layer telemetry, tools and infrastructure, domain gaps and anti-bloat subtraction. Each finding must carry file-and-line or command evidence, otherwise it is labelled as a hypothesis and kept out of the verdict. Cheap, safe fixes are applied in the session, and the results are written to a dated report that serves as the baseline for the next run.

The skill expects a repository to audit, with bash and Python available, and works best when the user has an agent memory and rules structure to examine. It is designed as a Claude Code plugin skill, so its bundled scripts reference the plugin root directory.

## When your agent uses it

> Periodic evidence-based self-audit of the whole agent system — the orchestrator, its docs/SSOTs, rules, memory, subagents, tools, infra and the work it claims to have delivered — followed by immediate cheap-safe fixes and a ranked backlog. Use when the user says 'аудит системы', 'проверь себя', 'самопроверка', 'system audit', 'audit yourself', 'health check', 'что у нас накопилось', 'система раздулась', 'проверь что работает а что на бумаге', 'gap-анализ', 'что удалить', or on cadence triggers (every ~10 sessions, before a milestone, after a big refactor, when memory hits its caps, when onboarding this repo to a new agent). Seven lenses: delivery reality · knowledge drift · operational layer · layer telemetry (did it ever fire) · tools & infra · domain gaps · anti-bloat subtraction. Not for reviewing a single diff (use a diff-review pass) and not for probing a running product (use /memory-kit:qa-sweep).

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs shell and Python scripts](https://github.com/awrshift/agent-memory-kit/tree/HEAD/plugins/memory-kit/skills/system-audit)
- [No network calls found in its scripts](https://github.com/awrshift/agent-memory-kit/tree/HEAD/plugins/memory-kit/skills/system-audit)
- [License: MIT](https://github.com/awrshift/agent-memory-kit/tree/HEAD/plugins/memory-kit/skills/system-audit)

## Features

- **Deterministic factbase collector:** A read-only bash script gathers layer inventory, frontmatter coverage, memory caps, broken references and secret exposure checks before any reasoning.
- **Layer telemetry from transcripts:** A Python profiler counts which files, skills and tools were deliberately used in session transcripts and flags those with no reads in 30 days.
- **Hook gate verification:** A prober sends a known-bad sample through each PreToolUse hook wiring to show which tools are actually guarded.
- **Seven-lens review structure:** Checks cover delivery reality, knowledge drift, operational layer, telemetry, tools and infra, domain gaps and anti-bloat subtraction.
- **Evidence-bound findings:** Every claim needs a file reference or command output, with unverified observations marked as hypotheses and excluded from the verdict.
- **Dated audit reports:** Writes a ranked set of priorities and a subtraction list to a dated report that becomes the baseline for the next audit.

## Good for

- Check whether the agent's documented rules and memory still match what the repo actually does
- Find rules, skills or agents that have not been used in weeks
- Verify that the pre-tool-use hooks actually block dangerous commands
- Get a ranked list of cleanup candidates when the agent setup has grown bloated
- Run a health check before a milestone or after a large refactor

## Install

### Claude Code

This skill ships in the `memory-kit` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add awrshift/agent-memory-kit
/plugin install memory-kit@memory-kit
```

Or copy only this skill to `~/.claude/skills/system-audit`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/awrshift/agent-memory-kit.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/system-audit &&
cp -R "$tmp/plugins/memory-kit/skills/system-audit" ~/.claude/skills/system-audit &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/system-audit` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/system-audit` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/awrshift/agent-memory-kit.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/system-audit &&
cp -R "$tmp/plugins/memory-kit/skills/system-audit" ~/.agents/skills/system-audit &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/system-audit` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/system-audit` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/awrshift/agent-memory-kit.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/system-audit &&
cp -R "$tmp/plugins/memory-kit/skills/system-audit" ~/.cursor/skills/system-audit &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/system-audit` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/awrshift/agent-memory-kit.git --path plugins/memory-kit/skills/system-audit
```

Or copy the folder to `~/.gemini/skills/system-audit` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/system-audit`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/awrshift/agent-memory-kit.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/system-audit &&
cp -R "$tmp/plugins/memory-kit/skills/system-audit" ~/.copilot/skills/system-audit &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/system-audit` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/awrshift/agent-memory-kit.git
```

Then copy `agent-memory-kit/plugins/memory-kit/skills/system-audit` into your agent's skills folder as `system-audit`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does System audit need to run?

It needs a repository to audit, bash for the collector and Python for the usage and gate scripts. The scripts are meant to run through the Claude Code plugin root path.

### Does System audit change files in my repo?

The collector and profilers are read-only with respect to the audited repo. Cheap, safe fixes such as stale paths or missing frontmatter are applied in-session, while deletions and history changes require asking first.

### When should System audit be run?

The skill suggests roughly every ten sessions, before a milestone, after a big refactor, when memory hits its caps, or when onboarding the repo to a new agent.

### Does System audit review code or probe a running product?

No. It audits the system that produces the work, not business logic in a diff or a live product, which the skill directs to separate review and QA passes.

### How do I install System audit in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/system-audit to use it in all your projects, or to .claude/skills/system-audit in one project. Or install the memory-kit plugin, which includes it: /plugin marketplace add awrshift/agent-memory-kit, then /plugin install memory-kit@memory-kit.

### Does System audit run scripts?

Yes. It runs shell and Python scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use System audit?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to System audit?

The closest alternatives to System audit are CLI audit, Agent architecture audit, Agentsmd optimize, Skill audit and Automation audit ops.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [CLI audit](https://ai-powered.com/skills/cli-audit): CLI audit is an open-source agent skill for developer tools.
- [Agent architecture audit](https://ai-powered.com/skills/agent-architecture-audit): Agent architecture audit is an open-source agent skill for developer tools.
- [Agentsmd optimize](https://ai-powered.com/skills/agentsmd-optimize): Agentsmd optimize is an open-source agent skill for developer tools.
- [Skill audit](https://ai-powered.com/skills/skill-audit): Skill audit is an open-source agent skill for developer tools.
- [Automation audit ops](https://ai-powered.com/skills/automation-audit-ops): Automation audit ops is an open-source agent skill for developer tools.
- [Testing audit](https://ai-powered.com/skills/testing-audit): Testing audit is an open-source agent skill for developer tools.
- [Skill review](https://ai-powered.com/skills/skill-review): Skill review is an open-source agent skill for developer tools.
- [Agents md improver](https://ai-powered.com/skills/agents-md-improver): Agents md improver is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/system-audit
