task-approve

task-approve is a skill for Claude Code, Codex from Stanshy/AgentHub. It costs 14 tokens per session (984 once invoked), scanned A, original, MIT.

A workflow for marking a development task as done after its L1 review passes.

In plain words
What is it for?
Use it to approve a reviewed task, update its status and completion time, append the review event, and merge parallel work when required.
Why use it?
It keeps the task file, completion result, timestamp, event history, and branch state aligned after approval.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/stanshy/agenthub/task-approve
Any agent
npx skills add Stanshy/AgentHub --skill task-approve
Clone the repo
git clone --depth 1 https://github.com/Stanshy/AgentHub

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 task-approve

README.md
[![agentmods](https://agentmods.dev/badge/skills/stanshy/agenthub/task-approve.svg)](https://agentmods.dev/skills/stanshy/agenthub/task-approve)
Your own site
<a href="https://agentmods.dev/skills/stanshy/agenthub/task-approve"><img src="https://agentmods.dev/badge/skills/stanshy/agenthub/task-approve.svg" alt="Measured on agentmods" height="20"></a>
Per session 14 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 984 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00014 $0.00984
Opus 5 $0.00007 $0.00492
Sonnet 5 $0.00003 $0.00197
Haiku 4.5 $0.00001 $0.00098

Measured 5d ago against content hash 4a3fb66b53ef, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

task-approve 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 5d 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.

.knowledge/company/skill-templates/task-approve/SKILL.md · 85 lines

What it actually says

任務審核通過

L1 Review 通過後呼叫,將狀態從 in_review 改為 done

使用方式

/task-approve <task-id> [備註]

參數

  • $0: 任務 ID(如 T5
  • $ARGUMENTS: 完整參數(含備註)

格式規範(系統解析依賴,務必遵守)

.tasks/ 狀態欄位

狀態值 說明
done L1 審核通過

dev-plan 第 10 節「結果」欄位(第 3 欄)

結果值 對應系統狀態 說明
✅ 完成 done 審核通過

執行步驟

  1. 找到對應的任務檔案(支援 Sprint 子目錄): 使用 Glob tool 搜尋 .tasks/**/$0-*.md,若無結果再搜尋 .tasks/**/$0.md。 取得檔案路徑後用 Read tool 讀取內容。

任務檔案可能在 .tasks/sprint-{N}/T5-xxx.md,不再只在 .tasks/ 根目錄。

  1. 取得真實時間(必要,不可跳過): !node -e "console.log(new Date().toISOString())"

    ⚠️ 禁止自行編造時間。Agent 不知道真實時間,必須透過上述指令取得。將輸出存為變數 $NOW 供後續步驟使用。

  2. 更新找到的任務檔案:

    • | 狀態 | ... | 改為 | 狀態 | done |
    • | 完工時間 | ... | 改為 | 完工時間 | $NOW |
    • 若找不到 | 完工時間 | 欄位,在 | 建立時間 | 行之後插入 | 完工時間 | $NOW |
  3. 事件紀錄(必要,不可跳過):在 ## 事件紀錄 區塊底部 append:

    ### $NOW — 狀態變更 → done
    L1 審核通過。{備註}
    
  4. Git Merge(並行任務)/ 確認(循序任務): 讀取任務檔的 | 並行組 | 欄位:

    並行組 = —(循序任務)

    • code 已在 sprint-{N},無需 merge
    • 輸出:📌 循序任務,code 已在 sprint-{N}

    並行組 = A/B/C...(並行任務)

    • 取得 sprint 編號(從任務檔 Sprint 欄位)
    • 執行 merge:
      git checkout sprint-{N}
      git merge --no-ff task/s{N}-$0-{slug} -m "feat($0): {任務標題}"
      git branch -d task/s{N}-$0-{slug}
      
    • 若 merge 有衝突 → 停止,列出衝突檔案,由人工解決後繼續
    • 輸出:🔀 task/s{N}-$0-{slug} 已 merge 進 sprint-{N},branch 已刪除
  5. 找到當前 dev-plan: 使用 Glob tool 搜尋 proposal/sprint*-dev-plan.md,取最新一份用 Read tool 讀取。

  6. 在 dev-plan 第 10 節「任務完成紀錄」表格,找到對應任務行並更新:

| $0 | {YYYY-MM-DD} | ✅ 完成 | {備註} |
  1. 輸出確認:
✅ $0 審核通過,狀態已更新為 done
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. 5d ago First seen · 85 lines · 14 tokens per session scan A 4a3fb66b53ef

Subscribe to this mod's changes

task-approve is a skill published in the GitHub repository Stanshy/AgentHub (200 stars, last pushed 4mo ago), licensed MIT. It adds 14 tokens to every session and 984 once invoked, about $0.0001 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.

Related

Other skills, from other repositories

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens

integrated-browser

Use this when working on the VS Code integrated browser ("browserView") to understand its architecture and mental model. Covers the embedded Chromium browser, its editor tab, navigation, overlay/layout, sessions, and agent browser tools under src/vs/platform/browserView and src/vs/workbench/contrib/browserView.

microsoft/vscode · 68 tokens

agent-host-e2e-tests

Use when writing, recording, updating, validating, or troubleshooting the agent host end-to-end tests under src/vs/platform/agentHost/test/node/e2e (black-box tests that drive the whole agent host over the AHP protocol, using a CapiReplayProxy record/replay system for Claude/Copilot/Codex). Covers adding a…

microsoft/vscode · 111 tokens

vscode-dev-workbench

Use when the user wants to run the vscode.dev server locally and exercise the VS Code workbench or Agents window in the integrated browser against the local microsoft/vscode sources. Covers starting the dev server, the vscode-quality=dev URL, browser-driven interaction patterns, and optionally wiring up a local mock…

microsoft/vscode · 78 tokens

thisWeek

Resolve "thisWeek" to a concrete ISO date range relative to your run time — this week so far (Monday → today). Returns inclusive civil dates plus exact UTC instants so you have temporal context without computing dates by hand. Read-only: no writes, no network. Use before a week-to-date task (this week's activity…

chaitanyagiri/munder-difflin · 77 tokens

comet-design

Comet Classic 阶段 2 —— 为 change 产出深度技术 Design Doc。.

rpamis/comet · 24 tokens