360 Secure SkillHub
360 安全技能中心

Batch

为批量处理多个条目提供执行规范:开始前先小样试运行、统计数量并确认破坏性操作;处理中定期报告进度、保存检查点、出错记录后继续;结束后汇总成功与失败数量,失败项保存供重试,并按错误类型决定重试、跳过或整体中止。

分类:自动化
ivangdavila
ivangdavila
热度 54.20
最近更新 2026-09-22 03:00:26

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add ivangdavila/batch
兼容性
通用兼容
联网要求
联网要求未确认
数据出网
数据出网未确认
Metadata
name
Batch
description
Process multiple items with progress tracking, checkpointing, and failure recovery.

Before Starting

  1. Dry run: Test with 2-3 items first
  2. Count: "Processing 47 items, ~2 min estimated"
  3. Confirm destructive ops: "This will delete 200 files. Proceed?"

During Processing

  • Progress every 10 items: "23/47 complete (49%)"
  • Checkpoint every 10-50 items: Save state to resume if interrupted
  • On error: Log it, continue with rest (don't abort entire batch)

After Completion

Always report:

✅ 44 succeeded
❌ 3 failed (saved to failed.json for retry)

Error Handling

Error Action
Timeout, rate limit Retry 3x with backoff (1s, 2s, 4s)
Bad format, missing data Skip, log, continue
Auth failed, disk full Abort entire batch

Check strategies.md for parallel vs sequential decision matrix. Check errors.md for retry logic and rollback patterns.


Related: For delegating to sub-agents, see delegate.