microsoft / microsoft/win-dev-skills
Replace hardcoded brushes in design skill with CLI command fetching brushes.json from WinUI Gallery
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 442
- Forks
- 33
- Avg merge
- 2h 59m
- Merged PRs (30d)
- 11
Description
The winui-design skill currently contains a hardcoded list of theme brushes. This list can drift from the canonical source and requires manual maintenance whenever the WinUI brush set changes.
Proposal
Replace the hardcoded brush list with a CLI command that fetches brushes.json directly from the WinUI Gallery repository.
Benefits
- Single source of truth (WinUI Gallery)
- No manual maintenance when brushes are added/removed/renamed
- Always up-to-date with the latest WinUI brush definitions
Considerations
- Pin to a known-good commit/ref (or allow override) for reproducibility
- Handle offline / network-failure scenarios with a cached fallback
- Decide whether to fetch at skill-invocation time or via an explicit refresh command
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the winui-design skill and comparing its hardcoded brushes with the referenced WinUI Gallery brushes.json. Define the CLI entry point and how a pinned ref, override, refresh timing, and cached offline fallback should work. Done means the skill uses the canonical brush data without manual list maintenance and handles network failures reproducibly.
Written by the indexing model from the issue text.
Assessment
- Domain
- cli, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100