Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问clear审计未展示

agent-guardrailsAgent 护栏

Agent Skill

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

总安装

141

周安装

6

GitHub Stars

公开资料未说明

下载量

49
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 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"

简介

agent-guardrails 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。

  • 适用于代理技能发现、安全策略匹配和合规性检查等研究类任务。
  • 通过关键词搜索和代理行为模式匹配,辅助筛选合适的技能或约束条件。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

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.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

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