session-tasks.operations

session-tasks.operations is a cursor rule for Claude Code, Cursor from YuDefine/nuxt-supabase-starter. It costs 0 tokens per session (14,822 once invoked), scanned A, original, MIT.

An operating guide for the per-session task files used during short coding jobs. It explains when to use them, how to archive or upgrade them, and which files handle handoffs, roadmaps, and long-term technical debt.

In plain words
What is it for?
It helps manage ad-hoc debugging and fixes, move expanding work into a formal change process, hand unfinished work to another session, and archive completed tasks.
Why use it?
Different kinds of work need different records, and a shared task file can lose updates when sessions run in parallel. Clear destinations keep temporary work, handoffs, future work, and permanent issues from being mixed together.

Cursor rule for Claude CodeCursor

Written for Claude Code and Cursor: PostToolUse hook event, but also installed under .cursor/. Also seen: mentions subagents; names the AskUserQuestion tool; mentions Codex.

Good fit It helps manage ad-hoc debugging and fixes, move expanding work into a formal change process, hand unfinished work to another session, and archive completed tasks.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/yudefine/nuxt-supabase-starter/session-tasks.operations
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.

Clone the repo
git clone --depth 1 https://github.com/YuDefine/nuxt-supabase-starter

Made for: Claude Code, Cursor.

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 session-tasks.operations

README.md
[![agentmods](https://agentmods.dev/badge/rules/yudefine/nuxt-supabase-starter/session-tasks.operations.svg)](https://agentmods.dev/rules/yudefine/nuxt-supabase-starter/session-tasks.operations)
Your own site
<a href="https://agentmods.dev/rules/yudefine/nuxt-supabase-starter/session-tasks.operations"><img src="https://agentmods.dev/badge/rules/yudefine/nuxt-supabase-starter/session-tasks.operations.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 14,822 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.00000 $0.14822
Opus 5 $0.00000 $0.07411
Sonnet 5 $0.00000 $0.02964
Haiku 4.5 $0.00000 $0.01482

Measured yesterday against content hash d673c68cb90b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

session-tasks.operations 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 yesterday.

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.

template/.cursor/rules/session-tasks.operations.mdc · 615 lines

How it starts

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

Session Tasks — 操作細節

觸發條件、檔名格式、禁令在 always-load 的 [[session-tasks]](本檔是它的操作展開,首次觸碰 tasks/** 後自動載入)。

核心命題:spectra change 流程(propose → apply → archive)適合大型結構化變更;ad-hoc 小工作(debug、配置調整、單檔 fix、勘查)需要更輕量的 todo 機制。但若用全域單檔(如 tasks/todo.md)作為共享 working memory,multi-session 並行時會 lost update 或互相覆蓋清理結果。以 per-session 分檔 解決,並強制升級路徑避免長期堆積。


何時用 tasks/,何時不用

工作類型 應該放哪 理由
明示唯讀/禁止寫檔,或只要對話中的盤點/計畫 對話中的進度與交付 寫 task 檔或 spine 不在任務範圍
只允許指定計畫/報告文件 該指定文件 單一產物承載進度,不另外擴充寫入範圍
大型結構化變更(涉及 spec、跨多檔、跨層、需要 design review) spectra change(openspec/changes/ 走完整 propose → apply → archive 流程
已授權本機修改的 ad-hoc 小工作(單一 debug、配置調整、單檔 fix) tasks/<id>.md 比 spectra 輕一個量級
跨 session WIP 交接 HANDOFF.md session 結束時的「信件」
中長期未來工作(不在當前 change scope) openspec/ROADMAP.md ## Next Moves 排優先序的未來 backlog
範圍外技術債 / 未解決項長期追蹤 docs/tech-debt.md(TD-NNN) 永續 register
不需要追蹤的單一 prompt 都不需要 直接做完即可

判斷準則:先按當次授權套用 [[session-tasks]] 的載體表;已允許本機修改而不確定追蹤形式時,先用 tasks/<id>.md。發現規模膨脹(要動 spec、要 design review、要跨多檔)時,依專案既有 workflow 升級追蹤;追蹤形式不擴大實作或發布授權。


檔案結構

tasks/
  <YYYY-MM-DD-HHMM>-<slug>.md     ← 一 session 一檔,當前進行中
  archive/
    <YYYY-MM-DD-HHMM>-<slug>.md   ← 已完成或已升級的舊檔(git history 已留證,可直接刪)
  lessons.md                        ← 維持單檔(被糾正才寫,撞檔機率極低)

tasks/ 是 tracked(不進 .gitignore)——「刪檔 = git history 留證」的前提就是它被追蹤過。archive/ 可定期整批刪。

建檔的同一步順路鑄 work id(MUST)

建完 tasks 檔的同一步 MUST 讓這件事在 /board 上有名字:

node ~/offline/clade/vendor/scripts/flow/flow.ts open <slug> \
  --actor claude-code --origin 'tasks:tasks/<檔名>' --title '<一句話:這件事是什麼>'
# stderr 印出 export CLADE_WORK_ID=W-<date>-<slug>;本 session 後續的 dispatch 沿用它,
# relay / fanout 的 successor 也會繼承,整條接力鏈算同一件事。

每一個新建的 tasks 檔都鑄,不是只有覺得會做很久的那次——「這件事夠不夠大」這個判斷本身 正是 79% 事件掛在 orphan- 名下的成因(clade 2026-08-27 實測)。

Read the full file on GitHub · 615 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. yesterday Changed · +31 lines d673c68cb90b
  2. 3d ago First seen · 584 lines · 0 tokens per session scan A 3b72c557a6f1

Subscribe to this mod's changes

session-tasks.operations is a cursor rule published in the GitHub repository YuDefine/nuxt-supabase-starter (45 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 14,822 tokens. 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-09-03.