trio-agent-loop: Skill for Claude Code

.agents/skills/trio-init/SKILL.md

trio-init is a skill for Claude Code from albiol2004/trio-agent-loop. It costs 30 tokens per session (807 once invoked), scanned A, original, MIT.

A setup guide for a trio agent loop, a shared folder where cooperating agents exchange goals, status, and messages.

In plain words
What is it for?
Use it to start a coordinated multi-agent task, define its goal, choose a mailbox folder, and safely handle an old or already-running loop.
Why use it?
It creates the files needed to coordinate work and checks for an existing loop before starting, helping prevent two sessions from overwriting the same coordination data.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: installed under .agents/ (shared by several agents).

This is albiol2004/trio-agent-loop's own configuration. It tells Claude Code how to work on trio-agent-loop 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 trio-agent-loop configures →

Reuse

Borrowing it

Nothing to install: this file belongs to albiol2004/trio-agent-loop. 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/albiol2004/trio-agent-loop/main/.agents/skills/trio-init/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/albiol2004/trio-agent-loop

Made for: Claude Code.

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 trio-init

README.md
[![agentmods](https://agentmods.dev/badge/skills/albiol2004/trio-agent-loop/trio-init/github.svg)](https://agentmods.dev/skills/albiol2004/trio-agent-loop/trio-init)
Your own site
<a href="https://agentmods.dev/skills/albiol2004/trio-agent-loop/trio-init"><img src="https://agentmods.dev/badge/skills/albiol2004/trio-agent-loop/trio-init/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 trio-init

Your own site · 80×15
<a href="https://agentmods.dev/skills/albiol2004/trio-agent-loop/trio-init"><img src="https://agentmods.dev/badge/skills/albiol2004/trio-agent-loop/trio-init.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 807 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.00030 $0.00807
Opus 5.5 $0.00012 $0.00323
Sonnet 5.5 $0.00006 $0.00161
Haiku 4.5 $0.00003 $0.00081

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

Security

Grade A, and why

trio-init 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 2mo 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.

.agents/skills/trio-init/SKILL.md · 46 lines

What it actually says

Set up the trio-loop mailbox in the current project.

Mailbox directory: default loop/. If $ARGUMENTS starts with dir=<path> (e.g. /trio-init dir=loop-authz add rate limiting…), use that directory instead — every loop/ reference below then means that directory. One mailbox per loop is a hard rule: two loops (or two sessions) sharing a mailbox corrupt each other's state.

  1. If the mailbox's STATE.md already exists, show its current status and LOG.md tail, then ask the user to choose: (a) reset — archive the old mailbox to loop-archive-<date>/ and start fresh; (b) abort; or (c) keep it and initialize this new loop in a sibling directory (loop-<slug>/ from the new goal) — the right choice when the existing loop may still be running in another session. If STATE.md says status: running and LOG.md's last entry is recent, recommend (c) — never hijack a possibly-live mailbox.
  2. Create the mailbox directory with these files:

loop/GOAL.md — from $ARGUMENTS. If arguments are empty or vaguer than one sentence of substance, interview the user briefly (what does done look like, hard constraints, what must NOT change) before writing it. Decide the profile: software (default) or data — choose data when the goal is pipelines, ETL/ELT, SQL models, notebooks, finance/reporting datasets. Structure:

# Goal
profile: software | data
<the mission, in the user's words, sharpened>
## Definition of done
<objectively checkable statements>
## Constraints
<stack, style, things that must not break, budget notes>

For profile: data, the Definition of done MUST include data ground truth, so interview for it if missing: source(s) of truth to reconcile against, tolerated row-count/aggregate deltas, key uniqueness expectations, and whether re-runs must be idempotent. Vague data goals ("clean the dataset") are the #1 cause of runaway loops — pin numbers down.

loop/STATE.md (the mission: line is the first sentence of GOAL.md's mission, verbatim — the /trio orchestrator halts if it ever stops matching GOAL.md, which catches another session repurposing the mailbox):

schema: 1
iteration: 0
max_iterations: 10
status: ready
mission: <first sentence of the goal, verbatim>

## Approaches tried and rejected
(append-only; the Lead adds one line per dead end, with why)

## Key decisions and rationale
(append-only)

loop/LOG.md with a # Trio loop log header line, and empty loop/PLAN.md, loop/REPORT.md, loop/VERDICT.md.

  1. If the project is a git repo, ask the user whether loop/ should be gitignored (ephemeral) or committed (auditable history). Default suggestion: commit it.
  2. Confirm setup and print next steps: /trio for a single supervised iteration (recommended first), then /loop /trio to run autonomously — if the mailbox is not loop/, say to pass it: /trio dir=<path> and /loop /trio dir=<path>. Mention Esc stops the loop, and GOAL.md + max_iterations in STATE.md are the two human control knobs while it runs.
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. 2mo ago First seen · 46 lines · 30 tokens per session scan A 765cdfa265ec

Subscribe to this mod's changes

trio-init is a skill published in the GitHub repository albiol2004/trio-agent-loop (2 stars, last pushed 4d ago), licensed MIT. It adds 30 tokens to every session and 807 once invoked, about $0.0001 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-31.

Related

Other skills, from other repositories

lean-ctx-review

Review how the lean-ctx ctx MCP tools performed in the current session and file upstream issues for confirmed problems. Use when the user asks to review/audit lean-ctx tool performance, says "lean-ctx review", asks why ctx tools failed or fell back to native tools, or wants to report a lean-ctx bug.

yvgude/lean-ctx · 73 tokens

crit-cli

Use when an agent needs to author or reply to crit inline comments programmatically (including multi-agent workflows commenting on shared code/plans/docs/proposals), publish or unpublish a crit review with crit share, sync a crit review to or from a GitHub PR or GitLab MR, or read/interpret a crit review JSON file.…

tomasz-tomczyk/crit · 110 tokens

crit

Review code changes, a plan, a live page (running dev server), or a local HTML file with Crit inline comments and structured human feedback. Use only when the user explicitly invokes /crit or directly asks to use Crit; a generic review request does not count.

tomasz-tomczyk/crit · 55 tokens

crit-story

Author a crit story and continue the interactive review loop only when the user explicitly invokes crit-story or directly asks you to generate a crit story. Do not infer this skill from generic review, PR, or diff-review requests.

tomasz-tomczyk/crit · 47 tokens

socratic-code-theory-recovery

Recover the "theory" (Naur 1985) of an existing codebase through recursive question refinement before writing documentation. Use on brownfield projects where the spec is missing — produces a Question Tree separating what is answerable from code (with evidence) from what must be asked of the team (routed by role).…

LLM-Coding/Semantic-Anchors · 115 tokens

arc42-documentation

Author an arc42 architecture document with the project's cross-section traceability rules. Use when producing or extending an arc42 document — it carries the procedure the "Architecture Documentation" contract deliberately leaves out: scaffolding the with-help template, the five traceability rules arc42 does not…

LLM-Coding/Semantic-Anchors · 139 tokens