Skip to content

Commit c025b1b

Browse files
committed
Version 0.0.7
AI Prompts: claude-sonnet-4-6: <ide_opened_file>The user opened the file ./CHANGES.md in the IDE. This may or may not be related to the current task.</ide_opened_file> see if the changelog needs more
1 parent 29853ff commit c025b1b

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

CHANGES.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
- `prepare-ai-repository` now creates or updates `.github/assistant-guidelines.md`
99
- copies bundled assistant-guidelines content into the repo
1010
- adds a header with the current package version
11+
- Add `record-ai-prompt` script — saves a prompt to `.prompts/` from the command line or stdin
12+
- `--model` defaults to the last used model inferred from existing prompt filenames
13+
- raises an error if no prior prompt files exist and no `--model` is given
14+
- `archive-ai-prompts` now archives both `*.txt` and `*.md` prompt files (previously only `*.md`)
15+
- Development: add `Makefile` (`make dev`, `make test`, `make clean`) and `CONTRIBUTING.md`
16+
- Development: fix pre-commit hooks to use `.venv/bin/` scripts via `language: script`
1117

1218
## v0.0.6
1319

ai_prompt_auto_commit/data/assistant-guidelines.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
---
2-
version: "0.0.6"
2+
version: "0.0.7"
33
---
44

5+
56
# Assistant Guidelines for `.prompts` Storage
67

78
These guidelines tell the assistant exactly how to write prompt files in this repository.

ai_prompt_auto_commit/data/claude_settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"id": "ai-prompt-auto-commit",
88
"type": "command",
99
"command": "input=$(cat); ts=$(date +%Y-%m-%dT%H-%M-%S); model=$(printf '%s' \"$input\" | jq -r '.model // \"claude-sonnet-4-6\"'); root=$(git rev-parse --show-toplevel 2>/dev/null || pwd); mkdir -p \"$root/.prompts\"; printf '%s' \"$input\" | jq -r '.prompt' > \"$root/.prompts/${ts}_${model}.txt\"",
10-
"version": "0.0.6"
10+
"version": "0.0.7"
1111
}
1212
]
1313
}

0 commit comments

Comments
 (0)