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 skills add levi-qiao/longgraph-skill --skill loop-graphgit clone --depth 1 https://github.com/levi-qiao/longgraph-skillWrote 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/levi-qiao/longgraph-skill/loop-graph)<a href="https://agentmods.dev/skills/levi-qiao/longgraph-skill/loop-graph"><img src="https://agentmods.dev/badge/skills/levi-qiao/longgraph-skill/loop-graph/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.
<a href="https://agentmods.dev/skills/levi-qiao/longgraph-skill/loop-graph"><img src="https://agentmods.dev/badge/skills/levi-qiao/longgraph-skill/loop-graph.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 1 finding, up to medium
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- medium Excessive Agency · line 112 Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
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.00042 | $0.04976 |
| Opus 5.5 | $0.00017 | $0.01990 |
| Sonnet 5.5 | $0.00008 | $0.00995 |
| Haiku 4.5 | $0.00004 | $0.00498 |
Grade A, and why
loop-graph 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.
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.
How it starts
The opening of the file, as written. The whole thing — 227 lines — stays where its author put it; the contents beside it link to each section on GitHub.
loop-graph — a graph of agent nodes, not a drifting loop
Module boundary
This is the shared compiler, not a goal-specific workflow. It owns the graph shape, the five runtime artifact schemas, generic interview mechanics, and host handoff. A focused preset owns only its North Star, proof, interview questions, recommended work shape, method guards, knobs, and slug; it never forks templates or adds a runtime node.
Use ../loop-converge/SKILL.md for code cleanup,
../loop-deliver/SKILL.md for requirement delivery,
and ../loop-research/SKILL.md for evidence-led
solution selection. Use this skill directly only when a custom pack is genuinely
needed. The exact contract is in docs/preset-contract.md.
What it does & why
Turns a vague long-horizon request ("make it production-ready", "accuracy above baseline", "finish the migration") into a small graph of agent nodes that stays on-spec across many rounds:
- an executor node — drives the work round by round against a single scoreboard;
- a supervisor node — audits the work from outside the executor's context (re-verifying claimed-done against the shared standards) and corrects course before drift compounds.
Why a graph, not a loop: an agent grinding a long task is inside the context that drifted, so it rationalizes scope creep and calls half-done work "done". The nodes talk only through durable, inspectable state (ledger, git tree, directives file) — never a shared, polluted context.
Each node runs on its own timer, and no node ever wakes another. The executor fires, closes several verified rounds on warm context, and ends. The supervisor fires on a slower cadence, audits, appends corrections, and ends. A correction is picked up on the executor's next fire. Two independent clocks and one file edge — no dispatch, no resume prompt, no liveness protocol, and therefore nothing that can leave the run waiting for a wake that never comes.
What ships with it
31 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.
- docs/model.md 7.8 KB
- docs/preset-contract.md 2.8 KB
- examples/add-tests-to-cli/executor.md 3.2 KB
- examples/add-tests-to-cli/ledger.md 2.9 KB
- examples/add-tests-to-cli/README.md 2.0 KB
- examples/migrate-blob-storage/archive/directives.md 1.3 KB
- examples/migrate-blob-storage/archive/rounds.md 602 B
- examples/migrate-blob-storage/directives.md 360 B
- examples/migrate-blob-storage/executor.md 6.1 KB
- examples/migrate-blob-storage/ledger.md 3.6 KB
- examples/migrate-blob-storage/README.md 5.0 KB
- examples/redacted-multiday-control-plane/README.md 6.7 KB
- examples/redacted-multiday-control-plane/README.zh-CN.md 5.8 KB
- examples/scout-library-choice/README.md 4.4 KB
- examples/self-iteration-longgraph-skill/README.md 6.5 KB
- examples/self-iteration-longgraph-skill/README.zh-CN.md 6.0 KB
- README.md 16 KB
- README.zh-CN.md 15 KB
- references/claude-code.md 4.2 KB
- references/codex.md 5.4 KB
- references/cursor.md 1.9 KB
- references/grok.md 3.9 KB
- references/shell-cron.md 1.8 KB
- templates/directives.md 2.6 KB
- templates/executor.md 11 KB
- templates/findings.md 1.7 KB
- templates/handoff.md 1.0 KB
- templates/ledger.md 7.8 KB
- templates/ops-and-environment.md 5.0 KB
- templates/scout.md 4.8 KB
- templates/supervisor.md 7.4 KB
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.
- 1mo ago Changed · +1 lines · -42 tokens per session ac2dea1cf33f
- 1mo ago Changed 9422562aa970
- 1mo ago First seen · 226 lines · 84 tokens per session scan A 5a80851e182b
loop-graph is a skill published in the GitHub repository levi-qiao/longgraph-skill (78 stars, last pushed 1mo ago), licensed MIT. It adds 42 tokens to every session and 4,976 once invoked, about $0.0002 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.
Other skills, from other repositories
team-orchestrator
Spawn an agent team from a predefined role pool (frontend designer, backend developer, researcher, tester, refactorer). Selects the right subset based on the task. Use when the user says "/team", "spawn team", "create team", "start team", or wants to set up a multi-agent development team for a project task.
orchestra
Run an oversized task as a parallel multi-session sprint: one conductor, several work managers in dedicated git worktrees, a file-based mailbox for coordination, watchdog supervision, and a clean teardown. Trigger: /orchestra for a new sprint, /orchestra resume to warm-boot into a running one.
sparc-methodology
SPARC (Specification, Pseudocode, Architecture, Refinement, Completion) comprehensive development methodology with multi-agent orchestration.
agent-framework-py-release
Use when cutting a Python release for the microsoft/agent-framework monorepo. Triggers on "bump py versions", "cut a python release", "prepare release PR for python", "release py packages", "bump python to X.Y.Z", or similar requests to bump Python package versions and prepare a release PR. Handles all four lifecycle…
foundry-hosted-agent-validation
Step-by-step process for validating a Python Foundry hosted agent sample (under python/samples/04-hosting/foundry-hosted-agents/) end to end — running it locally (native runtime and azd ai agent run) and after deploying it to an Azure AI Foundry project with azd. Use this when asked to validate a hosted agent sample.
build-and-test
How to build and test .NET projects in the Agent Framework repository. Use this when verifying or testing changes.