workflow-ledger 0.3.5 → 0.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/docs/cli.md CHANGED
@@ -1,14 +1,14 @@
1
1
  # CLI
2
2
 
3
- `workflow-ledger` includes a small zero-dependency Bash CLI for project-local guardrails.
3
+ `workflow-ledger` includes a Node.js CLI for setup, initialization, ledger checks, task summaries, and optional hook installation.
4
4
 
5
- The installer copies it to:
5
+ The npm package exposes it as `workflow-ledger`. `setup --tool claude-code` also copies the same executable to:
6
6
 
7
7
  ```bash
8
- .claude/bin/workflow-ledger
8
+ ~/.claude/bin/workflow-ledger
9
9
  ```
10
10
 
11
- It does not modify your shell `PATH`.
11
+ It does not modify your shell `PATH`; use `npx workflow-ledger ...` when you do not have the package installed globally.
12
12
 
13
13
  ## Commands
14
14
 
@@ -16,9 +16,12 @@ It does not modify your shell `PATH`.
16
16
  workflow-ledger setup --tool claude-code
17
17
  workflow-ledger setup --tool codex
18
18
  workflow-ledger setup --tool all
19
- workflow-ledger init --tool claude-code
20
- workflow-ledger init --tool codex
21
- workflow-ledger init --tool all
19
+ workflow-ledger init
20
+ workflow-ledger init --lang en
21
+ workflow-ledger init --lang zh-CN
22
+ workflow-ledger init --tool claude-code --lang en
23
+ workflow-ledger init --tool codex --lang en
24
+ workflow-ledger init --tool all --lang en
22
25
  workflow-ledger doctor
23
26
  workflow-ledger list
24
27
  workflow-ledger hooks status
@@ -29,22 +32,24 @@ workflow-ledger hooks install
29
32
 
30
33
  Installs global Workflow Ledger integrations for supported AI coding tools.
31
34
 
32
- - `--tool claude-code` installs the global Claude Code skill to `~/.claude/skills/workflow-ledger` and copies the local CLI to `~/.claude/bin/workflow-ledger`.
35
+ - `--tool claude-code` installs the global Claude Code skill to `~/.claude/skills/workflow-ledger` and copies the Node CLI to `~/.claude/bin/workflow-ledger`.
33
36
  - `--tool codex` installs the Codex skill to `~/.agents/skills/workflow-ledger` when `~/.codex` exists.
34
37
  - `--tool all` configures all detected adapters.
35
38
 
36
- `setup` is environment-level and may skip tools that are not installed.
39
+ `setup` is environment-level and may skip tools that are not installed. It only makes Workflow Ledger available; it does not activate the workflow in every project.
37
40
 
38
41
  ## `init`
39
42
 
40
- Creates project-local Workflow Ledger files for selected tools.
43
+ Creates project-local Workflow Ledger files for selected tools. This is the activation step for a repository. Bare `init` asks for a language when run in a terminal; pass `--lang en` or `--lang zh-CN` for non-interactive use.
41
44
 
42
45
  - `--tool claude-code` creates `.claude/WORKFLOW.md` and updates `CLAUDE.md`.
43
46
  - `--tool codex` creates `.workflow-ledger/WORKFLOW.md` and updates `AGENTS.md`.
44
47
  - `--tool all` initializes both project adapters.
48
+ - `--lang en` creates English ledger templates and instruction snippets.
49
+ - `--lang zh-CN` creates Simplified Chinese ledger templates and instruction snippets.
45
50
  - `--root PATH` targets a project root other than the current directory.
46
51
 
47
- `init` preserves existing ledger files and instruction sections.
52
+ `init` preserves existing ledger files and instruction sections. Without `init`, installed skills stay dormant for ordinary development work.
48
53
 
49
54
  ## `doctor`
50
55
 
@@ -80,8 +85,8 @@ If `.claude/WORKFLOW.md` is missing, `list` prints a message and exits `0`.
80
85
  Hooks are optional and advisory.
81
86
 
82
87
  ```bash
83
- .claude/bin/workflow-ledger hooks status
84
- .claude/bin/workflow-ledger hooks install
88
+ workflow-ledger hooks status
89
+ workflow-ledger hooks install
85
90
  ```
