Skip to content
alyn
anbeime

Security Scan skill

对进入系统的文件或 URL 执行安全与合规扫描,输出 pass/reject 判定与扫描报告,作为所有文档处理的强制前置关卡。

$npx skills add anbeime/skill --skill security-scan
View this skill on GitHubanbeime/skill/antinet-agentteams/skills/security-scan/SKILL.md
Pack stars
9,407
Pack installs
574
Alyn Score
59/99
Updated
23 h ago
– views – installs via Alyn

Install Security Scan

Pick your agent. Every command is ready to paste.

$npx skills add anbeime/skill --skill security-scan

The open skills CLI detects your agents (Claude Code, Cursor, Codex and 70+ more) and installs to the right folder. Add -g to install globally.

01

Install it

Run the command above, or upload the folder in Claude.

02

Ask naturally

Describe the task. Your agent loads security-scan when the request matches its description.

03

Name it if needed

If it does not trigger, say “use the security-scan skill”. In Codex, type $security-scan.

The skill itself

SKILL.md

FolderGitHub

合规安检 Skill(锦衣卫)

使用方式

  • 由锦衣卫 Worker 在收到文件/URL 时调用,作为流水线的第一道闸门。
  • 输出结构化判定(pass / reject),并写入 provenance 交由太史阁留痕。

输入(Input)

  • target:待检对象,二选一
    • 本地文件路径(PDF / PPT / Excel / Word / 图片)
    • 外部 URL(需先解析域名)
  • policy_ref:(可选)覆盖默认策略的合规规则集引用

输出(Output)

  • verdict:pass 或 reject
  • report:安全扫描报告,含命中的黑名单项、许可状态、风险等级
  • trace_id:本次扫描的 provenance 追踪 ID(用于太史阁留痕)

依赖(Dependencies)

  • Sci-Hub 等已知违规域名黑名单(本地 CSV/JSON)
  • OA 文档许可校验库(本地规则)
  • 文件类型探测(python-magic)

失败处理(Failure Handling)

  • 扫描服务不可用:拒绝文件并告警,绝不降级放行(零信任底线)。
  • 文件类型无法识别:标记 reject 并写入原因,交由管理员确认。
  • 黑名单库读取失败:回退到「全拒 + 告警」保守策略,并提示运维修复。

复用价值(Reuse Value)

  • 与具体业务解耦:任何文档处理系统(RAG、知识库、合同审查)均可直接挂载此 Skill 作入口安检。
  • 判定标准可配置:通过替换 policy_ref 适配不同行业的合规基线。

复赛代码包执行(runnable package)

  • 真实入口:scripts/run_security_scan.py
  • 执行等价于 core.runtime.AgentSession.run_stage("security-scan"),调用 security.jinyiwei.JinYiWeiAgent(纯 Python,零外部依赖,可离线运行)。
  • 运行:python skills/security-scan/scripts/run_security_scan.py
  • 产物:examples/snse_survey/skill_outputs/security_scan.json(黄卡 + 扫描报告)。

Tips for Security Scan

  • • Start a fresh session after installing so your agent picks up the new skill.
  • • This skill ships scripts. Read them before the first run, and run it in a project without secrets first.
  • • It is part of a pack with 29 skills. Install only the ones you need with --skill to keep triggers precise.
  • • If two skills overlap, mention the one you want by name.

Questions about Security Scan

What does the Security Scan skill do?

对进入系统的文件或 URL 执行安全与合规扫描,输出 pass/reject 判定与扫描报告,作为所有文档处理的强制前置关卡。

How do I install Security Scan?

Run "npx skills add anbeime/skill --skill security-scan" in your project. The skills CLI installs it for Claude Code, Cursor, Codex and 70+ other agents. In Claude on the web, upload the skill folder as a ZIP under Customize > Skills.

Does Security Scan work in Cursor and Codex?

Yes. Security Scan uses the open SKILL.md format, so it works in Claude Code, Claude, Cursor, OpenAI Codex, Gemini CLI, GitHub Copilot and other agents that support agent skills.

Is Security Scan free?

Security Scan is open source on GitHub. It is free to install; check the license before commercial use.

Who made Security Scan?

Security Scan is published by anbeime in the anbeime/skill repository, together with 28 other skills.

Similar skills. From other creators.