ctyun-pricing

Pricing skill for Tianyi Cloud Elastic Cloud Server (ECS) and Cloud Disk (EVS). Trigger when users need ECS/EVS quotations, price calculations, cost estimates, or configuration selection. Keywords: quote, price, cost, billing, cloud host quote, cloud disk quote, ECS price, EVS price, Tianyi Cloud quote, cloud server quote.

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 "ctyun-pricing" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-19a414e34b12ec397ccab16220f408a586ccb84c35f507de1252fc87ad6dba15. Verify the upstream source and version against https://skillhub.cn/skills/user_5a52328e/ctyun-pricing 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

Pricing skill for Tianyi Cloud Elastic Cloud Server (ECS) and Cloud Disk (EVS). Trigger when users need ECS/EVS quotations, price calculations, cost estimates, or configuration selection. Keywords: quote, price, cost, billing, cloud host quote, cloud disk quote, ECS price, EVS price, Tianyi Cloud quote, cloud server quote.

0 Downloads

Introduction source: third_party · user_5a52328e · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Inputs and outputs
Translation pending; see source documentation.
Limits and differences
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: 天翼云智能辅助报价
description: 天翼云弹性云主机(ECS)和云硬盘(EVS)报价技能。当用户需要云主机报价、云硬盘报价、价格计算、费用预估、配置选型时触发。关键词:报价、价格、费用、计费、云主机报价、云硬盘报价、ECS价格、EVS价格、天翼云报价、云服务器报价。

天翼云产品报价技能 (pricing)

触发条件

当用户需要天翼云弹性云主机(ECS)或云硬盘(EVS)报价、价格计算、费用预估时触发。关键词:报价、价格、费用、计费、云主机报价、云硬盘报价、ECS价格、EVS价格。

数据范围

计费核心规则

云主机计费

  1. 按核/GB定价的型号(大多数): 月费 = CPU单价 核数 + 内存单价 GB数
  2. 按规格定价的型号(本地盘 ip3/ir3/d3): 月费为固定值,CPU/内存不可自定义
  3. 区域差异: 部分旧型号(s2/s3/s6/m2/c3/c6)在蒙贵地区(内蒙/贵阳)有更低价格
  4. 年付折扣: 折扣率应用于「月标准价 12 年数」,即:
    • 1年一次性 = 月费 12 1年折扣率
    • 2年一次性 = 月费 24 2年折扣率
    • 3年一次性 = 月费 36 3年折扣率
    • 以此类推

云硬盘计费

  1. 月费 = 容量(GB) * 单价(元/GB/月)
  2. 年付折扣规则同云主机
  3. X系列云硬盘额外收取预配置IOPS费用: IOPS数 * 0.0000625元/IOPS/小时
  4. 硬盘创建即计费,与是否挂载无关

折扣速查表

规格族/硬盘 1年 2年 3年 4年 5年
s2, m2 8.5折 7折 5折 4.5折 4折
s3, s6, c3, c6, m3, m6 6折 5.5折 3折 3折 3折
s7, s8, s8e, c7, c8, c8e, m7, m8, m8e 8折 7.8折 7.5折 7.3折 7.2折
s8r 8.5折 - - - -
c8a, m8a 6折 - - - -
c7ne, c8ne, m8ne 8.5折 7折 5折 4.5折 4折
ip3, ir3, d3 6折 5.5折 4折 4折 4折
e (经济型) 3.4折 2.5折 2.1折 2.1折 2.1折
普通IO/高IO/极速型SSD 8.5折 7折 5折 4.5折 4折
通用型SSD/超高IO/X系列 8.5折 7折 6折 6折 6折

工作流程

步骤1: 收集用户需求

用户可能以下列方式提供需求:

方式A: 直接对话描述

  • 示例: "4核8G的s7云主机,100G通用型SSD硬盘,报5年价"
  • 示例: "帮我做一个3台计算型服务器的报价,c7 8核16G,每台挂200G超高IO"
  • 需提取: 规格族、CPU核数、内存(GB)、区域(可选)、硬盘类型、硬盘容量、硬盘数量

