loop-closurebandit

loop-closurebandit is a skill for Claude Code from sancovp/dinf. It costs 38 tokens per session (276 once invoked), scanned A, a copy of dinfbandit, MIT.

A spoken reasoning pattern that moves from defining a task to recalling past experience, choosing an approach, doing the work, and assessing the reward.

In plain words
What is it for?
Use it when explaining or planning a task that requires a choice about how to proceed and what result to seek.
Why use it?
It helps make the path to a decision explicit before starting a task.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the dinf plugin — 26 skills shipped together

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/sancovp/dinf/loop-closurebandit
Any agent
npx skills add sancovp/dinf --skill loop-closurebandit
Clone the repo
git clone --depth 1 https://github.com/sancovp/dinf

Made for: Claude Code.

Or install dinf, the plugin that ships this one along with the rest of its 26 skills.

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 loop-closurebandit

README.md
[![agentmods](https://agentmods.dev/badge/skills/sancovp/dinf/loop-closurebandit.svg)](https://agentmods.dev/skills/sancovp/dinf/loop-closurebandit)
Your own site
<a href="https://agentmods.dev/skills/sancovp/dinf/loop-closurebandit"><img src="https://agentmods.dev/badge/skills/sancovp/dinf/loop-closurebandit.svg" alt="Measured on agentmods" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 276 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 88% copy Near-identical to another mod 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.00038 $0.00276
Opus 5 $0.00019 $0.00138
Sonnet 5 $0.00008 $0.00055
Haiku 4.5 $0.00004 $0.00028

Measured 6d ago against content hash 237341ef4b67, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

loop-closurebandit 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 6d 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.

Origin

This is a copy

88% identical to dinfbandit — 6 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.aios.src/skills/loop-closurebandit/SKILL.md · 26 lines

What it actually says

This is a chain of reasoning (CoR) — a SPOKEN, paragraphical reasoning chain that ends in a DECISION. Say it as a paragraph; keep the moves in order.

CoR (custom syntax)

[Task] ⇒ [Recall] ⇒ [Decide] ⇒ [Execute] ⇒ |Reward|

Say it as a paragraph, in order

State your reasoning as ONE paragraph that, in order, 5 moves: Task, Recall, Decide, Execute, and finally converges on Reward. [Task: …the task is…] → [Recall: …have I done this…] → [Decide: …exploit…] → [Execute: …run the chain…] → [Reward: …the result is…]

Inner attention chain (use silently to generate the above)

Attention chain — Loop-closureBandit

Attend, in order:

  1. Task
  2. Recall
  3. Decide
  4. Execute Hold: Reward ← converge attention here, then act
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. 6d ago First seen · 26 lines · 0 tokens per session scan A 237341ef4b67

Subscribe to this mod's changes

loop-closurebandit is a skill published in the GitHub repository sancovp/dinf (1 stars, last pushed 29d ago), licensed MIT. It adds 38 tokens to every session and 276 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 88% identical to dinfbandit, differing in 6 lines, and is treated as a copy.

Related

Other skills, from other repositories

deploy-docker-compose

Run the Omnigent server as a Docker compose stack (server + Postgres) on any Docker host — your laptop, a VPS, EC2 by hand, or as the base layer of any container-platform deploy. Invoke when the user wants to build the image, bring up the compose stack, debug the stack on a host they already have, or extend the stack…

omnigent-ai/omnigent · 84 tokens

meta-tags-optimizer

Optimize title tags, meta descriptions, Open Graph, and Twitter cards for maximum click-through rate. Generates multiple A/B test variations with character counting and SERP preview. Use when asked to "optimize title tag", "write meta description", "improve CTR", "Open Graph tags", "fix my meta tags", "social media…

nowork-studio/notfair-plugin · 91 tokens

security-audit

Audit a codebase or directory for security issues (hardcoded secrets, injection, unsafe deserialization, weak crypto, authz gaps) and produce a structured findings report. Use when the user asks for a security review, an audit, or to check code for vulnerabilities. Report only — never fix.

omnigent-ai/omnigent · 64 tokens

Workspace Data Analyst

Analyze CSV files in the workspace and summarize insights.

VoltAgent/voltagent · 14 tokens

paid-ads-linkedin

Audit, diagnose, plan, and safely operate connected LinkedIn Ads accounts through the NotFair MCP, with an export-based fallback. Use for LinkedIn advertising, sponsored content, lead-generation forms, job-title or company targeting, campaign groups, creatives, conversions, lead quality, budgets, bids, or approved…

nowork-studio/notfair-plugin · 72 tokens

sxo

Search Experience Optimization (SXO) — the bridge between SEO and UX/CRO. Audits the full journey from the SERP click to the on-page goal: SERP click-through factors (title/meta/rich results that win the click), then post-click experience signals that keep users and drive conversions — above-the-fold relevance and…

nowork-studio/notfair-plugin · 235 tokens