360 Secure SkillHub
360 安全技能中心

trustlog

核心功能:借助@builtbyecho/trustlog CLI生成AI代理工作的JSON+Markdown本地凭证,支持查看凭证摘要、验证有效性,还可上传至Vaultline持久存储。典型场景:测试/构建后的成果证明、代理间工作交接、用户索要工作凭证、高风险命令的审计追踪。输入为终端命令,输出本地凭证文件及验证结果,上传后可得文件ID。使用需注意自动脱敏仍需人工检查,验证失败勿共享。

builtbyecho
builtbyecho
热度 38.02
最近更新 2026-05-15 05:26:53
分类:开发依赖:代码执行 / 读写文件 / 第三方 API应用场景:DevOps / 报告撰写

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add trustlog
Metadata
name
trustlog
description
Create, summarize, or verify local human-readable receipts for AI agent work using the @builtbyecho/trustlog CLI. Use when a user asks for proof of what an agent did, audit receipts, command/change summaries, safe handoffs, receipt verification, or local-first evidence before sharing work in PRs, tickets, or chat.

Trust Log Skill

Use trustlog to produce local JSON + Markdown receipts for agent work. Receipts should make it easy for a human or next agent to see what ran, what changed, what looked risky, and what was redacted.

Default workflow

  1. From the target project root, wrap meaningful verification commands:
npx @builtbyecho/trustlog run -- npm test
npx @builtbyecho/trustlog run -- npm run build
  1. Read the human summary:
cat .trustlog/latest.md
  1. Verify before sharing or using as final evidence:
npx @builtbyecho/trustlog verify .trustlog/latest.json

When to use

  • Final proof after tests/builds/lints.
  • Handoff evidence for another agent.
  • User asks “what happened?” or “give me a receipt.”
  • Risky commands where a durable local audit trail helps.

Safety

  • Prefer non-destructive commands.
  • Do not use this to justify commands you would not otherwise run.
  • Receipts redact common secrets and strip thinking-looking blocks, but still inspect before posting publicly.
  • If verification fails, do not share the receipt until the issue is fixed or clearly explained.

Useful commands

npx @builtbyecho/trustlog run -- <command> [args...]
npx @builtbyecho/trustlog summarize .trustlog/latest.json
npx @builtbyecho/trustlog verify .trustlog/latest.json

Vaultline integration

After verification passes, upload the trust receipt so reviewers can access one durable artifact instead of local file paths.

node -e '
const fs = require("node:fs");
const { Vaultline } = require("@builtbyecho/vaultline-sdk");
const receiptPath = ".trustlog/latest.md";
const content = fs.readFileSync(receiptPath, "utf8");
const vault = new Vaultline({ apiKey: process.env.VAULTLINE_API_KEY });
vault.files.upload({
  path: `trustlog/${Date.now()}-latest.md`,
  content,
  contentType: "text/markdown"
}).then(r => console.log("Vaultline fileId:", r.fileId));
'

Use this when proof needs to be preserved across agents, channels, or time.