cas-bigdatalab/piflow/data-type-converter
Claude Code and agent skill by cas-bigdatalab/piflow
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
数据类型转换工具。转换数据字段的类型,支持数值、字符串、日期等类型互转。 当用户提到类型转换、数据格式转换、字段类型修改等需求时使用此skill。 即使用户没有明确说出"类型转换",只要任务涉及改变字段的数据类型,就应该使用此skill。
Install
npx vskill@latest install cas-bigdatalab/piflow/data-type-converterSKILL.md
The same SKILL.md was published earlier as majiayu000/claude-skill-registry/data-type-converter.
Data Type Converter 数据类型转换 Skill
功能概述
本skill用于转换数据字段的类型,支持:
- 数值转换:int, float
- 字符串转换:str
- 日期转换:datetime
- 布尔转换:bool
- 分类转换:category
触发条件
当用户请求以下任务时,应使用此skill:
- 数据类型转换
- 字段格式转换
- 日期格式化
- 数值格式化
支持的目标类型
| 类型 | 说明 | 示例 | |
|---|---|---|---|
int | 整数 | "123" → 123 | |
float | 浮点数 | "123.45" → 123.45 | |
str | 字符串 | 123 → "123" | |
datetime | 日期时间 | "2024-01-01" → datetime | |
bool | 布尔值 | "true" → True | |
category | 分类类型 | 优化内存 |
使用方法
基本类型转换
日期类型转换
多字段转换
参数说明
| 参数 | 必填 | 说明 | |
|---|---|---|---|
--input | 是 | 输入文件路径 | |
--output | 是 | 输出文件路径 | |
--conversions | 是 | 转换规则 | |
--date_format | 否 | 日期格式,默认"%Y-%m-%d" | |
--errors | 否 | 错误处理,默认"coerce" |
错误处理方式
| 方式 | 说明 | |
|---|---|---|
raise | 遇到错误时抛出异常 | |
coerce | 转换失败设为NaN | |
ignore | 保留原值 |
输出示例
环境要求
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingworkspace/skills/data_type_converter/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/cas-bigdatalab/piflow/data-type-converter)