scan-file

scan-file is a skill for Claude Code, Codex from NOMARJ/sigil. It costs 108 tokens per session (296 once invoked), scanned A, original, Apache-2.0.

A security scan for one file, such as a script, configuration, skill manifest, or MCP server file. It checks for dangerous code, network access, exposed credentials, obfuscation, and suspicious imports.

In plain words
What is it for?
Use it when someone asks whether a file, skill, or MCP server is safe, or before executing an unfamiliar file.
Why use it?
It lets you vet a specific file before running or installing it instead of auditing an entire project. Findings include a risk level, affected lines, explanation, and suggested fixes.

Skill for Claude CodeCodex

Part of the sigil-security plugin — 6 skills, 2 agents, 2 hooks 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/nomarj/sigil/scan-file
Any agent
npx skills add NOMARJ/sigil --skill scan-file
Clone the repo
git clone --depth 1 https://github.com/NOMARJ/sigil

Made for: Claude Code, Codex.

Or install sigil-security, the plugin that ships this one along with the rest of its 6 skills, 2 agents, 2 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 scan-file

README.md
[![agentmods](https://agentmods.dev/badge/skills/nomarj/sigil/scan-file.svg)](https://agentmods.dev/skills/nomarj/sigil/scan-file)
Your own site
<a href="https://agentmods.dev/skills/nomarj/sigil/scan-file"><img src="https://agentmods.dev/badge/skills/nomarj/sigil/scan-file.svg" alt="Measured on agentmods" height="20"></a>
Per session 108 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 296 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00108 $0.00296
Opus 5 $0.00054 $0.00148
Sonnet 5 $0.00022 $0.00059
Haiku 4.5 $0.00011 $0.00030

Measured today against content hash c14238ecb280, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

scan-file 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 today.

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.

plugins/claude-code/skills/scan-file/SKILL.md · 29 lines

What it actually says

Scan File with Sigil

Analyze a specific file for security vulnerabilities:

Target: "$ARGUMENTS"

Run: sigil scan <file-path> on the specified file.

Check for:

  1. Code Patterns - eval, exec, pickle, subprocess
  2. Network Access - HTTP requests, webhooks, socket connections
  3. Credential Exposure - API keys, tokens, hardcoded secrets
  4. Obfuscation - base64 encoding, hex strings, charCode
  5. Dangerous Imports - suspicious modules or libraries

Present findings with:

  • Severity level (CLEAN, LOW, MEDIUM, HIGH, CRITICAL)
  • Line numbers and code snippets
  • Risk explanation
  • Remediation recommendations

If the file is CRITICAL or HIGH risk, explain the specific threat and recommend quarantine.

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. today First seen · 29 lines · 108 tokens per session scan A c14238ecb280

Subscribe to this mod's changes

scan-file is a skill published in the GitHub repository NOMARJ/sigil (5 stars, last pushed today), licensed Apache-2.0. It adds 108 tokens to every session and 296 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-09-04.

Related

Other skills, from other repositories

sftp-cc

通用 SFTP 上传工具,通过自然语言触发,将本地项目文件上传到远程服务器。支持增量上传、私钥自动绑定与权限修正。.

toohamster/sftp-cc · 41 tokens

devtools-event-client

Create typed EventClient for a library. Define event maps with typed payloads, pluginId auto-prepend namespacing, emit()/on()/onAll()/onAllPluginEvents() API. Connection lifecycle (5 retries, 300ms), event queuing, enabled/disabled state, SSR fallbacks, singleton pattern. Unique pluginId requirement to avoid event…

TanStack/devtools · 79 tokens

genbench

Run Vendo's buy-vs-build generation benchmark — generation time + accuracy of the real Vendo pipeline vs raw-Claude baselines (diy, claude-code) on JSON-defined worlds. Use when asked to benchmark generation, compare Vendo vs raw models, measure generation speed/cost, or add genbench worlds/cases.

runvendo/vendo · 70 tokens

jk

Jenkins CLI for controllers. Use when users need to manage jobs, pipelines, config.xml, runs, logs, artifacts, credentials, nodes, or queues in Jenkins. Triggers include "jenkins", "jk", "pipeline", "build", "job create", "job config", "config.xml", "run logs", "jenkins credentials", "jenkins node".

avivsinai/jenkins-cli · 78 tokens

blame

Show which regent step last modified each line of a file. Use when investigating file provenance or debugging.

regent-vcs/re_gent · 22 tokens

assess-patch-risk

Assess an immutable patch artifact's program impact, regression risk, and auto-merge eligibility. Use for generated patch files, provider pull-request diffs, or commit ranges when reviewers need evidence about affected runtime paths, contracts, tests, and recoverability. This skill is read-only and does not generate…

bex-co/bex-security · 77 tokens