Skip to content
cccskills
FreePublished on GitHub

permission-review

permission-ledger hook が記録した permission prompt と各リポの .claude/settings.local.json から allow 昇格候補を集計し、ユーザーが選んだものだけを ai-agents/settings/claude/settings.json に反映する。

「許可ルールを見直したい」「permission prompt を減らしたい」「承認した操作を allow に入れたい」 「permission review」などと言われたときに `/permission-review` で使う。

The English summary is being prepared. Showing the original description.

See how to install

Files included (2)

  • SKILL.md3.6 KB
  • references/review-criteria.md5.5 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

/permission-review スキル

Goal

承認してきた操作のうち、ユーザーが選んだものだけをグローバル allow に昇格させる。書き込み先は常にソースの ai-agents/settings/claude/settings.json。~/.claude/settings.json は配布されたコピーなので直接編集しない。

Workflow

Step 1: 候補を集める

mise run permission-audit -- --json を実行する。既定は直近 30 日で、全期間は --since 0。 出力フィールドの読み方は references/review-criteria.md の「集計値の読み方」を参照する。

候補が 0 件なら、その旨を伝えて終了する。

Step 2: 分類する

candidates と unsuggested の各ルールを references の基準で次の 4 区分に振り分ける。

  • 昇格: そのままグローバルへ
  • 一般化して昇格: 複数の具体ルールを 1 本の prefix ルールにまとめる。まとめた後のルール文字列を示す
  • local のまま: リポ・パス依存
  • 見送り: 危険・広すぎる・拒否歴あり・二度と一致しない完全一致

unsuggested は Claude Code の提案が無かった呼び出しから機械的に起こした下書きなので、そのまま昇格させずに必ず絞り込む。

Step 3: 選んでもらう

区分ごとの表(ルール / 承認・拒否件数 / リポ数 / 例)を提示し、「昇格」と「一般化して昇格」の候補を AskUserQuestion の multiSelect で選んでもらう。1 問 4 択が上限なので、候補が多い区分は複数問に分ける。 「local のまま」「見送り」は表で示すだけにし、異論があれば Other で拾う。

Step 4: 反映する

  1. 選ばれたルールを ai-agents/settings/claude/settings.json の permissions.allow に、既存の並びに合わせて挿入し、prettier --check を通す。
  2. 提示したが昇格しなかったルール(「local のまま」「見送り」、選ばれなかった候補)を ${XDG_STATE_HOME:-$HOME/.local/state}/claude-permission-ledger/declined.txt に 1 行 1 ルールで追記する。次回から候補に出なくなる。一般化で置き換えた元の具体ルールも入れる。
  3. 昇格したルール(一般化の元になったルールを含む)が各リポの .claude/settings.local.json に残っていれば、 ファイルごとに確認を取ってから削除する。

Step 5: 配布する

deploy-ai-config スキルで ~/.claude に反映する。コミットはユーザーの指示を待つ。

Notes

  • 昇格の可否は必ずユーザーが決める。hook は記録するだけで、自動昇格の経路は持たない(auto mode 相当のリスクを無審査で再現しないため)。
  • declined.txt はリポジトリ外にある。見送りを取り消すときは、そのファイルから該当行を消す。
  • transcript は cleanupPeriodDays(既定 30 日)で消えるため、pending が多いときは実行間隔が空きすぎている。

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Convert Claude markdown subagent files to Codex CLI TOML format. Parses YAML frontmatter and body, applies model/permission/tool mappings, and outputs to agents/codex/<name>.toml.

The English summary is being prepared. Showing the original description.

hodanov/my-pde3Updated Oct 18, 2026

Create or update a Markdown blog draft from recent work and export it with `YYYY-MM-DD_slug.md` naming. Output directory can be set via environment variable or CLI option; if missing, ask the user and pass it explicitly.

The English summary is being prepared. Showing the original description.

hodanov/my-pde3Updated Oct 18, 2026

変更をコミットしてドラフトPRを作成する一連のGit/ghワークフロー。ユーザーが「コミットして」「PR作って」「draft PR」等を求めたときに使用し、status/diff確認・命令形コミット・push・gh pr create --draft(--assignee hodanov)まで実行する。ユーザーの明示リクエストが無くても、実装完了後にcommitやPRが必要になった場面(dev-workflowのcommitフェーズ等)では必ずこれを使う。`git commit` や `gh pr create` を単体でBash直接実行しない。

The English summary is being prepared. Showing the original description.

hodanov/my-pde3Updated Oct 18, 2026

1 つの作業ツリーに混ざった差分を、変更理由ごとの意味単位のコミットへ分割する。ユーザーが「コミットを分割して」「意味単位で分けて」「commit-split」等を求めたとき、または機能追加・付随リファクタ・設定/ドキュメント修正が 1 コミットに混在していると気づいたときに使用する。分割案を提示して承認を得てからステージし、コミットごとに単独で成立することを確認する。メッセージ規約・push・PR の作成は commit-and-draft-pr へ委譲する。

The English summary is being prepared. Showing the original description.

hodanov/my-pde3Updated Oct 18, 2026

gitleaks + pre-commit を使ってローカルコミット時のクレデンシャル混入を機械的にブロックする。「クレデンシャル漏洩防止」「シークレット混入対策」「gitleaks」「pre-commit シークレット」「credential leak prevention」に言及した場合に使用する。

The English summary is being prepared. Showing the original description.

hodanov/my-pde3Updated Oct 18, 2026

依存パッケージ(Go modules / npm / Terraform provider / GitHub Actions / pre-commit 等)の アップグレードを、outdated 検出 → CHANGELOG・破壊的変更の確認 → 更新 → lint/test 検証 → コミットまで一連の手順で安全に適用する。「依存更新」「パッケージを上げて」「dependency update」 「go get -u」「npm update」「provider を上げる」等に言及されたときに使用する。

The English summary is being prepared. Showing the original description.

hodanov/my-pde3Updated Oct 18, 2026

See all skills by hodanov

Report a problem with this skill