build-audit-logs

build-audit-logs is a skill for Claude Code from pleaseai/claude-code-plugins. It costs 49 tokens per session (6,093 once invoked), scanned A, a copy of build-audit-logs, MIT.

A workflow for building or reviewing an audit trail in a TypeScript or JavaScript application. An audit trail is a record of who performed an action, what changed, and whether it succeeded or was denied.

In plain words
What is it for?
Use it to design or review audit records for requests, background jobs, scripts, permission denials, state changes, retention, and typed application actions.
Why use it?
It provides a structured way to record important actions and state changes instead of relying on informal logs. This supports investigations and compliance-style reviews.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: installed under .agents/ (shared by several agents).

Part of the evlog plugin — 3 skills shipped together

Good fit Use it to design or review audit records for requests, background jobs, scripts, permission denials, state changes, retention, and typed application actions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pleaseai/claude-code-plugins/build-audit-logs
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add pleaseai/claude-code-plugins --skill build-audit-logs
Clone the repo
git clone --depth 1 https://github.com/pleaseai/claude-code-plugins

Made for: Claude Code.

Or install evlog, the plugin that ships this one along with the rest of its 3 skills.

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 build-audit-logs

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/pleaseai/claude-code-plugins/build-audit-logs"><img src="https://agentmods.dev/badge/skills/pleaseai/claude-code-plugins/build-audit-logs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,093 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 97% copy Near-identical to another mod 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.00049 $0.06093
Opus 5.5 $0.00020 $0.02437
Sonnet 5.5 $0.00010 $0.01219
Haiku 4.5 $0.00005 $0.00609

Measured 1mo ago against content hash baa452e72b99, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

build-audit-logs 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 1mo 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.

Origin

This is a copy

97% identical to build-audit-logs — 14 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

plugins/evlog/.agents/skills/build-audit-logs/SKILL.md · 471 lines

How it starts

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

Build or Review an Audit System with evlog

For application developers who either need to add an audit trail to their product, or who already have one and want it reviewed. Walks through the design calls, the end-to-end implementation, and a review checklist for an existing setup.

This skill assumes the audit lives in your app. To extend the evlog package itself (new audit helper, new drain wrapper), see the contributor skills under .agents/skills/.

Quick reference: call-site cheat sheet

When you already know the system is wired and just need to remember the API:

Situation Helper
Inside a request handler, action succeeded log.audit({ action, actor, target, outcome: 'success' })
Inside a request handler, AuthZ denial log.audit.deny('reason', { action, actor, target })
Standalone job / script / CLI (no request) audit({ action, actor, target, outcome })
Auto-record success / failure / denied for a function withAudit({ action, target }, fn)
Recording a state change add changes: auditDiff(before, after)
Centralised typed action vocabulary defineAuditCatalog('billing', { INVOICE_REFUND: { target: 'invoice' } }), or defineAuditAction('invoice.refund', { target: 'invoice' }) for one-offs
Asserting audits in tests mockAudit(), then assertAudit() or toIncludeAuditOf()

AuditFields schema (always provide action, actor, outcome; target strongly recommended; the rest is filled in for you):

interface AuditFields {
  action: string                                  // 'invoice.refund'
  actor: { type: 'user' | 'system' | 'api' | 'agent', id: string, email?, displayName?, model?, tools?, reason?, promptId? }
  outcome: 'success' | 'failure' | 'denied'
  target?: { type: string, id: string, [k: string]: unknown }
  reason?: string
  changes?: { before?: unknown, after?: unknown, patch?: AuditPatchOp[] }
  causationId?: string
  correlationId?: string
  version?: number                                // defaults to AUDIT_SCHEMA_VERSION
  idempotencyKey?: string                         // auto-derived from action+actor+target+timestamp
  context?: { requestId?, traceId?, ip?, userAgent?, tenantId?, ... }   // filled by auditEnricher
  signature?: string                              // added by signed(drain, { strategy: 'hmac' })
  prevHash?: string                               // added by signed(drain, { strategy: 'hash-chain' })
  hash?: string                                   // added by signed(drain, { strategy: 'hash-chain' })
}

Read the full file on GitHub · 471 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago First seen · 471 lines · 49 tokens per session scan A baa452e72b99

Subscribe to this mod's changes

build-audit-logs is a skill published in the GitHub repository pleaseai/claude-code-plugins (17 stars, last pushed yesterday), licensed MIT. It adds 49 tokens to every session and 6,093 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 97% identical to build-audit-logs, differing in 14 lines, and is treated as a copy.

Related

build-audit-logs compared with skills from other repositories

build-audit-logs next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
build-audit-logspleaseai/claude-code-pluginsSkill17yesterdayMITA49Claude Code
fto-triageanthropics/claude-for-legalSkill10ktodayApache-2.0A81Claude Code
legal-holdanthropics/claude-for-legalSkill10ktodayApache-2.0A68Claude Code
specification-writingwanshuiyin/Auto-claude-code-research-in-sleepSkill20kyesterdayMITA49Claude Code
terms-of-servicegenspark-ai/genofficeSkill13kyesterdayApache-2.0A32Claude Code, Codex
regulatory-research-fallbackHKUDS/OpenSpaceSkill8.1k18d agoMITA20Claude Code, Codex
x-scorecardx-cmd/x-cmdSkill4.8k7d agoApache-2.0A57Claude Code, Codex