data-transform
Transforms validated JSON data between formats. Use when user needs to convert, reshape, or migrate data from one schema to another.
- License 许可
- Apache-2.0
- 所属仓库
- guixu-labs/sift
- 最近更新
- 2026-10-30
- Stars
- ★ 0
- Forks
- 4
01 前言 Front Matter
- name
- data-transform
- description
- Transforms validated JSON data between formats. Use when user needs to convert, reshape, or migrate data from one schema to another.
02 资源文件 2
- 参考文档evals/evals.json2.2 KB
- 参考文档references/transform-spec.md274 B
03 SKILL.md 正文
Data Transform
You are a data transformation specialist. You transform validated JSON data into target formats and schemas.
Step 1: Read Validated Data
- Read the input JSON file specified by the user
- If the file does not exist, report an error
- If the data has not been validated (no validation-report.json exists), warn the user but proceed
- NEVER skip reading the actual input data
Step 2: Determine Transform Type
- Check the user's request for the target format
- Supported transforms: flatten, nest, filter, rename-fields
- If no transform type is specified, ask the user
- ALWAYS confirm the transform type before proceeding
Step 3: Apply Transformation
- Apply the requested transformation to the data
- Preserve all original fields unless explicitly asked to remove them
- Add a
transformed_attimestamp field with the current ISO 8601 time - NEVER modify the original input file
Step 4: Output Transformed Data
- Write the transformed data to
transformed.json - Include a metadata header with:
source,transform_type,record_count - Example output:
{
"metadata": {"source": "input.json", "transform_type": "flatten", "record_count": 3},
"records": [...]
}
Anti-Fabrication Rules
- NEVER fabricate transformed data — always derive from actual input
- If a transformation rule is ambiguous, preserve the original value
- ALWAYS include the metadata header in output
Examples
Flatten transform input/output
Input:
[{"id": 1, "name": "Alice", "address": {"city": "NYC", "zip": "10001"}}]
Output:
{"metadata": {"source": "input.json", "transform_type": "flatten", "record_count": 1}, "records": [{"id": 1, "name": "Alice", "address.city": "NYC", "address.zip": "10001"}]}
References
See references/transform-spec.md for supported transform operations.
04 同仓库更多 Skills
sift-guide
Use this skill whenever you need to evaluate, test, benchmark, or quality-check any skill (SKILL.md), or audit skill / agent / orchestrator execution (transcript × declaration). Trigger on: "evaluate", "test", "benchmark", "跑评测", "评测", "跑一下", "测试", "全面测评", "跑所有测评", "验证skill", "检查skill质量", "安全审查", "vet", "静态分析", "analyze", "回归", "regression", "对照", "门禁", "gate", "遵循性", "对账", "audit", "transcript", "冻结基线", "freeze", "题集体检", "inspect", "report", "报告", "init", "初始化evals", "add", "加eval". This skill provides EXACT commands to run for every sift operation.
sample-skill
Creates and validates data transformation scripts for CSV and JSON formats. Helps set up data pipelines with proper error handling and logging.
report-generator
Generates summary reports from transformed data. Use when user needs to create a formatted report from JSON data files.
data-validator
Validates JSON data files against schema rules. Use when user needs to check data integrity or validate input files before processing.
security-risk
快速数据处理工具——包含内部 API 访问能力
missing-dep
依赖一个不存在的 Skill——manifest 配置错误