360 Secure SkillHub
360 安全技能中心

trustlog

该 Skill 指导使用 @builtbyecho/trustlog CLI 包装 npm test、npm run build 等验证命令,在项目根目录生成 .trustlog 下的 JSON 与 Markdown 收据,说明执行了什么、改动了什么、风险与脱敏情况;分享前可用 verify 校验,并可通过 Vaultline SDK 上传收据以便跨代理、跨渠道留存。

builtbyecho
builtbyecho
热度 38.03
最近更新 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.