跳到正文
cccskills
免费在 GitHub 公开

guard

Use when deploying to production, handling sensitive data, or the workflow needs safety constraints, input validation, and security boundaries.

中文简介正在准备中。当前显示原文说明。

sharpdeveye/maestro星标 591(GitHub 591 + cccskills 0)

实测评分 未实测

查看安装方法

包含的文件(1)

  • SKILL.md3.1 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

MANDATORY PREPARATION

Invoke /agent-workflow — it contains workflow principles, anti-patterns, and the Context Gathering Protocol. Follow the protocol before proceeding — if no workflow context exists yet, you MUST run /teach-maestro first.

Consult the guardrails-safety reference in the agent-workflow skill for the full defense-in-depth framework.


Add safety boundaries to a workflow. Guards protect against malicious inputs, unintended outputs, data leakage, cost explosion, and all the ways an autonomous system can go wrong in the real world.

Threat Assessment

Before adding guards, understand what you're protecting against:

ThreatRisk LevelGuard Type
Prompt injectionHighInput sanitization, instruction hierarchy
PII leakageHighOutput filtering, data masking
Cost explosionHighToken budgets, rate limits
Unauthorized actionsMediumPermission scoping, confirmation gates
HallucinationMediumSource attribution, fact checking
Service abuseMediumRate limiting, authentication

Guard Implementation

Input Guards

Before processing any input:
1. Validate against schema (reject malformed)
2. Check size limits (reject oversized)
3. Sanitize for injection patterns
4. Rate limit check (reject if exceeded)
5. Authentication/authorization check

Output Guards

Before returning any output:
1. Schema validation (format correct?)
2. PII scan (names, emails, SSNs, etc.)
3. Content policy check
4. Confidence threshold check
5. Source attribution present?

Cost Guards

Before every model/API call:
1. Check remaining budget
2. Estimate request cost
3. If estimate > remaining budget → reject or use cheaper alternative
4. After call → update spent amount
5. Circuit breaker check (too many failures?)

Permission Guards

For every tool call:
1. Is this tool allowed for this user/context?
2. Is this a destructive operation? → require confirmation
3. Is this accessing data the user is authorized for?
4. Log the access for audit trail

Guard Checklist

  • All inputs validated before processing
  • PII detection on all outputs
  • Cost ceiling set with enforcement
  • Prompt injection defenses active
  • Destructive operations require confirmation
  • All access logged for audit
  • Circuit breakers on external services
  • Rate limits on all endpoints

Recommended Next Step

After adding guards, run /evaluate with adversarial test scenarios to verify guards hold under attack.

NEVER:

  • Deploy without input validation
  • Trust model output for high-stakes decisions without verification
  • Run without cost controls
  • Skip logging (you need the audit trail)
  • Assume the model will follow safety instructions 100% of the time

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Use when the workflow is too slow, too expensive, or both and needs latency, cost, or token usage optimization.

中文简介正在准备中。当前显示原文说明。

sharpdeveye/maestro5912026年4月29日 更新

Use when porting a workflow to a different AI provider, deployment environment, model tier, or organizational context.

中文简介正在准备中。当前显示原文说明。

sharpdeveye/maestro5912026年4月29日 更新

Use when any Maestro command is invoked — provides foundational workflow design principles across prompt engineering, context management, tool orchestration, agent architecture, feedback loops, knowledge systems, and guardrails.

中文简介正在准备中。当前显示原文说明。

sharpdeveye/maestro5912026年4月29日 更新

amplify

免费

Use when the workflow works but needs to handle more complex cases or produce higher-quality output through better tools, context, prompts, or models.

中文简介正在准备中。当前显示原文说明。

sharpdeveye/maestro5912026年4月29日 更新

calibrate

免费

Use when workflow components are inconsistent, naming conventions vary, or a new team member's work needs alignment to project standards.

中文简介正在准备中。当前显示原文说明。

sharpdeveye/maestro5912026年4月29日 更新

capture

免费

Capture a session summary — what was done, what decisions were made, and what to do next.

中文简介正在准备中。当前显示原文说明。

sharpdeveye/maestro5912026年4月29日 更新

查看 sharpdeveye 的全部技能

报告此技能的问题