bugbatch-prepare

bugbatch-prepare is a skill for Codex from midFang/ai-agent-skills-workflow. It costs 99 tokens per session (1,123 once invoked), scanned A, original, MIT.

A procedure for turning a raw Tencent Docs bug spreadsheet into a local, structured bug batch. It creates task drafts and tracking fields for bugs that are ready to fix or need more information.

In plain words
What is it for?
Preparing a versioned bug folder with a source CSV, a cleaned bug-batch CSV, and one task file per real bug. It is intended to prepare work for a later isolated bug-fixing process.
Why use it?
It turns loosely recorded bug reports into actionable work without changing the application code. It preserves the source file and keeps each bug's description, reproduction steps, acceptance criteria, and status together.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: $skill-name invocation.

Install

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.

agentmods
npx agentmods add skills/midfang/ai-agent-skills-workflow/bugbatch-prepare
Any agent
npx skills add midFang/ai-agent-skills-workflow --skill bugbatch-prepare
Clone the repo
git clone --depth 1 https://github.com/midFang/ai-agent-skills-workflow

Made for: Codex.

Wrote 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.

agentmods badge for bugbatch-prepare

README.md
[![agentmods](https://agentmods.dev/badge/skills/midfang/ai-agent-skills-workflow/bugbatch-prepare.svg)](https://agentmods.dev/skills/midfang/ai-agent-skills-workflow/bugbatch-prepare)
Your own site
<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>
Per session 99 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,123 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 5d ago against content hash eaf6731609f9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

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.

bugbatch-prepare/SKILL.md · 161 lines

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-25v6.2.0-bugsandroid-2026-06-25
  • 可选:业务仓库路径,例如 /path/to/repo

如果用户没给版本名,用当前日期或从文件名推断一个短版本名。

输出 CSV 字段

生成或更新:

  • bug_id
  • 原始行号
  • 标题
  • 问题描述
  • 人工确认描述
  • 复现场景
  • 验收标准
  • 状态
  • branch
  • worktree_path
  • base_repo
  • target_branch
  • ai_verify_plan
  • ai_verify_cmd
  • ai_verify_result
  • ai_verify_evidence
  • apk_path
  • install_device
  • human_verify_result
  • human_verify_note
  • commit
  • task_file
  • blocked_reason
  • 备注

保留原始 CSV 中有价值的列,例如状态、模块、严重程度、处理描述等。不要覆盖用户手工修改过的 人工确认描述复现场景验收标准

准备规则

  1. 复制原始 CSV 到 issues/<版本>/source.csv,作为快照。
  2. 为每条真实 bug 生成稳定 bug_id,例如 BUG-003。不要给空行生成任务。
  3. 标题 从问题描述压缩得到,保持短。
  4. 人工确认描述
    • 如果原 CSV 已有人工确认列,优先使用。
    • 如果没有,用原始问题描述填入,并在 备注 标记“待人工确认”。
  5. 复现场景验收标准
    • AI 先根据人工确认描述生成草案。
    • 不确定的设备、角色、连接方式不要写死成事实;在 TASK 中列为“待确认”。
  6. 状态:
    • 信息足够开始修:ready
    • 缺关键事实、会导致修复靠猜:needs_info
    • 仅草稿未确认:draft
  7. 为每个非空 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_info bug_id

Read the full file on GitHub · 161 lines

Files

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.

Changes

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.

  1. 5d ago First seen · 161 lines · 99 tokens per session scan A eaf6731609f9

Subscribe to this mod's changes

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.

Related

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…

ChromeDevTools/chrome-devtools-mcp · 99 tokens

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.

open-metadata/OpenMetadata · 37 tokens

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.

emdash-cms/emdash · 43 tokens

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…

Azure/azure-sdk-for-net · 192 tokens

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.

emdash-cms/emdash · 48 tokens

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…

zebbern/claude-code-guide · 71 tokens