方式B: 提供Excel表格

  • 读取用户Excel,识别包含配置信息的列
  • 常见列名映射:
    • 规格族/实例类型 → ecs_spec_family
    • CPU/核数/处理器 → vcpu
    • 内存/内存大小 → memory
    • 区域/地域 → region
    • 硬盘类型/磁盘类型/云盘类型 → disk_type
    • 硬盘容量/磁盘大小/云盘大小 → disk_capacity
    • 硬盘数量/磁盘数量 → disk_count
  • 如果用户Excel缺少必要字段,主动询问

步骤2: 解析输入为标准items格式

本步骤是必须的——无论用户以何种方式提供配置,都必须先转换为 scripts/generate_pricing.py 所需的 items 结构,再进入步骤3调用脚本计算。禁止跳过脚本自行计算。

目标 items 结构(Python list of dict):

items = [
    {
        'description': '用途/描述',       # 必填
        'ecs_spec_family': 's8e',         # 必填,规格族key
        'vcpu': 4,                        # 必填
        'memory': 8,                      # 必填,单位GB
        'region': '国内站',               # 可选,默认取第一个区域
        'quantity': 1,                    # 可选,默认1
        # 硬盘支持两种格式:
        # 格式1 (单盘,兼容旧接口):
        'disk_type': '通用型SSD',         # evs_pricing.json中的key
        'disk_capacity': 100,             # GB
        'disk_count': 1,
        # 格式2 (多盘,推荐):
        'disks': [
            {'disk_type': '通用型SSD', 'disk_capacity': 40, 'disk_count': 1},
            {'disk_type': '高IO_SAS',  'disk_capacity': 200, 'disk_count': 1},
        ]
    },
]

硬盘类型中文 → JSON key 映射(解析时必须做此转换):

用户输入(中文) evs_pricing.json key
普通IO / 普通IO(SATA) 普通IO_SATA
高IO / 高IO(SAS) 高IO_SAS
通用型SSD 通用型SSD
超高IO / 超高IO(SSD) 超高IO_SSD
极速型SSD 极速型SSD
XSSD-0 XSSD-0
XSSD-1 XSSD-1
XSSD-2 XSSD-2
XSSD-3 XSSD-3

不同输入方式的解析要点:

  • 方式A(对话描述): 直接按字段提取,构造 dict
  • 方式B(Excel表格):
    • 结构化Excel(列名清晰): 按列名映射直接构造
    • 自由文本Excel(单列合并描述): 用正则/字符串解析提取规格族、CPU、内存、系统盘/数据盘类型和容量,再构造 items。这是最常见场景,不要因格式不匹配就跳过脚本自行计算
  • 如果用户Excel缺少必要字段,主动询问

步骤3: 调用脚本计算并生成报价Excel

必须调用 scripts/generate_pricing.py 的 generate_pricing_excel(items, output_path) 函数,将步骤2解析的 items 传入,由脚本完成全部价格计算和Excel生成。

调用方式示例:

import sys
sys.path.insert(0, '<skill_dir>/scripts')
from generate_pricing import generate_pricing_excel
generate_pricing_excel(items, output_path)

禁止行为:

  • 禁止跳过脚本,自行用公式或手动方式计算价格
  • 禁止仅因输入格式不是标准 items 就放弃调用脚本
  • 禁止使用 xlsx 技能手动构建报价表替代脚本(脚本已包含完整的计算逻辑、格式、备注)

Excel输出格式(由脚本自动生成,无需手动构建):

  • 每行一条配置
  • 列: 序号 | 用途 | 实际规格名 | 规格族 | 类别 | CPU | 内存 | 区域 | 数量 | 云硬盘配置 | 主机月费/台 | 硬盘月费/台 | 单台月费 | 月费小计 | 年费原价 | 1年一次性 | 2年一次性(年均) | 3年一次性(年均) | 4年一次性(年均) | 5年一次性(年均) | 计算依据
  • 末尾: 合计行 + 备注说明

步骤4: 补充说明

