数
数据分类分级判定器
作者:注册老炮@MedXpert I SynomosAIv4
数据分类分级判定器——基于官方规则源的零依赖决策支持工具,JSON IR 输出,覆盖TH-DAT-001域。 适用场景:当需要数据分类分级判定器能力时使用本技能;触发词:合规、判定器、TH-DAT-001、data-grade-checker。
下载量
272
点赞
68
价格
免费
技能文档
---
name: data-grade-checker
slug: data-grade-checker
displayName: 数据分类分级判定器
version: 1.0.2
category: it-ops-security
display_name: 数据分类分级判定器
title: 数据分类分级判定器
author: 诺源(SynomosAI)
license: MIT
allowed-tools: Read, Glob, Grep, Bash, Write, WebFetch
license_scope: 代码(.py 文件)MIT;本 SKILL.md 与其中理论文本不在 MIT 覆盖范围内(见文末「License & attribution」)
description: 数据分类分级判定器——基于官方规则源的零依赖决策支持工具,JSON IR 输出,覆盖TH-DAT-001域。 适用场景:当需要数据分类分级判定器能力时使用本技能;触发词:合规、判定器、TH-DAT-001、data-grade-checker。
tags: [合规, 判定器, TH-DAT-001, data-grade-checker]
description_zh: "数据分类分级判定器——基于官方规则源的零依赖决策支持工具,JSON IR 输出,覆盖TH-DAT-001域。"
description_en: "Data classification and grading determination tool: zero-dependency decision support with JSON IR output (domain TH-DAT-001)."
read_when:
- 新数据源接入系统前自动化合规初筛与风险预判
- 数据资产盘点/审计快速评估敏感信息密度
- 按 TH-DAT-001 域标准界定数据属性标签(L1-L4)
classification:
skillhub: ["security-compliance"]
iso_25010: ["Security"]
risk_tier: medium
risk_rationale: "门禁批量补丁默认 medium:调用 API/读写文件/本地执行,最小权限,密钥走 Secret;若实际涉对外代执行(push/发布/发送/上架)须人工复评,改 high。"
platforms: [windows, macos, linux]
ai_protocol: true
spec: usk/1.0
interface:
type: cli
entry_point: data-grade-checker.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/warnings; 2=usage error"
capabilities:
- cli_tool
permissions:
network: false
filesystem: false
subprocess: false
requirements:
python_packages: []
min_python: "3.8"
changelog: "1.0.2: Bilingual rewrite (full EN+ZH, English first); 1.0.0: initial upload (USK v3)"
---
> 凡自治之物 · LGD 治理学 · 创造术家族 | 评测协议:见平台质量门禁规范
## English
### When to use
- Automated compliance pre-screening / risk prediction before a new data source joins the system.
- Rapidly assess sensitive-info density during data-asset inventory or audit.
- Label data attributes (L1–L4) per TH-DAT-001 domain standards.
### Usage
- Input: pass the data sample and rule scope; no external script to load.
- Output: structured JSON IR, ready to embed in downstream decision chains.
- Doc-style skill: submit task description + data object via context; the internal rule engine reasons automatically.
### Flow
1. Receive the request; parse the raw data to grade.
2. Match the TH-DAT-001 classification & grading rule set.
3. Multi-condition validation and weighting over the internal doc knowledge base.
4. Emit a JSON IR with risk level and compliance verdict.
### Evidence & safety
- Evidence: TBD. Version: 1.0.2. Security: no independent scan (TBD).
## 中文
### 何时用
- 在新数据源接入系统前进行自动化合规初筛与风险预判。
- 在执行数据资产盘点或审计任务时,快速评估敏感信息密度。
- 需要依据 TH-DAT-001 域标准明确界定数据属性标签(L1-L4)的场景。
### 用法
- **输入参数**:直接传入待检数据样本及指定规则范围,无需加载外部脚本文件。
- **输出说明**:返回结构化 JSON IR 结果,默认支持嵌入到下游决策链路中。
- **调用方法**:作为文档型技能,通过指令上下文提交任务描述与数据对象,技能将自动检索内部规则库执行逻辑推理。
### 流程
1. 接收调用请求并解析待判定的原始数据内容。
2. 匹配 TH-DAT-001 域下的分类与分级核心规则集。
3. 基于内部文档知识库进行多条件校验与逻辑加权。
4. 生成包含风险等级与合规结论的 JSON IR 结果。
### 证据与安全声明
- 证据:TBD(暂无评测/徽章链接;产生后在此更新实际链接)
- 版本:1.0.2
- 安全:未做独立安全扫描(TBD),结论待补;补全前不作推荐背书。使用说明
# data-grade-checker · 数据分类分级判定器
> AI-assisted decision-support CLI. NOT legal advice — verify against official texts. Text verified: 2026-09-26.
## What it does
Classifies data into 核心数据 / 重要数据 / 一般数据 per **GB/T 43697-2024《数据安全技术 数据分类分级规则》(2024-10-01实施)** (pending manual verification; official texts prevail).
- **Insufficient input → strict presumption (从严推定)**: with `core_interest` (or industry/scale) missing, the tool returns the **most obligation-heavy grade** among the possible ones, states the possible range in `warnings`, and sets `rc=1`. It never silently returns 「一般数据」.
- **No silent invalid input**: non-yes/no `core_interest`/`cross_border`, non-high/mid/low `scale` → gate error (`rc=2`).
- **Out of scope**: industry-specific sensitive-data catalogues, personal-information dimension, full cross-border filing process.
## Install & run (zero-dependency, Python 3.8+)
```bash
python data-grade-checker.py --demo # 3 built-in smoke cases
# rc=1 (strict presumption, no args)
python data-grade-checker.py
# rc=0 (complete args → 一般数据)
python data-grade-checker.py --industry retail --core_interest no --scale low
# rc=2 (invalid input)
python data-grade-checker.py --industry retail --scale huge
```
## Parameters
| Parameter | Required | Meaning |
|---|---|---|
| `industry` | no | 行业:finance/energy/transport/bio/health/geo/population/gov/key_infra 等 |
| `core_interest` | no | 是否涉及国家核心利益:yes/no |
| `scale` | no | 规模/敏感度:high/mid/low |
| `cross_border` | no | 是否出境:yes/no |
## Output
Deterministic JSON IR with `rc` (**0** = ok / **1** = completed with warnings / **2** = invalid input), `grade`, `obligations`, `warnings`, and `aigc_mark` (GB45438-2025 metadata).
Real excerpt (`--demo` case 2, values verbatim):
```json
{
"input": {"industry": "finance", "scale": "high"},
"result": {
"grade": "核心数据",
"obligations": ["出境安全评估 + 审批", "最高级保护义务", "原则上不得出境"],
"warnings": [
"输入不完整:未说明是否涉及国家核心利益(core_interest),该参数可触发最高级;建议补齐 core_interest / industry / scale 后复核。",
"分级不确定(可能区间 重要数据~核心数据):已按从严推定取『核心数据』(义务最重者),实际等级可能更宽松;请补齐参数后复核。"
]
},
"rc": 1
}
```
## Rule-source review checklist (pending manual verification)
| Clause | Used for | Status |
|---|---|---|
| GB/T 43697-2024 | 核心/重要/一般数据分级规则来源 | 待人工核对 |
| 行业敏感清单 | 重要数据行业判定 | 待人工核对 |
| core_interest=yes → 核心数据 | 最高级触发条件 | 待人工核对 |
| 跨部门按就高原则 | 多属性数据定级 | 待人工核对 |
## Theory hook
数据须有籍、有级、有门禁——分类分级即数字世界的产权登记。域站位件:TH-DAT-001。
## Pointers
- LGD 理论总账 REGISTRY 在线页:(地址待补) · DAT 域速查页:(地址待补)
## License & attribution
**Layered licence — the code licence does NOT cover the docs or the theory text.**
| Layer | Carrier | Licence |
|---|---|---|
| Code | `data-grade-checker.py` | **MIT** |
| Docs & theory text | this `README.md`, `SKILL.md`, the 「理论依据」 section and all theory wording | **Not covered by MIT**: all rights reserved |
> 代码可依 MIT 使用与再分发;文档与理论文本不因代码许可而默认可自由再发布。
```
© 2026 SynomosAI · China. All rights reserved.
理论署名 (attribution) : LGD(Lifecycle Governance Doctrine / 全程治理论)— SynomosAI initiative
名称状态 (name status) : "SynomosAI" — 未申请实体注册、未申请商标注册
(not a registered legal entity; no trademark registered)
生产参考部署 (production reference, self-reported) : 无(未声明外部生产参考部署)
← 非认证、非背书、非监管认可(not a certification or endorsement)
代码许可 (code license) : 本包未附 LICENSE 文件(许可待定)
本文本与理论表述不在任何代码许可覆盖范围内
引用格式 (cite as) : 本资产无 DOI
```
(上列为《LGD 对外表述规范》§3.2 统一块,**整体复制、未删改**。)
**本包补充**:`data-grade-checker.py` = MIT;本 `README.md` / `SKILL.md` 及其中理论文本不在任何代码许可覆盖范围内。中文文档见 `SKILL.md`。
## 家族合集
| 域 | 工具 | 大使 |
|---|---|---|
| UAS 低空 | uas-ops-checker | 诺卫 |
| AUT 驾驶 | aut-grade-checker | 诺卫 |
| DAT 数据 | data-grade-checker | 诺源 |
| BIO 生物 | hgrac-route-checker | 诺康 |
| FIN 金融 | fin-ai-classifier | 诺丰 |
| LAW 法律 | evid-four-check | 诺律 |支持平台:Qoder · QoderWork · Claude · Codex 等 AI 编程助手