From 6f93c350334264ad87a7c2cb6c16da67212be9d7 Mon Sep 17 00:00:00 2001 From: Janik von Rotz Date: Tue, 17 Feb 2026 13:55:38 +0100 Subject: [PATCH] feat: update create-prompt to accept title as argument and add new prompt file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Modified create-prompt to accept title as command-line argument instead of interactive input - Added usage message when title is missing - Fixed numeric comparison in prompt numbering logic to handle leading zeros correctly - Added new prompt file 09_add-cluster-and-partner-list-view-to-website-kubectl.md - Changed task.template permissions from executable to readable (755 → 644) --- bin/create-prompt | 13 +++++------ ...nd-partner-list-view-to-website-kubectl.md | 23 +++++++++++++++++++ task.template | 0 3 files changed, 29 insertions(+), 7 deletions(-) create mode 100644 prompts/09_add-cluster-and-partner-list-view-to-website-kubectl.md mode change 100755 => 100644 task.template diff --git a/bin/create-prompt b/bin/create-prompt index 7aa2b34..1f34dc0 100755 --- a/bin/create-prompt +++ b/bin/create-prompt @@ -1,12 +1,11 @@ #!/usr/bin/env bash create-prompt() { - local title - echo "Enter the title of the prompt:" - read -r title - + local title="$1" + if [[ -z "$title" ]]; then echo "Error: Title cannot be empty." + echo "Usage: task create-prompt " return 1 fi @@ -21,12 +20,12 @@ create-prompt() { local num=${file#"$prompts_dir"/} num=${num%%_*} num=${num//[!0-9]/} - if (( num > highest_num )); then - highest_num=num + if [[ -n "$num" ]] && (( 10#$num > highest_num )); then + highest_num=$((10#$num)) fi fi done - + local next_num=$((highest_num + 1)) local padded_num=$(printf "%02d" "$next_num") diff --git a/prompts/09_add-cluster-and-partner-list-view-to-website-kubectl.md b/prompts/09_add-cluster-and-partner-list-view-to-website-kubectl.md new file mode 100644 index 0000000..61f1c69 --- /dev/null +++ b/prompts/09_add-cluster-and-partner-list-view-to-website-kubectl.md @@ -0,0 +1,23 @@ +--- +title: Add cluster and partner list view to website kubectl +--- + +# Run 09 + +Replace the `==` marked instructions in this file while you work on the task. + +## Context + +Read the `AGENTS.md` and `README.md` to get understanding of the project. + +## Task + +==Specifiy the task and goals here== + +## Worklog + +==Agent: Fill this in as you work on the task== + +## Summary + +==Fill this once you completed the task== diff --git a/task.template b/task.template old mode 100755 new mode 100644