86
91
 
87
92
  `hooks install` writes these project-local hook files:
package/docs/design.md CHANGED
@@ -33,7 +33,7 @@ The skill teaches Claude how to:
33
33
 
34
34
  ## Task levels
35
35
 
36
- - Level 0: Q&A/read-only, no ledger.
36
+ - Level 0: Q&A/read-only/tagging or release-version publishing, no ledger.
37
37
  - Level 1: lightweight edit, ledger optional.
38
38
  - Level 2: standard code work, ledger required.
39
39
  - Level 3: complex work, ledger required and optional attachments allowed.
@@ -35,7 +35,7 @@ skill 指导 Claude:
35
35
 
36
36
  ## 任务级别
37
37
 
38
- - Level 0:问答 / 只读解释,不需要 ledger。
38
+ - Level 0:问答 / 只读解释 / 新增 tag 或发布版本,不需要 ledger。
39
39
  - Level 1:轻量修改,ledger 可选。
40
40
  - Level 2:标准代码任务,需要 ledger。
41
41
  - Level 3:复杂任务,需要 ledger,可选附件。
package/docs/usage.md CHANGED
@@ -16,18 +16,21 @@ npx workflow-ledger setup --tool codex
16
16
  npx workflow-ledger setup --tool all
17
17
  ```
18
18
 
19
- Then initialize the project ledger from the project root:
19
+ `setup` only installs the integration. It does not activate Workflow Ledger in every repository.
20
+
21
+ Then initialize the project ledger from the project root. Bare `init` prompts for a language in an interactive terminal; automation can pass `--lang en` or `--lang zh-CN`:
20
22
 
21
23
  ```bash
22
24
  npx workflow-ledger init
23
- npx workflow-ledger init --tool claude-code
24
- npx workflow-ledger init --tool codex
25
- npx workflow-ledger init --tool all
25
+ npx workflow-ledger init --lang en
26
+ npx workflow-ledger init --tool claude-code --lang en
27
+ npx workflow-ledger init --tool codex --lang en
28
+ npx workflow-ledger init --tool all --lang en
26
29
  ```
27
30
 
28
- The `claude-code` project adapter creates `.claude/WORKFLOW.md` and updates `CLAUDE.md`. The `codex` project adapter creates `.workflow-ledger/WORKFLOW.md` and updates `AGENTS.md`.
31
+ The `claude-code` project adapter creates `.claude/WORKFLOW.md` and updates `CLAUDE.md`. The `codex` project adapter creates `.workflow-ledger/WORKFLOW.md` and updates `AGENTS.md`. This `init` step activates Workflow Ledger for the repository. The language option controls newly created templates and instruction snippets.
29
32
 
30
- The Bash installer remains available:
33
+ The Bash installer remains available. It uses the Node.js CLI internally, so Node.js 18 or newer is required:
31
34
 
32
35
  ```bash
33
36
  curl -fsSL https://raw.githubusercontent.com/MorseWayne/workflow-ledger/main/install.sh | bash
@@ -68,16 +71,16 @@ workflow-ledger list
68
71
  workflow-ledger hooks status
69
72
  ```
70
73
 
71
- For Claude Code project-local installs, the copied CLI is also available:
74
+ After `setup --tool claude-code`, the same executable is also available at:
72
75
 
73
76
  ```bash
74
- .claude/bin/workflow-ledger doctor
77
+ ~/.claude/bin/workflow-ledger doctor
75
78
  ```
76
79
 
77
80
  Install optional advisory hooks only when you want SessionStart reminders:
78
81
 
79
82
  ```bash
80
- .claude/bin/workflow-ledger hooks install
83
+ workflow-ledger hooks install
81
84
  ```
82
85
 
83
86
  The CLI is a guardrail and summary tool. Claude still uses the `workflow-ledger` skill for the actual workflow.
@@ -18,18 +18,21 @@ npx workflow-ledger setup --tool codex
18
18
  npx workflow-ledger setup --tool all
19
19
  ```
20
20
 
