← 返回 Skills 市场
careytian-ai

content-batch-processor(批量内容处理工具,支持文本格式化、摘要生成、关键词提取、文件格式转换等批处理操作,提升内容工作效率。)

作者 careytian · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
154
总下载
0
收藏
2
当前安装
1
版本数
在 OpenClaw 中安装
/install content-batch-processor
功能描述
批量内容处理工具,支持文本格式化、摘要生成、关键词提取、多语言翻译等批量操作。
使用说明 (SKILL.md)

批量内容处理工具 v1.0.0

高效处理大量文本内容,支持多种批处理操作。

功能特性

1. 文本格式化

  • Markdown 格式转换
  • HTML 清理
  • 统一换行符
  • 移除多余空格

2. 内容摘要

  • 单文档摘要
  • 多文档合并摘要
  • 可定制摘要长度

3. 关键词提取

  • 自动提取关键词
  • 词频分析
  • 主题识别

4. 批量转换

  • 文件格式转换(TXT ↔ MD ↔ HTML)
  • 编码转换
  • 批量重命名

5. 内容分析

  • 字数统计
  • 可读性评分
  • 语言检测

快速使用示例

// 批量格式化多个文件
const files = ['doc1.md', 'doc2.md', 'doc3.md']
files.forEach(f => {
  const content = read({path: f})
  const formatted = formatMarkdown(content)
  write({path: f, content: formatted})
})

// 批量生成摘要
const documents = ['report1.pdf', 'report2.pdf', 'report3.pdf']
const summaries = documents.map(doc => 
  pdf({pdf: doc, prompt: "生成 200 字摘要"})
)

// 批量提取关键词
const articles = readDirectory('./articles')
articles.forEach(article => {
  const keywords = extractKeywords(article.content, 10)
  console.log(`${article.name}: ${keywords.join(', ')}`)
})

// 批量翻译
const texts = ['文本 1', '文本 2', '文本 3']
const translated = texts.map(text => 
  translate(text, {from: 'zh', to: 'en'})
)

// 批量重命名文件
const files = getFiles('./downloads')
files.forEach((file, index) => {
  const newName = `document_${String(index+1).padStart(3, '0')}.md`
  rename(file.path, `./organized/${newName}`)
})

批处理模式

模式 1:顺序处理

// 适合小批量任务
const results = []
for (const item of items) {
  results.push(process(item))
}

模式 2:并行处理

// 适合大批量任务
const results = await Promise.all(
  items.map(item => process(item))
)

模式 3:流式处理

// 适合超大文件
const stream = createReadStream('large-file.txt')
stream.on('data', chunk => {
  process(chunk)
})

使用场景

  1. 内容创作 - 批量格式化文章、生成摘要
  2. 研究分析 - 批量处理论文、提取关键词
  3. 数据清洗 - 批量清理文本数据
  4. 文档管理 - 批量重命名、分类整理
  5. 多语言处理 - 批量翻译文档

性能优化建议

  • 小批量(\x3C10 个文件):顺序处理
  • 中批量(10-100 个文件):并行处理(5-10 并发)
  • 大批量(>100 个文件):分批处理 + 进度保存

相关文件

  • CHANGELOG.md - 版本历史
  • examples/ - 使用示例
  • templates/ - 处理模板

许可证

MIT-0 - 自由使用、修改和分发

安全使用建议
This skill appears to implement expected batch text operations, but there are a few red flags: (1) metadata lists an 'exec' capability that isn't declared in requires.bins or shown in examples—ask the author why 'exec' is needed. (2) The skill will read and write arbitrary filesystem paths (readDirectory/getFiles/rename); only enable it with non-sensitive test directories or restrict its access. (3) Translation and PDF helper calls may use external services; confirm whether data leaves your environment and whether any API keys/endpoints are used. If you need to trust this skill, request its source or a homepage, or run it in a sandbox and test with dummy data first.
功能分析
Type: OpenClaw Skill Name: content-batch-processor Version: 1.0.0 The skill bundle requests the high-risk 'exec' capability in config.json, which allows for arbitrary shell command execution. While the stated purpose is batch content processing, the documentation in SKILL.md does not explicitly demonstrate or justify the need for shell access, creating an unnecessary attack surface for potential Remote Code Execution (RCE). No explicit malicious payloads or exfiltration attempts were found, but the broad permission set without clear justification warrants a suspicious classification.
能力评估
Purpose & Capability
The stated features (formatting, summarization, keywords, translation, file conversion) align with needing read/write/pdf/image capabilities. However config.json also lists 'exec' and 'edit' in capabilities while the SKILL.md's declared required bins list does not include 'exec' or 'edit'—this mismatch could either be sloppy metadata or indicate the skill expects broader privileges than documented.
Instruction Scope
SKILL.md examples explicitly instruct reading directories, opening files/streams, renaming files, and writing output. Those actions match a batch processor, but they allow arbitrary file path access (read/write/rename) with no limiting scope. The instructions also assume helper functions (translate, pdf(..., prompt: ...), extractKeywords, createReadStream) whose network or external-service behavior is not documented—so data could be processed locally or routed externally depending on platform implementation.
Install Mechanism
Instruction-only skill with no install spec and no code files. Nothing will be downloaded or written at install time according to the provided metadata.
Credentials
No environment variables or external API keys are requested, which is proportionate for local batch processing. That said, the skill's runtime examples call functions (e.g., translate, pdf) that might use network services—no endpoints or keys are declared.
Persistence & Privilege
always:false and user-invocable:true (normal). The skill does not request permanent or automatic inclusion; it does not declare modifying other skills or global agent settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install content-batch-processor
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /content-batch-processor 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
content-batch-processor v1.0.0 初始发布 - 提供批量文本处理工具,支持格式化、摘要生成、关键词提取和多语言翻译等功能 - 支持多种处理模式:顺序、并行和流式处理 - 支持 Markdown/HTML 格式转换、编码转换和文件重命名 - 内置内容分析功能,包括字数统计、可读性评分和语言检测 - 提供详细的使用示例和性能优化建议
元数据
Slug content-batch-processor
版本 1.0.0
许可证 MIT-0
累计安装 2
当前安装数 2
历史版本数 1
常见问题

content-batch-processor(批量内容处理工具,支持文本格式化、摘要生成、关键词提取、文件格式转换等批处理操作,提升内容工作效率。) 是什么?

批量内容处理工具,支持文本格式化、摘要生成、关键词提取、多语言翻译等批量操作。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 154 次。

如何安装 content-batch-processor(批量内容处理工具,支持文本格式化、摘要生成、关键词提取、文件格式转换等批处理操作,提升内容工作效率。)?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install content-batch-processor」即可一键安装,无需额外配置。

content-batch-processor(批量内容处理工具,支持文本格式化、摘要生成、关键词提取、文件格式转换等批处理操作,提升内容工作效率。) 是免费的吗?

是的,content-batch-processor(批量内容处理工具,支持文本格式化、摘要生成、关键词提取、文件格式转换等批处理操作,提升内容工作效率。) 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

content-batch-processor(批量内容处理工具,支持文本格式化、摘要生成、关键词提取、文件格式转换等批处理操作,提升内容工作效率。) 支持哪些平台?

content-batch-processor(批量内容处理工具,支持文本格式化、摘要生成、关键词提取、文件格式转换等批处理操作,提升内容工作效率。) 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 content-batch-processor(批量内容处理工具,支持文本格式化、摘要生成、关键词提取、文件格式转换等批处理操作,提升内容工作效率。)?

由 careytian(@careytian-ai)开发并维护,当前版本 v1.0.0。

💬 留言讨论