t800-plugin-audit

t800-plugin-audit is a command for Claude Code from Khar-AG/t-800-agent. It costs 0 tokens per session (906 once invoked), scanned A, original, MIT.

A command for auditing one Cursor plugin by mapping its agents, skills, commands, rules, and hooks.

In plain words
What is it for?
It helps inspect a plugin, generate machine-readable inventory and scorecard files, create a graph and summary, and enforce an alwaysApply size check. Reports are stored in a specified audit directory.
Why use it?
It produces a structured inventory and audit report, helping reveal relationships, orphaned items, and always-applied rules without copying the whole plugin into a knowledge base.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is bash scripts/discover-target-project.sh --workspace "<WORKSPACE>" --plugin-root "<PLUGIN_ROOT>".

Good fit It helps inspect a plugin, generate machine-readable inventory and scorecard files, create a graph and summary, and enforce an alwaysApply size check. Reports are stored in a specified audit directory.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/Khar-AG/t-800-agent
agentmods
npx agentmods add commands/khar-ag/t-800-agent/t800-plugin-audit

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for t800-plugin-audit

README.md
[![agentmods](https://agentmods.dev/badge/commands/khar-ag/t-800-agent/t800-plugin-audit/github.svg)](https://agentmods.dev/commands/khar-ag/t-800-agent/t800-plugin-audit)
Your own site
<a href="https://agentmods.dev/commands/khar-ag/t-800-agent/t800-plugin-audit"><img src="https://agentmods.dev/badge/commands/khar-ag/t-800-agent/t800-plugin-audit/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for t800-plugin-audit

Your own site · 80×15
<a href="https://agentmods.dev/commands/khar-ag/t-800-agent/t800-plugin-audit"><img src="https://agentmods.dev/badge/commands/khar-ag/t-800-agent/t800-plugin-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 906 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00906
Opus 5 $0.00000 $0.00453
Sonnet 5 $0.00000 $0.00181
Haiku 4.5 $0.00000 $0.00091

Measured 9d ago against content hash 37e84e15e471, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

t800-plugin-audit scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/t800-plugin-audit.md · 91 lines

How it starts

The opening of the file, as written. The whole thing — 91 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/t800-plugin-audit — аудит одного Cursor-плагина

Зачем: карта agents / skills / commands / rules / hooks внутри --plugin-root (граф, orphans, alwaysApply) — без dump в KB T-800.

Loop / STATE: shared/loop-engineering-contract.md.

Шаги

0. Discovery + STATE

bash scripts/discover-target-project.sh --workspace "<WORKSPACE>" --plugin-root "<PLUGIN_ROOT>"
bash scripts/t800_loop_state.sh init --memory-path "<memory_path>"
# Read STATE.md — blockers / lessons прошлого аудита

Запомни memory_path целевого проекта. Runtime-отчёты → только {memory_path}/audits/.

1. Machine SoT (обязателен)

python3 scripts/t800_plugin_audit.py \
  --plugin-root "<PLUGIN_ROOT>" \
  --out "<memory_path>/audits/t800-plugin-audit-$(date +%Y%m%d-%H%M)" \
  [--strict-alwaysapply large]

Пишет: inventory.json, scorecard.json, graph.md, audit-machine-summary.md.

Без inventory.json или при fail скрипта — не «готово» (machine gate).

bash scripts/t800_loop_state.sh touch --memory-path "<memory_path>" --stage "plugin-audit" --message "machine SoT: inventory.json"

2. Narrative

Task(t-800-plugin-auditor)

Передай: plugin_root, out (run-id dir), memory_path, уровень strict.

Агент читает JSON → audit-summary.md + fragments/t-800-plugin-auditor.md.

3. Fix-pack draft (после narrative)

python3 scripts/t800_audit_to_fixpack.py \
  --audit-dir "<memory_path>/audits/<run-id>" \
  --memory-path "<memory_path>" \
  [--slug from-audit-$(date +%Y%m%d)]

Скрипт печатает путь {memory_path}/fix-packs/<slug>.md.
Дальше для правок: /t800-fix (не полный /t800-start, если список файлов уже в pack).

4. Закрытие STATE

bash scripts/t800_loop_state.sh touch --memory-path "<memory_path>" --stage "plugin-audit" --message "narrative готов; fix-pack draft; gates pass"

Обнови в STATE.md секции Completed / Lessons / Gates (plugin-audit inventory = pass|fail).

Отличия от /t800-audit

Read the full file on GitHub · 91 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 91 lines · 0 tokens per session scan A 37e84e15e471

Subscribe to this mod's changes

t800-plugin-audit is a command published in the GitHub repository Khar-AG/t-800-agent (8 stars, last pushed 13d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 906 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.