21
- 然后在项目根目录初始化 ledger:
21
+ `setup` 只安装工具接入,不会让 Workflow Ledger 在所有仓库里自动生效。
22
+
23
+ 然后在项目根目录初始化 ledger。裸 `init` 会在交互式终端里询问语言;自动化脚本可传 `--lang en` 或 `--lang zh-CN`:
22
24
 
23
25
  ```bash
24
26
  npx workflow-ledger init
25
- npx workflow-ledger init --tool claude-code
26
- npx workflow-ledger init --tool codex
27
- npx workflow-ledger init --tool all
27
+ npx workflow-ledger init --lang zh-CN
28
+ npx workflow-ledger init --tool claude-code --lang zh-CN
29
+ npx workflow-ledger init --tool codex --lang zh-CN
30
+ npx workflow-ledger init --tool all --lang zh-CN
28
31
  ```
29
32
 
30
- `claude-code` 项目 adapter 会创建 `.claude/WORKFLOW.md` 并更新 `CLAUDE.md`。`codex` 项目 adapter 会创建 `.workflow-ledger/WORKFLOW.md` 并更新 `AGENTS.md`。
33
+ `claude-code` 项目 adapter 会创建 `.claude/WORKFLOW.md` 并更新 `CLAUDE.md`。`codex` 项目 adapter 会创建 `.workflow-ledger/WORKFLOW.md` 并更新 `AGENTS.md`。这一步会在当前仓库启用 Workflow Ledger。语言选项控制新建模板和工具指令片段。
31
34
 
32
- Bash 安装脚本仍然可用:
35
+ Bash 安装脚本仍然可用。它内部使用 Node.js CLI,因此需要 Node.js 18 或更高版本:
33
36
 
