Generate and edit Draw.io, Mermaid, and Excalidraw diagrams from natural language using a structured JSON spec.
Documents
Li Etl Handle Safe
Try it安全处理Excel和CSV文件,支持读取、写入、清洗、转换和合并数据,禁止任意代码执行,保障数据安全。
What it does
li-etl-handle-safe - 安全版 Excel/CSV ETL 处理技能
The skill document
li-etl-handle-safe - 安全版 Excel/CSV ETL 处理技能
功能描述
安全的 Excel/CSV 文件处理技能,支持读取、写入、清洗、转换和合并表格数据。本版本已移除任意代码执行功能,使用安全的 exceljs 库替代有漏洞的 xlsx 库。
版本
v1.0.2 - 修复 CSV 解析和 Excel 写入问题,完善功能测试
支持格式
.xlsx- Excel 2007+.xls- Excel 97-2003(通过转换).csv- CSV 文本文件
功能列表
读取表格
readExcel(filePath, options)- 读取 Excel 文件readCSV(filePath, options)- 读取 CSV 文件
写入表格
writeExcel(filePath, data, options)- 写入 Excel 文件writeCSV(filePath, data, options)- 写入 CSV 文件
数据清洗
cleanData(data, rules)- 根据规则清洗数据removeEmptyRows(data)- 删除空行removeDuplicates(data, columns)- 删除重复行
数据转换
transformColumns(data, transforms)- 转换列数据(支持类型转换、格式化等预设操作)filterRows(data, conditions)- 按条件过滤行sortData(data, sortColumns)- 排序数据
数据合并
mergeFiles(filePaths, options)- 合并多个文件appendRows(targetData, sourceData)- 追加行数据
安全特性
✅ 无任意代码执行 - 移除了 executeScript 功能 ✅ 安全依赖 - 使用 exceljs 替代有漏洞的 xlsx 库 ✅ 官方源 - 所有依赖来自官方 HTTPS npm registry ✅ 禁止自主调用 - disable-model-invocation: true
使用示例
// 读取 Excel
const data = await readExcel('/path/to/file.xlsx', { sheet: 0 });
// 清洗数据
const cleaned = await cleanData(data, { trim: true, removeEmpty: true });
// 转换列类型
const transformed = await transformColumns(cleaned, {
columns: { price: 'number', date: 'datetime' }
});
// 写入 CSV
await writeCSV('/path/to/output.csv', transformed);
注意事项
- 所有文件操作均在本地进行
- 不支持执行自定义 JavaScript 代码(安全考虑)
- 大文件建议分批处理
Related skills
Stores durable facts in a categorized, plain-markdown vault on disk, alongside your agent's built-in memory.
Find why your productivity system keeps failing, then apply the smallest fix — capacity math, bottleneck routing, durable local notes.
Fetch raw ad creative, app, ranking, and revenue data from AdMapix as structured JSON.
Join a video meeting as an AI bot with voice, avatar, and screenshare across four operating modes.
Run Git operations — commits, branches, merges, rebases, conflict resolution, and recovery — with safety rules enforced.
More from 43622283
Browse all skills飞书语音交互技能。支持语音消息自动识别、AI 处理、语音回复全流程。需要配置 FEISHU_APP_ID 和 FEISHU_APP_SECRET 环境变量。使用 faster-whisper 进行语音识别,Edge TTS 进行语音合成,自动转换 OPUS 格式并通过飞书发送。适用于飞书平台的语音对话场景。
飞书语音交互技能。支持语音消息自动识别、AI 处理、语音回复全流程。需要配置 FEISHU_APP_ID 和 FEISHU_APP_SECRET 环境变量。使用 faster-whisper 进行语音识别,Edge TTS 进行语音合成,自动转换 OPUS 格式并通过飞书发送。适用于飞书平台的语音对话场景。
使用国内 OpenAI 兼容 API 快速总结 URLs、本地文件、YouTube 链接。支持所有国内大模型 API(百度千帆、阿里云、腾讯混元、字节火山、Moonshot、DeepSeek 等)。
Linux base security scanner integrating multiple tools - nmap, lynis, nikto, sqlmap, trivy. SINGLE HOST ONLY. Features secure temp files, progress bar, scan...
CodeQL 安全扫描与 LLM 智能分析融合工具。自动检测 CodeQL 安装、扫描指定目录、生成漏洞报告、LLM 分析、Jenkins 集成、输出验证 Checklist。
Node.js-based Excel automation for reading, writing, cleaning, transforming, merging .xlsx/.xls/.csv files with joins, analysis, flow control, and JS scripti...