From e9cf1d7379294db279d27d5a4450dea67cafc57d Mon Sep 17 00:00:00 2001 From: goodboy Date: Fri, 13 Mar 2026 14:15:42 -0400 Subject: [PATCH] Move commit-msg output to `msgs/` subdir Relocate generated commit message files from `.claude/` root into `.claude/skills/commit-msg/msgs/` and switch timestamp format to filesystem-safe UTC (`%Y%m%dT%H%M%SZ`). Also, - add `msgs/` dir and `git_commit_msg_LATEST.md` to `.gitignore`. (this commit msg was generated in some part by [`claude-code`][claude-code-gh]) [claude-code-gh]: https://github.com/anthropics/claude-code --- .claude/skills/commit-msg/SKILL.md | 14 +++++++------- .gitignore | 2 ++ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.claude/skills/commit-msg/SKILL.md b/.claude/skills/commit-msg/SKILL.md index 0a9f69c4..adf5cdef 100644 --- a/.claude/skills/commit-msg/SKILL.md +++ b/.claude/skills/commit-msg/SKILL.md @@ -69,13 +69,13 @@ When generating a commit message: conventions from the [style guide](./style-guide-reference.md). 4. Add body only for multi-file or complex changes. -5. Write the message to a file in the repo's - `.claude/` subdir with filename format: - `__commit_msg.md` - where `` is from `date --iso-8601=seconds`. - Also write a copy to - `.claude/git_commit_msg_LATEST.md` - (overwrite if exists). +5. Write the message to TWO files: + - `.claude/skills/commit-msg/msgs/__commit_msg.md` + * with `` from `date -u +%Y%m%dT%H%M%SZ` + or similar filesystem-safe format. + * and `` from `git log -1 --format=%h` + first 7 chars. + - `.claude/git_commit_msg_LATEST.md` (overwrite) --- diff --git a/.gitignore b/.gitignore index 0a058bba..4253e3a5 100644 --- a/.gitignore +++ b/.gitignore @@ -107,6 +107,8 @@ ENV/ .git/ # any commit-msg gen tmp files +.claude/skills/commit-msg/msgs/ +.claude/git_commit_msg_LATEST.md .claude/*_commit_*.md .claude/*_commit*.toml