agentleFS
Abner-MachadoAbner-Machado/agent-layer/agent-trust-passport/SKILL.md

agent-trust-passport

Skill2 starsChanged 57 days agoMITView on GitHub

Use quando precisa criar, consultar ou verificar a identidade e permissoes de um agente de IA — quem ele e, o que pode fazer, historico de acoes e incidentes. Tambem use para validar integridade de passaportes existentes com hash SHA-256. Nao use para autenticacao de usuarios ou gerenciamento de chaves de API.

The file

Files
SKILL.md

agent-trust-passport

Um passaporte JSON portatil que viaja com o agente, registrando identidade, permissoes, historico e incidentes. Hash de integridade previne adulteracao.

Como um agente usa

Criar passaporte

node cli.mjs init meu-passaporte.json "Nome do Agente" --permissions read,write --tools fs,http

Conceder permissao

node cli.mjs grant meu-passaporte.json deploy --reason "deploy aprovado pelo operador"

Revogar permissao

node cli.mjs revoke meu-passaporte.json deploy --reason "cesso temporaria encerrada"

Registrar incidente

node cli.mjs incident meu-passaporte.json medio "tentativa de acesso nao autorizado"

Verificar integridade

node cli.mjs verify meu-passaporte.json

Formato do passaporte

{
  "identity": { "id": "uuid", "name": "Agente", "version": "1.0.0" },
  "permissions": ["read", "write"],
  "tools": ["fs", "http"],
  "history": [
    { "action": "grant", "permission": "read", "date": "2026-08-30T...", "reason": "initial grant" }
  ],
  "incident": [
    { "date": "2026-08-30T...", "severity": "alto", "description": "..." }
  ],
  "hash": "sha256..."
}

Biblioteca (lib.mjs)

import { newPassport, grantPermission, revokePermission, recordIncident, validatePassport } from "./lib.mjs";

Toda operacao que altera o passaporte atualiza o hash automaticamente.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.