feat: add skills module updating project and global scopes - #16
Conversation
There was a problem hiding this comment.
Sorry @amanthanvi, you have reached your weekly rate limit of 500000 diff characters.
Please try again later or upgrade to continue using Sourcery
|
Warning Your free Security trial is over. An organization admin can activate billing to continue. |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Reviewer's GuideAdds a default-on Sequence diagram for skills update command resolutionsequenceDiagram
participant Updates
participant SkillsCLI
participant Npx
Updates->>SkillsCLI: Resolve-ApplicationCommand skills
alt skills CLI is available
Updates->>SkillsCLI: skills update --project --global
SkillsCLI-->>Updates: ExitCode
else skills CLI is unavailable
Updates->>Npx: Resolve-ApplicationCommand npx
alt npx is available
Updates->>Npx: npx --yes skills update --project --global
Npx-->>Updates: ExitCode
else neither command is available
Updates->>Updates: Resolve-MissingDependency
end
end
Flow diagram for skills module execution modesflowchart TD
Start["skills module invoked"] --> Resolve{"skills CLI available?"}
Resolve -->|Yes| Direct["skills update --project --global"]
Resolve -->|No| Npx{"npx available?"}
Npx -->|Yes| Fallback["npx --yes skills update --project --global"]
Npx -->|No| Missing{"--only skills?"}
Missing -->|No| Skip["Graceful skip"]
Missing -->|Yes| Error["Hard error"]
Direct --> Mode{"--non-interactive?"}
Fallback --> Mode
Mode -->|Yes| Confirm["Append --yes"]
Mode -->|No| Execute["Execute resolved command"]
Confirm --> Execute
Execute --> Result{"Dry-run?"}
Result -->|Yes| Print["Print command; do not execute"]
Result -->|No| Finish["Complete update"]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
Summary
Adds a default-on
skillsmodule that updates agent skills installed on the machine — both project-level and global scopes — matchingnpx skills update's interactive Both option without prompting.How it works
bothwhen both--projectand--globalare passed (verified in vercel-labs/skillsresolveUpdateScope), so the module runsskills update --project --globalwith no prompt.skillsonPATHfirst, thennpx --yes skillsfallback; neither present → graceful skip in default runs, hard error under--only skills.-n/--non-interactiveappends--yesso the CLI's upstream-deletion prompts are skipped gracefully.DRY RUN: npx --yes skills update --project --global) and executes nothing.Changes
updates: registry entry (betweenpiandmise) +module_skills/skills_update_argv.updates-main.ps1: registry entry +Invoke-ModuleSkills(same resolution order and flags).Validation
./scripts/lint.sh✅./scripts/test.sh✅ (Bash suite incl. 6 new skills cases + release guards)Summary by Sourcery
Add a cross-platform skills updater that refreshes project and global agent skills without prompting.
New Features:
skillsmodule for updating agent skills across project and global scopes on Bash and native Windows.skillsCLI execution with annpx --yes skillsfallback, including non-interactive and dry-run behavior.Enhancements:
Documentation:
Tests: