Skip to content

Conversation

@denolfe
Copy link
Member

@denolfe denolfe commented Nov 2, 2025

Summary

Sets up Claude Code configuration for the Payload repository with automatic formatting hooks, permission presets, and improved documentation.

Changes

1. Added .claude/hooks/post-edit.sh

  • Post-edit hook that auto-formats files after Edit/Write operations
  • Runs sort-package-json for package.json
  • Runs prettier for yml/json/md/mdx/js/jsx/ts/tsx files
  • Runs markdownlint for markdown files
  • Runs eslint --fix for JavaScript/TypeScript files

2. Added .claude/settings.json

  • Configures post-edit hook to trigger on Edit/Write tool use
  • Pre-allows common readonly commands (git, gh, pnpm, web tools) to reduce permission prompts

3. Updated CLAUDE.md

  • Added missing packages to documentation (kv-redis, R2 storage adapter)
  • Standardized all pnpm commands to use pnpm run prefix to match allowed commands in .claude/settings.json
  • Clarified that Turbo commands should use pnpm turbo, not turbo directly

@denolfe denolfe marked this pull request as ready for review November 3, 2025 15:08
@denolfe denolfe merged commit aa14d86 into main Nov 3, 2025
13 checks passed
@denolfe denolfe deleted the chore/claude-settings branch November 3, 2025 15:16
@github-actions
Copy link
Contributor

github-actions bot commented Nov 7, 2025

🚀 This is included in version v3.63.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants