code-scanner

code-scanner is a skill for Claude Code, Codex from alibaba/anolisa. It costs 34 tokens per session (501 once invoked), scanned A, original, Apache-2.0.

A lightweight pattern-based security scanner for Bash and Python source code. It returns structured JSON with a verdict, matched findings, severity, evidence, language, and scan details.

In plain words
What is it for?
Use it to scan Bash or Python snippets for security risks and to consume the results programmatically through the scan command.
Why use it?
It provides a quick check for known risky code patterns before scripts are run or shared. Its results distinguish warnings from risks that should block execution.

Skill for Claude CodeCodex ✓ vendor

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

Good fit Use it to scan Bash or Python snippets for security risks and to consume the results programmatically through the scan command.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alibaba/anolisa/code-scanner
About the project

ANOLISA is a server-side operating layer for AI agent workloads that provides terminal access, token-saving tool-output compression, runtime controls, security, observability, skills, memory, and sandbox management. It is for running and supervising agents from a Linux terminal while retaining an existing shell, agent framework, and sandbox. The catalogue add-ons are components of its agent operating environment and workflows.

alibaba/anolisa · 603 stars · on GitHub · agentic-os.sh

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 alibaba/anolisa --skill code-scanner
Clone the repo
git clone --depth 1 https://github.com/alibaba/anolisa

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/alibaba/anolisa/code-scanner/github.svg)](https://agentmods.dev/skills/alibaba/anolisa/code-scanner)
Your own site
<a href="https://agentmods.dev/skills/alibaba/anolisa/code-scanner"><img src="https://agentmods.dev/badge/skills/alibaba/anolisa/code-scanner/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 code-scanner

Your own site · 80×15
<a href="https://agentmods.dev/skills/alibaba/anolisa/code-scanner"><img src="https://agentmods.dev/badge/skills/alibaba/anolisa/code-scanner.svg" alt="Reviewed on agentmods" width="80" 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 501 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.00034 $0.00501
Opus 5.5 $0.00014 $0.00200
Sonnet 5.5 $0.00007 $0.00100
Haiku 4.5 $0.00003 $0.00050

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

Security

Grade A, and why

code-scanner 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 1mo 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.

src/agent-sec-core/skills/code-scanner/SKILL.md · 56 lines

What it actually says

Code Scanner

基于正则的轻量级代码安全扫描引擎,支持 Bash 和 Python,内置 25 条检测规则。

调用方式

agent-sec-cli scan-code --code '<source_code>' --language <bash|python>

输入

参数 类型 必选 说明
code string 是 待扫描的源代码字符串,支持多行
language string 是 编程语言,取值:bash 或 python

输出

返回 JSON 格式的 ScanResult 对象:

字段 类型 说明
ok bool 扫描是否正常完成(无内部错误)
verdict string 最终判定,见下方 Verdict 说明
summary string 人类可读的扫描摘要
findings Finding[] 命中的规则列表,无命中时为空数组
language string 输入的语言
engine_version string 与 agent-sec-cli 版本一致
elapsed_ms int 扫描耗时(毫秒)

Finding 结构

字段 类型 说明
rule_id string 规则 ID,如 shell-recursive-delete
severity string 严重级别:warn / deny
desc_zh string 中文描述
desc_en string 英文描述
evidence string[] 匹配到的代码片段列表

Verdict 说明

值 含义
pass 未检测到安全风险
warn 存在告警级风险,建议关注
deny 存在阻断级风险,应阻止执行
error 扫描引擎内部错误
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. 1mo ago First seen · 56 lines · 34 tokens per session scan A a9280e7e7598

Subscribe to this mod's changes

code-scanner is a skill published in the GitHub repository alibaba/anolisa (603 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 34 tokens to every session and 501 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

Other skills, from other repositories

apps

Build and iterate on schema-backed Swarm Apps with live models, named queries, custom actions, and json-render interfaces using the app-upsert, app-get, app-list, and app-patch tools.

desplega-ai/agent-swarm · 43 tokens

kapso-whatsapp

How to interact with Kapso WhatsApp from the swarm — read inbound webhook payloads (text AND media), fetch message history, send free-form messages within the 24h session window (and template messages outside it), mark-as-read, show the typing indicator, send reactions, download media, verify webhook signatures, and…

desplega-ai/agent-swarm · 156 tokens

swarm-scripts

Bulk, repeat, fan-out, or data-heavy work: write and run swarm scripts (inline script-run, named script-upsert, durable launch-script-run). Covers the script-vs-tool rubric, the authoring contract (args first, ctx second), the seed catalog, connections and secrets, dbquery, and exposing a script as an API.

desplega-ai/agent-swarm · 82 tokens

composio

Use Composio from Agent Swarm through the agent-swarm x composio CLI route, the swarmx MCP tool, or a registered ctx.api.composio script connection. Trigger when a task needs connected third-party app tools such as Gmail, Google Calendar, Google Docs, Google Drive, GitHub, Slack, Notion, or HubSpot through Tool Router…

desplega-ai/agent-swarm · 128 tokens

motion-design-video-analysis

Reverse-engineer a short motion-design / product-update video (animation technique, timing and easing, composition, transitions, likely tooling, vibe, audio) and produce a rebuild spec someone can build from. Default path is one call to google/gemini-3.8-flash over sampled frames, then a mandatory by-eye check of…

desplega-ai/agent-swarm · 107 tokens

open-prompt-showreel

Make a design-led motion-graphics video (showreel, eval comparison, feature or bug-hunt story) from one open prompt. Claude Opus at max effort designs, codes and renders the whole thing itself in a scratch dir, with no template and no repo PR. Use for any "make a video for X" / "do a showreel for Y" / "a little…

desplega-ai/agent-swarm · 181 tokens