Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/midfang/ai-agent-skills-workflow/bugbatch-preparenpx skills add midFang/ai-agent-skills-workflow --skill bugbatch-preparegit clone --depth 1 https://github.com/midFang/ai-agent-skills-workflowWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/midfang/ai-agent-skills-workflow/bugbatch-prepare)<a href="https://agentmods.dev/skills/midfang/ai-agent-skills-workflow/bugbatch-prepare"><img src="https://agentmods.dev/badge/skills/midfang/ai-agent-skills-workflow/bugbatch-prepare.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00099 | $0.01123 |
| Opus 5 | $0.00049 | $0.00562 |
| Sonnet 5 | $0.00020 | $0.00225 |
| Haiku 4.5 | $0.00010 | $0.00112 |
Grade A, and why
bugbatch-prepare scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 161 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Bugbatch Prepare
目的
把 $bug2csv 下载下来的原始 bug 表,整理成可执行的本地 bug 批次。
输出目录放在要修复的业务项目根目录,而不是放在全局 skill 项目或临时调度项目里:
issues/<版本>/
例如业务项目是 /path/to/business-project,则输出到:
/path/to/business-project/issues/<版本>/
推荐结构:
issues/<版本>/
bug_batch.csv
source.csv
tasks/
BUG-001-TASK.md
BUG-002-TASK.md
这个 skill 只做准备,不创建 worktree,不改业务代码。后续修复交给 $bugfix-worktree BUG-xxx。
输入
需要:
- 原始 CSV 路径,通常来自
$bug2csv - 版本名,例如
2026-06-25、v6.2.0-bugs、android-2026-06-25 - 可选:业务仓库路径,例如
/path/to/repo
如果用户没给版本名,用当前日期或从文件名推断一个短版本名。
输出 CSV 字段
生成或更新:
bug_id原始行号标题问题描述人工确认描述复现场景验收标准状态branchworktree_pathbase_repotarget_branchai_verify_planai_verify_cmdai_verify_resultai_verify_evidenceapk_pathinstall_devicehuman_verify_resulthuman_verify_notecommittask_fileblocked_reason备注
保留原始 CSV 中有价值的列,例如状态、模块、严重程度、处理描述等。不要覆盖用户手工修改过的 人工确认描述、复现场景、验收标准。
准备规则
- 复制原始 CSV 到
issues/<版本>/source.csv,作为快照。 - 为每条真实 bug 生成稳定
bug_id,例如BUG-003。不要给空行生成任务。 标题从问题描述压缩得到,保持短。人工确认描述:- 如果原 CSV 已有人工确认列,优先使用。
- 如果没有,用原始问题描述填入,并在
备注标记“待人工确认”。
复现场景和验收标准:- AI 先根据人工确认描述生成草案。
- 不确定的设备、角色、连接方式不要写死成事实;在 TASK 中列为“待确认”。
- 状态:
- 信息足够开始修:
ready - 缺关键事实、会导致修复靠猜:
needs_info - 仅草稿未确认:
draft
- 信息足够开始修:
- 为每个非空 bug 创建
issues/<版本>/tasks/<bug_id>-TASK.md。
ready 判断
一条 bug 至少要能回答:
- 问题是什么?
- 在什么场景触发?
- 修好后看到什么结果算通过?
能回答就可以 ready。不要求设备信息一开始完美。
如果是文案、资源、静态 UI 类 bug,通常可以直接 ready。
如果是投屏、声音、闪退、账号、权限、会员权益等动态 bug,缺少关键角色或连接方式时标记 needs_info。
TASK 文件模板
# <bug_id> <标题>
## 目标问题
原始描述:
人工确认描述:
## 复现场景
## 验收标准
## 待确认
- 无
## 修复方案选择
- 选择方案:
- 为什么选择:
- 放弃方案:
## 修改记录
## 修改文件
## AI 自证验证
- 验证计划:
- 测试/脚本:
- 命令:
- 结果:
- 证据:
## APK 安装
- APK:
- 设备:
- 安装结果:
## 用户人工验证
- 结果:
- 备注:
## 阻塞/风险
## 下一步
完成回复
报告:
issues/<版本>/bug_batch.csv路径- 原始快照
source.csv路径 - 生成的 bug 数量
ready / needs_info / draft数量- 需要用户优先补充的
needs_infobug_id
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 5d ago First seen · 161 lines · 99 tokens per session scan A eaf6731609f9
bugbatch-prepare is a skill published in the GitHub repository midFang/ai-agent-skills-workflow (2 stars, last pushed 2mo ago), licensed MIT. It adds 99 tokens to every session and 1,123 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
debug-optimize-lcp
Guides debugging and optimizing Largest Contentful Paint (LCP) using Chrome DevTools MCP tools. Use this skill whenever the user asks about LCP performance, slow page loads, Core Web Vitals optimization, or wants to understand why their page's main content takes too long to appear. Also use when the user mentions…
systematic-debugging
Use when debugging a failing test, build error, or runtime issue that isn't immediately obvious. Guides a 4-phase root cause analysis instead of random fix attempts.
diagnose
Trace from a reproduced symptom to the source code that causes it. Pin the specific file and approximate line, rate confidence in the cause and clarity of the fix independently, and always propose a concrete fix.
azsdk-common-pipeline-analysis
Analyze Azure SDK CI/CD pipeline failures into a structured diagnosis, and define the required output format. Load this skill before calling azsdkanalyzepipeline, which returns raw failure data that this skill interprets and formats. USE FOR: "pipeline failed", "build failure", "CI check failing", "tests failing in…
repro-admin
Reproduce an EmDash admin UI bug. Attach a container, start the demo dev server, drive the admin with agent-browser using the dev-bypass session, and capture the reproduction as screenshots plus a replayable transcript.
log-error-digest
Analyze log files to troubleshoot errors, identify peak error periods, and produce error clustering, frequency statistics, and time distribution reports. Supports JSON, syslog, and Nginx formats with automatic detection. Use when a user uploads a .log file and asks to analyze errors, find patterns, debug issues, or…