scanner-protocol

scanner-protocol is a skill for Claude Code from gustavo-meilus/superpipelines. It costs 34 tokens per session (915 once invoked), scanned A, original, MIT.

An internal operating guide for a scanner agent in a source-code metrics pipeline. It describes how to find source files, inspect complexity, and record metrics and concerns.

In plain words
What is it for?
Use it to scan directories of code files, identify complex files, and write scanner metrics and pipeline status data.
Why use it?
It makes source scanning consistent and defines what to do when the source directory or matching files cannot be found.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: installed under .agents/ (shared by several agents).

Part of the superpipelines plugin — 54 skills, 10 commands, 14 agents, 4 hooks shipped together

Good fit Use it to scan directories of code files, identify complex files, and write scanner metrics and pipeline status data.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gustavo-meilus/superpipelines/scanner-protocol
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 gustavo-meilus/superpipelines --skill scanner-protocol
Clone the repo
git clone --depth 1 https://github.com/gustavo-meilus/superpipelines

Made for: Claude Code.

Or install superpipelines, the plugin that ships this one along with the rest of its 54 skills, 10 commands, 14 agents, 4 hooks.

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 scanner-protocol

README.md
[![agentmods](https://agentmods.dev/badge/skills/gustavo-meilus/superpipelines/scanner-protocol.svg)](https://agentmods.dev/skills/gustavo-meilus/superpipelines/scanner-protocol)
Your own site
<a href="https://agentmods.dev/skills/gustavo-meilus/superpipelines/scanner-protocol"><img src="https://agentmods.dev/badge/skills/gustavo-meilus/superpipelines/scanner-protocol.svg" alt="Measured on agentmods" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 915 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.00034 $0.00915
Opus 5 $0.00017 $0.00458
Sonnet 5 $0.00007 $0.00183
Haiku 4.5 $0.00003 $0.00092

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

Security

Grade A, and why

scanner-protocol 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 8d 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.

.agents/antigravity/skills/superpipelines/parity-test-d/scanner-protocol/SKILL.md · 81 lines

How it starts

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

Scanner — Operational Protocol

Protocol

1. DISCOVER

  1. Read inputs from the orchestrator dispatch context:
    • source_directory: path to the directory containing source files to scan.
    • metrics_output_path: path where scanner-metrics.json must be written.
    • state_path: path to pipeline-state.json for status updates.
    • run_id: current run identifier.
    • root: resolved scope root.
  2. Verify source_directory exists and is a readable directory. If not: emit NEEDS_CONTEXT with message: "Source directory not found at {source_directory}. Provide a valid path and re-run."
  3. Enumerate all source files in source_directory (recursively, using Glob). Common source extensions: .py, .js, .ts, .go, .java, .rb, .rs, .cs. If no matching files found: emit DONE_WITH_CONCERNS with message: "No source files found in {source_directory}. Metrics file written with zero entries."

2. PROCESS

For each source file discovered:

  1. High complexity: flag a file if it contains deeply nested conditionals (4+ levels), or if a single function/method appears to span more than 50 lines AND contains multiple branching paths. Record:

    {"file": "{relative_path}", "complexity_score": <integer>, "reason": "<brief reason>"}
    
  2. Missing docstrings: flag a file if top-level functions, methods, or classes lack a docstring or leading comment block. Record:

    {"file": "{relative_path}", "locations": ["<class or function signature>"]}
    

Read the full file on GitHub · 81 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. 8d ago First seen · 81 lines · 34 tokens per session scan A 6aa8420e64e9

Subscribe to this mod's changes

scanner-protocol is a skill published in the GitHub repository gustavo-meilus/superpipelines (4 stars, last pushed 1mo ago), licensed MIT. It adds 34 tokens to every session and 915 once invoked, about $0.0002 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.