360 Secure SkillHub
360 安全技能中心

lgd-gov-guard

把LGD三律(有籍·有证·有门禁)用于政务与公共部门AI场景的合规守门命令行工具:读取待评估文本或数据,按决策/答复/治理模式对来源、授权与权限做自评,输出含风险点与放行或阻断结论的JSON,零第三方依赖,需Python 3.8+。

zhaoxinghua09-cell
zhaoxinghua09-cell
热度 62.18
最近更新 2026-10-17 07:42:53
分类:安全依赖:代码执行应用场景:报告撰写 / 工作流 / 法律文档

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add lgd-gov-guard
Metadata
name
lgd-gov-guard
description
lgd-gov-guard — 把 LGD 三律(有籍·有证·有门禁)翻译进政务 / 公共部门 AI 应用(决策辅助·公开答复·数据治理)的合规守门器,对 AI 系统做三律自评与门禁判定(零依赖)。 适用场景:当需要政务AI治理守门能力时使用本技能;触发词:lgd-gov-guard。
slug
lgd-gov-guard
version
1.0.1
display_name
政务AI治理守门
display_name_en
Government AI Governance Guard
agent_created
true
author
XLGD · 诺声(Logos)@SynomosAI
license
MIT
license_scope
代码(.py 文件)MIT;本 SKILL.md 与其中理论文本不在 MIT 覆盖范围内(见文末「License & attribution」)
allowed-tools
Read, Glob, Grep, Bash, Write, WebFetch
category
AI 治理
platforms
["windows","macos","linux"]
copyright
XLGD · SynomosAI
description_zh
lgd-gov-guard — 把 LGD 三律(有籍·有证·有门禁)翻译进政务 / 公共部门 AI 应用(决策辅助·公开答复·数据治理)的合规守门器,对 AI 系统做三律自评与门禁判定(零依赖)。
description_en
Translate the LGD three laws into government and public-sector AI (decision support, disclosure replies, data governance): three-law self-assessment and gate decisions.
classification
{"skillhub":["ai-governance"],"iso_25010":["Security","Maintainability"]}
risk_tier
medium
risk_rationale
门禁批量补丁默认 medium(按默认策略设计为中等风险):调用 API/读写文件/本地执行,最小权限,密钥走 Secret;若实际涉对外代执行(push/发布/发送/上架)须人工复评,改 high 并走人工批准。
tags
["lgd-gov-guard","AI 治理","政务AI","数据治理"]
read_when
["政务 AI 决策辅助系统生成政策建议前要校验数据来源法定授权","公共部门自动回复机器人涉及敏感信息时要三律门禁判定","跨部门共享请求或隐私脱敏输出前要自主身份与权限审计","AI 应用启动自检要确认自身逻辑未违规依赖外部权限"]
ai_protocol
true
spec
usk/1.0
interface
{"type":"cli","entry_point":"scripts/gov_guard.py","runtime":"python3","call_pattern":"args"}
input_schema
{"args":{"type":"string","description":"命令行参数透传给主脚本,具体取值见各包 --help","required":false}}
output_schema
{"stdout":{"type":"string","description":"标准输出为 JSON 结果,含逐项检查与总体结论"},"exit_code":{"type":"integer","description":"0=PASS/完成;1=FAIL/有警告或待补强;2=用法或参数错误"}}
capabilities
["cli_tool"]
permissions
{"network":false,"filesystem":false,"subprocess":false}
requirements
{"python_packages":[],"min_python":"3.8"}
changelog
1.0.1: Bilingual rewrite (full EN+ZH, English first), added read_when; 1.0.0: initial upload (USK v3)

凡自治之物 · LGD 治理学 · 创造术家族 | 评测协议:见平台质量门禁规范

English

When to use

  1. Before a government AI decision-support system generates policy advice, to verify the data source holds a legal authorization basis.
  2. When a public-sector auto-reply bot touches sensitive information, to trigger the three-laws gate determination.
  3. Before internal data-governance tools process cross-department sharing requests or desensitized output, to run autonomous identity and permission audits.
  4. When an AI app boots in self-check mode to confirm its own logic does not rely on external permissions or fall short of the LGD standard.

Usage

  1. Run python gov_guard.py directly as the main entry point — no extra environment dependencies.
  2. Core parameters: --input_data (the text or dataset under evaluation) and --mode (decision / reply / governance).
  3. To read the logic, inspect the three-laws determination functions and rule set defined in gov_guard.py.

Workflow

  1. Load the government AI content or data stream to be checked into a temporary workspace.
  2. The script initializes the LGD three-laws (registered · evidenced · gated) rule engine and sets thresholds.
  3. The system independently evaluates data source, authorization evidence and access permissions in parallel.
  4. Produce the internal compliance score and the verdict on whether the zero-dependency standard is met.
  5. Emit an audit report with detailed risk points to the standard log file.
  6. Based on the verdict, automatically release or block the downstream AI task.

Evidence & safety statement

  • Evidence: TBD (no evaluation / badge link yet; update here once it is produced)
  • Version: 1.0.1
  • Security: no independent security scan has been performed (TBD); the conclusion is pending and no endorsement is given until it is completed.

中文

何时用

  1. 政务 AI 决策辅助系统在生成政策建议前,需校验数据来源是否具备法定授权依据。
  2. 公共部门面向公众的自动回复机器人涉及敏感信息时,需触发三律门禁判定。
  3. 内部数据治理工具在处理跨部门共享请求或隐私脱敏输出前,进行自主身份与权限审计。
  4. AI 应用启动自检模式以确认其自身逻辑未违规依赖外部权限及不符合 LGD 标准。

用法

  1. 直接调用 python gov_guard.py 作为主入口脚本运行,无需额外环境依赖。
  2. 核心参数包括:--input_data (待评估的文本或数据集), --mode (决策/答复/治理)。
  3. 若需读取逻辑细节,可直接阅读分析 gov_guard.py 源码中定义的三律判定函数与规则集。

流程

  1. 输入端加载待校验的政务 AI 内容或数据流至临时工作区。
  2. 脚本初始化 LGD 三律(有籍·有证·有门禁)规则引擎并配置阈值。
  3. 系统依次对数据来源、授权证明、访问权限进行独立并行评估。
  4. 生成内部合规评分及是否符合“零依赖”标准的判定结果。
  5. 输出包含风险点明细的审计报告至标准日志文件。
  6. 根据判定结果自动触发放行或阻断后续 AI 任务执行动作。

证据与安全声明

  • 证据:TBD(暂无评测/徽章链接;产生后在此更新实际链接)
  • 版本:1.0.1
  • 安全:未做独立安全扫描(TBD),结论待补;补全前不作推荐背书。