Skip to content

Commit 39fc856

Browse files
ryzizubclaude
andauthored
feat: add argument-hint + $ARGUMENTS to sdk-upgrade and analysis-upgrade skills (#122)
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 0f3577e commit 39fc856

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

skills/dart-flutter-sdk-upgrade/SKILL.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ when_to_use: >
99
Use when upgrading the Flutter or Dart SDK version in any VGV repository. Trigger on
1010
phrases like "bump Flutter to 3.x", "update SDK constraints", "upgrade Dart SDK",
1111
"update CI Flutter version", "bump SDK version", or "prep the SDK upgrade PR".
12+
argument-hint: "[flutter-version]"
1213
allowed-tools: Read Glob Grep Edit Write Bash
1314
model: sonnet
1415
effort: medium
@@ -46,9 +47,10 @@ for the target Flutter release before editing any files.
4647
2. Find the target Flutter stable release
4748
3. Note the Dart version listed alongside it
4849

49-
If the user has not specified a Flutter version, look up the latest Flutter stable release
50-
from that same page. For pure Dart packages (no Flutter dependency), the Dart version is
51-
whatever the user specifies or the latest stable — no Flutter mapping needed.
50+
The target version comes from `$ARGUMENTS` (e.g. `3.41.0`) when the user supplied one. If
51+
`$ARGUMENTS` is empty, look up the latest Flutter stable release from that same page. For pure
52+
Dart packages (no Flutter dependency), the Dart version is whatever `$ARGUMENTS` specifies or
53+
the latest stable — no Flutter mapping needed.
5254

5355
Confirm both resolved versions with the user before editing files.
5456

skills/very-good-analysis-upgrade/SKILL.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
name: very-good-analysis-upgrade
33
description: Upgrade very_good_analysis lint package to new version across Dart/Flutter projects. Handles version bump, lint fixes, and PR creation.
4+
argument-hint: "[version]"
45
allowed-tools: Read Glob Grep Bash
56
model: sonnet
67
effort: medium
@@ -29,8 +30,9 @@ These standards apply to every `very_good_analysis` upgrade.
2930

3031
Confirm two things before proceeding:
3132

32-
1. **Target version** — if the user didn't specify a version, fetch the latest from the pub.dev API
33-
and use that. Don't ask — just look it up and proceed:
33+
1. **Target version** — use `$ARGUMENTS` as the target version when the user supplied one
34+
(e.g. `10.0.0`). If `$ARGUMENTS` is empty, fetch the latest from the pub.dev API and use
35+
that. Don't ask — just look it up and proceed:
3436

3537
```bash
3638
curl -s https://pub.dev/api/packages/very_good_analysis | jq -r '.latest.version'

0 commit comments

Comments
 (0)