Skip to content
Back to skills

Repair Discipline

ASecurity

バグ修正・残課題・schema/storage 変更で、直す前の診断から着手まで、いま何が真かを一次証拠で確定する規律。Use when the user says 「このバグ直して」「残課題をやって」「この schema を変えたい」「止まってる気がする」「たまに失敗する」, when picking up a stale task file, when diagnosing a defect before the fix (a process that looks stuck, a failing or intermittent test, a time gap in a run), or when a fix touches storage formats or shared gates. NOT for — chain の種別・レビュー条件・TDD の手順(implementation-chain)、台帳全体の棚卸し(task-stocktake — 本 skill は 1 件着手時の照合のみ)。

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 4, 2026
ai-agentsgitapisecurity

Works with

  • cli
  • api

Security analysis

A100/100

Scanned October 7, 2026

npx -y skills add shimo4228/claude-harness --skill repair-discipline --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Repair Discipline?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Repair Discipline
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/shimo4228-repair-discipline/badge)](https://www.skillsdirectory.com/skills/shimo4228-repair-discipline)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: repair-discipline
description: バグ修正・残課題・schema/storage 変更で、直す前の診断から着手まで、いま何が真かを一次証拠で確定する規律。Use when the user says 「このバグ直して」「残課題をやって」「この schema を変えたい」「止まってる気がする」「たまに失敗する」, when picking up a stale task file, when diagnosing a defect before the fix (a process that looks stuck, a failing or intermittent test, a time gap in a run), or when a fix touches storage formats or shared gates. NOT for — chain の種別・レビュー条件・TDD の手順(implementation-chain)、台帳全体の棚卸し(task-stocktake — 本 skill は 1 件着手時の照合のみ)。
user-invocable: true
origin: shimo4228
replaces: contemplative-agent の feedback memory 5 本(verify-before-work / substrate-migration-sweep / verify-bypass-hides-all-gates / io-bound-process-diagnosis / no-background-retry-loop、2026-08-25 昇格)
---

# Repair Discipline

直す前に、いま何が真かを一次証拠で確定する。原則 1–3 は着手するとき、4–6 は原因を
診断するときに効く。6 原則とも実地の失敗から取った — どの repo でも同じ形で壊れる。

## 1. 着手前に既済照合

残課題ファイル・古い TODO・引き継ぎメモは書かれた時点の観測。着手前に **git log と
実コードで「もう直っていないか」を照合**する。台帳だけが古いまま残る drift は
「作業 → 資料 → 台帳」の最後の 1 ホップで起きる — 見つける経路は日付でなく
正本資料との突き合わせ(決着済みのタスクが数ヶ月 open のまま残る)。

## 2. schema / storage 変更は全消費者を同じ変更で棚卸す

データ形式・保存場所・フィールドを変えたら、**その形式を読む側を全部 grep して同じ
PR で追随させる**。書き手だけ直した変更は、読み手が静かに空を返す形で壊れる —
エラーでなく「何も無い」に見えるのが最悪の壊れ方。消費者は自コードとは限らない
(skill 本文・doc・別 script が名指しで読んでいることがある)。

## 3. bypass は単一ゲートでなく全ゲートを短絡すると知って使う

`VERIFY_BYPASS=1` 型の逃げ道は、既知の 1 件を通すためのつもりでも **hook が束ねる
全検査(format / lint / security)を一緒に飛ばす**。使う前に「この bypass が黙らせる
検査の全リスト」を言えるか確認し、言えないなら個別の除外手段を探す。

## 4. プロセスの CPU が低い ≠ stuck

I/O バウンドなプロセス(LLM 推論・ネットワーク待ち)は CPU がほぼ 0 でも正常に進行
している。**kill する前に一次ログと相手側の状態**(サーバの load 状況・進捗ログの
タイムスタンプ)を見る。「反応がない気がする」は証拠でない。

## 5. テストの再試行はフォアグラウンド 1 回

失敗したテストをバックグラウンドで連発しない。1 回フォアグラウンドで走らせ、出力を
読み切ってから次の仮説へ。連発は失敗ログを積むだけで情報を増やさず、リソース競合で
新しい偽の失敗を作る。

## 6. 断続的な失敗と時間の飛びは、環境の覆いを先に外す

「たまに成功する外部 API」と「wall time が job 自身のログの時刻より大きく飛ぶ処理」は、
コードの仮説より先に環境で説明できないかを一次記録で見る。**成功した応答の `x-cache` /
`age` / `via`**(HIT なら origin を通っていない。比較は cache に無い新しい query を client
ごとに 1 本ずつ)と、**macOS の `pmset -g log | grep -E " Sleep | Wake "`**(その区間の
sleep / hibernate)。cache hit だけが成功して見える API を相手側の罰則と誤診し、
hibernate の空白をコードの遅さと誤診する。

## 使い方

修理・変更の着手時と、原因の診断中に該当原則を 1 つ名指しして通す(「原則 1 — この課題、
git log で既済照合した?」「原則 4 — kill する前に一次ログを見た?」)。機構を**足す**
修理はこの skill の外 — implementation-chain の機構ゲート(agent: architect)が正本。

## 失効条件

- substrate がこれらの照合を診断時と着手時に自発するようになったら退役(足場は不要になったら外す)
- 原則の出所となった実測が反証されたら該当原則を削る

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.