mit einem Klick
permission-sync
// Sync and harden command permissions between .claude/settings.json and .codex/rules/default.rules in this dotfiles repo.
// Sync and harden command permissions between .claude/settings.json and .codex/rules/default.rules in this dotfiles repo.
| name | permission-sync |
| description | Sync and harden command permissions between .claude/settings.json and .codex/rules/default.rules in this dotfiles repo. |
このドキュメントは、./.claude/settings.json と ./.codex/rules/default.rules を
安全性を維持しつつ双方向同期するための正本手順です。
settings.json と default.rules の差分をなくしたいsed -n '1,260p' ./.claude/settings.json
sed -n '1,260p' ./.codex/rules/default.rules
python3 *, npm *, pnpm *, cargo *, git checkout:*, git commit:*, git stash:*, brew bundle:* は除外対象settings.json は Bash(...) 形式、default.rules は prefix_rule(...) 形式なので、同じ意味に正規化して比較するBash(ps:*) <-> prefix_rule(pattern=["ps"], decision="allow")Bash(git diff:*) <-> prefix_rule(pattern=["git", "diff"], decision="allow")jq empty ./.claude/settings.json
sed -n '1,260p' ./.codex/rules/default.rules
auth.json や sessions など機密/履歴は管理対象にしないbasic -> git -> gh -> brewsettings.json のセクションコメント(// basic, // git, // gh, // brew)は維持するAudit alignment between AGENTS.md and repo-local shared skills under .agents/skills. Invoke explicitly only; do not auto-trigger on generic agent or skill maintenance requests.
Create and iterate on implementation plans under .agents/plan/ so multiple agents (Claude / Codex / 他) can review each other's drafts. Use when entering plan mode, drafting an implementation plan, or reviewing an existing plan.
Create install scripts under ./install/install-<name>.sh following this dotfiles repo's build/install conventions (brew vs self-build, pkg/local layout, OS branching).