34
37
  ```bash
35
38
  curl -fsSL https://raw.githubusercontent.com/MorseWayne/workflow-ledger/main/install.sh | bash
@@ -2,7 +2,8 @@
2
2
 
3
3
  Use `workflow-ledger` for recoverable development work.
4
4
 
5
- - Classify tasks before executing: Level 0 Q&A, Level 1 lightweight edit, Level 2 standard code work, Level 3 complex work.
5
+ - Workflow Ledger is active only after project initialization. If `.claude/WORKFLOW.md` is missing, do not use this workflow for ordinary development work; run `npx workflow-ledger init` first.
6
+ - Classify tasks before executing: Level 0 Q&A/read-only/release tagging, Level 1 lightweight edit, Level 2 standard code work, Level 3 complex work.
6
7
  - Maintain `.claude/WORKFLOW.md` for Level 2/3 tasks and for any task the user wants tracked across sessions.
7
8
  - Organize tracked work as resume state: `Intent`, mutable `Current todo`, `Prerequisites`, optional `Blocked by`, and one concrete `Resume next`.
8
9
  - Before closing work, move it to `Completed` with a short `Close summary`: outcome, validation, and gaps; failed validation means the task stays In Progress or Blocked.
@@ -15,4 +16,4 @@ Do not rationalize skipping the ledger:
15
16
  - “This is small” still requires Level classification; Level 2/3 work is tracked.
16
17
  - “I will update it later” is unsafe; update at material todo/scope changes, blockers, validation results, and handoff points.
17
18
  - TodoWrite is session-local; `.claude/WORKFLOW.md` is the durable recovery state.
18
- - Keep core fields stable so `.claude/bin/workflow-ledger doctor` can check the ledger.
19
+ - Keep core fields stable so `workflow-ledger doctor` can check the ledger.
@@ -0,0 +1,19 @@
1
+ ## Workflow Ledger
2
+
3
+ 使用 `workflow-ledger` 跟踪可恢复的开发工作。
4
+
5
+ - Workflow Ledger 只有在项目初始化后才生效。如果缺少 `.claude/WORKFLOW.md`,不要把普通开发任务套用到此工作流;先运行 `npx workflow-ledger init`。
6
+ - 执行前先分级:Level 0 问答/只读/发布 tag,Level 1 轻量编辑,Level 2 标准代码工作,Level 3 复杂工作。
7
+ - Level 2/3 任务,以及用户希望跨会话跟踪的任务,都维护在 `.claude/WORKFLOW.md` 中。
8
+ - 被跟踪的工作只记录恢复状态:`Intent`、可变的 `Current todo`、`Prerequisites`、可选的 `Blocked by`,以及一个具体的 `Resume next`。
9
+ - 关闭工作前,把任务移到 `Completed`,写简短 `Close summary`:outcome、validation、gaps;验证失败时任务保持 In Progress 或 Blocked。
10
+ - 记录依赖和发现的未来任务;先完成阻塞当前工作的前置条件,把非阻塞发现延后到 Backlog/Future。
11
+ - 当前会话执行用 TodoWrite;里程碑历史和恢复点用 `.claude/WORKFLOW.md`。
12
+ - 不要创建附件或额外 spec 文件,除非 Level 3 工作确实需要,或用户明确要求。
13
+
14
+ 不要找理由跳过 ledger:
15
+
16
+ - “这个很小”仍然需要分级;Level 2/3 工作必须跟踪。
17
+ - “我之后再更新”不安全;在重要待办/范围变化、阻塞、验证结果和交接点更新。
18
+ - TodoWrite 是会话本地状态;`.claude/WORKFLOW.md` 是持久恢复状态。
19
+ - 保持核心字段稳定,让 `workflow-ledger doctor` 能检查 ledger。
@@ -2,6 +2,7 @@
2
2
 
3
3
  Use Workflow Ledger as shared resume state for Codex sessions.
4
4
 
5
+ - Workflow Ledger is active only after project initialization. If `.workflow-ledger/WORKFLOW.md` is missing, do not use this workflow for ordinary development work; run `npx workflow-ledger init --tool codex` first.
5
6
  - Read `.workflow-ledger/WORKFLOW.md` before resuming tracked work.
6
7
  - Track Level 2/3 or cross-session tasks in `.workflow-ledger/WORKFLOW.md`.
7
8
  - Keep the ledger short: current work, progress, and one concrete `Resume next` action.
@@ -0,0 +1,12 @@
1
+ # Workflow Ledger
2
+
3
+ 把 Workflow Ledger 作为 Codex 会话共享的恢复状态。
4
+
5
+ - Workflow Ledger 只有在项目初始化后才生效。如果缺少 `.workflow-ledger/WORKFLOW.md`,不要把普通开发任务套用到此工作流;先运行 `npx workflow-ledger init --tool codex`。
6
+ - 恢复被跟踪的工作前,先读取 `.workflow-ledger/WORKFLOW.md`。
7
+ - Level 2/3 或跨会话任务记录在 `.workflow-ledger/WORKFLOW.md`。
8
+ - 保持 ledger 简短:当前工作、进展,以及一个具体的 `Resume next` 动作。
9
+ - 默认只有一个 Active 任务;不确定的后续事项放到 Backlog/Future。
10
+ - 使用 `Intent`、可变的 `Current todo`、`Prerequisites`、可选的 `Blocked by`,以及一个具体的 `Resume next`。
11
+ - 关闭工作前记录简短 `Close summary`:outcome、validation、gaps。
12
+ - 不要把完整命令输出、原始工具 JSON、详细 diff 或临时推理粘进 ledger。
package/install.sh CHANGED
@@ -3,7 +3,6 @@ set -euo pipefail
3
3
 
4
4
  REPO_URL="https://github.com/MorseWayne/workflow-ledger"
5
5
  ARCHIVE_URL="https://github.com/MorseWayne/workflow-ledger/archive/refs/heads/main.tar.gz"
6
- MARKER="## Workflow Ledger"
7
6
  TARGET_DIR="${1:-$PWD}"
8
7
 
9
8
  TARGET_DIR="$(cd "$TARGET_DIR" && pwd)"
@@ -22,7 +21,7 @@ cleanup() {
22
21
  trap cleanup EXIT
23
22
 
24
23
  SOURCE_DIR="$SCRIPT_DIR"
25
- if [ ! -d "$SOURCE_DIR/skills/workflow-ledger" ] || [ ! -f "$SOURCE_DIR/examples/claude-project/CLAUDE.md.snippet" ] || [ ! -f "$SOURCE_DIR/bin/workflow-ledger" ]; then
24
+ if [ ! -d "$SOURCE_DIR/skills/workflow-ledger" ] || [ ! -f "$SOURCE_DIR/examples/claude-project/CLAUDE.md.snippet" ] || [ ! -f "$SOURCE_DIR/bin/workflow-ledger.js" ]; then
26
25
  if ! command -v curl >/dev/null 2>&1; then
27
26
  echo "error: curl is required when install.sh is run outside a workflow-ledger checkout" >&2
28
27
  exit 1
@@ -37,39 +36,13 @@ if [ ! -d "$SOURCE_DIR/skills/workflow-ledger" ] || [ ! -f "$SOURCE_DIR/examples
37
36
  SOURCE_DIR="$cleanup_dir/workflow-ledger-main"
38
37
  fi
39
38
 
40
- if command -v node >/dev/null 2>&1 && [ -f "$SOURCE_DIR/bin/workflow-ledger.js" ]; then
41
- node "$SOURCE_DIR/bin/workflow-ledger.js" init --tool claude-code --root "$TARGET_DIR"
42
- else
43
- mkdir -p "$TARGET_DIR/.claude/skills" "$TARGET_DIR/.claude" "$TARGET_DIR/.claude/bin"
44
- rm -rf "$TARGET_DIR/.claude/skills/workflow-ledger"
45
- cp -R "$SOURCE_DIR/skills/workflow-ledger" "$TARGET_DIR/.claude/skills/workflow-ledger"
46
- cp "$SOURCE_DIR/bin/workflow-ledger" "$TARGET_DIR/.claude/bin/workflow-ledger"
47
- chmod +x "$TARGET_DIR/.claude/bin/workflow-ledger"
48
-
49
- if [ ! -f "$TARGET_DIR/.claude/WORKFLOW.md" ]; then
50
- cp "$SOURCE_DIR/skills/workflow-ledger/templates/WORKFLOW.md" "$TARGET_DIR/.claude/WORKFLOW.md"
51
- echo "created .claude/WORKFLOW.md"
52
- else
53
- echo "kept existing .claude/WORKFLOW.md"
54
- fi
55
-
56
- if [ ! -f "$TARGET_DIR/CLAUDE.md" ]; then
57
- touch "$TARGET_DIR/CLAUDE.md"
58
- fi
59
-
60
- if grep -Fq "$MARKER" "$TARGET_DIR/CLAUDE.md"; then
61
- echo "kept existing Workflow Ledger section in CLAUDE.md"
62
- else
63
- if [ -s "$TARGET_DIR/CLAUDE.md" ]; then
64
- printf '\n\n' >> "$TARGET_DIR/CLAUDE.md"
65
- fi
66
- cat "$SOURCE_DIR/examples/claude-project/CLAUDE.md.snippet" >> "$TARGET_DIR/CLAUDE.md"
67
- echo "updated CLAUDE.md"
68
- fi
69
-
70
- echo "installed workflow-ledger for Claude Code"
39
+ if ! command -v node >/dev/null 2>&1; then
40
+ echo "error: workflow-ledger requires Node.js 18 or newer" >&2
41
+ exit 1
71
42
  fi
72
43
 
44
+ node "$SOURCE_DIR/bin/workflow-ledger.js" init --tool claude-code --root "$TARGET_DIR"
45
+
73
46
  echo "installed workflow-ledger into $TARGET_DIR"
74
47
  echo "next: run /workflow-ledger start \"your task\" in Claude Code"
75
- echo "optional: run .claude/bin/workflow-ledger doctor"
48
+ echo "optional: run npx workflow-ledger doctor"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "workflow-ledger",
3
- "version": "0.3.5",
3
+ "version": "0.3.8",
4
4
  "description": "Lightweight, recoverable workflow ledger for AI coding agents.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: workflow-ledger
3
- description: Lightweight OpenSpec-style change ledger for Claude Code. Use when starting, resuming, updating, closing, or reviewing multi-step code work; when todos may change during implementation; when the user wants traceability without heavyweight specs; or when a task may be interrupted and continued later.
4
- when_to_use: Use for development tasks that need mutable todo tracking, prerequisites, blockers, deferred follow-ups, or cross-session recovery. Skip for pure Q&A and trivial one-step edits unless the user requests tracking. Trigger phrases include "start task", "resume task", "update", "close", "workflow", "ledger", "recover", "continue previous task", "what is left", "review progress".
3
+ description: Lightweight OpenSpec-style change ledger for Claude Code. Active only in projects initialized with workflow-ledger init, or when the user explicitly asks to initialize/setup/install Workflow Ledger.
4
+ when_to_use: Use for development tasks that need mutable todo tracking, prerequisites, blockers, deferred follow-ups, or cross-session recovery only when `.claude/WORKFLOW.md` already exists. If the project is not initialized, do not manage work with this skill; only explain how to run `npx workflow-ledger init`. Skip for pure Q&A and trivial one-step edits unless the user requests tracking. Trigger phrases include "start task", "resume task", "update", "close", "workflow", "ledger", "recover", "continue previous task", "what is left", "review progress", "init workflow-ledger", "setup workflow-ledger".
5
5
  argument-hint: start|resume|update|close [task]
6
6
  ---
7
7
 
@@ -11,6 +11,12 @@ Use this skill to keep development work recoverable without turning progress not
11
11
 
12
12
  ## Core rule
13
13
 
14
+ Activation is explicit. This skill must not manage ordinary development work until the current project has been initialized with Workflow Ledger. Before starting, resuming, updating, or closing tracked work, check for `.claude/WORKFLOW.md`.
15
+
16
+ - If `.claude/WORKFLOW.md` exists, the project is initialized; follow this skill normally.
17
+ - If `.claude/WORKFLOW.md` is missing and the user asked to initialize, install, or set up Workflow Ledger, guide them to run `npx workflow-ledger init` or the installer.
18
+ - If `.claude/WORKFLOW.md` is missing and the user asked for unrelated development work, do not create a ledger, do not classify the task with this workflow, and do not apply this skill beyond saying the project is not initialized.
19
+
14
20
  Maintain one project overview file at `.claude/WORKFLOW.md` for Level 2/3 work and for any task the user wants tracked. The ledger is compressed resume state: it should answer what the active change is, what changed during execution, what is blocking or required next, and the one next action to take.
15
21
 
16
22
  Do not use the ledger for full operation logs, detailed diffs, raw GitNexus output, complete test output, temporary reasoning, or unrelated cleanup notes.
@@ -33,7 +39,7 @@ For project-local use, the installer configures all three pieces:
33
39
 
34
40
  Classify first. If uncertain, choose the lighter level unless risk appears.
35
41
 
36
- - **Level 0 — Q&A / read-only**: explain, answer, inspect without edits. No ledger required.
42
+ - **Level 0 — Q&A / read-only / release bookkeeping**: explain, answer, inspect without edits, create tags, or publish release versions. No ledger required.
37
43
  - **Level 1 — lightweight edit**: typo, docs tweak, formatting, tiny config, no runtime behavior change. Ledger optional.
38
44
  - **Level 2 — standard code work**: small bugfix, single-module behavior change, tests, provider logic, repeatable multi-step work. Use ledger.
39
45
  - **Level 3 — complex work**: new feature, cross-module or cross-repo changes, public API/data model changes, auth/streaming/concurrency/metrics, unclear requirements, high-risk impact. Use ledger and add attachments only when the ledger would otherwise become too long.
@@ -48,7 +54,7 @@ Escalate when you discover cross-file behavior changes, public API changes, fail
48
54
  - Do not rewrite `Completed` history except to fix an obvious error.
49
55
  - Do not do cross-task cleanup while updating one task.
50
56
  - Keep each Active task under roughly 80 lines.
51
- - Move short-lived release, cleanup, and index-refresh tasks to `Completed` as soon as they finish.
57
+ - If a short-lived release, cleanup, or index-refresh task is already tracked, move it to `Completed` as soon as it finishes.
52
58
 
53
59
  ## Ledger structure
54
60
 
@@ -116,7 +122,7 @@ Do not move non-blocking discoveries into `Current todo:` just because they were
116
122
 
117
123
  ## Start a tracked task
118
124
 
119
- 1. Locate or create `.claude/WORKFLOW.md` using [templates/WORKFLOW.md](templates/WORKFLOW.md).
125
+ 1. Locate `.claude/WORKFLOW.md`. If it is missing, stop and ask the user to run `npx workflow-ledger init`; do not create it implicitly.
120
126
  2. Create one `Active` task entry.
121
127
  3. Classify Level 0-3.
122
128
  4. Write the smallest `Intent:`.
@@ -0,0 +1,50 @@
1
+ # Workflow Ledger
2
+
3
+ Claude Code 开发工作的轻量级可恢复台账。
4
+
5
+ ## Active
6
+
7
+ <!-- workflow-ledger:task
8
+ id: WF-YYYY-MM-DD-001
9
+ level: 2
10
+ status: In Progress
11
+ current_phase: 当前焦点
12
+ updated: YYYY-MM-DD
13
+ -->
14
+
15
+ ### WF-YYYY-MM-DD-001 — 任务标题
16
+ Status: In Progress
17
+ Level: 2
18
+ Started: YYYY-MM-DD
19
+ Last updated: YYYY-MM-DD
20
+ Current phase: 当前焦点
21
+
22
+ Intent:
23
+ - 一个用户可见的目标或变更意图。
24
+
25
+ Current todo:
26
+ - [ ] 可随发现调整的下一步事项。
27
+
28
+ Changes:
29
+ - 记录会影响恢复上下文的范围、待办、前置条件或阻塞变化。
30
+
31
+ Prerequisites:
32
+ - 继续当前工作前必须满足的条件,或 None。
33
+
34
+ Resume next:
35
+ - 一个具体的下一步动作。
36
+
37
+ ## Backlog / Future
38
+
39
+ - [ ] 当前任务范围外发现的未来事项 — 因为不阻塞当前意图而延后。
40
+
41
+ ## Completed
42
+
43
+ ### WF-YYYY-MM-DD-000 — 已完成任务标题
44
+ Completed: YYYY-MM-DD
45
+ Level: 1
46
+
47
+ Close summary:
48
+ - Outcome: 用户可见结果。
49
+ - Validation: 已执行的检查。
50
+ - Gaps: 剩余后续事项或 none。
@@ -0,0 +1,50 @@
1
+ # Workflow Ledger
2
+
3
+ AI coding agent 共享的可恢复状态台账。
4
+
5
+ ## Active
6
+
7
+ <!-- workflow-ledger:task
8
+ id: WF-YYYY-MM-DD-001
9
+ level: 2
10
+ status: In Progress
11
+ current_phase: 当前焦点
12
+ updated: YYYY-MM-DD
13
+ -->
14
+
15
+ ### WF-YYYY-MM-DD-001 — 任务标题
16
+ Status: In Progress
17
+ Level: 2
18
+ Started: YYYY-MM-DD
19
+ Last updated: YYYY-MM-DD
20
+ Current phase: 当前焦点
21
+
22
+ Intent:
23
+ - 一个用户可见的目标或变更意图。
24
+
25
+ Current todo:
26
+ - [ ] 可随发现调整的下一步事项。
27
+
28
+ Changes:
29
+ - 记录会影响恢复上下文的范围、待办、前置条件或阻塞变化。
30
+
31
+ Prerequisites:
32
+ - 继续当前工作前必须满足的条件,或 None。
33
+
34
+ Resume next:
35
+ - 一个具体的下一步动作。
36
+
37
+ ## Backlog / Future
38
+
39
+ - [ ] 当前任务范围外发现的未来事项 — 因为不阻塞当前意图而延后。
40
+
41
+ ## Completed
42
+
43
+ ### WF-YYYY-MM-DD-000 — 已完成任务标题
44
+ Completed: YYYY-MM-DD
45
+ Level: 1
46
+
47
+ Close summary:
48
+ - Outcome: 用户可见结果。
49
+ - Validation: 已执行的检查。
50
+ - Gaps: 剩余后续事项或 none。