lygo-guardian-p0-stack
由 deepseekoracle 提供
Browser & Automation简介
LYGO Guardian base skill – Nano-Kernel (P0.4), Understanding Heart (P0.5), and Light Math harmony as a portable.
描述
该技能的功能
A Python decorator layer that adds content filtering to agent outputs. Implements a Nano-Gate that checks decisions before execution and an Understanding Heart module that attaches remediation suggestions when risky content is detected. Designed to wrap existing agent functions without requiring structural changes to the underlying code.
The decorator pattern lets you add filtering to any existing agent function with a single annotation instead of restructuring the codebase.
何时使用
- Adding content filtering to an existing LLM agent without rewriting it
- Flagging potentially harmful outputs in an automated response pipeline
- Attaching remediation notes to risky agent actions before delivery
- Running agent decisions through a deterministic ethical gate at runtime
- Auditing agent outputs for balance checks before they reach end users
示例工作流
User asks: wrap an existing agent reply function with ethical output filtering
- 1
Import validate_decision and guardian_wrap from integration_api
- 2
Apply @guardian_wrap decorator to the existing generate_reply function
- 3
Agent invokes the function, Nano-Gate checks the output against its filter rules
- 4
Understanding Heart attaches suggestions if risky content is detected
- 5
Wrapped response is returned with gate verdict and any attached annotations
Agent reply with Nano-Gate pass/flag verdict and optional remediation suggestions attached
安装
clawhub install deepseekoracle/lygo-guardian-p0-stack运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。