Skip to content

Add non-interactive --repo and --skill options to remove command#3

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/remove-individual-repo-or-skill
Draft

Add non-interactive --repo and --skill options to remove command#3
Copilot wants to merge 2 commits intomainfrom
copilot/remove-individual-repo-or-skill

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 30, 2026

The remove command was interactive-only, requiring a checkbox prompt even when the target repo or skill was already known.

Changes

  • skillup/cli.py

    • Extracted _remove_skill() helper to deduplicate filesystem removal + lock update logic
    • Added --repo option: removes all skills from a tracked repo without prompting
    • Added --skill/-s option (repeatable, requires --repo): removes one or more specific skills non-interactively
    • Interactive checkbox mode preserved when no options are provided
  • tests/test_remove.py — new test module covering all non-interactive paths: full-repo removal, single/multi-skill removal, unknown repo/skill errors, and filesystem directory cleanup

  • README.md — updated "Remove skills" section with all three usage modes

Usage

skillup remove                                         # interactive (unchanged)
skillup remove --repo owner/repo                       # remove entire repo
skillup remove --repo owner/repo --skill pdf           # remove one skill
skillup remove --repo owner/repo --skill pdf --skill summarize  # remove multiple

Copilot AI linked an issue Apr 30, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Remove individual repository or skill Add non-interactive --repo and --skill options to remove command Apr 30, 2026
Copilot AI requested a review from aersam April 30, 2026 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove individual repo or skill

2 participants