Skip to content

Commit 0b7e50f

Browse files
committed
chore: add afk-ralph and ralph-once scripts for task automation
- Introduced two new scripts: afk-ralph.sh for iterative task completion and ralph-once.sh for single task execution. - Both scripts utilize the claude command to manage tasks defined in PRD and progress files, enhancing workflow efficiency.
1 parent a66ea3b commit 0b7e50f

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

skills/ralph/afk-ralph.sh

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/bash
2+
set -e
3+
4+
if [ -z "$1" ]; then
5+
echo "Usage: $0 <iterations>"
6+
exit 1
7+
fi
8+
9+
for ((i=1; i<=$1; i++)); do
10+
result=$(docker sandbox run claude --permission-mode acceptEdits -p "@PRD.md @progress.txt \
11+
1. Find the highest-priority task and implement it. \
12+
2. Run your tests and type checks. \
13+
3. Update the PRD with what was done. \
14+
4. Append your progress to progress.txt. \
15+
5. Commit your changes. \
16+
ONLY WORK ON A SINGLE TASK. \
17+
If the PRD is complete, output <promise>COMPLETE</promise>.")
18+
19+
echo "$result"
20+
21+
if [[ "$result" == *"<promise>COMPLETE</promise>"* ]]; then
22+
echo "PRD complete after $i iterations."
23+
exit 0
24+
fi
25+
done

skills/ralph/ralph-once.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
claude --permission-mode acceptEdits "@PRD.md @progress.txt \
4+
1. Read the PRD and progress file. \
5+
2. Find the next incomplete task and implement it. \
6+
3. Commit your changes. \
7+
4. Update progress.txt with what you did. \
8+
ONLY DO ONE TASK AT A TIME."

0 commit comments

Comments
 (0)