Token导航 LogoToken导航

Agent Skill · 研究检索

nftables-rule-writing(nftables 规则编写)

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写。它适合让 Agent 提炼结构、补齐章节、统一术语、检查链接或把零散材料整理成可读文档。使用时应保留项目已有事实、命令和路径,不要把未确认的信息写成确定结论;涉及对外文案时,还需要控制语气,避免过度营销或夸大能力。

nftables-rule-writing 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为只读;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 64,698。

总安装 294周安装 12GitHub Stars 公开资料未说明下载 95核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:nftables-rule-writing(nftables 规则编写)
来源仓库:https://github.com/tttpob/skills
仓库路径:skills/nftables-rule-writing
安装命令:
npx skills add https://github.com/tttpob/skills --skill nftables-rule-writing
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/tttpob/skills --skill nftables-rule-writing

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于辅助文档、README、Markdown 和内容稿件的整理与改写。适合让 Agent 提炼结构、补齐章节、统一术语或检查链接。使用时需保留项目已有事实,避免将未确认信息写成确定结论。涉及对外文案时应控制语气,避免过度营销或夸大能力。建议结合原始 README 和仓库内容核验具体用法和功能边界。

来源仓库内路径:skills/nftables-rule-writing

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/tttpob/skills --skill nftables-rule-writing;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它标注为只读,先用只读任务试一次,确认行为符合预期再扩大使用范围。

常见问题

6 条

nftables-rule-writing 怎么安装?

在终端执行 npx skills add https://github.com/tttpob/skills --skill nftables-rule-writing。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

nftables-rule-writing 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

nftables-rule-writing 需要什么权限?

权限级别是只读。该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

nftables-rule-writing 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

nftables-rule-writing 用的人多吗?

公开数据是累计安装 294 次,近一周安装 12 次,下载 95 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

nftables-rule-writing 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 标注为只读权限,试用阶段不容易误改本地文件。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 只想先试试效果、不希望它改动本地文件的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
nftables-rule-writing

nftables 规则编写 · 本页

294—只读未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

nftables Rule Writing (Quickstart, Pitfalls, Constraints)

Use this skill when generating, reviewing, or debugging nftables rulesets, especially when an LLM may produce rules that are syntactically valid but semantically invalid for a specific chain type, hook, or family.

When to Use

Trigger on requests like:

  • "Write an nftables.conf"
  • "Review this .nft file"
  • "Why does nft -f / nft -c fail?"
  • "Which actions are valid on which hooks?"
  • "How do I write IPv4 + IPv6 rules in table inet?"
  • "Create a lint checklist for generated nftables rules"

What This Skill Covers

  • Quickstart ruleset patterns (safe defaults and common base chains)
  • Reusable nftables patterns for common host/router scenarios
  • Ops workflows (validate/apply/list/monitor/reload)
  • Persistence discovery (including systemd units and drop-ins that may load custom .nft files)
  • Hook / chain-type / family constraints
  • Statement-specific constraints (dnat, snat, masquerade, redirect, reject, tproxy, queue)
  • inet family IPv4/IPv6 pitfalls
  • Debugging workflow with nft -c and --debug
  • Source map to official docs and userspace code (nftables project)

Workflow (Authoring + Review)

  1. Identify the ruleset shape first:

- family (ip, ip6, inet, bridge, netdev) - table purpose (filter, nat, etc.) - chain type, hook, priority, policy - whether device is required (netdev, inet + ingress)

  1. If starting from scratch, use references/quickstart.md and references/nftables-patterns.md to pick a known-good template.
  2. Check structural legality in references/constraints-matrix.md:

- chain definition validity - statement vs hook compatibility

  1. Check common LLM mistakes in references/common-pitfalls.md.
  2. For fast triage, use references/hook-action-cheatsheet.md.
  3. If nft is available, run:

- nft -c -f <file> - nft -c -d parser,eval,netlink -f <file> (when error cause is unclear)

  1. For deployment/runtime concerns, use references/nftables-ops-cheatsheet.md and references/nftables-troubleshooting.md.
  2. If needed, use references/source-map.md to trace the constraint back to official docs or src/evaluate.c.

Quickstart First (Important)

Do not start by writing isolated rules. Start from a valid chain declaration and then add rules.

For common starting points:

  • Minimal host firewall: references/quickstart.md
  • Reusable practical patterns: references/nftables-patterns.md
  • NAT placement reminders: references/hook-action-cheatsheet.md
  • inet dual-stack gotchas: references/common-pitfalls.md

Review / Lint Output Format (Recommended)

When reviewing LLM-generated rules, output findings in this order:

  1. Issue (specific chain/rule)
  2. Why it is invalid or risky (hook/family/statement constraint)
  3. Fix (replacement snippet)
  4. Validation (nft -c / version-sensitive caveat)

Core Principles

  • Legality is layered:

- parser (scanner.l / parser_bison.y) - userspace semantic checks (src/evaluate.c) - kernel nf_tables support (final authority)

  • Many failures are not syntax errors. Common real causes:

- wrong chain type/hook - invalid statement in that chain/hook - missing device on netdev or inet ingress base chains - inet NAT address missing explicit ip/ip6 - conflicting protocol contexts (ip + ip6 in one rule)

  • If the target environment is unknown, say so explicitly and require nft -c -f on the target host.

Reference Navigation (Load Only What You Need)

  • references/quickstart.md

- Minimal and common ruleset templates to start from

  • references/hook-action-cheatsheet.md

- Fast hook/action legality reminders

  • references/nftables-patterns.md

- Reusable host/router patterns (sets, NAT, port forwarding, egress)

  • references/constraints-matrix.md

- Detailed constraints with doc/source rationale

  • references/common-pitfalls.md

- LLM-heavy mistakes and corrected examples

  • references/nftables-ops-cheatsheet.md

- Operational commands, persistence, systemd unit/drop-in scanning

  • references/debug-workflow.md

- nft -c, debug flags, and triage workflow

  • references/nftables-troubleshooting.md

- Runtime troubleshooting and multi-source persistence debugging

  • references/reference-index.md

- Topic map for this skill (what to open for what task)

  • references/source-map.md

- Official docs/source file map and search keywords

  • examples/nftables/

- Ready-to-edit example rulesets (web server, router NAT, dual-stack host)

Authoring Guardrails for Agents

  • Prefer explicit protocol context (tcp, udp, icmp, icmpv6) over ambiguous shorthand when generating code.
  • In table inet, prefer separate IPv4 and IPv6 rules unless there is a strong reason to merge.
  • Do not invent hook support. If unsure, check the matrix and verify with nft -c.
  • Treat wiki examples as useful examples, not the sole source of truth.

平台分布

Codex

37.74%
按下载量换算36

Claude

27.41%
按下载量换算26

Cursor

18.16%
按下载量换算17

Gemini CLI

8.83%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills