bandit-chain-system

bandit-chain-system is a skill for Claude Code from sancovp/dinf. It costs 98 tokens per session (1,228 once invoked), scanned A, original, MIT.

A skill that creates a specialized domain agent by combining thinking rules, spoken decision steps, and reusable task sequences. It also describes a system that chooses between proven approaches and creating new ones.

In plain words
What is it for?
Building domain-specific agents, selecting or creating reasoning chains, and organizing and validating those chains as a skill.
Why use it?
It provides a defined way to turn general reasoning patterns into a reusable agent for a particular field.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md.

Part of the dinf plugin — 26 skills shipped together

Good fit Building domain-specific agents, selecting or creating reasoning chains, and organizing and validating those chains as a skill.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sancovp/dinf/bandit-chain-system
View source ↗ sancovp/dinf
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.

Any agent
npx skills add sancovp/dinf --skill bandit-chain-system
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 bandit-chain-system

README.md
[![agentmods](https://agentmods.dev/badge/skills/sancovp/dinf/bandit-chain-system/github.svg)](https://agentmods.dev/skills/sancovp/dinf/bandit-chain-system)
Your own site
<a href="https://agentmods.dev/skills/sancovp/dinf/bandit-chain-system"><img src="https://agentmods.dev/badge/skills/sancovp/dinf/bandit-chain-system/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 bandit-chain-system

Your own site · 80×15
<a href="https://agentmods.dev/skills/sancovp/dinf/bandit-chain-system"><img src="https://agentmods.dev/badge/skills/sancovp/dinf/bandit-chain-system.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 98 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,228 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.00098 $0.01228
Opus 5 $0.00049 $0.00614
Sonnet 5 $0.00020 $0.00246
Haiku 4.5 $0.00010 $0.00123

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

Security

Grade A, and why

bandit-chain-system 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 10d 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.

aios/.claude/skills/bandit-chain-system/SKILL.md · 90 lines

How it starts

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

Bandit Chain System — roll up the algebra, close it, make it self-improve

You are the bandit (corcc.BANDIT, the ChainSelector). A flavor (Einstein, Feynman) is a single proven chain — a ChainConstruct output. You sit above flavors: given a task you pick an arm — select a golden chain (exploit) or construct a new one (explore). This skill is your headline construct move: roll up the AC→CoR→SC algebra and CLOSE it into a domain-specific persona.

What "roll up an algebra and close it" means

The system is a closed algebra over one type — the skill dir (<name>/SKILL.md):

accc  PRODUCES  AC   (how to think; inner, silent template)
corcc PRODUCES  CoR  (spoken reasoning that ends in a decision; HAS an AC)
sccc  PRODUCES  SC   (a sequence of AC + CoR + skills, rolled into one skill dir)
SkillTree ORGANIZES skill dirs   →   validate() = the closure proof

Roll up = compose AC → CoR → SC. Close it = the rollup resolves every step to a real skill dir and the organizing SkillTree validates with zero violations. The CoR you roll up is the bandit specialized to the domain (domain_bandit) — not a flavor — so the result still chooses select-vs-construct, but inside one domain.

The move (do this)

import chaincompiler as cc

system = cc.roll_up_algebra(
    "triage",                                   # the domain
    ["[Symptom] ⇒ [Scope] ⇒ |Severity|",        # one or more attention chains (atoms)
     "[Repro] ⇒ [Localize] ⇒ |Cause|"],
    db="cc.db", skills_dir="skills", out_dir="dist", persona_root="personas",
)
assert system.closed                            # ← the closure proof
# system.ac / system.cor / system.sc  → the minted skill dirs (the one type)
# system.persona_dir                  → the domain-specific persona AIOS dir

roll_up_algebra returns a BanditChainSystem: the minted ac/cor/sc skill dirs, the persona_dir, the organizing tree_root, and closed: bool.

The persona it produces (the domain-specific agent)

Read the full file on GitHub · 90 lines

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. 10d ago First seen · 90 lines · 98 tokens per session scan A e5a2e69afd1a

Subscribe to this mod's changes

bandit-chain-system is a skill published in the GitHub repository sancovp/dinf (1 stars, last pushed 1mo ago), licensed MIT. It adds 98 tokens to every session and 1,228 once invoked, about $0.0005 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-31.

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