From fdf6b2b7717b4b50bf28fdba05fecd7a085493fd Mon Sep 17 00:00:00 2001 From: Jeffery Date: Mon, 24 Aug 2026 18:54:19 +0800 Subject: [PATCH] =?UTF-8?q?fix(wiki=20=E9=80=A3=E7=B5=90):=20=E8=B7=A8?= =?UTF-8?q?=E9=A0=81=E5=9E=8B=E9=80=A3=E7=B5=90=E6=94=B9=E7=94=A8=E7=B5=95?= =?UTF-8?q?=E5=B0=8D=E7=B6=B2=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5 (1M context) --- skills/worklog/SKILL.md | 4 ++-- templates/log-entry.md | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/skills/worklog/SKILL.md b/skills/worklog/SKILL.md index b08c2c7..2b7a90c 100644 --- a/skills/worklog/SKILL.md +++ b/skills/worklog/SKILL.md @@ -13,8 +13,8 @@ After work completes, collect the ten items below and append a `templates/log-en | --- | --- | --- | | 1 | Repository name | Parse `{owner}/{repo}` from `git remote get-url origin` | | 2 | Branch name | `git branch --show-current` | -| 3 | Plan name | Link to the plan page `[[PLAN_{HASH}]]` | -| 4 | Work package id | Link to the work package heading on the analyze page `[[ANALYZE_{HASH}#WP-xx]]` | +| 3 | Plan name | Absolute link to the plan page: `[PLAN_{HASH}]()`, where `` comes from `jsc-gitea/tools/gitea.sh wiki-url {owner}/{repo} PLAN_{HASH}` — PLAN and LOG may live in different wiki repos, and `[[...]]` only resolves inside one wiki | +| 4 | Work package id | Absolute link to the work package heading: `[WP-xx](#wp-xx)`, `` from `gitea.sh wiki-url {owner}/{repo} ANALYZE_{HASH}` | | 5 | Elapsed time | `jsc-hooks/hooks/session-timer.sh report {session_id}` (seconds; convert to h/m) | | 6 | Token usage | See the table below; per-CLI methods differ. Fill `N/A` when unavailable | | 7 | Task status | One of the literal values 「完成」、「部分完成」、「阻塞」 (with reason when blocked) | diff --git a/templates/log-entry.md b/templates/log-entry.md index 27c6969..8aa2954 100644 --- a/templates/log-entry.md +++ b/templates/log-entry.md @@ -2,6 +2,7 @@ > 由 `jsc-log:worklog` 維護。每完成一項工作附加一個條目在文末。 > `HASH` 依共享規則計算;頁名不再寫入年月週數,但頁內仍依本工作週的週五整理內容。 +> {PLAN 頁絕對網址}、{ANALYZE 頁絕對網址} 由 `jsc-gitea/tools/gitea.sh wiki-url` 取得——LOG 與 PLAN/ANALYZE 可能分屬不同存取庫,`[[頁名]]` 跨庫不通。 --- @@ -11,8 +12,8 @@ | --- | --- | | 存取庫名稱 | {owner}/{repo} | | 分支名稱 | {branch} | -| 計畫名稱 | [[PLAN_{HASH}|{計畫名稱}]] | -| 工作包編號 | [[ANALYZE_{HASH}#wp-{編號}|WP-{編號} {工作包標題}]] | +| 計畫名稱 | [{計畫名稱}]({PLAN 頁絕對網址}) | +| 工作包編號 | [WP-{編號} {工作包標題}]({ANALYZE 頁絕對網址}#wp-{編號}) | | 花費時間 | {h} 小時 {m} 分(session-timer report) | | token 用量 | {CLI}: {input}/{output}(不可得填 N/A) | | 任務狀態 | 完成、部分完成、阻塞({原因})三選一 |