mini-taiwan-pulse: Command for Claude Code

.claude/commands/handoff.md

handoff is a command for Claude Code from ianlkl11234s/mini-taiwan-pulse. It costs 41 tokens per session (946 once invoked), scanned A, original, MIT.

A command that compares recent commits for one feature across four connected repositories. A repository is a project's version-controlled codebase.

In plain words
What is it for?
Use it to review a feature's upstream and downstream status, collect commit details, and check for changes that have drifted apart.
Why use it?
It makes it easier to spot missing or inconsistent changes before a pull request or data-contract update.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions CLAUDE.md; positional $N argument.

This is ianlkl11234s/mini-taiwan-pulse's own configuration. It tells Claude Code how to work on mini-taiwan-pulse itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mini-taiwan-pulse configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is cat ../taipei-gis-analytics/docs/handoff/$1.md 2>/dev/null || echo "上游 handoff 尚未建".

Reuse

Borrowing it

Nothing to install: this file belongs to ianlkl11234s/mini-taiwan-pulse. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ianlkl11234s/mini-taiwan-pulse/master/.claude/commands/handoff.md
Clone the repo
git clone --depth 1 https://github.com/ianlkl11234s/mini-taiwan-pulse

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for handoff

README.md
[![agentmods](https://agentmods.dev/badge/commands/ianlkl11234s/mini-taiwan-pulse/handoff/github.svg)](https://agentmods.dev/commands/ianlkl11234s/mini-taiwan-pulse/handoff)
Your own site
<a href="https://agentmods.dev/commands/ianlkl11234s/mini-taiwan-pulse/handoff"><img src="https://agentmods.dev/badge/commands/ianlkl11234s/mini-taiwan-pulse/handoff/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for handoff

Your own site · 80×15
<a href="https://agentmods.dev/commands/ianlkl11234s/mini-taiwan-pulse/handoff"><img src="https://agentmods.dev/badge/commands/ianlkl11234s/mini-taiwan-pulse/handoff.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 946 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00041 $0.00946
Opus 5 $0.00020 $0.00473
Sonnet 5 $0.00008 $0.00189
Haiku 4.5 $0.00004 $0.00095

Measured 11d ago against content hash 122241b23483, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

handoff scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/handoff.md · 103 lines

How it starts

The opening of the file, as written. The whole thing — 103 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/handoff

盤點某 feature 在整條 pipeline(upstream → downstream)的跨 repo 狀態。用於:

  • 準備開 PR 前確認上下游對得起來
  • 資料契約要改前確認影響哪些 repo
  • 開新 handoff.md 前收集素材

參數

  • $1 (必填):feature slug(與 docs/features/<slug>/ 一致),例如 real-estate / fire-rescue
  • --since=YYYY-MM-DD (選填):只看該日之後的 commit,預設近 30 天

執行步驟

Claude 收到後執行以下(用 Bash / Read,不要修改任何檔案):

Step 1 — 讀對應文件

# 下游 feature 資料夾
cat docs/features/$1/README.md
cat docs/features/$1/changelog.md
cat docs/features/$1/handoff.md
cat docs/features/$1/backlog.md 2>/dev/null

# 上游 handoff SSOT
cat ../taipei-gis-analytics/docs/handoff/$1.md 2>/dev/null || echo "上游 handoff 尚未建"

Step 2 — 掃 4 repo 的相關 commit

SINCE="${2:-30 days ago}"
SLUG="$1"

echo "=== mini-taiwan-pulse ==="
git log --oneline --since="$SINCE" | grep -iE "$SLUG|${SLUG//-/[-_ ]}"

echo "=== taipei-gis-analytics ==="
(cd ../taipei-gis-analytics && git log --oneline --since="$SINCE" | grep -iE "$SLUG")

echo "=== gis-platform ==="
(cd ../gis-platform && git log --oneline --since="$SINCE" | grep -iE "$SLUG")

echo "=== data-collectors ==="
(cd ../data-collectors && git log --oneline --since="$SINCE" | grep -iE "$SLUG")

Step 3 — 檢查漂移

  • 上下游 handoff 有沒有指到同一個 S3 path / RPC / migration #
  • changelog 最後日期 vs 各 repo 最新 commit 日期是否吻合
  • 有沒有「上游改了但下游沒跟」的欄位

Step 4 — 產出報告

Claude 用 markdown 表格回報:

## Feature: <slug>

### 4 repo 近況
| Repo | 最新相關 commit | 未 push? |
|---|---|---|
| mini-taiwan-pulse | ... | Yes/No |
| taipei-gis-analytics | ... | ... |
| gis-platform | ... | ... |
| data-collectors | ... | ... |

### 契約狀態
- Upstream handoff:✅/⚠️/❌
- Downstream handoff.md 反向引用:✅/❌
- 硬依賴欄位對得上:✅/⚠️/❌ (列缺項)

### 建議動作
- [ ] ...

範例

/handoff real-estate
/handoff fire-rescue --since=2026-06-01

不做

  • ❌ 不改任何檔案(純 read-only 盤點)
  • ❌ 不決定要不要改 → 只列狀態給用戶判斷
  • ❌ 若 feature 資料夾不存在 → 提示先建 cp -r docs/features/_TEMPLATE docs/features/<slug>
  • docs/features/<slug>/ — 下游 feature 文件
  • ../taipei-gis-analytics/docs/handoff/<slug>.md — 上游 SSOT
  • Skill:layer-onboarding Step 5(跨 repo 對齊)
  • CLAUDE.md §Git Workflow §跨 repo 同步順序

Read the full file on GitHub · 103 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 103 lines · 41 tokens per session scan A 122241b23483

Subscribe to this mod's changes

handoff is a command published in the GitHub repository ianlkl11234s/mini-taiwan-pulse (504 stars, last pushed today), licensed MIT. It adds 41 tokens to every session and 946 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.