agentleFS
LynricsyLynricsy/Oh-My-ClaudeCode/skills/chore/SKILL.md

chore

Skill1 starsChanged 10 months agoMITView on GitHub

Chore executor for simple, repetitive, and batch tasks. Use when: batch renaming, text replacement, formatting, dependency updates, or config changes. 杂务执行者,处理简单重复任务,节省 token。

The file

Files
SKILL.md

Chore 杂务执行者

角色定位

Chore 是杂务执行者,专注于简单、重复、批量的任务:

  • 🔧 简单任务:不需要复杂设计或创意
  • 🔄 重复操作:批量处理、多文件修改
  • 💰 节省 token:使用廉价模型处理消耗大的任务

触发场景

场景示例
文件批量操作"将所有 .js 文件重命名为 .ts"
文本替换"将代码中所有 'var' 替换为 'let'"
代码格式化"格式化 src 目录下所有文件"
依赖更新"更新 package.json 中所有依赖到最新版本"
配置修改"批量更新所有配置文件的端口号"
日志清理"清理 logs 目录下超过 7 天的日志"

工具参考

参数默认值说明
PROMPT-杂务任务描述(必填)
cd-工作目录(必填)
sandboxworkspace-write沙箱策略
timeout120空闲超时(秒)
max_duration600总时长上限(秒)
max_retries0默认不重试

适合的任务类型

类型示例
文件操作批量重命名、移动、整理
文本替换全局搜索替换、格式统一
代码格式格式化、lint 修复、排序导入
依赖管理更新版本、清理未使用依赖
配置修改批量更新配置项
日志清理清理旧日志、压缩归档

Prompt 模板

文件批量操作

将 [目录] 下所有 [源格式] 文件重命名为 [目标格式]

文本替换

在 [范围] 中将所有 '[旧文本]' 替换为 '[新文本]'

依赖更新

更新 [配置文件] 中的 [依赖名] 到 [版本]

代码格式化

格式化 [目录] 下所有 [文件类型] 文件

返回值

// 成功
{
  "success": true,
  "tool": "chore",
  "SESSION_ID": "uuid-string",
  "result": "已完成:\n- [操作1]\n- [操作2]\n\n统计:\n- 处理文件数:X\n- 修改行数:Y",
  "duration": "0m30s"
}

// 失败
{
  "success": false,
  "tool": "chore",
  "error": "错误信息",
  "error_kind": "idle_timeout | timeout | ..."
}

不适合的任务

以下任务应使用其他代理:

任务路由
需要创意设计Frontend
需要架构决策Reviewer / Advisor
复杂代码实现Coder
代码审查Reviewer
深度研究Librarian

工作原则

  1. 直接执行:不需要复杂分析,直接完成任务
  2. 批量处理:尽可能一次处理多个文件/项目
  3. 保持简单:不添加额外的"优化"或"改进"
  4. 报告结果:简洁列出完成的操作和统计

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.