task-loop

A task-loop procedure that combines task recognition, planning, assignment, checking, handoffs, and a mock architecture-analysis step.

In plain words
What is it for?
It helps recognize task requests, plan and dispatch subtasks, check results, relay assigned work, and return mock architecture data for test scenarios.
Why use it?
It gives different parts of a task workflow a shared set of rules while running only the part triggered by the current message.

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/inclusionai/avernet/task-loop
Any agent
npx skills add inclusionAI/Avernet --skill task-loop
Clone the repo
git clone --depth 1 https://github.com/inclusionAI/Avernet

Made for: Claude Code, Codex.

Per session 210 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 16,362 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.00210 $0.16362
Opus 5 $0.00105 $0.08181
Sonnet 5 $0.00042 $0.03272
Haiku 4.5 $0.00021 $0.01636

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

Security

Grade A, and why

task-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 3d 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.

src/backend/specs/2026-08-23-task-loop-skill/task-loop/SKILL.md · 984 lines

How it starts

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

task-loop

预装到所有 bot 的任务目标驱动执行闭环 skill。本 skill 内含七段,只执行被触发词命中的那一段,其余段不参与;给任一 bot 预装本 skill 等同把对应段单独安装到该 bot。

  • 任务识别(recognition):对话 bot 用户面——/task 或平台 [RESUME_TASK] 回传或仅副屏标签
  • 任务规划(planning):owner bot——框架 prompt 头部 [planning](非 arch 场景)
  • 任务规划·arch 场景(planning-arch):owner bot——框架 [planning] 且 prompt 含「某某某公司」,按根验收交付物集合 + done_children 确定式查表
  • 任务派发搜推(search):owner bot——框架 prompt 头部 [search]
  • 任务验收(acceptance):协作群 driver/owner bot——群产出后自验收并 push 上报(single_bot 叶子由框架内联 JSON 走 poll,不走本段)
  • BBS 接力(bbs-relay-single-task):中继 bot——引擎主动通知
  • 架构师名册 mock(arch-analysis):中继/worker bot——叶子 instruction 含「某某某公司」,返伪造架构师名册

段体取自各段真源 SKILL.md,仅标题层级统一降一级并入;各段逻辑 / 规则 / 卡片格式 / 触发与输出契约保持原样。先读下面"路由规则"确定本该执行哪段,再只跑那一段。

路由规则(最先读,只跑命中段)

本次收到的触发词 / 上下文分流(不按 bot 身份;同一 bot 按其收到的触发执行对应段):

触发 / 上下文 命中段 执行要点
用户消息以 /task 开头;或上下文含 [RESUME_TASK];或消息仅 <AixUI type="panel" component="taskPanel.TaskLoopView" ...> 副屏标签 段1 任务识别 出 AixUI 卡片(cardId 固定 card_3e31e1f1),到 task_ready 为止;执行由平台层调 POST /api/v1/collaboration/tasks/execute
prompt 头部标记 [planning],含目标节点 node_id 与任务态快照,且 prompt 不含「某某某公司」(非 arch 场景) 段2 任务规划 返回 JSON 对象 {tasks: List[TaskSpec], has_gap, gap_detail};tasks 为空即 gap 闭=验收通过
prompt 头部标记 [planning],且 prompt 含「某某某公司」(arch 场景;交付物含架构师名册/技术栈概览/双视角分析等) 段7 任务规划·arch 场景 同段2 输出契约;按根验收交付物集合 + done_children 确定式查表产 N_tech_stack / N_dual_view / N_architects
prompt 头部标记 [search],含子任务需求与候选集 catalog 段3 任务派发搜推 返回 4 态 JSON(HIT_SINGLE / HIT_GROUP / HIT_MULTI_BOTS / MISS)
你是协作群 driver/owner bot,群已跑完叶子并产出交付物,需按其 goal.acceptances 自验收并上报(从群上下文取 {backend}/{loop_task_id}) 段4 任务验收 push:POST {backend}/api/v1/collaboration/tasks/callback/report {loop_task_id,result{success,data,gaps}}→on_report;single_bot 叶子不走本段(框架内联 JSON→poll)
收到引擎主动发的 BBS 任务消息(含 task_id + 后端 base url + 自身 bot_id,且引擎已替你占根) 段5 BBS 接力 跳过 scan / claim / 自判,直接 attach -> 执行 -> result
叶子执行输入(instruction)含关键词「某某某公司」,且非框架 [planning]/[search] 段6 架构师名册 mock 不联网,直接返 mock 伪造架构师名册 JSON(domain/architects[]/note)

Read the full file on GitHub · 984 lines

Files

What ships with it

6 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. 3d ago First seen · 984 lines · 210 tokens per session scan A 4da3e13ec7c3

Subscribe to this mod's changes

task-loop is a skill published in the GitHub repository inclusionAI/Avernet (522 stars, last pushed 3d ago), licensed Apache-2.0. It adds 210 tokens to every session and 16,362 once invoked, about $0.0011 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

agent-reach

MUST USE when user wants to 调研/research/搜索/search/查/找/look up anything on the internet — e.g. 全网调研 X / 帮我调研一下 X / 查一下 X / 搜搜 X / 看看大家怎么评价 X / X 上有什么讨论 / research this topic。 Also MUST USE when user mentions any platform or shares any URL/链接: 小红书/xiaohongshu/xhs, Twitter/推特/X, B站/bilibili, Reddit, Facebook, Instagram…

Panniantong/Agent-Reach · 349 tokens

babysit

Same-session monitoring loop for PRs, CI runs, tickets, and deployments using the monitorstart / monitorupdate / autonudgestop MCP tools. The loop re-injects your check instructions into THIS session on an idle interval — same context, same tools — and works from dashboard chat, Slack threads, and Discord DMs. Use…

kirodotdev/KiroCrew · 137 tokens

security-observability

只读查询 agent-sec-cli 已落盘的历史安全事件记录,并据此生成会话级安全复盘。仅当用户显式要求查看或审计已发生的安全事件、安全告警、安全审计记录,或要求按 session/run/trace/时间/类别筛选与统计已有安全事件,或要求复盘某次会话的安全判定时使用。不用于扫描新内容:检查代码安全性用 code-scanner,检测 prompt 注入用 prompt-scanner,审查 Skill 安全状态用 skill-ledger。不要因为对话中出现“安全”“工具调用”等字样、或为了主动自查而触发。.

alibaba/anolisa · 145 tokens

regex-mastery

Use this skill when writing regular expressions, debugging pattern matching,optimizing regex performance, or implementing text validation. Triggers on regex, regular expressions, pattern matching, lookahead, lookbehind, named groups, capture groups, backreferences, and any task requiring text pattern matching.

alibaba/anolisa · 60 tokens

ws-ckpt

工作区快照管理。用户说"保存一下"、"存个快照"时创建 checkpoint,仅限 Linux; 说"回滚"、"撤销"、"恢复到之前"时 rollback;说"删掉快照"时 delete; 说"对比快照"、"快照改了什么"时 diff; 说"看看快照"、"有哪些快照"时 list;说"查看快照状态"、"查看快照剩余空间"时 status。.

alibaba/anolisa · 115 tokens

bernstein-run

Run a verified multi-agent goal with Bernstein. Use when a task is too large for a single agent session: Bernstein decomposes the goal into tasks, spawns CLI coding agents in parallel git worktrees, verifies their output, and merges results. Also use to check run status, costs, and to verify a finished run against its…

sipyourdrink-ltd/bernstein · 75 tokens