本文へ移動
cccskills
無料GitHub で公開日本語紹介

bugs

Moleの削除やクリーンアップに関わる変更を、過去の不具合パターンから点検します。削除対象の判定、処理時間の上限、キャンセル、試行実行との一致を確認します。

原文原文の説明を見る

Mole incident catalog for cleanup safety, bounded probes, cancellation, dry-run parity, and actionable gates. Use for a Mole safety-sensitive diff; not for docs, release notes, or generic review.

インストール方法を見る

こんなときに便利

  • 削除やアンインストールの安全性点検
  • キャンセルと処理時間制限の確認
  • 試行実行と実際の削除対象の比較
  • 回帰テストの検出能力の確認

日本語での紹介

できること

Moleのクリーンアップやアンインストールに関わる変更を、過去の不具合パターンに照らして点検します。対象の発見から所有元の確認、削除直前の再確認、削除後の集計までを追い、不明な状態で削除が進まないかを調べます。外部コマンドの時間制限、キャンセル後の処理停止、試行実行と本実行の対象一致も確認します。

こんなときに便利

削除処理や安全確認を変更し、別の分岐や代替経路に見落としがないか確かめたいときに向いています。回帰テストが修正前の不具合を実際に検出できるか、処理を拒否した理由と次の対処が適切かを見直す用途にも使えます。

使い方の例

  • 「この削除処理の変更を、対象判定から最終的な削除まで点検して」
  • 「キャンセル後に次の対象の確認や削除が走らないか調べて」
  • 「試行実行と本実行の対象が一致するか確認して」

注意点

Mole固有の安全性レビュー向けです。一般的なレビューや稼働中の障害調査は対象外です。検証ではAGENTS.mdや.claude/rules/の指定を参照し、BatsやGoのテストなどを使います。

この紹介文は、公開されている SKILL.md をもとに AI(OpenAI Codex)が作成しました。正確な仕様は下の原文を確認してください。

含まれるファイル(6)

  • SKILL.md8.0 KB
  • evals/evals.json11.3 KB
  • references/deletion-evidence-and-final-sink.md12.7 KB
  • references/shell-and-test-pitfalls.md18.9 KB
  • references/state-accounting-and-progress.md7.1 KB
  • references/test-validity-and-refusal-diagnostics.md10.6 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Mole bug patterns

Generic review belongs to Waza check; root-cause investigation of a live failure belongs to hunt.

Route before loading details

Choose only the reference families touched by the evidence. A whole-project audit should classify surfaces first instead of loading every incident narrative.

