security-policy

security-policy is a skill for Claude Code, Codex from nanxiaoyao/network-huawei-skills. It costs 134 tokens per session (2,698 once invoked), scanned A, original, MIT.

A configuration guide for security policies on Huawei USG6000E firewalls. A security policy is a rule that allows or blocks network traffic between defined zones, addresses, services, applications or users.

In plain words
What is it for?
Use it to create, inspect, change, move, copy or remove firewall rules; group policies; review rule matches; and troubleshoot traffic permissions on supported USG devices.
Why use it?
It explains why traffic is allowed or blocked, including rule order and the default action when no rule matches. This helps investigate policies that do not take effect.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Use it to create, inspect, change, move, copy or remove firewall rules; group policies; review rule matches; and troubleshoot traffic permissions on supported USG devices.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nanxiaoyao/network-huawei-skills/security-policy
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 nanxiaoyao/network-huawei-skills --skill security-policy
Clone the repo
git clone --depth 1 https://github.com/nanxiaoyao/network-huawei-skills

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 security-policy

README.md
[![agentmods](https://agentmods.dev/badge/skills/nanxiaoyao/network-huawei-skills/security-policy/github.svg)](https://agentmods.dev/skills/nanxiaoyao/network-huawei-skills/security-policy)
Your own site
<a href="https://agentmods.dev/skills/nanxiaoyao/network-huawei-skills/security-policy"><img src="https://agentmods.dev/badge/skills/nanxiaoyao/network-huawei-skills/security-policy/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 security-policy

Your own site · 80×15
<a href="https://agentmods.dev/skills/nanxiaoyao/network-huawei-skills/security-policy"><img src="https://agentmods.dev/badge/skills/nanxiaoyao/network-huawei-skills/security-policy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 134 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,698 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.00134 $0.02698
Opus 5 $0.00067 $0.01349
Sonnet 5 $0.00027 $0.00540
Haiku 4.5 $0.00013 $0.00270

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

Security

Grade A, and why

security-policy 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 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.

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.

security-policy/SKILL.md · 290 lines

How it starts

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

华为 USG 安全策略配置技能 (security-policy)

适用平台: USG6000E 系列(USG6300E/6500E/6600E/6680E/6712E/6716E) 适用版本: V600R007C20 及以上 文档来源: HUAWEI USG6000E V600R007C20 产品文档

安全策略是 USG 防火墙的核心功能,控制不同安全区域间流量的转发或阻断。本技能覆盖安全策略的完整生命周期:创建、修改、移动、复制、删除、查看、排错。


触发场景

用户描述以下任一需求时加载此技能:

  • "配置安全策略" / "放通某个区域的流量"
  • "创建一条安全策略规则"
  • "安全策略默认动作" / "default action"
  • "查看安全策略命中"
  • "安全策略不生效" / "策略排错"
  • "策略组" / "policy group"
  • "基于用户/应用/地址的安全策略"

不适用: NAT 策略(→ nat-config/)、认证策略(→ auth-policy)、IPS/AV 内容安全配置(→ content-security/,但安全策略中引用 profile 属本技能)


核心概念

安全策略工作流

流量进入 → 匹配源安全区域 → 逐条匹配规则(从上到下)→ 命中 → 执行动作(permit/deny)
                                         → 未命中 → 执行默认动作(default action)

匹配要素(七元组)

要素 命令 说明
源安全区域 source-zone 流量进入的区域
目的安全区域 destination-zone 流量去往的区域
源地址 source-address 源 IP / 地址组 / 地址集
目的地址 destination-address 目的 IP / 地址组 / 地址集
服务 service 协议+端口(HTTP/DNS/自定义等)
应用 application 应用层识别(微信/钉钉等)
用户 user / access-authentication 基于用户或用户组的策略

规则匹配顺序

从上到下,先命中先生效。规则顺序至关重要。


命令参考

1. 进入安全策略视图

system-view
security-policy                    ← 进入安全策略视图
[sysname-policy-security]

2. 创建规则

security-policy
 rule name <rule-name>             ← 创建/进入规则
  source-zone <zone-name>          ← 源安全区域(可配多条)
  destination-zone <zone-name>     ← 目的安全区域
  source-address <ip> <mask>       ← 源地址(或地址组)
  source-address address-set <name>← 源地址集
  destination-address <ip> <mask>  ← 目的地址
  destination-address address-set <name>
  service <service-name>           ← 服务(可配多条)
  service protocol <tcp|udp> source-port <port> destination-port <port>
  application <app-name>           ← 应用识别
  action permit                    ← 动作:permit 或 deny
  description <text>               ← 规则描述(可选)
  profile <profile-name>           ← 引用内容安全 profile(可选)
  policy logging                   ← 开启命中日志
  enable                           ← 启用规则

3. 排除地址

Read the full file on GitHub · 290 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 11d ago First seen · 290 lines · 134 tokens per session scan A f45912cafc94

Subscribe to this mod's changes

security-policy is a skill published in the GitHub repository nanxiaoyao/network-huawei-skills (2 stars, last pushed 1mo ago), licensed MIT. It adds 134 tokens to every session and 2,698 once invoked, about $0.0007 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.

Related

Other skills, from other repositories

chinese-git-workflow

A reference for configuring Git with Chinese code-hosting services such as Gitee, Coding.net, GitLab China, and CNB, including SSH, HTTPS, credentials, CI, and repository mirroring.

jnMetaCode/superpowers-zh · 69 tokens

chinese-documentation

A Chinese technical-documentation style guide covering spacing, punctuation, numbers, terminology, and links when Chinese and English appear together.

jnMetaCode/superpowers-zh · 62 tokens

seedance-vocab-zh

This skill should be used when the user asks for Chinese Seedance 2.0 prompt wording, Mandarin cinematic vocabulary, Chinese prompt compression, or translation of camera, lighting, action, VFX, audio, and production terms into Chinese.

Emily2040/seedance-2.0 · 55 tokens

percepxion-oob

Manage Lantronix out-of-band (OOB) infrastructure via Percepxion central management platform: device inventory, serial port inspection via SLC CLI, firmware compliance, config management, security auditing, and closed-loop incident remediation. Use during outages, maintenance windows, compliance cycles, and…

automateyournetwork/netclaw · 70 tokens

fmc-firewall-ops

Cisco Secure Firewall FMC — access policy search, rule inspection, FTD device targeting, multi-FMC profile management. Use when searching firewall rules by IP or FQDN, checking if host A can reach host B through the firewall, auditing FMC access policies, or reviewing SGT-based segmentation rules.

automateyournetwork/netclaw · 67 tokens

setup-matt-pocock-skills

A setup skill that configures engineering skills for a repository, including its issue tracker, labels, and documentation layout. A repository is the project folder managed by version control.

devcxl/mattpocock-skills-zh · 43 tokens