@@ -37,6 +37,23 @@ error() {
3737 exit 1
3838}
3939
40+ # Display instructions for creating TaskMaster tasks
41+ show_task_creation_instructions () {
42+ echo " "
43+ echo " To create tasks with the prd skill, run your designated agent with this prompt:"
44+ echo " "
45+ cat << 'EOF '
46+ Use the prd skill to generate TaskMaster tasks.json for this repo.
47+ Requirements:
48+ - Output must be TaskMaster format with tasks[] and metadata.
49+ - Include 3-7 small, actionable tasks with acceptance criteria.
50+ - Use IETF 2119 MUST/SHOULD/MAY in acceptance criteria.
51+ - Set metadata.project and metadata.branchName appropriately.
52+ EOF
53+ echo " "
54+ echo " Then re-run: ./ralph.sh --agent <amp|claude|codex> [max_iterations]"
55+ }
56+
4057# 1. Find git repository root
4158find_git_root () {
4259 local dir=" $PWD "
123140TASKS_FILE=" $TASKMASTER_DIR /tasks/tasks.json"
124141if [[ ! -f " $TASKS_FILE " ]]; then
125142 warn " TaskMaster tasks.json not found; nothing to do."
126- echo " "
127- echo " To create tasks with the prd skill, run your designated agent with this prompt:"
128- echo " "
129- cat << 'EOF '
130- Use the prd skill to generate TaskMaster tasks.json for this repo.
131- Requirements:
132- - Output must be TaskMaster format with tasks[] and metadata.
133- - Include 3-7 small, actionable tasks with acceptance criteria.
134- - Use IETF 2119 MUST/SHOULD/MAY in acceptance criteria.
135- - Set metadata.project and metadata.branchName appropriately.
136- EOF
137- echo " "
138- echo " Then re-run: ./ralph.sh --agent <amp|claude|codex> [max_iterations]"
143+ show_task_creation_instructions
139144 exit 1
140145fi
141146
156161TASKS_CHECK_EXIT=$?
157162if [[ $TASKS_CHECK_EXIT -ne 0 ]]; then
158163 warn " TaskMaster tasks.json is empty or invalid; nothing to do."
159- echo " "
160- echo " To create tasks with the prd skill, run your designated agent with this prompt:"
161- echo " "
162- cat << 'EOF '
163- Use the prd skill to generate TaskMaster tasks.json for this repo.
164- Requirements:
165- - Output must be TaskMaster format with tasks[] and metadata.
166- - Include 3-7 small, actionable tasks with acceptance criteria.
167- - Use IETF 2119 MUST/SHOULD/MAY in acceptance criteria.
168- - Set metadata.project and metadata.branchName appropriately.
169- EOF
170- echo " "
171- echo " Then re-run: ./ralph.sh --agent <amp|claude|codex> [max_iterations]"
164+ show_task_creation_instructions
172165 exit 1
173166fi
174167
0 commit comments