Skip to content

Commit 93b1d69

Browse files
fix: use /audit-config command instead of inline prompt in CI
- Reuses the full command with all constraints and structure - Claude picks up CLAUDE.md, agents, skills from the checkout - Same environment as running locally
1 parent cca9bda commit 93b1d69

1 file changed

Lines changed: 2 additions & 40 deletions

File tree

.github/workflows/sync-audit.yml

Lines changed: 2 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -54,46 +54,8 @@ jobs:
5454
env:
5555
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
5656
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" \
9759
--model claude-sonnet-4-6 \
9860
--dangerously-skip-permissions \
9961
--max-turns 30 \

0 commit comments

Comments
 (0)