Skip to content
Back to skills

Audit Log

ASecurity

Record every privileged action in a collection only functions can write and only admins can read.

  • 234 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 28, 2026
ai-agents

Works with

  • cli

Security analysis

A100/100

Scanned September 28, 2026

npx -y skills add receptron/mulmoterminal --skill audit-log --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Audit Log?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Audit Log
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/receptron-audit-log/badge)](https://www.skillsdirectory.com/skills/receptron-audit-log)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: blueprint-internal-audit-log
description: "Record every privileged action in a collection only functions can write and only admins can read."
---

# Audit log

1. A helper in `functions/` that writes `auditLogs/{autoId}`: `{ actorUid, actorEmail, action, targetUid?, detail,
   at: FieldValue.serverTimestamp() }`. Every privileged function calls it (setRoles, offboard, and any action the
   spec lists).
2. The rules already deny all client writes to `auditLogs` and let only admins read.
3. Write `test/blueprint/audit.spec.ts`: calling `setRoles` produces an entry; a client write to `auditLogs` is
   refused for every role including admin; a non-admin cannot read it.

Done when the check passes: `emulator-test.sh audit`.

## Always

- Read `.blueprint/spec.md` first. It is the agreed specification; do not widen it.
- When you need a decision, ask it through the blueprint question tool and stop. Do not guess.
- Never enable billing, deploy to production, delete data or handle a credential unless this step's gates say the
  user approved exactly that.
- Say you are done by stopping; the executor runs the check. Do not claim success yourself.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.