Skip to content

Refactor install/uninstall scripts to share common code via scripts/libs.sh #6

Description

@kluzny

`scripts/install.sh` and `scripts/uninstall.sh` duplicate several blocks verbatim:

  • Path variables (`REPO_ROOT`, `SKILLS_SRC`, `SKILLS_DEST`, `AGENTS_SRC`, `AGENTS_DEST`)
  • Flag state (`DRY_RUN`, `SKILL_TARGETS`, `AGENT_TARGETS`) and the argument-parsing `for` loop
  • The `run()` dry-run wrapper

Extract these into a shared `scripts/libs.sh` and source it from each script. This reduces copy-paste drift and makes it easier to add new flags (e.g. future `--memory=` support) in one place.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions