guowang-daily-split

Used for automated daily splitting of State Grid natural gas pipeline data, covering scenarios such as State Grid data partitioning, daily split master-sheet generation, pipeline capacity monitoring reports, user gas-usage statistics, and archiving of split data. Trigger words: State Grid, data split, split master sheet, pipeline capacity monitoring, total gas usage, shipper data split, natural gas pipeline data.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "guowang-daily-split" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-1093b00068f3ab1245860bf9131d01412c17d4cc37033585579e14948776802b. Verify the upstream source and version against https://skillhub.cn/skills/user_0470ddfc/jarning before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Used for automated daily splitting of State Grid natural gas pipeline data, covering scenarios such as State Grid data partitioning, daily split master-sheet generation, pipeline capacity monitoring reports, user gas-usage statistics, and archiving of split data. Trigger words: State Grid, data split, split master sheet, pipeline capacity monitoring, total gas usage, shipper data split, natural gas pipeline data.

0 Downloads

Introduction source: third_party · user_0470ddfc · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Inputs and outputs
Translation pending; see source documentation.
Software, accounts and paid services
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: guowang-daily-split
description: 国网天然气管道每日数据自动拆分处理。适用于国网数据分割、每日拆分总表生成、管容监控报表、用户用气量统计、拆分数据归档等场景。触发词:国网、数据分割、拆分总表、管容监控、用气总量、托运商数据拆分、天然气管道数据。
agent_created: true

国网每日数据拆分总表

概述

自动化处理国家管网天然气管道输配数据,将每日下发的 Excel 数据文件拆分为:

  1. 各托运商的数据总表(按气源分 Sheet,按站场×用户列布局)
  2. 管容监控优化版(跨托运商汇总,站场+气源维度)
  3. 用户每日用气总量统计表(跨托运商合并)

核心脚本为 scripts/auto_daily.py,位于桌面的 国网每日分割数据存档 目录运行。

工作目录

C:\Users\admin\Desktop\国网每日分割数据存档\
├── auto_daily.py          ← 核心处理脚本
├── *.xlsx                 ← 待处理的新数据文件(放这里)
├── 已处理/                ← 处理完后自动归档此处
├── 输出/                  ← 生成的报表输出
│   ├── 国网分割数据总表_{托运商}.xlsx
│   ├── 管容监控_优化版.xlsx
│   └── 用户每日用气总量.xlsx
└── logs/                  ← 运行日志

核心能力

1. 增量拆分归档

给定新下发的 Excel 文件后,执行 auto_daily.py:

  • 自动识别分割数据和上载数据
  • 与已有总表合并(增量追加,不重建历史数据)
  • 首次运行且无总表时,从 已处理/ 目录全量构建
  • 处理完后自动将新文件移动到 已处理/ 目录

2. 管容监控优化版生成

从总表提取所有托运商数据,按站场+气源汇总为单一监控表。

3. 用户用气总量统计

从总表汇总所有用户的每日用气总量(万方),跨托运商去重合并。

使用方式

日常运行

当用户说"处理国网数据"、"更新拆分总表"、"生成管容监控"等时:

  1. 确认 C:\Users\admin\Desktop\国网每日分割数据存档\ 目录下有新的 .xlsx 文件
  2. 执行脚本:
cd "C:\Users\admin\Desktop\国网每日分割数据存档"
"C:\Users\admin\.workbuddy\binaries\python\envs\default\Scripts\python.exe" auto_daily.py

仅刷新报表(无新数据)

直接运行脚本,无新文件时会跳过增量步骤,仅重新生成管容监控和用户用量表。

首次全量构建

如果 输出/ 目录下没有 国网分割数据总表_*.xlsx 文件,脚本会自动从 已处理/ 读取所有历史文件进行全量构建。

数据输入格式

详细格式见 references/data_format.md。

关键要点:

  • 普通 .xlsx 文件按分割数据格式解析(列 C=托运商, D=日期, F=下载站场, G=用户, H=上载站场, I=气源, K=订单编号, O=合同日量, R=自动拆分值)
  • 文件名含"上载"或"托运商计量"的按上载数据格式解析
  • 气源名称自动标准化(如"舟山LNG" → "新奥(舟山)液化天然气有限公司")
  • 全角/半角括号自动统一

输出说明

国网分割数据总表_{托运商}.xlsx

  • 每个托运商独立一个文件
  • 每个气源一个 Sheet
  • 行 1: 气源名称 | 行 2-3: 站场/用户标签 | 行 4: 订单编号 | 行 5: 合同日量 | 行 6+: 每日数据
  • 上载列为暖橙色,下载列为蓝色
  • 今日数据行高亮(浅蓝色)
  • 冻结窗格 B6,站场组分隔粗线

管容监控_优化版.xlsx

  • 所有托运商合并为一个文件
  • 每个托运商一个 Sheet
  • 按气源→站场→用户三层层级表头

用户每日用气总量.xlsx

  • 行=日期,列=用户
  • 包含合计行
  • 用户名称自动去重(去除 occurrence 后缀 (2), (3) 等)

依赖

  • Python 3.13+
  • openpyxl(Excel 读写)
  • 默认使用 WorkBuddy 托管的 Python 环境: C:\Users\admin\.workbuddy\binaries\python\envs\default\Scripts\python.exe

首次使用需确保 openpyxl 已安装:

"C:\Users\admin\.workbuddy\binaries\python\envs\default\Scripts\pip.exe" install openpyxl

常见操作场景

用户说法 对应操作
"处理今天的国网数据" 运行 auto_daily.py
"更新拆分总表" 运行 auto_daily.py
"生成管容监控表" 运行 auto_daily.py
"查看用户用气总量" 打开输出目录的用户用气总量文件
"首次初始化总表" 首次运行 auto_daily.py(自动检测)
"数据有问题想重新生成" 删除输出目录下对应总表后重新运行

Current listing version

1.0.0

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 解决国网天然气管道数据处理的高频刚需场景
  • 提供增量处理、多报表输出的完整闭环能力
  • 适用于托运商数据拆分、管容监控、用户用气量统计等多个子场景
Trigger Precision90/100

Areas to improve

  • 触发词可补充更多口语化表达 Reported severity: Minor

    当前触发词偏正式,可补充如"处理国网数据"、"更新拆分总表"等口语化表达

    Recommendation: 在触发词列表中添加更多用户日常口语表达,提升触发覆盖率

Highlights

  • 触发词覆盖完整,包含核心业务关键词
  • 边界清晰,不易与其他数据处理类 Skill 重叠
Structure and Standards90/100

Areas to improve

  • 缺少 When to Use 显式章节 Reported severity: Minor

    文档结构完整但缺少显式的 When to Use 章节标题

    Recommendation: 建议添加显式的 When to Use 章节,提升文档规范性

Highlights

  • 文档结构完整,包含概述、工作目录、核心能力、使用方式等必要章节
  • 提供常见操作场景表格,便于用户快速理解
  • frontmatter 完整,单文件长度适中
Execution Reliability85/100

Areas to improve

  • 未处理 Excel 文件损坏等读取异常 Reported severity: Minor

    脚本未明确说明对 Excel 文件损坏、格式错误等异常的容错处理

    Recommendation: 建议补充对 Excel 文件读取异常的容错机制和错误提示

Highlights

  • 工具依赖明确,提供具体的 Python 环境和 openpyxl 安装指引
  • 覆盖首次运行、增量处理、无新数据刷新等主要使用场景
  • 提供具体的工作目录结构和文件路径说明
Evidence Verifiability (mean of the first four)88/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Translation pending; see source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.