I hereby claim:
- I am whoabuddy on github.
- I am whoabuddy (https://keybase.io/whoabuddy) on keybase.
- I have a public key ASAElxGUq2b-WAuBna5qVb_viZJCLh9fIJ-jNnu4sPCt1Ao
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# OpenAI API key | |
export OPENAI_API_KEY="your-api-key" | |
# AI commit messages! | |
gitai() { | |
# Check if the current directory is a git repository | |
if ! git status > /dev/null 2>&1; then | |
echo "Not a git repository" | |
return | |
fi |
# run this after a command for audio output | |
# e.g. echo "Hello!" && alldone | |
alias alldone='spd-say -t female3 "process complete"' | |
# upgrade packages in requirements.txt in the current directory | |
alias pipupgrade='cat requirements.txt | cut -f1 -d= | xargs pip install -U' | |
# run a git command against all directories in the current directory | |
# e.g. git_af status | |
# e.g. git_af pull |
The software testing example comes from Matt Shumer, with the prompt expanded below so it's easier to read/modify.
With more powerful and longer context LLMs the key is providing clear instructions. I like how this format ties into how we work with agents (passing inputs, prompt template variables), and plan to keep any useful templates here for easy access.
Feel free to modify/share!