#Recurring shapeFirst probeRead
1Deletion candidate built from a weak name signalInspect name, bundle-id, fallback globs, and failed-owner shortcutsDeletion evidence and final sink
2Existence or idleness decided by one probeEnumerate every legitimate location and unknown outcomeDeletion evidence and final sink
3Guard present on only one branchDiff dry-run, real, direct, fallback, and final-sink pathsDeletion evidence and final sink
4Unbounded external commandCount producer, consumer, inner-loop, and action boundsBounds, Shell, TTY, and parsing
5Bash 3.2, errexit, or pipefail trapCheck empty arrays, `fn
6TTY, stdin, or process-group theftInspect background workers and commands that may promptBounds, Shell, TTY, and parsing
7System output parsed as a stable APIForce locale, validate shape, and join on identifiers not headingsBounds, Shell, TTY, and parsing
8Persisted derived data outlives its algorithmTrace schema, TTL, evidence fingerprint, and mutationsState, accounting, and progress
9Two paths compute one number differentlyFind every producer and choose one definitionState, accounting, and progress
10Slow work looks frozenFind operations over roughly one second outside feedbackState, accounting, and progress
11Regression test cannot failProve positive control and pre-fix red stateTest validity and refusal diagnostics
12Gate cannot explain why it refusedMap each reason to one cause and a next action that fails on the broken stateTest validity and refusal diagnostics
13Mutation target is also accepted as a discovery containerCompare the recursive scan-root namespace with every purge target basenameDeletion evidence and final sink
14Owner metadata is treated as a complete, atomic inventoryIdentify who writes it, whether absence is authoritative, and what locks mutationDeletion evidence and final sink
15Cancellation stops one helper but later work continuesClassify each 124 as skip, section budget, or sticky cancel before tracing callersBounds, Shell, TTY, and parsing
16Async or cached data has no generation or freshness contractBind results to a request epoch and keep each sample's time, stale, and completeness fields togetherState, accounting, and progress
17Publication gate trusts ambiguous or pre-existing stateRequire exact source/tag equality, one generated target, and an expected-absence ref leaseTest validity and refusal diagnostics
18A sandbox well-known path is treated as app-private leftoversResolve Data/Downloads, Desktop, Pictures, Music, and Movies physically against $HOMEDeletion evidence and final sink

AGENTS.md and the path-scoped .claude/rules/ files keep each rule stated fully enough to obey plus its test anchor; the incident story lives in these references or in release-flow, and the rule bullet points to the section that holds it. Moving a story here is a merge, never the deletion of a rule that still constrains behavior.

Trace the complete mutation lifecycle

For cleanup, purge, optimize, analyze deletion, or uninstall work, review the complete chain rather than the reported branch:

discover or plan
  -> cheap irreversible filters
  -> owner and open-handle probes
  -> size or metadata work
  -> final owner re-probe
  -> parent and target identity rebind
  -> deletion or Trash sink
  -> accounting, cancellation, and user output

At every transition, answer:

  • Does live or unknown state fail closed?
  • Are timeouts classified by probe, sizing, removal, or section scope, with unknown evidence refusing deletion and cancellation stopping later mutation?
  • Are probe and sink bound to the same physical parent and target?
  • Do dry-run and real mode start from the same eligible plan without reusing stale authorization?
  • Are cheap missing, protected, whitelisted, and compiled-model filters ahead of recursive probes?
  • Does one cumulative deadline cover the dynamic scan scope, with checkpoints in nested loops?
  • Do refused, filtered, timed-out, or failed items stay out of cleaned counts and reclaimed bytes?
  • Can large candidates avoid per-item size work without making the reported total false?

Do not trade final-sink rebinding or fail-closed owner checks for speed. Optimize absent targets, duplicated discovery probes, report-only work, and wrong-scope scans first.

Working contract

  • Before proposing a remedy, apply the Product Decision Filter in AGENTS.md: a new flag, environment variable, or visible retry message is a product change, even when the underlying fix is a safety improvement. Use the existing state/accounting reference when deciding what belongs in the normal summary.
  • A sandbox well-known directory is user data until physical resolution proves otherwise. Data/Downloads is usually ~/Downloads under another name.
  • A refusal next step that succeeds on the broken state is not a next step. Do not relax the gate to make the message nicer.
  • Sweep siblings by call-site shape, not filename or helper name. Report checked N / defective M / not applicable K.
  • A recurring fix ships with a regression or source invariant that fails against the pre-fix code.
  • Treat tests as production consumers only after proving the production helper ran. Negative assertions require a positive trace.
  • A cancellation regression makes the next candidate otherwise eligible, then proves its probe and sink never run. Making every candidate fail for the same reason is a false sticky-cancellation test.
  • Absence-sensitive tests use an isolated HOME or fixture root; a shared setup_file home is not isolation.
  • Reproduce CI through MOLE_TEST_NO_AUTH=1 ./scripts/test.sh when possible. If invoking Bats directly with jobs, preserve --no-parallelize-within-files; files share state and raw bats --jobs 6 file.bats changes semantics.
  • Treat specialist or AI reports as leads. Read the implementation, callers, fallback branches, and final sink yourself.

Verification bar

Use the hotspot commands in the matching .claude/rules/ file (routed from AGENTS.md); do not guess a narrower verifier. A typical Shell safety change finishes with:

./scripts/check.sh --format
MOLE_TEST_NO_AUTH=1 bats tests/<area>.bats
MOLE_TEST_NO_AUTH=1 ./scripts/test.sh
go test ./...
MOLE_TEST_NO_AUTH=1 MOLE_DRY_RUN=1 ./mole clean --dry-run

Never infer a production defect from a function name, comment, string, fixture, or _test.go match. Confirm the live call path and verify red-green before reporting the class fixed.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

mole

無料概要あり

macOS・Windowsのディスク使用量を調べ、削除候補の事前確認から承認後のクリーンアップまで進めます。アプリ削除の案内やシステム状態・削除履歴の確認にも対応します。

  • ディスク容量の内訳を調べたいとき
  • キャッシュ削除の前に内容を確認したいとき
  • 動作が重いパソコンの状態確認
tw93/Mole7.2万2026年10月21日 更新

release-flow

無料概要あり

Mole CLIのリリース準備から公開後の更新確認までを進めます。配布経路の整理、テスト、大文字Vのタグ、配布ファイルの検証、リリースノートへの引き継ぎを扱います。

  • Mole CLIの公開準備を確認したいとき
  • 大文字Vのタグでリリースしたいとき
  • 公開ファイルと更新経路の検証
tw93/Mole7.2万2026年10月21日 更新

release-notes

無料概要あり

既存のMoleリリースに載せる英語・中国語の更新情報を作成し、承認後に反映します。利用者への影響順に変更を整理し、貢献者への謝辞やリアクションも整えます。

  • 英語・中国語のリリースノート作成
  • 利用者への影響順に変更を整理
  • 今回の貢献者への謝辞を確認
tw93/Mole7.2万2026年10月21日 更新

weekly-audit

無料概要あり

Mole CLIのmacOS版とWindows版を、安全性・過剰設計・古い記述・性能・ルール化の漏れから定期点検します。指摘を再検証し、承認された修正と記録まで進めます。

  • Mole CLI両ブランチの定期点検
  • 危険な削除経路や性能問題の確認
  • 古い文書や過剰設計の点検
tw93/Mole7.2万2026年10月21日 更新

tw93 のスキルをすべて見る

このスキルの問題を報告する