Borrowing it
Nothing to install: this file belongs to swarm-ai-research/swarm. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/swarm-ai-research/swarm/main/.claude/commands/healthcheck.mdgit clone --depth 1 https://github.com/swarm-ai-research/swarmWrote 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/commands/swarm-ai-research/swarm/healthcheck)<a href="https://agentmods.dev/commands/swarm-ai-research/swarm/healthcheck"><img src="https://agentmods.dev/badge/commands/swarm-ai-research/swarm/healthcheck/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/commands/swarm-ai-research/swarm/healthcheck"><img src="https://agentmods.dev/badge/commands/swarm-ai-research/swarm/healthcheck.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00000 | $0.01366 |
| Opus 5 | $0.00000 | $0.00683 |
| Sonnet 5 | $0.00000 | $0.00273 |
| Haiku 4.5 | $0.00000 | $0.00137 |
Grade A, and why
healthcheck scanned grade A with 1 finding 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 11d 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
HTTP=$(curl -s -o /dev/null -w "%{http_code}" https://Swarm-AI-Research-swarm-sandbox.hf.space/_stcore/health) How it starts
The opening of the file, as written. The whole thing — 161 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/healthcheck
Scan the codebase for code health issues that arise from parallel commits, merges, or external changes. Complements /preflight (which checks before commit) by checking after external changes arrive.
Usage
/healthcheck or /healthcheck --fix or /healthcheck --hf-space
Behavior
Step 1: Duplicate Definitions (AST-based)
Use Python's ast module to find duplicate function/class definitions at the same scope (same class or module level). This avoids false positives from same-named methods on different classes (e.g. multiple classes each defining __init__ or to_dict).
import ast, os, collections
issues = []
for root_dir in ['swarm', 'tests']:
for dirpath, dirs, files in os.walk(root_dir):
for f in sorted(files):
if not f.endswith('.py'):
continue
path = os.path.join(dirpath, f)
with open(path) as fh:
try:
tree = ast.parse(fh.read(), filename=path)
except SyntaxError:
continue
# Check module-level duplicates
mod_names = collections.defaultdict(list)
for node in ast.iter_child_nodes(tree):
if isinstance(node, (ast.FunctionDef, ast.AsyncFunctionDef)):
mod_names[node.name].append(node.lineno)
elif isinstance(node, ast.ClassDef):
# Check class-level duplicates
cls_names = collections.defaultdict(list)
for item in ast.iter_child_nodes(node):
if isinstance(item, (ast.FunctionDef, ast.AsyncFunctionDef)):
cls_names[item.name].append(item.lineno)
for name, linenos in sorted(cls_names.items()):
if len(linenos) > 1:
issues.append((path, node.name, name, linenos))
for name, linenos in sorted(mod_names.items()):
if len(linenos) > 1:
issues.append((path, '<module>', name, linenos))
for path, scope, name, linenos in issues:
lines_str = ', '.join(str(l) for l in linenos)
print(f'SHADOW: {path} {scope}.{name} (lines {lines_str})')
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.
- 11d ago First seen · 161 lines · 0 tokens per session scan A 8a464f564527
healthcheck is a command published in the GitHub repository swarm-ai-research/swarm (42 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,366 tokens. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
qa-changes
This skill should be used when the user asks to "QA a pull request", "test PR changes", "verify a PR works", "functionally test changes", or when an automated workflow triggers QA validation of code changes. Provides a structured methodology for setting up the environment, exercising changed behavior, and reporting…
http-service
Build, review or debug a Bun HTTP service. Loads the http-service skill, then works the task through its workflow.
auditar-cascading
Invoca cascading-failures-auditor — audita serviço para 5 triggers de cascade (sem timeout, retry sem jitter, sem circuit breaker, sem deadline, queue unbounded) e gera CASCADING-AUDIT.md.
debug
Systematic 9-step debugging framework. Generate 20+ hypotheses, rank by likelihood, implement most probable fix.
css-debug
Debug CSS issues including specificity conflicts, cascade problems, and layout bugs.
performance-optimization
Optimize application performance end-to-end using specialized performance and optimization agents.