swarm-predict

swarm-predict is a skill for Claude Code, Codex from bolivian-peru/os-moda. It costs 17 tokens per session (2,390 once invoked), scanned A, original, Apache-2.0.

A structured risk-review method in which several named expert viewpoints debate a proposed infrastructure or system change. The viewpoints share one AI conversation, so this is an organised checklist rather than independent AI agents.

In plain words
What is it for?
Use it before infrastructure deployments, system upgrades, or incident recovery decisions. It gathers current system information, examines the change from multiple perspectives, and can lead into a safer deployment with automatic rollback.
Why use it?
It helps expose security, reliability, cost, and user-impact risks before a change is made. It provides an additional review when a team or specialist is not available.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it before infrastructure deployments, system upgrades, or incident recovery decisions. It gathers current system information, examines the change from multiple perspectives, and can lead into a safer deployment with automatic rollback.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bolivian-peru/os-moda/swarm-predict
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 bolivian-peru/os-moda --skill swarm-predict
Clone the repo
git clone --depth 1 https://github.com/bolivian-peru/os-moda

Made for: Claude Code, Codex.

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 swarm-predict

README.md
[![agentmods](https://agentmods.dev/badge/skills/bolivian-peru/os-moda/swarm-predict/github.svg)](https://agentmods.dev/skills/bolivian-peru/os-moda/swarm-predict)
Your own site
<a href="https://agentmods.dev/skills/bolivian-peru/os-moda/swarm-predict"><img src="https://agentmods.dev/badge/skills/bolivian-peru/os-moda/swarm-predict/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 swarm-predict

Your own site · 80×15
<a href="https://agentmods.dev/skills/bolivian-peru/os-moda/swarm-predict"><img src="https://agentmods.dev/badge/skills/bolivian-peru/os-moda/swarm-predict.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,390 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00017 $0.02390
Opus 5.5 $0.00007 $0.00956
Sonnet 5.5 $0.00003 $0.00478
Haiku 4.5 $0.00002 $0.00239

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

Security

Grade A, and why

swarm-predict 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 3mo 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.

skills/swarm-predict/SKILL.md · 262 lines

How it starts

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

Swarm Predict

Structured multi-perspective risk analysis before acting on infrastructure changes. Uses persona-based debate to surface risks from different viewpoints, then deploys via SafeSwitch with auto-rollback.

What this is: A structured prompting technique where you role-play 6-8 expert personas debating a proposed change. It forces consideration of multiple angles (security, reliability, cost, UX) before committing. Think of it as a pre-flight checklist, not a crystal ball.

What this is NOT: This is not true multi-agent simulation (like MiroFish/OASIS with independent agent processes). All personas share one context window and one model. The value comes from structured thinking and the checklist effect, not from emergent behavior.

When to Use

  • Before deploying infrastructure changes ("What if we switch to nginx?")
  • Before system upgrades ("Will upgrading PostgreSQL break anything?")
  • Incident response ("What's the safest recovery path?")
  • Any change where you want a second opinion but don't have a team to consult

Workflow

Phase 1: Gather Context

Collect real system state. The analysis is only as good as the data it's grounded in.

1. system_health() → CPU, RAM, disk, load, uptime
2. system_query({ query: "services" }) → running services
3. journal_logs({ unit: "relevant-service", lines: 50 }) → recent activity
4. file_read({ path: "/relevant/config/file" }) → current config

Minimum data checklist — do NOT proceed without:

  • system_health returned CPU/RAM/disk numbers
  • At least one service query succeeded
  • The proposed change is specific (not vague like "improve performance")

If data collection fails, tell the user: "Cannot run analysis without baseline system state. Please provide context manually or fix the service queries."

Build a situation briefing — a concise paragraph with:

  • Current system state (concrete numbers, not "healthy")
  • The exact proposed change
  • Known constraints or dependencies

Read the full file on GitHub · 262 lines

Files

What ships with it

1 file 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. 3mo ago First seen · 262 lines · 17 tokens per session scan A 423b2c4cdaf8

Subscribe to this mod's changes

swarm-predict is a skill published in the GitHub repository bolivian-peru/os-moda (123 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 17 tokens to every session and 2,390 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-30.

Related

swarm-predict compared with skills from other repositories

swarm-predict next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
swarm-predictbolivian-peru/os-modaSkill1235mo agoApache-2.0A17Claude Code, Codex
endpoint-triageellmos-ai/skillsSkill10yesterdayMITA111Claude Code, Codex
os-hardening-baselineellmos-ai/skillsSkill10yesterdayMITA117Claude Code, Codex
ssh-plan-mutationoaslananka/ssh-mcp-proSkill2todayAGPL-3.0A24Claude Code
ssh-inspectoaslananka/ssh-mcp-proSkill2todayAGPL-3.0C22Claude Code
architecture-diagrammateaix/mateclawSkill1.2k3d agoApache-2.0A15Claude Code, Codex
regex-masteryalibaba/anolisaSkill6888d agoApache-2.0A60Claude Code, Codex