Skip to content

Commit 70a1c16

Browse files
committed
chore(ci): improve Claude prompt structure in weekly-update
1 parent f4ac636 commit 70a1c16

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

.github/workflows/weekly-update.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,28 @@ jobs:
8181
set +e
8282
pnpm exec claude --print --dangerously-skip-permissions \
8383
--model sonnet \
84-
"/updating - Run the updating skill to update all dependencies. Create atomic commits for each update. You are running in CI mode - skip builds and tests. Do not push or create a PR." \
84+
"$(cat <<'PROMPT'
85+
/updating
86+
87+
<context>
88+
You are an automated CI agent in a weekly dependency update workflow.
89+
Git is configured with GPG signing. A branch has been created for you.
90+
</context>
91+
92+
<instructions>
93+
Update all dependencies to their latest versions.
94+
Create one atomic commit per dependency update with a conventional commit message.
95+
Leave all changes local — the workflow handles pushing and PR creation.
96+
Skip running builds, tests, and type checks — CI runs those separately.
97+
</instructions>
98+
99+
<success_criteria>
100+
Each updated dependency has its own commit.
101+
The lockfile is consistent with package.json changes.
102+
No uncommitted changes remain in the working tree.
103+
</success_criteria>
104+
PROMPT
105+
)" \
85106
2>&1 | tee claude-output.log
86107
CLAUDE_EXIT=${PIPESTATUS[0]}
87108
set -e

0 commit comments

Comments
 (0)