aboutsummaryrefslogtreecommitdiff
path: root/configs
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
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')
-rw-r--r--configs/llm/templates/commit-prompt.yaml23
-rw-r--r--configs/llm/templates/pr-prompt.yaml14
-rw-r--r--configs/prompts/commit-system-prompt.txt20
-rw-r--r--configs/prompts/pr-prompt.txt12
4 files changed, 37 insertions, 32 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
diff --git a/configs/llm/templates/pr-prompt.yaml b/configs/llm/templates/pr-prompt.yaml
new file mode 100644
index 0000000..4c13c0d
--- /dev/null
+++ b/configs/llm/templates/pr-prompt.yaml
@@ -0,0 +1,14 @@
+prompt: >
+ Write a clear, informative pull request message in markdown:
+
+ * Start with a summary
+ * Remember to mention the files that were changed, and what was changed
+ * Explain the 'why' behind changes
+ * Include a bulleted list to outline all of the changes
+ * If there are no changes, or the input is blank - then return a blank string
+
+ Think carefully before you write your pull request body.
+
+ What you write will be passed to create a github pull request
+
+ Text to use for the pull request message: $input
diff --git a/configs/prompts/commit-system-prompt.txt b/configs/prompts/commit-system-prompt.txt
deleted file mode 100644
index 8ddc434..0000000
--- a/configs/prompts/commit-system-prompt.txt
+++ /dev/null
@@ -1,20 +0,0 @@
-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]"
diff --git a/configs/prompts/pr-prompt.txt b/configs/prompts/pr-prompt.txt
deleted file mode 100644
index 625c893..0000000
--- a/configs/prompts/pr-prompt.txt
+++ /dev/null
@@ -1,12 +0,0 @@
-Write a clear, informative pull request message in markdown:
-
-* Remember to mention the files that were changed, and what was changed
-* Start with a summary
-* Explain the 'why' behind changes
-* Include a bulleted list to outline all of the changes
-* If there are changes that resolve specified issues add the issues to a list of closed issues
-* If there are no changes, or the input is blank - then return a blank string
-
-Think carefully before you write your pull request body.
-
-What you write will be passed to create a github pull request