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.

Good fit 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.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/midfang/ai-agent-skills-workflow/bugbatch-prepare
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.

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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for bugbatch-prepare

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe.
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.5 $0.00040 $0.00449
Sonnet 5.5 $0.00020 $0.00225
Haiku 4.5 $0.00010 $0.00112

Measured 1mo ago against content hash eaf6731609f9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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-25、v6.2.0-bugs、android-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. 1mo 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 4mo ago), licensed MIT. It adds 99 tokens to every session and 1,123 once invoked, about $0.0004 per session on Opus 5.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

bug-triage

Re-evaluate open bugs — priority vs severity, assign to sprints, surface systemic trends. Run when the count grows.

Donchitos/Claude-Code-Game-Studios · 30 tokens

systemic-issue-triage

Trigger: new issue, bug report, triage, backlog, issue flood, community report, root cause, dead-end, blocked user. Attack issues by root class, never one-by-one; fixes must shrink the system, not grow it.

Gentleman-Programming/gentle-ai · 57 tokens

triage-issue-reports

Triage Slack issue reports with one thread-only verdict, evidence review, cause-aware routing, tracker dedupe, and fail-closed ticket creation. Use only from the configured Benny triage automation.

backnotprop/pstack · 46 tokens

triage-issue

Intelligently triage bug reports and error messages by searching for duplicates in Jira and offering to create new issues or add comments to existing ones. When an agent needs to: (1) Triage a bug report or error message, (2) Check if an issue is a duplicate, (3) Find similar past issues, (4) Create a new bug ticket…

atlassian/atlassian-mcp-server · 116 tokens

moai-lane-watchdog

One lane stall watchdog iteration: measure lane progress on three channels, classify the stall cause, apply the remedy or resolve the judgment through the decision ladder — instead of waiting on a reply — then record the outcome and report. Reads the unified --auto doctrine at…

modu-ai/moai-adk · 86 tokens

investigation

Create an investigation ticket + live-doc for sustained root-cause work (retros, bug archaeology, regression hunts).

me2resh/apexyard · 26 tokens