auditing

auditing is a skill for Claude Code from filipebraida/adonisjs-starter-kit. It costs 141 tokens per session (1,448 once invoked), scanned A, original, MIT.

An audit-trail skill for an AdonisJS application. It records who performed an action, when and where it happened, what data changed, and related request details.

In plain words
What is it for?
Use it to audit model creation, updates, and deletions, plus events such as role changes, impersonation, access-token actions, and invitations.
Why use it?
It makes mistaken or malicious actions traceable and helps distinguish ordinary record changes from security events.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to audit model creation, updates, and deletions, plus events such as role changes, impersonation, access-token actions, and invitations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/filipebraida/adonisjs-starter-kit/auditing
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 filipebraida/adonisjs-starter-kit --skill auditing
Clone the repo
git clone --depth 1 https://github.com/filipebraida/adonisjs-starter-kit

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 auditing

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/filipebraida/adonisjs-starter-kit/auditing"><img src="https://agentmods.dev/badge/skills/filipebraida/adonisjs-starter-kit/auditing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 141 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,448 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.00141 $0.01448
Opus 5.5 $0.00056 $0.00579
Sonnet 5.5 $0.00028 $0.00290
Haiku 4.5 $0.00014 $0.00145

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

Security

Grade A, and why

auditing 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 15d 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.

packages/skills/auditing/SKILL.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.

Auditing

The kit keeps a forensic trail in the audits table to answer "what did user X do, when, and from where?". It is the base; each application decides what else to audit, how to mask personal data and how long to keep rows.

Each row: actor (user_type/user_id), event, auditable_type/auditable_id, the diff (old_values/new_values), metadata (resolvers + per-call extras), request_id, created_at.

Rules

  • Two ways to record:
    • Model CRUD — compose(..., Auditable) on the model records created/updated/deleted with the changed fields. Set static auditableName from AUDITABLE_TYPES, auditMask for secrets (['password']), auditExclude for noise.
    • Security events — model.auditCustom(AUDIT_EVENTS.X, { old, new, metadata }) inside the action, for what is not a plain model write: role changes (assignments live in authz tables), impersonation, access tokens, invites.
  • Write through the model (save(), delete()) whenever the write must be audited. Model.query().update() / .delete() bypass the hooks and leave no row.
  • Events are a closed list: AUDIT_EVENTS in app/auth/enums/audit_event.ts. Add the value there and its label in users.activity.events.<value> (every locale). Never store a label in the enum.
  • Inside a transaction, record on the transaction: model.useTransaction(trx).auditCustom(...), so a rollback drops the audit too.
  • Record in the action, not in a listener — the actor and request metadata come from the request's HttpContext (useAsyncLocalStorage: true in config/app.ts).
  • Actor under impersonation: user_id is whoever is signed in — the target. The impersonated_by resolver adds the admin behind it from the session mark (currentImpersonation), and drops a stale mark.
  • Never put a secret in new/old/metadata — record a token's id and name, never its value.
  • Silence high-volume routes with the skipAudit named middleware; escape it for one event with auditing.withAuditing(...).
  • Left to each application (document the choice in the app):
    • Masking personal data (CPF, name, e-mail) per field: static auditMask with a strategy (keep-last, keep-first, custom redact).
    • Retention: node ace audit:prune --days=N on a schedule.
    • What happens to audit rows when a user is deleted (LGPD/GDPR): keep, anonymize or delete.

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. 15d ago First seen · 91 lines · 141 tokens per session scan A f20bad07c549

Subscribe to this mod's changes

auditing is a skill published in the GitHub repository filipebraida/adonisjs-starter-kit (99 stars, last pushed yesterday), licensed MIT. It adds 141 tokens to every session and 1,448 once invoked, about $0.0006 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-11-16.

Related

auditing compared with skills from other repositories

auditing next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
auditingfilipebraida/adonisjs-starter-kitSkill99yesterdayMITA141Claude Code
calendarcnvmnog/calendarcnSkill1644d agoMITA76Claude Code, Codex
ui-beatsnikhils4/ui-beatsSkill2363mo agoMITA62Claude Code, Codex
react-doctorshipkit-io/bonesSkill21yesterdaynoneA31Claude Code, Codex
magic-uimagicuidesign/magicuiSkill24ktodayMITA56Claude Code, Codex
tanstack-queryKiranism/next-shadcn-dashboard-starterSkill7.3k3d agoMITA48Claude Code, Codex
gpt-image-playgroundCookSleep/gpt_image_playgroundSkill4.2k2d agoMITA164Claude Code, Codex