Token导航 LogoToken导航

Agent Skill · 研究检索

agent-guardrails(Agent 护栏)

agent-guardrails 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

agent-guardrails 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证为 MIT,暂无第三方扫描结果,按安装量在研究检索类的 73,675 个 Skill 里排第 73,186。

总安装 141周安装 6GitHub Stars 公开资料未说明下载 49核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

AgentSkills.tonpx skills
npx skills add aiagentskills/skills --skill "agent-guardrails"

这个 Skill 是做什么的

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

agent-guardrails 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。适用于代理技能发现、安全策略匹配和合规性检查等研究类任务。通过关键词搜索和代理行为模式匹配,辅助筛选合适的技能或约束条件。

安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/agent-guardrails

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add aiagentskills/skills --skill "agent-guardrails";命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

agent-guardrails 怎么安装?

在终端执行 npx skills add aiagentskills/skills --skill "agent-guardrails"。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

agent-guardrails 支持哪些 AI 工具?

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

agent-guardrails 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

agent-guardrails 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

agent-guardrails 用的人多吗?

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

agent-guardrails 安全吗?

没有查到第三方扫描结果,安全性无法从公开资料判断,安装前请自行审查源码、依赖和命令行为。

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

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 没有第三方扫描结果,安全性只能靠自己读源码判断。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 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调用外部服务未明确有提醒
agent-guardrails

Agent 护栏 · 本页

141—需要联网MIT未收录

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

SKILL.md 原文

name
agent-guardrails
description
General agent safety and workflow guardrails that prevent high-impact mistakes across tooling, verification, versions, integration layers, environment/config, import-time side effects, and high-risk actions. Use when defining or applying behavioral constraints for coding agents, repo automation rules, or operational safety checklists.

General Agent Guardrails

Purpose

Apply these rules to prevent high-impact agent mistakes (tooling drift, bypassed checks, version mismatches, integration bypasses, env/config corruption, serverless import side effects).

When unsure, consult:

  • AGENTS.md for agent behavior and non-negotiables
  • CONVENTIONS.md for repo-wide contracts (imports, build/runtime expectations, platform constraints)

If still unclear after checking those docs and existing code patterns: stop and ask.


1) Follow Existing Contracts (don't invent new ones)

  • Prefer the repository's existing choices: tooling, frameworks, package manager, test runner, build pipeline, import style, integration patterns.
  • Do not introduce "better" alternatives (new frameworks/tools, new config styles, new package managers, new test runners, mass import rewrites) as part of unrelated work.
  • Before changing any cross-cutting behavior, confirm the standard by:

1) checking AGENTS.md and CONVENTIONS.md 2) inspecting existing scripts/config (package.json, lockfiles, CI config) 3) mirroring dominant patterns in the codebase

  • If a change would affect multiple files/systems or alter how the repo builds/tests/deploys: stop and ask for explicit approval.

(Examples of "contracts": package manager and lockfile, test framework, bundler import rules, gateway/adapter usage, serverless-safe patterns.)


2) Never Bypass Verification or Silence Failures

  • Treat verification gates (hooks, CI, tests, lint, typecheck, build steps, security scans) as mandatory.
  • Do not bypass, disable, weaken, or work around verification:

- no --no-verify - no skipping steps conditionally to "make builds pass" - no turning errors into warnings without approval

  • If a check fails:

1) capture the exact failing command and error output 2) fix the root cause or revert/isolate the change that introduced it 3) re-run until green

  • If you suspect it is pre-existing, provide evidence (baseline or prior green reference). Without evidence: treat as yours to fix.
  • If the gate is flaky or misconfigured: gather logs and reproduction, then stop and ask.

3) Version and Entry-Point Discipline (APIs, types, imports)

  • Match code to the versions installed in the repo (package.json and lockfile).
  • Do not copy patterns from other major versions or random examples without verifying compatibility.
  • Treat compiler/type errors as signals of mismatch (version, entrypoint, runtime), not noise.
  • Prefer canonical entrypoints:

- If the repo provides wrappers/re-exports for typed libs (ORMs, SDK clients, codegen types), use them. - Avoid mixing import paths that create duplicate type identities.

  • If multiple patterns exist and it is unclear which is canonical: check CONVENTIONS.md, then stop and ask.

4) Use Canonical Integration Layers (don't bypass platforms/wrappers)

  • Use the canonical integration layer already used in the repo.
  • Do not bypass it by:

- calling vendor SDKs directly - creating ad-hoc clients/config styles - hardcoding endpoints/keys when centralized routing is expected

  • If the abstraction seems insufficient:

- explain why - propose a minimal extension to the canonical layer - stop and ask for approval before implementing a parallel path

(This covers "provider functions vs gateway strings" and similar patterns for auth, payments, analytics, storage, etc.)


5) Environment and Deployment Reality (scope, platforms, reproducibility)

Environment scope

  • Keep env/config scoped to the runtime that consumes it (app/service/job), not the repo root.
  • Do not assume .env is shared across apps/services, or that local/CI/prod behave the same.
  • Identify the consumer runtime, find where it loads env, and apply changes at the narrowest valid scope.
  • If scope is unclear: check CONVENTIONS.md, then stop and ask.

Managed platform constraints

  • Follow platform defaults and repo lockfile/tooling choices for deploy environments.
  • Do not switch package managers/tooling in managed platforms unless explicitly documented and verified.
  • Avoid conflicting lockfiles and non-reproducible installs.

Safe config writes

  • Treat env/config values as byte-sensitive.
  • Do not introduce hidden whitespace/newlines when writing secrets/config.
  • Use newline-safe write patterns (for example, printf) and sanity-check results.

6) Import-Time Purity (safe initialization across contexts)

  • Assume imports may run during build/bundling/test discovery/SSR/workflow registration/cold start.
  • Do not require runtime-only resources or perform side effects at module scope:

- initializing clients that require secrets/config - opening network connections/listeners - filesystem writes, global patching, background timers

  • Defer initialization to explicit runtime boundaries (handlers/jobs/CLI main) or lazy getters/factories.
  • If unsure whether import-time code is safe: check CONVENTIONS.md, then stop and ask.

7) High-Risk Actions Require Explicit Approval (AGENTS.md)

  • Do not implement or automate high-blast-radius operations by default (money movement, billing changes, permission changes, destructive data ops, bulk actions).
  • If requested, check AGENTS.md and CONVENTIONS.md for the approved workflow; if not documented, stop and ask for explicit human approval.

平台分布

OpenCode

34.09%
按下载量换算17

Cursor

26.37%
按下载量换算13

Codex

18.29%
按下载量换算9

Claude Code

11.86%
按下载量换算6

Gemini CLI

5.95%
按下载量换算3

安全审计

暂无安全审计结果可展示。

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

继续浏览同类 Skills