Skip to content
Back to skills

Agent Receipt

ASecurity

Use quando um agente de IA executar uma acao, chamar ferramenta, editar arquivo ou gastar credito e for necessario registrar prova encadeada do que aconteceu. Nao use para fins que nao sejam rastreabilidade de acoes de agentes.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 19, 2026
ai-agentsbashnode

Works with

  • cli

Security analysis

A100/100

Pro scans all 8 files and shows the line behind each finding

Scanned September 19, 2026

npx -y skills add Abner-Machado/agent-layer --skill agent-receipt --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Agent Receipt?

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

Security grade badge for Agent Receipt
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/abner-machado-agent-receipt/badge)](https://www.skillsdirectory.com/skills/abner-machado-agent-receipt)

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: agent-receipt
description: >-
  Use quando um agente de IA executar uma acao, chamar ferramenta, editar arquivo
  ou gastar credito e for necessario registrar prova encadeada do que aconteceu.
  Nao use para fins que nao sejam rastreabilidade de acoes de agentes.
---

# agent-receipt

Recibo encadeado por acao de agente de IA. Cada recibo tem id, timestamp ISO,
agente, ferramenta, hash sha256 da entrada, politica aplicada, resultado, custo
e hash do recibo anterior, formando uma corrente verificavel com node:crypto.

## Como usar

### Adicionar um recibo

```bash
node cli.mjs append receipts.jsonl \
  --agent "Claude" \
  --tool "file_edit" \
  --input "conteudo alterado" \
  --policy "pode escrever" \
  --status ok \
  --cost 0.002
```

### Verificar corrente

```bash
node cli.mjs verify receipts.jsonl
```

### Ver resumo

```bash
node cli.mjs show receipts.jsonl
```

## Formato do recibo

Cada linha do arquivo JSONL e um recibo com:

| Campo | Tipo | Descricao |
|---|---|---|
| id | number | Identificador sequencial |
| timestamp | string | ISO 8601 |
| agent | string | Nome do agente |
| tool | string | Ferramenta chamada |
| inputHash | string | SHA-256 da entrada |
| policy | string | Politica que autorizou |
| status | string | ok ou erro |
| cost | number | Custo estimado |
| prevHash | string\|null | Hash do recibo anterior |
| receiptHash | string | SHA-256 deste recibo |

## Arquitetura

- `lib.mjs` — funcoes puras (buildReceipt, verifyChain, summarize), sem I/O
- `cli.mjs` — interface de comando com append, verify, show
- `test.mjs` — 8 testes cobrindo adulteracao, remocao, corrente valida e vazio

Files in this skill

  • PROVENANCE.md1 KB
  • README.md761 B
  • SKILL.md1.6 KB
  • cli.mjs5.3 KB
  • exemplos/exemplo.jsonl1 KB
  • lib.mjs2 KB
  • package.json141 B
  • test.mjs4.1 KB

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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

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