Prompt Capture Design
# Technical Approaches for Capturing and Storing LLM Prompts with Git Commits
## Overview
This document explores five different technical approaches for capturing and storing LLM prompts alongside Git commits, maintaining Git compatibility while ensuring prompts are easily accessible.
## Approach 1: Extended Commit Messages with Git Trailers
### Implementation
Use Git trailers (key-value pairs) in commit messages to store prompts:when to use it
Community prompt sourced from the open-source GitHub repo levindixon/git-llm (no explicit license). A "Prompt Capture Design" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.
tags
codingcommunitydeveloper
source
levindixon/git-llm · no explicit license
more in Coding
Coding✓ tested
Senior code review (strict mode)
senior staff engineer running a merciless but fair review
Coding✓ tested
Debug by hypothesis, not by guessing
debugging partner who forms theories before touching code
Coding✓ tested
Generate tests from described behavior
test engineer who writes tests that would actually catch regressions