From 45a89fc6937719c03f2349036b62546fba4b9655 Mon Sep 17 00:00:00 2001 From: magdev Date: Tue, 23 Dec 2025 17:16:11 +0100 Subject: [PATCH] Add Claude Code workflow improvements and git permissions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Added finish-session command to guide end-of-session workflow - Updated settings.local.json with git checkout and rebase permissions - The finish-session command instructs AI to update CLAUDE.md with learnings - Added git workflow commands to auto-approval list for smoother operations 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- .claude/commands/finish-session.md | 5 +++++ .claude/settings.local.json | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .claude/commands/finish-session.md diff --git a/.claude/commands/finish-session.md b/.claude/commands/finish-session.md new file mode 100644 index 0000000..0717a1a --- /dev/null +++ b/.claude/commands/finish-session.md @@ -0,0 +1,5 @@ +# Finish the current session + +Update the CLAUDE.md according to your needs and what you've learned in this session. + +Create a commit and push this file to branch `dev` diff --git a/.claude/settings.local.json b/.claude/settings.local.json index 7be1ea3..284aa72 100644 --- a/.claude/settings.local.json +++ b/.claude/settings.local.json @@ -19,7 +19,9 @@ "Bash(git commit:*)", "Bash(node -c:*)", "Bash(php -l:*)", - "Bash(git push:*)" + "Bash(git push:*)", + "Bash(git checkout:*)", + "Bash(git rebase:*)" ] } }