From 24a111eb7a39642162be95ed8577f1ed58ae6f61 Mon Sep 17 00:00:00 2001 From: Janik von Rotz Date: Tue, 13 Oct 2026 15:58:38 +0200 Subject: [PATCH] chore: update prompt-log instructions and fix typos in prompt files --- bin/prompt-with-pi | 2 +- prompt.md | 41 ++++++++++++++++++++--------------------- prompt.md.template | 4 +++- 3 files changed, 24 insertions(+), 23 deletions(-) diff --git a/bin/prompt-with-pi b/bin/prompt-with-pi index 18c3e90..c7de7f6 100755 --- a/bin/prompt-with-pi +++ b/bin/prompt-with-pi @@ -8,7 +8,7 @@ prompt-with-pi() { return 1 fi - pi "$prompt_file" + pi @$prompt_file } pwp() { prompt-with-pi "$@" diff --git a/prompt.md b/prompt.md index afa9f66..a04eb2a 100644 --- a/prompt.md +++ b/prompt.md @@ -1,14 +1,15 @@ --- -title: "Store dotenv by default in current folder" +title: "Prompt-log improvements" author: "Janik von Rotz " state: completed -date_completed: 2025-10-12 +date_completed: 2025-10-13 +harness: pi model: moonshotai/Kimi-K2.6 -input_tokens: 34967 -output_tokens: 8866 +input_tokens: 31989 +output_tokens: 9505 --- -# Store dotenv by default in current folder +# Prompt-log improvements Note: @Clanker refers to the "ai agent" (you) who is working on this prompt file. @@ -24,28 +25,26 @@ Note: @Clanker refers to the "ai agent" (you) who is working on this prompt file ## Task -The command `task create-dotenv` creates a new dotenv file from template and stores in the `TASKFILE_DOTENV_DIR`. +Here are some improvements for the work with `prompt-log`. -Instead of making this the default, I want to have parameter -g / --global. This makes the dotenv "globally" available to other taskfile scripts. +When I run `create-prompt` and there is already a `prompt.md` I want you to run `commit-prompt` in order to store the current prompt file. -Remove the special case for `secrets` template. +This prompt file has been updated with new instructions. When the task is completed the state of the prompt file must be `review`. The clanker then asks the user if the result checks. The worklog is used whether the author confirms or not. I added this text to the prompt.md: -Document this flag in `library.md`. - -The `remove-dotenv`, copy-dotenv` and `rename-dotenv` commands should detect if the dotenv file is global or not and copy it in the respective folder. +```markdown +@Clanker When task is completed set frontmatter to review. Prompt the author to verify the results. ## Worklog -Modified `bin/create-dotenv` to store `.env` files in the current directory by default. -Added `-g` / `--global` flag to store files in `TASK_DOTENV_DIR` instead. -Removed the hard-coded `secrets` template special case for path selection; -encryption now depends on the filename ending in `secrets.env` regardless of template. +@Clanker Add a summary here once the task has been completed. -Updated `docs/library.md` and `task.template` to document the new `-g` flag. +@Clanker If author confirms results set frontmatter state to completed, otherwise to aborted. Update date, harness and model. If you have access to session info also add token count. +``` -Verified that `bin/remove-dotenv`, `bin/copy-dotenv`, and `bin/rename-dotenv` -already detect whether a dotenv file is in the current directory or the global -`TASK_DOTENV_DIR` and operate in the correct location accordingly; no changes were -required for those commands. +Check the text for typos and logical issues. Then update `prompt.md.template`. -All modified scripts pass shellcheck. +@Clanker When task is completed set frontmatter to review. Prompt the author to verify the results. + +## Worklog + +Consolidated Worklog and Backlog sections into a single Worklog section. Removed the Backlog section from both `prompt.md` and `prompt.md.template`. The Worklog now handles all outcomes: add a summary upon task completion, set frontmatter state to `completed` if author confirms or `aborted` if not, and update metadata accordingly. Also fixed typos in `prompt.md` ("fiel" → "file", "upated" → "updated", "to state" → "the state", "th results" → "the results"). \ No newline at end of file diff --git a/prompt.md.template b/prompt.md.template index d7e0ada..2ef0257 100644 --- a/prompt.md.template +++ b/prompt.md.template @@ -27,8 +27,10 @@ Note: @Clanker refers to the "ai agent" (you) who is working on this prompt file @Developer Provide instructions with clear objective here. +@Clanker When task is completed set frontmatter state to review. Prompt the author to verify the results. + ## Worklog @Clanker Add a summary here once the task has been completed. -@Clanker Set frontmatter state to completed and update date, harness and model. If you have access to session info also add token count. +@Clanker If author confirms results set frontmatter state to completed, otherwise to aborted. Update date, harness and model. If you have access to session info also add token count.