360 Secure SkillHub
360 安全技能中心

ds-ledger

为长时或无人值守的多阶段任务建立逐决策 TSV 台账:每步前重读目标与最近记录,决策后记录时间、阶段、原因、可核验证据和结果,结束时写摘要行,并在连续无进展时停止。

分类:知识
aicodeking
热度 0.00
最近更新 2026-11-01 05:11:35

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add aicodeking/deepseek-stack/ds-ledger
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
ds-ledger
description
Keep a one-row-per-decision log during long or unattended runs, and re-read it before each step so the run does not drift from its goal. Use for multi-phase or autonomous work, work a human will review later, or /ds-ledger.

ds-ledger

A long run forgets its own reasons. A short written ledger keeps the goal in view and lets a reviewer trust the result.

Steps

  1. Create one TSV file, for example .ds-ledger.tsv, with the header ts phase decision why evidence result. Put the goal and done condition in the first row.
  2. Before each step, re-read the goal row and the last ten rows. Check that the next step still serves the goal. If it does not, log the drift and correct course.
  3. After each real decision, append one row:
    • ts: ISO 8601 time.
    • phase: the phase or workstream.
    • decision: what you chose or did, one line.
    • why: the reason in plain words.
    • evidence: a pointer, never prose. A commit hash, file:line, a command and its result, or an artifact path.
    • result: the outcome, such as "tests pass", "reverted", "open".
  4. Keep each cell on one line with no tabs.
  5. Log reverts and dropped work too, with the reason. Failures are the most useful rows.
  6. At the end, add a summary row and point the user to the file. Commit it only if a reviewer needs it.

Stop when

  • The run ends and the summary row is written.
  • If three rows in a row show no progress toward the goal, stop the run and report.

Rules

  • Every row needs evidence you can open or rerun. "Looked fine" is not evidence.
  • Write rows the way you would tell a teammate, plain and concrete.
  • Do not rewrite old rows. Append corrections.