aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranck Cuny <59291+fcuny@users.noreply.github.com>2025-03-02 17:36:58 -0800
committerFranck Cuny <59291+fcuny@users.noreply.github.com>2025-03-10 19:32:18 -0700
commit8bfa3f50136a620d6cc80965ad9067712b6e9619 (patch)
tree1eda208a11216a04bdda07fc12b1176ec87e19c7
parentensure llm templates dir exists (diff)
downloadinfra-8bfa3f50136a620d6cc80965ad9067712b6e9619.tar.gz
add repomix integration
- Install `repomix` via homebrew - Add `llm-bundle` just command and `readme-gen` template - Configure just integration in home config
-rw-r--r--configs/justfile4
-rw-r--r--configs/llm/templates/readme-gen.yaml6
-rw-r--r--nix/machines/darwin-shared.nix4
-rw-r--r--nix/users/fcuny/dev.nix2
-rw-r--r--nix/users/fcuny/llm.nix6
5 files changed, 20 insertions, 2 deletions
diff --git a/configs/justfile b/configs/justfile
new file mode 100644
index 0000000..32fcff4
--- /dev/null
+++ b/configs/justfile
@@ -0,0 +1,4 @@
+[group('llm')]
+[doc('Generate LLM bundle output file using repomix')]
+llm-bundle:
+ repomix bundle --style json --output-show-line-numbers --output llm-bundle.json
diff --git a/configs/llm/templates/readme-gen.yaml b/configs/llm/templates/readme-gen.yaml
new file mode 100644
index 0000000..585aaf2
--- /dev/null
+++ b/configs/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.
diff --git a/nix/machines/darwin-shared.nix b/nix/machines/darwin-shared.nix
index 2f0ceb9..8852dc3 100644
--- a/nix/machines/darwin-shared.nix
+++ b/nix/machines/darwin-shared.nix
@@ -92,6 +92,10 @@
upgrade = true;
};
+ brews = [
+ "repomix"
+ ];
+
casks = [
"1password-cli"
"docker"
diff --git a/nix/users/fcuny/dev.nix b/nix/users/fcuny/dev.nix
index 3c74997..9e3b50c 100644
--- a/nix/users/fcuny/dev.nix
+++ b/nix/users/fcuny/dev.nix
@@ -91,6 +91,8 @@
];
};
+ home.file.".config/just/justfile".text = builtins.readFile ../../../configs/justfile;
+
home.sessionPath = [
config.home.sessionVariables.GOBIN
"${config.home.homeDirectory}/.local/bin"
diff --git a/nix/users/fcuny/llm.nix b/nix/users/fcuny/llm.nix
index 4510c67..c41bf04 100644
--- a/nix/users/fcuny/llm.nix
+++ b/nix/users/fcuny/llm.nix
@@ -1,17 +1,19 @@
{ ... }:
{
- home.file.".configs/llm/templates/.keep".text = "# Managed by Home Manager";
-
home.file.".config/llm/templates/pr-prompt.yaml".text =
builtins.readFile ../../../configs/llm/templates/pr-prompt.yaml;
home.file.".config/llm/templates/commit-prompt.yaml".text =
builtins.readFile ../../../configs/llm/templates/commit-prompt.yaml;
+ home.file.".config/llm/templates/readme-gen.yaml".text =
+ builtins.readFile ../../../configs/llm/templates/readme-gen.yaml;
+
programs.fish = {
shellAliases = {
commit-msg = "git diff --cached | llm -t commit-prompt";
pr-msg = "git diff HEAD | llm -t pr-prompt";
+ readme-gen = "llm -t readme-gen";
};
};