No. 149 Write a skill

Turn repeated bugs into a rule

Review the bugs, rework, and rollbacks in a period you name, and turn a preventable common cause into a rule, automation, or a Skill.

  • Claude Code
  • Codex
  • Cursor
  • Write a skill

Prompt

译

Comprehensively review the bugs, rework, rollbacks, and repeated edits of the recent XX period. Do not only count what happened. Analyze whether these problems share a common root cause. Turn the common problems that can be prevented into project rules, automation, or a Skill, so the same cost is not paid again.

When to use

When a missing price is fixed four times in three weeks, this prompt turns the common cause into a test or a project rule instead of a fifth incident note.

The input replaces XX with three weeks and attaches four issue links: missing price, NaN total, rollback, missing price again.

When not to use

When there is one unreproduced incident, do not promote it into a repository-wide Skill.

How to run it

Claude Code

Have Claude Code write the prevention as .claude/commands or as one check, and fix one existing violation in the same turn.

Codex

If Codex must follow the rule, AGENTS.md gets the check command, not the story of this incident.

Cursor

A check that has settled can live in one .cursor/rules file. The incident list itself does not belong there.

Comparison

对比待补

This before-and-after was not run on this machine.

Related

来源:数字生命卡兹克 · https://x.com/Khazix0918/status/2122268349707219333 · 2026-12-02