Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add taosdata/agent-skills --skill tdgpt-model-writergit clone --depth 1 https://github.com/taosdata/agent-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/taosdata/agent-skills/tdgpt-model-writer)<a href="https://agentmods.dev/skills/taosdata/agent-skills/tdgpt-model-writer"><img src="https://agentmods.dev/badge/skills/taosdata/agent-skills/tdgpt-model-writer/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/taosdata/agent-skills/tdgpt-model-writer"><img src="https://agentmods.dev/badge/skills/taosdata/agent-skills/tdgpt-model-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00069 | $0.03615 |
| Opus 5.5 | $0.00028 | $0.01446 |
| Sonnet 5.5 | $0.00014 | $0.00723 |
| Haiku 4.5 | $0.00007 | $0.00362 |
Grade A, and why
tdgpt-model-writer scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl -sk --max-time 3 -X POST \ How it starts
The opening of the file, as written. The whole thing — 230 lines — stays where its author put it; the contents beside it link to each section on GitHub.
TDGPT 时序预测模型自动编写 (tdgpt-model-writer)
何时使用 (When to Use)
当算法人员或开发人员需要为 TDengine 时序数据库开发自定义的时序预测分析模型,并不想手动处理复杂的时序特征对齐、重采样和格式适配时,使用此技能。
此技能可以一键生成符合 TDgpt (时序模型管理器) anode 插件规范的 Python 算法代码以及对应的特征对齐 Pipeline。
触发关键词:写时序预测模型、生成时序模型、TDGPT模型、特征对齐、tdgpt-model-writer、时序预测模型。
输入 (Input)
- 核心输入:
- 超级表结构 (STable Schema):包含时间戳列(通常为
ts)、标签/预测目标列(因变量)以及相关协变量特征列(自变量)。 - 特征配置 (Feature Config):
- 主预测列(例如
temp_out)。 - 协变量特征列列表(例如
['flow_rate', 'pressure', 'ambient_temp'])。
- 主预测列(例如
- 时序对齐参数:
- 采样/重采样频率(如
1m、10s,缺省为1m)。 - 插值与填充策略(如
linear线性插值,ffill/bfill填充,缺失值处理)。
- 采样/重采样频率(如
- 滑动窗口参数:
- 历史回顾点数(Lookback Window Size,例如
60个点)。 - 预测步长点数(Forecast Horizon/Rows,例如
10个点)。
- 历史回顾点数(Lookback Window Size,例如
- 算法/模型偏好:
- 传统统计或数学插值法(如
myfc风格轻量预测)。 - 深度学习/机器学习框架类模型(基于
PyTorch的LSTM/GRU/DLinear模型)。
- 传统统计或数学插值法(如
- 超级表结构 (STable Schema):包含时间戳列(通常为
- 澄清策略:
- 若未指定采样频率,默认使用超级表平均时间间隔作为重采样基准。
- 若未指定预测算法,默认生成基于 PyTorch LSTM 的双变量/多变量特征预测模型结构。
输出 (Output)
根据用户输入的超级表结构和预测需求,AI 助手应输出以下四个部分的内容:
1. 符合 TDgpt 规范的 Python 预测类代码
必须将其生成在文件 _name_Service.py 中,并提醒用户放置在 anode 的算法预测目录下(即 anode安装根目录/lib/taosanalytics/algo/fc/)。代码需满足以下要求:
- 类名必须以下划线
_开头,且以Service结尾(如:class _LstmForecastService(AbstractForecastService):)。 - 必须继承自
taosanalytics.service.AbstractForecastService。 - 必须显式声明类静态属性
name(全小写,SQL 中调用算法的标识)和desc(算法描述)。 - 核心方法
execute(self)的输入获取和输出格式必须符合 TDgpt 的规范:- 输入时序历史序列在
self.list中。 - 获取运行参数如:
self.start_ts(预测起始时间戳),self.time_step(时间间隔),self.rows(预测点数)。 - 返回值字典格式(必须根据
self.return_conf动态调整数组维度):-
当
self.return_conf为0时,res仅包含 2 个等长数组:return { "mse": mse_value, # float, 预测损失均方误差 "res": [ts_list, pred_list] # 仅包含时间戳和预测值数组 } -
当
self.return_conf为1时,res必须包含 4 个等长数组:return { "mse": mse_value, "res": [ts_list, pred_list, conf_lower_list, conf_upper_list] # 包含置信下界和上界 }
-
- 输入时序历史序列在
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 230 lines · 69 tokens per session scan A 98a4afee9f62
tdgpt-model-writer is a skill published in the GitHub repository taosdata/agent-skills (2 stars, last pushed 1mo ago), licensed MIT. It adds 69 tokens to every session and 3,615 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
tdgpt-model-writer compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| tdgpt-model-writertaosdata/agent-skills | Skill | 2 | 1mo ago | MIT | A | 69 | Claude Code, Codex |
| pytorch-patternsaffaan-m/ECC | Skill | 317k | 3d ago | MIT | A | 32 | Claude Code, Kiro |
| accelerateNousResearch/hermes-agent | Skill | 268k | today | MIT | A | 13 | Claude Code, Codex |
| optimize-for-gpuK-Dense-AI/scientific-agent-skills | Skill | 60k | 4d ago | MIT | A | 151 | Claude Code, Codex |
| developing-genkit-pythongoogle/skills | Skill | 26k | today | Apache-2.0 | A | 96 | Claude Code, Codex |
| marimo-pairmarimo-team/marimo | Skill | 24k | today | Apache-2.0 | A | 57 | Claude Code, Codex |
| minicpm5-deploy-transformersOpenBMB/MiniCPM | Skill | 12k | yesterday | Apache-2.0 | A | 90 | Claude Code, Codex |