aboutsummaryrefslogtreecommitdiff
path: root/configs/llm/templates/commit-prompt.yaml
diff options
context:
space:
mode:
authorFranck Cuny <59291+fcuny@users.noreply.github.com>2025-02-28 19:19:53 -0800
committerFranck Cuny <59291+fcuny@users.noreply.github.com>2025-02-28 19:19:53 -0800
commitb9b5aaea288ad81de679cae9eacacbac73e87cff (patch)
tree5e32d667d05182f98eff54665b1f48f5d6c025c2 /configs/llm/templates/commit-prompt.yaml
parent🤖 Add LLM tooling and prompts for Git workflow automation (diff)
downloadinfra-b9b5aaea288ad81de679cae9eacacbac73e87cff.tar.gz
🚀 Refactor LLM config: Move to standardized templates and improve setup
- Migrated prompts from text files to YAML templates in `.config/llm/templates/` directory - Updated fish shell aliases to use the new template system with `-t` flag instead of reading files - Enhanced justfile's `llm` target with proper Claude model setup and 1Password integration - Added `LLM_USER_PATH` environment variable for consistent configuration path - Fixed PR prompt format to better organize content and remove issue resolution section - Updated Nix configuration to support the new file structure The changes standardize our LLM prompt system and make it more maintainable, while improving the setup experience for new users. 🧰
Diffstat (limited to 'configs/llm/templates/commit-prompt.yaml')
-rw-r--r--configs/llm/templates/commit-prompt.yaml23
1 files changed, 23 insertions, 0 deletions
diff --git a/configs/llm/templates/commit-prompt.yaml b/configs/llm/templates/commit-prompt.yaml
new file mode 100644
index 0000000..780375e
--- /dev/null
+++ b/configs/llm/templates/commit-prompt.yaml
@@ -0,0 +1,23 @@
+prompt: >
+ Write a concise, informative commit message for these changes:
+ - Review the whole context of the diff carefully to see what effect the change would have on the rest of the code and explain that. Be specific about the effect.
+ - Do not guess about intent.
+ - The goal of this commit message is that someone familiar with the codebase, but not with these changes would understand why the changes were made and what was changed.
+ - The first line should be a short summary of the changes
+ - Explain the 'why' behind changes
+ - Use bullet points for multiple changes
+ - Tone: Use some emojis, be funny, expressive, but stay professional
+ - If there are no changes, or the input is blank - then return a blank string
+
+ Think carefully about what would be most helpful to someone trying to understand the intent of this commit before you write your commit message. Your commit message will be used as an example to train other team members about the content of a good commit message.
+
+ The output format should be:
+
+ Summary of changes
+ - changes
+ - changes
+ and so on
+
+ What you write will be passed directly to git commit -m "[message]"
+
+ Text to use for the commit message: $input