cancellable-loop SKILL.md skillA

cancellable-loop from dcc-mcp/dcc-mcp-core is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add dcc-mcp/dcc-mcp-core/cancellable-loop@git:20260927.f5cfb64

Pins git:20260927.f5cfb64 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
dcc-mcp/dcc-mcp-core
Path
examples/skills/cancellable-loop/SKILL.md
Versions recorded
4
Latest version
git:20260927.f5cfb64, committed Sep 27, 2026
First version recorded
Apr 21, 2026
Size
2,015 bytes
Repository stars
74
License
MIT

Example skill — demonstrates cooperative cancellation inside a skill script loop using check_cancelled(). Use as a reference when writing long-running domain skills that must respond to notifications/cancelled. Not intended for production use.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file 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` — Iterate `iterations` times, sleeping
  `sleep_ms` milliseconds per step, checking for cancellation each
  iteration.

## Example

```python
{"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.
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add dcc-mcp/dcc-mcp-core/cancellable-loop@sha256:ffc75f4282670194

The line at the top of this page pins the label git:20260927.f5cfb64, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_2tgcscjevclyrbz4.svg)](https://markdownregistry.com/a/art_2tgcscjevclyrbz4)

3 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 4 versions of this file, between Apr 21, 2026 and Sep 27, 2026, about one every 53 days.

versioncommittedcommitsizeaudit
git:20260927.f5cfb64 latest2026-09-27 f5cfb64 2,015 BA view · diff
git:20260505.5c57b272026-05-05 5c57b27 1,891 BA view · diff
git:20260422.20827842026-04-22 2082784 1,910 BA view · diff
v1.0.02026-04-21 cc78559 1,733 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (2015 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

dcc-mcp/dcc-mcp-core · 74 stars · license MIT · pushed 2026-11-02 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_2tgcscjevclyrbz4
GET https://markdownregistry.com/api/v1/resolve?ref=dcc-mcp/dcc-mcp-core/cancellable-loop
GET https://markdownregistry.com/api/v1/blob/ffc75f4282670194cbd8c03e5b977ddbf19088aed99e2ea6cba1077b1aa131e9

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from dcc-mcp/dcc-mcp-core

dcc-mcp-core SKILL.md skill
dcc-mcp/dcc-mcp-core · .agents/skills/dcc-mcp-core/SKILL.md · Foundation library for the DCC Model Context Protocol (MCP) ecosystem. Provides Rust-powered action management, skills…
"0.20.53" # x-release-please-version · audit A · 74 stars
AGENTS.md AGENTS.md file
dcc-mcp/dcc-mcp-core · AGENTS.md
git:20261012.44bd3f8 · audit B · 74 stars
hello-world SKILL.md skill
dcc-mcp/dcc-mcp-core · examples/remote-server/skills/hello-world/SKILL.md · Example skill - minimal greeting tool. Use only for testing standalone internal service connectivity and Skill…
git:20260730.58c1814 · audit A · 74 stars
asset-material-authoring SKILL.md skill
dcc-mcp/dcc-mcp-core · examples/rez-skills/asset_material_authoring/skills/asset-material-authoring/SKILL.md · Material authoring helpers for asset-library contexts.
git:20260505.5c57b27 · audit A · 74 stars
commercial-2d-layers SKILL.md skill
dcc-mcp/dcc-mcp-core · examples/rez-skills/commercial_2d_layers/skills/commercial-2d-layers/SKILL.md · Photoshop layer checks for commercial 2D motion deliverables.
git:20260505.5c57b27 · audit A · 74 stars
commercial-3d-product-render SKILL.md skill
dcc-mcp/dcc-mcp-core · examples/rez-skills/commercial_3d_product_render/skills/commercial-3d-product-render/SKILL.md · Product lookdev and render-review helpers for commercial 3D work.
git:20260505.5c57b27 · audit A · 74 stars
film-animation-blocking SKILL.md skill
dcc-mcp/dcc-mcp-core · examples/rez-skills/film_animation_blocking/skills/film-animation-blocking/SKILL.md · Maya blocking helpers for film shot animation contexts.
git:20260505.5c57b27 · audit A · 74 stars
film-fx-cache-review SKILL.md skill
dcc-mcp/dcc-mcp-core · examples/rez-skills/film_fx_cache_review/skills/film-fx-cache-review/SKILL.md · Houdini FX cache and simulation review helpers for film shots.
git:20260505.5c57b27 · audit A · 74 stars
game-level-layout SKILL.md skill
dcc-mcp/dcc-mcp-core · examples/rez-skills/game_level_layout/skills/game-level-layout/SKILL.md · Game level layout review helpers for editor contexts.
git:20260505.5c57b27 · audit A · 74 stars
async-render-example SKILL.md skill
dcc-mcp/dcc-mcp-core · examples/skills/async-render-example/SKILL.md · Example skill — demonstrates async execution affinity: long-running tools surface as deferredHint=true in MCP…
git:20260927.f5cfb64 · audit A · 74 stars
clawhub-compat SKILL.md skill
dcc-mcp/dcc-mcp-core · examples/skills/clawhub-compat/SKILL.md · Example skill — demonstrates full compatibility with the ClawHub/OpenClaw skill format. Use as a reference when…
git:20260927.f5cfb64 · audit A · 74 stars
dcc-diagnostics SKILL.md skill
dcc-mcp/dcc-mcp-core · examples/skills/dcc-diagnostics/SKILL.md · Infrastructure skill — DCC-agnostic observability primitives: capture screenshots, query audit logs, inspect tool…
git:20260927.f5cfb64 · audit A · 74 stars

Every file in dcc-mcp/dcc-mcp-core

Browse by kind, by grade A, or by owner.