shutdown

shutdown is a skill for Claude Code, Codex from mathruffian-dot/cross-device-agent-skills-opencode. It costs 139 tokens per session (1,906 once invoked), scanned A, original, MIT.

A work handoff routine that saves project progress before you stop working. It updates local notes and may also save changes to Git and Obsidian when those are available.

In plain words
What is it for?
Updating AGENTS.md and handoff.md, committing and pushing Git changes, and writing detailed progress notes to an Obsidian vault. It is meant for ending a work session after making real project changes.
Why use it?
It prevents the next session, computer, or coding agent from losing track of what was done and what remains. It also records when some parts of the handoff could not be completed.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md; mentions OpenCode.

Good fit Updating AGENTS.md and handoff.md, committing and pushing Git changes, and writing detailed…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mathruffian-dot/cross-device-agent-skills-opencode/shutdown
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add mathruffian-dot/cross-device-agent-skills-opencode --skill shutdown
Clone the repo
git clone --depth 1 https://github.com/mathruffian-dot/cross-device-agent-skills-opencode

Made for: Claude Code, Codex.

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 shutdown

README.md
[![agentmods](https://agentmods.dev/badge/skills/mathruffian-dot/cross-device-agent-skills-opencode/shutdown.svg)](https://agentmods.dev/skills/mathruffian-dot/cross-device-agent-skills-opencode/shutdown)
Your own site
<a href="https://agentmods.dev/skills/mathruffian-dot/cross-device-agent-skills-opencode/shutdown"><img src="https://agentmods.dev/badge/skills/mathruffian-dot/cross-device-agent-skills-opencode/shutdown.svg" alt="Measured on agentmods" height="20"></a>
Per session 139 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,906 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.00139 $0.01906
Opus 5 $0.00069 $0.00953
Sonnet 5 $0.00028 $0.00381
Haiku 4.5 $0.00014 $0.00191

Measured 6d ago against content hash 8feba7561484, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

shutdown 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 6d 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.

shutdown/SKILL.md · 99 lines

How it starts

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

收工同步助手(三層級)

對話結束前,把這次的工作保存到專案建到的每一層:

層級 收工動作 給誰看
L1 本地 更新 AGENTS.md 進度+改寫 handoff.md 下一個 session 的任何 Agent、任何電腦
L2 GitHub commit + push 版本歷史+雲端備份
L3 Obsidian 詳細紀錄寫進 專案工作流程.md 未來需要完整脈絡的自己

核心原則

  1. 開工是「讀」、收工是「寫」——handoff.md 是收工的必寫項,這是跨電腦/跨 Agent 交接的生命線
  2. 不在 vacuum 中執行——先從對話脈絡盤點今天做了什麼
  3. 只動需要動的——沒實質進度(只是問問題、沒改檔案)就不跑同步
  4. 有疑問先問人——commit 前先給訊息草稿等點頭;不確定要不要 add 的檔案先問
  5. 精簡與詳細分家——handoff.md 只放交接必需資訊,完整脈絡(決策原因、踩坑細節)寫 Obsidian,兩邊不重複

層級偵測(收工看「這個專案」建到哪層)

  • L1:專案有 AGENTS.mdhandoff.md → 更新(沒有就提議先跑「初始化專案」)
  • L2:專案有 .git → commit + push
  • L3AGENTS.md 登記了 Obsidian 路徑,且目前有可用的 Obsidian MCP 工具(能讀寫 vault 筆記的工具)→ 寫詳細紀錄

判斷 L3 請看你手上實際有哪些工具,不要假設特定工具名稱。 低層級電腦打開高層級專案:做得到的照做,做不到的在 handoff.md 註明(例:「本次在無 Obsidian 的電腦收工,L3 筆記未更新」),回到高層級電腦時補。

收工 SOP(依序執行)

L1:更新藍圖與交接檔(永遠執行)

  1. 盤點本次成果:從對話歷史摘要——完成了哪些檔案、做了什麼決定、踩了什麼坑
  2. 更新 AGENTS.md
    • 路線圖 checklist:勾掉完成項、新增發現的待辦
    • 「資料夾結構」有新增檔案就補
  3. 改寫 handoff.md(整份重寫,不是往下堆):
    • ⏯️ 目前做到哪:本次最後完成的動作
    • 🚦 目前狀態:可運行?哪些做一半?
    • ➡️ 下一步:具體、可執行的 1-3 項
    • ⚠️ 注意事項:新踩的坑、暫時 workaround
    • 🕐 最後更新:時間+更新者(Agent 名 @ 電腦名)+ Git push 狀態(先寫「待推」,L2 完成後回填)
      • 電腦名取得方式:Windows(PowerShell)用 $env:COMPUTERNAME;Mac/Linux 用 hostname

L2:git 同步(專案有 .git 才做)

  1. git status --short 看變動 → 擬繁體中文 commit 訊息(標題:動詞+對象;正文 3-5 條 bullet 描述變動+為什麼)→ 給使用者過目,點頭再 commit
  2. commit → git push
  3. 回填 handoff.md 的 Git push 欄:成功 → ✅ 已推;失敗 → ❌ 未推(原因),並在回報中特別提醒(沒推成功,另一台電腦就拿不到 GitHub 備份)
  4. 不要 add:.env、API key、憑證檔、untracked 的不明新檔(先問)

L3:Obsidian 詳細紀錄(可用才做)

  1. 更新 <你的 vault>/<專案資料夾名>/專案工作流程.md
    • 「⏯️ 上次做到哪」段:同步 handoff 摘要
    • 「🗓️ 最近更動紀錄」表格:加一行(日期+摘要+同步狀態)
    • 「🕳️ 踩坑筆記」:有新坑就依分類補(含原因與解法,這裡寫詳細版)
    • 決策紀錄:本次做了什麼取捨、為什麼(handoff 不放這些,放這裡)
  2. 表格超過 30 行 → 提醒使用者歸檔到 歷史日誌.md

回報(層級 checklist)

✅ L1 本地:AGENTS.md 進度已更新、handoff.md 已改寫(更新者:<Agent> @ <電腦名>)
✅ L2 GitHub:<repo> 已 commit + push(<commit 標題>)
✅ L3 Obsidian:專案工作流程.md 已補紀錄
⚠️ 手動處理:<例:本次新增了 ~/.xxx_api_key,另一台電腦要手動建>

Read the full file on GitHub · 99 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. 6d ago First seen · 99 lines · 139 tokens per session scan A 8feba7561484

Subscribe to this mod's changes

shutdown is a skill published in the GitHub repository mathruffian-dot/cross-device-agent-skills-opencode (2 stars, last pushed 1mo ago), licensed MIT. It adds 139 tokens to every session and 1,906 once invoked, about $0.0007 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-31.

Related

Other skills, from other repositories

conventional-commit

Workflow for generating conventional commit messages following the Conventional Commits specification. MUST be invoked every time a commit is created. Guides construction of standardized commit messages with correct type, scope, description, body, and footer.

JanDeDobbeleer/oh-my-posh · 47 tokens

python-release

Handle Python SDK release, build, bump, packaging metadata, PyPI client pin, uv.lock, nox/build workflow, and publish verification changes. Use for Python release process work or dependency pin bumps; do not use for ordinary Python feature implementation.

ComposioHQ/composio · 53 tokens

release-notes

Generate and publish concise, evidence-based notes in the body of the latest existing GitHub Release. Use only when the user explicitly invokes $release-notes or explicitly asks to update the latest existing GitHub Release body. Do not invoke for general release planning, changelog, tag, or version tasks.

kenryu42/cc-safety-net · 65 tokens

contributor

End-to-end open source contribution workflow: from scanning issues to submitting PRs. Use this skill whenever the user wants to contribute to an open source project, find issues to fix, submit a pull request, fork a repo to contribute, fix a GitHub issue, or mentions 'open source contribution'. Also trigger when they…

majiayu000/spellbook · 111 tokens

git-commit-smart

Generates meaningful, conventional commit messages automatically. Use when committing code changes. Analyzes diff to create descriptive commits following best practices.

majiayu000/spellbook · 32 tokens

review-gate

Use before an agent-produced diff is committed, pushed, opened as a PR, merged, landed, or applied to user files when explicit implementation approval is missing. Trigger for review gate, review pack, approve before landing, diff first then land, human approval, merge gate, commit gate, push gate, or PR readiness.…

majiayu000/spellbook · 95 tokens