Person/Harper Reed/Blog/25/02/My LLM codegen workflow atm/Sample Mise Rules
Properties
- tags
- mise, llm-cli, repomix
- created-by
- Person/Harper Reed
Harper Reed - Sample mise/tasks for AI/Coding
- #notes
- See Person/Harper Reed/GitHub/dotfiles/mise here
- To install:
- Note: Harper hasn't shared his actual llm-cli/Prompt templates AFAIK, so we'll need to create our own versions of these templates:
- I'd like to adapt these commands so the files are not in the root of the repo but are instead in
.ai-coding/*
- See Person/Harper Reed/GitHub/dotfiles/mise here
- Configure AI coding task collection in
~/.config/mise/config.toml:LLM:generate_bundle- Bundle Generation Task- Generate LLM bundle using #Repomix
- #Via Person/Harper Reed/GitHub/dotfiles here
- toml
[tasks."llm:generate_bundle"] description = 'Generate LLM bundle output file using repomix' hide = true # hide this task from the list run = """ #!/usr/bin/env bash npx repomix --style xml --output-show-line-numbers --output output.txt --ignore **/uv.lock,**/package-lock.json,**/.env,**/Cargo.lock,**/node_modules,**/target,**/dist,**/build,**/output.txt,**/yarn.lock """
LLM:clean_bundles- Clean Bundles TaskLLM:generate_readme- README Generation- Depends on generate_bundle task
- #notes
- this depends on the llm-cli/Prompt template called
readme-gen, which Harper hasn't shared, but which can be imagined
- this depends on the llm-cli/Prompt template called
- toml
[tasks."llm:generate_readme"] depends = ["llm:generate_bundle"] description = 'Generate README.md from repository content stored in output.txt using LLM generation' run = """ #!/usr/bin/env bash cat output.txt | llm -t readme-gen > README.md """
LLM:copy_buffer_bundle- Clipboard Operations mise/Task/LLM/copy_buffer_bundleLLM:generate_github_issues- Issue Generation- Depends on generate_bundle task
- #notes
- this depends on the llm-cli/Prompt template called
github-issue-gen - would need to create this template to generate GitHub-formatted issues from codebase
- this depends on the llm-cli/Prompt template called
- toml
[tasks."llm:generate_github_issues"] depends = ["llm:generate_bundle"] description = 'Generate GitHub issues from repository content stored in output.txt using LLM generation' run = """ #!/usr/bin/env bash cat output.txt | llm -m claude-3.5-sonnet -t github-issue-gen > issues.md """
LLM:generate_code_review- Code Review Generation- Depends on generate_bundle task
- #notes
- this depends on the llm-cli/Prompt template called
code-review-gen - template should instruct LLM to analyze code for best practices, issues, and improvements
- this depends on the llm-cli/Prompt template called
- toml
[tasks."llm:generate_code_review"] depends = ["llm:generate_bundle"] description = 'Generate code review output from repository content stored in output.txt using LLM generation' run = """ #!/usr/bin/env bash cat output.txt | llm -m claude-3.5-sonnet -t code-review-gen > code-review.md """
LLM:generate_missing_tests- Test Coverage Analysis- Depends on generate_bundle task
- #notes
- this depends on the llm-cli/Prompt template called
missing-tests-gen - template should guide LLM to identify untested code paths and suggest test cases
- this depends on the llm-cli/Prompt template called
- toml
[tasks."llm:generate_missing_tests"] depends = ["llm:generate_bundle"] description = 'Generate missing tests for code in repository content stored in output.txt using LLM generation' run = """ #!/usr/bin/env bash cat output.txt | llm -m claude-3.5-sonnet -t missing-tests-gen > missing-tests.md """
LLM:generate_issue_prompts- Prompt Generation- Depends on generate_bundle task
- #notes
- this depends on the llm-cli/Prompt template called
issue-prompts-gen - template should help LLM generate useful prompts for common development tasks
- this depends on the llm-cli/Prompt template called
- toml
[tasks."llm:generate_issue_prompts"] depends = ["llm:generate_bundle"] description = 'Generate issue prompts from repository content stored in output.txt using LLM generation' run = """ #!/usr/bin/env bash cat output.txt | llm -m o3-mini -t issue-prompts-gen > issue-prompts.md """
#notes
- Uses a hidden
llm:generate_bundletask that other tasks depend on - Uses llm-cli with specific templates (-t flag) and models (-m flag)
- More specific ignore patterns in the bundle generation
- Simpler output paths (directly in project root rather than .ai-coding/)
- Uses Claude 3.5 Sonnet for most generations, O3-mini for prompts
- Tasks generate files in the project root directory; I'd like to adapt these commands so the files are not in the root of the repo but are instead in
.ai-coding/* - Uses the
llmCLI tool with specific templates - For clipboard operations, uses pbcopy (macOS) - adjust for your OS
Prerequisites
- Uses a hidden
- #notes