National Standard Monitor Skill
跟踪国家标准(GB/GB/T)更新变化,支持任意ICS分类。从openstd.samr.gov.cn获取最新现行标准列表,自动比对本地已下载标准,发现新增/废止/状态变更,支持批量下载PDF。
沪上猫见闻
@sereinone
What This Skill Does
Monitors Chinese national standards (GB/GB/T) for updates by fetching the latest standard list from openstd.samr.gov.cn, comparing it against a local metadata file, and reporting newly added, abolished, or status-changed standards. Supports batch downloading of PDFs for any ICS classification.
Replaces manual checking of government websites for standard updates by automating the entire monitoring, comparison, and download workflow.
When to Use It
- Check if any GB/GB/T standards in a specific ICS category have been updated or abolished
- Download the latest PDFs of newly published national standards for compliance review
- Track changes to IT-related standards (ICS 35) for software development compliance
- Generate a report of all standard changes since the last monitoring run
- Batch download multiple standard PDFs while respecting rate limits
Install
$ openclaw skills install @sereinone/national-standard-monitor-skill国家标准跟踪助手
跟踪指定 ICS 分类下的国家标准(GB/GB/T)更新变化,自动比对并下载新增标准的 PDF 全文。
快速开始
运行前确保有 Python 3,无需额外依赖包。
# 在目标目录执行(会自动创建 standards_metadata.json 等文件)
python3 scripts/check_updates.py --ics-code 35 --dir /path/to/output
常见 ICS 分类代码
| ICS 代码 | 分类名称 |
|---|---|
| 01 | 综合、术语学、标准化、文献 |
| 03 | 社会学、服务、公司组织和管理、行政、运输 |
| 07 | 数学、自然科学 |
| 11 | 医药卫生技术 |
| 13 | 环保、保健和安全 |
| 17 | 计量学和测量、物理现象 |
| 19 | 试验 |
| 21 | 机械系统和通用件 |
| 23 | 流体系统和通用件 |
| 25 | 机械制造 |
| 27 | 能源和热传导工程 |
| 29 | 电气工程 |
| 31 | 电子学 |
| 33 | 电信、音频和视频工程 |
| 35 | 信息技术、办公机械 |
| 37 | 成像技术 |
| 39 | 精密机械、珠宝 |
| 43 | 道路车辆工程 |
| 45 | 铁路工程 |
| 47 | 造船和海上构筑物 |
| 49 | 航空器和航天器工程 |
| 53 | 材料储运设备 |
| 55 | 货物的包装和调运 |
| 59 | 纺织和皮革技术 |
| 61 | 服装工业 |
| 65 | 农业 |
| 67 | 食品技术 |
| 71 | 化工技术 |
| 73 | 采矿和矿产品 |
| 75 | 石油及相关技术 |
| 77 | 冶金 |
| 79 | 木材技术 |
| 81 | 玻璃和陶瓷工业 |
| 83 | 橡胶和塑料工业 |
| 85 | 造纸技术 |
| 87 | 涂料和颜料工业 |
| 91 | 建筑材料和建筑物 |
| 93 | 土木工程 |
| 95 | 军事工程 |
| 97 | 家用和商用设备、文娱、体育 |
执行步骤
第1步:确认工作目录和 ICS 代码
询问用户要跟踪的 ICS 分类代码 和工作目录(即存放 PDF 和元数据的目录)。如果用户之前已建立过跟踪目录,使用已有目录;否则帮助用户创建。
第2步:运行更新检查脚本
python3 scripts/check_updates.py --ics-code {ICS_CODE} --dir {WORK_DIR}
脚本工作流程:
- 从
openstd.samr.gov.cn并行抓取全部现行标准列表 - 与本地
standards_metadata.json比对 - 生成
update_report.json报告
第3步:读取报告并汇报
读取 {WORK_DIR}/update_report.json,向用户汇报以下内容:
基本信息:
- 网站现行标准总数 vs 本地已记录总数
- 检查时间
自上次检查以来的变化(如有 latest_check.json):
- 增量新增标准(
incremental_new)数量和列表 - 增量删除/废止标准(
incremental_removed)数量和列表
与本地全程比对:
- 全部新增标准(
new_standards):首次建立时的全部差异,或与 metadata 比对的新增 - 已删除/废止标准(
removed_standards) - 状态变更标准(
status_changes) - 可重试下载的标准数量(排除已确认的 404 采标标准)
汇报格式: 使用简洁表格或列表,新增标准超过 20 个时只展示前 20 个并注明总数。
第4步:根据结果决定下载
如果有新增标准,询问用户是否下载。用户同意后执行:
python3 scripts/check_updates.py --ics-code {ICS_CODE} --dir {WORK_DIR} --download
下载采用批量策略(每 4 个暂停 65 秒),自动识别并跳过 404 采标标准,下载完成后自动更新 standards_metadata.json。
如果无任何更新,简洁告知"今日无新增标准,ICS {CODE} 现行国家标准无变化"。
数据文件说明
| 文件 | 说明 |
|---|---|
standards_metadata.json | 本地标准元数据(含下载状态),首次运行自动创建 |
latest_check.json | 上次检查时网站的全部标准快照(用于增量比对) |
update_report.json | 本次检查的完整报告 |
*.pdf | 下载的标准全文 PDF |
重要说明
- 404 错误 = 采标标准(采用国际标准的国标),网站不提供全文下载,属正常情况,不是失败
isValid=false才是真正的验证码拦截- 每批次下载 4 个后自动暂停 65 秒,防止触发反爬
- 脚本支持断点续传:已下载的 PDF 不会重复下载
- 工作目录会自动创建(如不存在)
- 所有数据文件均以 JSON 格式存储,方便程序读取
Top skills in this category
Skill Vetter
@spclaudehomeSecurity-first skill vetting for AI agents. Use before installing any skill from ClawdHub, GitHub, or other sources. Checks for red flags, permission scope, and suspicious patterns.
API Gateway
@byungkyuCall third-party APIs through the Maton gateway, which injects the credential for an app the user has already connected. Use this skill when the user names a connected app and a concrete action in it - read a mailbox, query a CRM, file an issue, update a spreadsheet, run a query through a connected
Openclaw Command Center
@jontsaiMission control dashboard for OpenClaw - real-time session monitoring, LLM usage tracking, cost intelligence, and system vitals. View all your AI agents in o...
Prompt Guard
@seojoonkim650+ pattern AI agent security defense covering prompt injection, supply chain injection, memory poisoning, action gate bypass, unicode steganography, cascad...
Skill Vetter - Pre-Install Security Review
@donovanpankratz-delSecurity vetting protocol before installing any AI agent skill. Red flag detection for credential theft, obfuscated code, exfiltration. Risk classification L...