在输出Excel后,向用户说明:

  1. 报价基于官网公示价格,实际成交价以合同为准
  2. 云硬盘创建即计费
  3. X系列云硬盘IOPS费用未包含(如有涉及需提醒)
  4. 本地盘型云主机(ip3/ir3/d3)为固定规格
  5. 如用户未指定区域,默认使用非蒙贵/国内站标准价格

规格族快速参考

通用型 (s系列)

规格族 CPU月单价(元/核/月) 内存月单价(元/G/月) 适用场景
s2 45(非蒙贵)/35(蒙贵) 16/13 Web应用
s3/s6 45/35 16/13 网络增强
s7 45.69 16.31 新一代通用
s8/s8e 46 17 最新通用
s8r 46 17 资源增强

计算型 (c系列)

规格族 CPU月单价 内存月单价 适用场景
c3/c6 85 10 计算密集
c7 73 14 新一代计算
c8/c8e 74 14 最新计算
c8a 61 14 计算加速

内存型 (m系列)

规格族 CPU月单价 内存月单价 适用场景
m2 45(非蒙贵)/35(蒙贵) 16/13 内存密集
m3/m6 85 10 内存网络增强
m7 58.43 14 新一代内存
m8/m8e 60 14 最新内存
m8a 42 14 内存加速

增强型

规格族 CPU月单价 内存月单价 适用场景
c7ne 75 15 计算网络增强
c8ne 81 16 计算网络增强(新)
m8ne 66 16 内存网络增强(新)

经济型

规格族 CPU月单价 内存月单价 适用场景
e 24 12 轻量应用

本地盘云主机 (固定规格定价)

规格族 可选规格 适用场景
ip3 8C64G~64C512G 高品质数据库
ir3 2C8G~48C192G 中高品质数据库
d3 4C16G~56C224G 大数据/数仓

硬盘规格快速参考

类型 月单价(元/G/月) 最高IOPS 适用场景
普通IO(SATA) 0.3 500 冷数据/归档
高IO(SAS) 0.4 3,000 一般业务
通用型SSD 0.7 6,000 中高性能
超高IO(SSD) 1.2 20,000 高性能数据库
极速型SSD 2.0 128,000 极高IO
XSSD-0 0.5 - X系列基础
XSSD-1 1.0 - X系列中级
XSSD-2 2.0 - X系列高级
XSSD-3 4.0 - X系列旗舰

注意事项

  1. 当用户未指定规格族时,根据场景推荐:

    • Web应用/轻量 → e 或 s2/s3
    • 计算密集 → c7/c8
    • 内存密集 → m7/m8
    • 高性能数据库 → c7 + 超高IO/极速型SSD
    • 大数据 → d3 + 高IO/通用型SSD
  2. 当用户只给CPU/内存不给规格族时,主动询问或按以下默认:

    • CPU:内存 = 1:2 → 通用型(s7)
    • CPU:内存 = 1:4~1:8 → 内存型(m7)
    • CPU:内存 = 2:1~4:1 → 计算型(c7)
  3. 硬盘默认类型: 如用户未指定,默认推荐"通用型SSD"

  4. 区域默认: 如用户未指定,用"国内站"(非蒙贵)标准价格

Current listing version

1.0.0

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value92/100

Highlights

  • 解决用户明确的云资源价格计算刚需,显著提升采购决策效率
  • 覆盖ECS和EVS两大核心产品,支持多种输入方式和复杂配置场景
Trigger Precision95/100

Highlights

  • 触发词覆盖全面且边界清晰,包含多种变体表达
  • 关键词与实际业务场景高度匹配,误触/漏触风险低
Structure and Standards90/100

Highlights

  • 文档结构完整,包含触发条件、数据范围、计费规则、工作流程等必要章节
  • 提供了清晰的步骤划分和端到端示例,frontmatter完整规范
Execution Reliability88/100

Highlights

  • 工具来源明确,参数定义清晰,调用规范完整
  • 覆盖主要异常场景处理,有明确的禁止行为和兜底机制
Evidence Verifiability (mean of the first four)91/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.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • www.ctyun.cn

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.

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