|
54 | 54 | env: |
55 | 55 | ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} |
56 | 56 | run: | |
57 | | - claude -p "$(cat <<'PROMPT' |
58 | | - You are auditing and improving a Claude Code configuration repository. |
59 | | -
|
60 | | - ## Phase 1: Read everything |
61 | | -
|
62 | | - 1. docs/claude-cookbook-best-practices.md (just synced - reference for latest features) |
63 | | - 2. settings.json |
64 | | - 3. CLAUDE.md |
65 | | - 4. All agents: agents/*.md |
66 | | - 5. All skills: use Glob for skills/*/SKILL.md, then read each |
67 | | - 6. All commands: commands/*.md |
68 | | -
|
69 | | - ## Phase 2: Apply improvements |
70 | | -
|
71 | | - For each actionable finding, APPLY the fix directly (edit files, create missing agents, remove deprecated code, update settings). |
72 | | -
|
73 | | - Categories to check: |
74 | | - - SETTING: missing permissions, new settings to adopt |
75 | | - - AGENT: missing model field, missing tools in frontmatter |
76 | | - - SKILL: outdated patterns, missing features |
77 | | - - COMMAND: missing allowed-tools, broken references |
78 | | - - HOOK: new hook events to leverage |
79 | | - - CLAUDE.MD: rules that could be settings/hooks instead |
80 | | - - CONFLICT: duplicates, deprecated code to remove |
81 | | -
|
82 | | - ## Rules |
83 | | -
|
84 | | - - Only fix things that would concretely improve the workflow |
85 | | - - Skip anything that works fine as-is |
86 | | - - Do NOT delete files without strong justification (prefer deprecation) |
87 | | - - Do NOT modify docs/ (already synced) |
88 | | - - Keep changes minimal and focused per finding |
89 | | -
|
90 | | - ## Phase 3: Summary |
91 | | -
|
92 | | - After applying all fixes, output a concise markdown report listing what you changed: |
93 | | -
|
94 | | - **[CATEGORY] `file`** — what was changed (impact: high/medium/low) |
95 | | - PROMPT |
96 | | - )" \ |
| 57 | + cd "$HOME/.claude" |
| 58 | + claude -p "/audit-config" \ |
97 | 59 | --model claude-sonnet-4-6 \ |
98 | 60 | --dangerously-skip-permissions \ |
99 | 61 | --max-turns 30 \ |
|
0 commit comments