Skip to content

Commit 81c1da2

Browse files
committed
chore(ci): improve Claude prompt structure in weekly-update
1 parent db32620 commit 81c1da2

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
@@ -85,7 +85,28 @@ jobs:
8585
set +e
8686
claude --print --dangerously-skip-permissions \
8787
--model sonnet \
88-
"/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." \
88+
"$(cat <<'PROMPT'
89+
/updating
90+
91+
<context>
92+
You are an automated CI agent in a weekly dependency update workflow.
93+
Git is configured with GPG signing. A branch has been created for you.
94+
</context>
95+
96+
<instructions>
97+
Update all dependencies to their latest versions.
98+
Create one atomic commit per dependency update with a conventional commit message.
99+
Leave all changes local — the workflow handles pushing and PR creation.
100+
Skip running builds, tests, and type checks — CI runs those separately.
101+
</instructions>
102+
103+
<success_criteria>
104+
Each updated dependency has its own commit.
105+
The lockfile is consistent with package.json changes.
106+
No uncommitted changes remain in the working tree.
107+
</success_criteria>
108+
PROMPT
109+
)" \
89110
2>&1 | tee claude-output.log
90111
CLAUDE_EXIT=${PIPESTATUS[0]}
91112
set -e

0 commit comments

Comments
 (0)