Agent skill
update-gpui
Update GPUI submodule to the latest commit. Use when asked to update, bump, or upgrade the gpui dependency.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/update-gpui
SKILL.md
Instructions
Update the GPUI git submodule and all related Cargo.toml references to the latest commit on origin/main.
Steps
-
Fetch latest from remote:
bashcd vendor/gpui && git fetch origin -
Identify target commit: Use the latest commit on
origin/main(or a specific commit/branch if the user provides one via$ARGUMENTS).bashgit log --oneline origin/main -5 -
Update submodule pointer:
bashgit -C vendor/gpui checkout <commit-hash> -
Update
Cargo.toml: Find allrev = "..."entries pointing to the gpui git repo in the workspaceCargo.tomland update them to the new commit hash. The entries look like:tomlgpui = { git = "https://github.com/BumpyClock/gpui", rev = "<old-hash>", ... } gpui_platform = { git = "https://github.com/BumpyClock/gpui", rev = "<old-hash>", ... }Update both
revvalues to the new short commit hash (first 10 chars). -
Build and verify:
bashcargo build -
If build fails: Inspect errors and fix any breaking API changes in the codebase. Common issues:
- Borrow checker issues from upstream tree-sitter/API changes
- New/removed/renamed methods in gpui APIs
- Changed trait signatures
-
Run clippy:
bashcargo clippy -- --deny warnings -
Report summary: Show old commit, new commit, what changed (list new commits), and whether build/clippy passed.
Notes
- The submodule is at
vendor/gpuiand trackshttps://github.com/BumpyClock/gpui. - The
Cargo.tomlat the workspace root has[workspace.dependencies]entries forgpuiandgpui_platformthat pin to a specificrev. - Always update both the submodule pointer AND the Cargo.toml rev in lockstep.
- If
$ARGUMENTScontains a specific commit hash or branch, use that instead oforigin/main.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?