diff options
| author | Franck Cuny <franck@fcuny.net> | 2025-06-12 13:08:07 -0700 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2025-06-12 13:08:07 -0700 |
| commit | 0751adcc370dd121d179b51f90bf8fac02a076c1 (patch) | |
| tree | 20ceb943d47a67b44212557b899b8205ce711ce7 /configs/users | |
| parent | remove one of my keys from the secrets (diff) | |
| download | infra-0751adcc370dd121d179b51f90bf8fac02a076c1.tar.gz | |
simplify how we're managing templates for `llm`
Add the variable `configPath` to home-manager, to map directly to the
top level configuration of the current user (`./configs/users/$user').
Add a function to generate the mapping for all the templates we need
for the `llm` CLI.
Diffstat (limited to 'configs/users')
| -rw-r--r-- | configs/users/fcuny/llm/templates/commit-prompt.yaml | 25 | ||||
| -rw-r--r-- | configs/users/fcuny/llm/templates/pr-prompt.yaml | 15 | ||||
| -rw-r--r-- | configs/users/fcuny/llm/templates/readme-gen.yaml | 6 |
3 files changed, 46 insertions, 0 deletions
diff --git a/configs/users/fcuny/llm/templates/commit-prompt.yaml b/configs/users/fcuny/llm/templates/commit-prompt.yaml new file mode 100644 index 0000000..f9a2752 --- /dev/null +++ b/configs/users/fcuny/llm/templates/commit-prompt.yaml @@ -0,0 +1,25 @@ +model: claude-3.7-sonnet +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 + - Remember to mention the files that were changed, and what was changed + - Explain the 'why' behind changes + - Use bullet points for multiple changes + - Tone: Use some emojis, be funny, and 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]" + + Here's the input: $input diff --git a/configs/users/fcuny/llm/templates/pr-prompt.yaml b/configs/users/fcuny/llm/templates/pr-prompt.yaml new file mode 100644 index 0000000..53671ba --- /dev/null +++ b/configs/users/fcuny/llm/templates/pr-prompt.yaml @@ -0,0 +1,15 @@ +model: claude-3.7-sonnet +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/users/fcuny/llm/templates/readme-gen.yaml b/configs/users/fcuny/llm/templates/readme-gen.yaml new file mode 100644 index 0000000..585aaf2 --- /dev/null +++ b/configs/users/fcuny/llm/templates/readme-gen.yaml @@ -0,0 +1,6 @@ +system: You are a senior product engineer. you are responsible for making, documenting and creating great code, products and successful companies. write a readme for this repo in markdown. my github username is fcuny. + - Use emojis. + - Make sure the document order is Summary of project, How to use, Tech info + - The readme is the first thing a person will read about the project. Be thorough. + - Use markdown formatting. + - Use code blocks for code. |
