deer-flow: Skill for Claude Code

.agent/skills/blocking-io-guard/SKILL.md

blocking-io-guard is a skill for Claude Code, Codex from bytedance/deer-flow. It costs 111 tokens per session (1,649 once invoked), scanned A, original, MIT.

A development procedure for finding blocking input and output operations in asynchronous Python code. Asynchronous code shares an event loop, so a blocking operation can pause other tasks.

In plain words
What is it for?
Use it when changing backend Python, reviewing the repository for blocking operations, or adding tests that make the runtime detector execute the affected code.
Why use it?
It helps prevent slow or stuck services caused by backend code that blocks the event loop, including code that automated checks might otherwise miss.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one.

This is bytedance/deer-flow's own configuration. It tells Claude Code and Codex how to work on deer-flow itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything deer-flow configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is uv run --project backend python scripts/scan_changed_blocking_io.py --base origin/main.

About the project

DeerFlow is an open-source super-agent harness that coordinates sub-agents, memory, tools, sandboxes, and extensible skills to handle research, coding, and content-creation tasks that may run for minutes or hours. It is intended for long-running, multi-step work performed by AI agents. The catalogue entries are skills, agents, and instructions that support its workflows.

bytedance/deer-flow · 84,291 stars · on GitHub · deerflow.tech

Reuse

Borrowing it

Nothing to install: this file belongs to bytedance/deer-flow. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/bytedance/deer-flow/main/.agent/skills/blocking-io-guard/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/bytedance/deer-flow

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 blocking-io-guard

README.md
[![agentmods](https://agentmods.dev/badge/skills/bytedance/deer-flow/blocking-io-guard/github.svg)](https://agentmods.dev/skills/bytedance/deer-flow/blocking-io-guard)
Your own site
<a href="https://agentmods.dev/skills/bytedance/deer-flow/blocking-io-guard"><img src="https://agentmods.dev/badge/skills/bytedance/deer-flow/blocking-io-guard/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for blocking-io-guard

Your own site · 80×15
<a href="https://agentmods.dev/skills/bytedance/deer-flow/blocking-io-guard"><img src="https://agentmods.dev/badge/skills/bytedance/deer-flow/blocking-io-guard.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 111 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,649 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. Third-party audits
  • Snyk pass 6 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00111 $0.01649
Opus 5.5 $0.00044 $0.00660
Sonnet 5.5 $0.00022 $0.00330
Haiku 4.5 $0.00011 $0.00165

Measured 1mo ago against content hash ce0e4ac97812, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

blocking-io-guard 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 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (templates/anchor.template.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.agent/skills/blocking-io-guard/SKILL.md · 142 lines

How it starts

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

Blocking-IO Guard Skill

Help a contributor ship backend async changes together with the runtime anchor that lets DeerFlow's blocking-IO CI gate actually see the new code. The dynamic detector only catches blocking IO on paths a test executes — this skill closes that gap, either for your own diff or for a repo-wide triage round.

Read references/good-anchor-rules.md before writing any anchor. Only read references/sop-skeleton.md when generalizing this SOP to another detector domain — it is not needed to execute the steps below.

When to use

  • Your change touches Python under backend/app/, backend/packages/harness/deerflow/, or backend/scripts/ and may run on the async event loop (Mode A). If unsure, run Step 0 — it answers deterministically.
  • You are doing a maintenance triage round over the existing codebase (Mode B).

SOP (router)

Step 0 — Scope (deterministic)

Mode A — your own diff (default, pre-PR). From repo root:

uv run --project backend python scripts/scan_changed_blocking_io.py --base origin/main

Lists blocking-IO candidates your change introduces: findings on lines the diff added, plus findings that are new versus the merge base — the latter catches a new async caller exposing an old sync helper whose blocking line is not in the diff. The diff is <base>...HEAD, so commit your work first — uncommitted lines are not selected.

If the list is empty, this change introduces no blocking-IO surface that the static detector can see in the changed files. One residual blind spot remains: reachability is same-file only, so a new async caller of a sync helper defined in another file is invisible to both selections. If your diff adds an async call into a helper that lives elsewhere, check that helper manually (codegraph or git grep) before stopping.

Mode B — full-repo triage round. From repo root:

make detect-blocking-io

Prints a summary and writes the complete structured finding list to .deer-flow/blocking-io-findings.json. Work HIGH priority first; do not start MEDIUM until every HIGH is dispositioned (fixed, guarded, or recorded NO-ACTION).

Read the full file on GitHub · 142 lines

Files

What ships with it

3 files 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.

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. 1mo ago First seen · 142 lines · 111 tokens per session scan A ce0e4ac97812

Subscribe to this mod's changes

blocking-io-guard is a skill published in the GitHub repository bytedance/deer-flow (84,291 stars, last pushed today), licensed MIT. It adds 111 tokens to every session and 1,649 once invoked, about $0.0004 per session on Opus 5.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

api-testing

Comprehensive API testing, validation, and test suite generation.

laragentic/agents · 14 tokens

api-debug

Debug REST, GraphQL, webhook, and OAuth/API-key integrations with layered request, auth, schema, and response checks.

metaspartan/cybara · 28 tokens

opencli-autofix

Automatically fix broken OpenCLI adapters when commands fail. Load this skill when an opencli command fails — it guides you through collecting a trace artifact, patching the adapter, retrying, and filing an upstream GitHub issue after a verified fix. Works with any AI agent.

OWWZO/ai-agent · 61 tokens

debugging-before-fixes

Use the moment a required check, test, build, or runtime behavior fails or surprises – before proposing or applying any fix, including on every needsrevision iteration that involves a defect. Defines feedback-loop-first debugging, root-cause phases, calibrated hypotheses, tagged debug instrumentation, confirmed…

bartoszarendt/agenticloop · 77 tokens

skill-creator

Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.

fullstack455/deer-flow · 64 tokens

github-deep-research

Conduct multi-round deep research on any GitHub Repo. Use when users request comprehensive analysis, timeline reconstruction, competitive analysis, or in-depth investigation of GitHub. Produces structured markdown reports with executive summaries, chronological timelines, metrics analysis, and Mermaid diagrams.…

fullstack455/deer-flow · 68 tokens