Skip to content

Commit 9528e31

Browse files
committed
fix(skill): update updating skill to use pnpm run update and check --all
- Use `pnpm run update` instead of fallback to `pnpm update` - Add `pnpm run fix --all` before validation - Change `pnpm run check` to `pnpm run check --all`
1 parent 47dff65 commit 9528e31

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

.claude/skills/updating/SKILL.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Your task is to update all npm dependencies to their latest versions, ensuring a
1616
This skill updates npm packages for security patches, bug fixes, and new features.
1717

1818
**Update Targets:**
19-
- npm packages via `pnpm run update` or `pnpm update`
19+
- npm packages via `pnpm run update`
2020
</context>
2121

2222
<constraints>
@@ -71,23 +71,19 @@ git status --porcelain
7171
### Phase 2: Update npm Packages
7272

7373
<action>
74-
Run pnpm update to update npm dependencies:
74+
Run pnpm run update to update npm dependencies:
7575
</action>
7676

7777
```bash
78-
# Update npm packages (use pnpm run update if script exists, otherwise pnpm update)
79-
if grep -q '"update"' package.json; then
80-
pnpm run update
81-
else
82-
pnpm update
83-
fi
78+
# Update npm packages
79+
pnpm run update
8480

8581
# Check if there are changes
8682
if [ -n "$(git status --porcelain pnpm-lock.yaml package.json)" ]; then
8783
git add pnpm-lock.yaml package.json
8884
git commit -m "chore: update npm dependencies
8985
90-
Updated npm packages via pnpm update."
86+
Updated npm packages via pnpm run update."
9187
echo "npm packages updated"
9288
else
9389
echo "npm packages already up to date"
@@ -108,7 +104,8 @@ if [ "$CI_MODE" = "true" ]; then
108104
echo "Commits created - ready for push by CI workflow"
109105
else
110106
echo "Interactive mode: Running full validation..."
111-
pnpm run check
107+
pnpm run fix --all
108+
pnpm run check --all
112109
pnpm test
113110
fi
114111
```

0 commit comments

Comments
 (0)