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.
npx agentmods add skills/dcc-mcp/dcc-mcp-core/cancellable-loopnpx skills add dcc-mcp/dcc-mcp-core --skill cancellable-loopgit clone --depth 1 https://github.com/dcc-mcp/dcc-mcp-coreWrote 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.
[](https://agentmods.dev/skills/dcc-mcp/dcc-mcp-core/cancellable-loop)<a href="https://agentmods.dev/skills/dcc-mcp/dcc-mcp-core/cancellable-loop"><img src="https://agentmods.dev/badge/skills/dcc-mcp/dcc-mcp-core/cancellable-loop.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00045 | $0.00454 |
| Opus 5 | $0.00023 | $0.00227 |
| Sonnet 5 | $0.00009 | $0.00091 |
| Haiku 4.5 | $0.00005 | $0.00045 |
Grade A, and why
cancellable-loop 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.
What it actually says
Cancellable Loop
A minimal example that shows how to write a skill script that honours
notifications/cancelled from the MCP client.
The pattern is simple: call check_cancelled() at the top of every
iteration of a long-running loop. When the dispatcher installs a
CancelToken and the client cancels the request, check_cancelled()
raises CancelledError and the script unwinds cleanly. Outside of a
request context (REPL, unit tests) check_cancelled() is a no-op, so
the same script remains easy to run in isolation.
Tools
cancellable_loop__count— Iterateiterationstimes, sleepingsleep_msmilliseconds per step, checking for cancellation each iteration.
Example
{"name": "cancellable_loop__count", "arguments": {"iterations": 100, "sleep_ms": 50}}
# → {"success": true, "message": "Completed 100 iterations", "context": {"iterations": 100}}
If the client sends notifications/cancelled while the loop is
running, the next check_cancelled() call raises CancelledError and
the @skill_entry wrapper converts it into a standard error dict.
Related
dcc_mcp_core.check_cancelled— the API this skill demonstrates.- Issue #329 — cooperative cancellation checkpoints.
- Issue #318 — async dispatcher integration (wires the CancelToken).
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 5d ago First seen · 53 lines · 45 tokens per session scan A d7d8a5217ab0
cancellable-loop is a skill published in the GitHub repository dcc-mcp/dcc-mcp-core (42 stars, last pushed yesterday), licensed MIT. It adds 45 tokens to every session and 454 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.
Other skills, from other repositories
artclaw-tool-creator
ArtClaw Tool Creator - AI 引导创建自定义 DCC 工具。支持三种创建方式:包装 Skill、编写脚本、组合工具。.
houdini-simulation
Houdini 仿真工作流指南:Pyro/RBD/FLIP/Vellum 的标准搭建流程。 Use when AI needs to: (1) set up simulations, (2) configure DOPs, (3) build Pyro/RBD/FLIP/Vellum setups. Houdini only (runpython).
sd-node-ops
SD 节点创建、连接、参数设置指南。包含原子节点和库节点的正确使用方式。 Use when AI needs to: (1) create nodes, (2) connect nodes, (3) set parameters, (4) build material graphs. Substance Designer only (runpython).
houdini-node-ops
Houdini 节点创建、连接、参数设置的操作指南。 Use when AI needs to: (1) create nodes, (2) connect nodes, (3) set node parameters, (4) build node networks. Houdini only (runpython).
ue5-blueprint-workflow
UE5.6/UE5.7 Blueprint graph workflow for feature implementation, input events, node wiring, and graph validation. Use when requests involve adding Blueprint logic, keyboard input behavior, function chains, event graph edits, or pin-level connection guidance.
blender-context
查询 Blender 编辑器上下文:当前选择、场景信息、文件名、视口相机状态、集合结构。 Use when AI needs to: (1) get selected objects, (2) get scene overview, (3) check current file, (4) inspect viewport state, (5) get collection hierarchy. Blender only (runpython).