audit

audit is a skill for Claude Code from ryanzhao1011/workframe. It costs 26 tokens per session (4,046 once invoked), scanned A, original, MIT.

A read-only report of recent automatic maintenance activity in a coding project. It reviews recorded actions, pending proposals, failed work, and the health of maintenance summaries.

In plain words
What is it for?
Use it to review the last 14, 7, or 30 days, find unfinished or unverified maintenance proposals, spot low-success skills, and check whether activity summaries are up to date.
Why use it?
It shows what automatic maintenance changed and whether anything needs attention, without changing the project itself.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions subagents; names the AskUserQuestion tool.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the core plugin — 36 skills, 4 agents, 12 hooks shipped together

Good fit Use it to review the last 14, 7, or 30 days, find unfinished or unverified maintenance proposals, spot low-success skills, and check whether activity summaries are up to date.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add ryanzhao1011/workframe
Claude Code
/plugin install core

Made for: Claude Code.

Or install core, the plugin that ships this one along with the rest of its 36 skills, 4 agents, 12 hooks.

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 audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/ryanzhao1011/workframe/audit/github.svg)](https://agentmods.dev/skills/ryanzhao1011/workframe/audit)
Your own site
<a href="https://agentmods.dev/skills/ryanzhao1011/workframe/audit"><img src="https://agentmods.dev/badge/skills/ryanzhao1011/workframe/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 audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/ryanzhao1011/workframe/audit"><img src="https://agentmods.dev/badge/skills/ryanzhao1011/workframe/audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,046 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.00026 $0.04046
Opus 5.5 $0.00010 $0.01618
Sonnet 5.5 $0.00005 $0.00809
Haiku 4.5 $0.00003 $0.00405

Measured 3d ago against content hash 95b6d41f2b68, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

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 3d 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.

plugins/core/skills/audit/SKILL.md · 186 lines

How it starts

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

/core:audit 审计维护活动

后台自迭代另读 workframe-selfiter status --project <项目根> 的采证漏斗、作业的逐主题结论与旧 AUTO 待批记录,按作业编号串起来源、建议、延期/失败与复测;人类可读摘要在状态目录 selfiter/history.md。inconclusive 单列,不算成功或失败;模型建议不计为实际写入。发现恢复中的 journal 要说明,不以存在 result 文件推断整个变更闭环。审计不批准提案、不启动模型、不改待批状态。

用途

用户显式 /core:audit 时执行。Claude 不会自动调用(disable-model-invocation: true)。

回答五类问题:

  1. 最近 N 天自动发生了什么维护动作?(events.jsonl 聚合)
  2. 有没有 T3/T4 待处理项?(activity-state.pending_maintenance + proposals/pending/)
  3. 有没有失败的提案或低成功率的 skill?(skill-metrics.yaml)
  4. board summary 是否健康?(current drift + 近 30 天修复历史)
  5. skill-metrics 是否刷新?(skill_metrics_recomputed 事件 + 当前 generated_at)

输入

参数格式(自由文本):

  • 无参数 → 默认近 14 天
  • 7d / 30d → 指定窗口
  • spotcheck=<n> → 纪律抽查每扇门抽最近 n 场会话(默认 3)
  • --record → 报告照常输出,并在末尾追加一条 discipline_spotcheck 事件(见「纪律抽查」一节最后一步);不带就一个字节都不写

audit 默认只读;带 --record 时追加一条抽查事件,其余不写——dismiss 等写操作迁到 /core:maintenance-review --dismiss <PM-ID>。这样 audit 与 maintenance-review 的边界清晰:audit 报告状态,maintenance-review 修改状态。

执行步骤

  1. Read .workframe/state/activity-state.json — 拿 session_counter / dormant / pending_maintenance / recent_drift_repairs
  2. Read .workframe/state/skill-metrics.yaml — 最近窗口的 skill/rule 汇总
  3. 读取 .workframe/state/events.jsonl 近 N 天 — 按 type 分组统计(含 summary_drift_repaired / summary_drift_repair_skipped)
  4. Glob projects/proposals/pending/*.yaml — 列出待审批提案
  5. Glob projects/proposals/applied/*.yaml 过滤 verified: null — 列出待闭环验证
  6. Board summary drift check(只读不改):
    • 调用只读检查命令(插件根取 $WF_PLUGIN_ROOT,即会话开场注入的「本会话插件根」,不依赖 PATH):
      python "$WF_PLUGIN_ROOT/bin/workframe-audit-board-drift"
      
    • 输出文本格式:
      actual: total=N, counts={pending:..,...}, unknown=[..]
      summary: total=M, counts={pending:..,...}
      drift: <empty | field1=summary→actual, field2=...>
      
    • audit 只解析 drift: 行决定是否展示 drift 状态;不调用 workframe-recompute-board-summary(那个会写文件,违反 audit 默认只读的约束)。修复路径走 SessionStart drift check 自动 / workframe-recompute-board-summary 兜底命令
    • 调用方式说明:${CLAUDE_PLUGIN_ROOT} 在 agent Bash 上下文不可用,CC 官方的 plugin bin/ PATH 注入在部分环境也不生效(Windows + directory 订阅实测未注入),故统一走 $WF_PLUGIN_ROOT 配方——它是会话开场注入的「本会话插件根」(正在执行的这扇门的那一份,正斜杠绝对路径),执行前换成那个路径。若环境里 workframe-audit-board-drift 恰好已在 PATH,裸调等价
  7. 纪律抽查:按下方「纪律抽查」一节抽样、判定,结果进报告的「纪律抽查」段;只有用户这次带了 --record,才执行该节最后一步的写入

Read the full file on GitHub · 186 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. 3d ago Changed 95b6d41f2b68
  2. 15d ago Changed · +2 lines 70bff08b1c0e
  3. 1mo ago Changed · +71 lines 416cdaf64441
  4. 3mo ago First seen · 113 lines · 26 tokens per session scan A d3511a49eee2

Subscribe to this mod's changes

audit is a skill published in the GitHub repository ryanzhao1011/workframe (9 stars, last pushed 5d ago), licensed MIT. It adds 26 tokens to every session and 4,046 once invoked, about $0.0001 per session on Opus 5.5. 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.

Related

audit compared with skills from other repositories

audit next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
auditryanzhao1011/workframeSkill95d agoMITA26Claude Code
html-prototypemayuemarsha-del/pm-skillsSkill56mo agoMITA97Claude Code
feature-acceptancemayuemarsha-del/pm-skillsSkill56mo agoMITA192Claude Code
prdmayuemarsha-del/pm-skillsSkill56mo agoMITA202Claude Code
ui-walkthroughmayuemarsha-del/pm-skillsSkill56mo agoMITA231Claude Code
gbgcielebak/goal-by-goalSkill15mo agoMITA150Claude Code
competitor-researchmayuemarsha-del/pm-skillsSkill56mo agoMITA123Claude Code