Skip to content

install --json: separate JSON output from overwrite consent #877

Closed

Description

@salmonumbrella

Found by source inspection at f1faa4b; no repro was executed.

Current behavior

applyInstallJSONDefaults sets Force = true whenever --json is given (install.go#L253-L262). Running skillshare install <source> --json therefore overwrites a skill or agent that is already installed.

This is documented. The help text says --json "permits overwrite" (install.go#L678), so this is not a regression. Audit blocking still applies: --json sets only Force, not AuditOverride (install.go#L103-L104).

Request

Make the output format independent of destructive consent:

  • --json alone reports an already-installed skill or agent as skipped or failed in the JSON result and leaves it unchanged.
  • --json --force overwrites, as --force does without --json.

Scripts that use --json to get machine-readable output would then not replace local copies unless they ask to. This changes behavior that is documented today, so it probably needs a release note, or a deprecation period if the maintainer prefers one.

Suggested regression test

Install a skill, change a file in the installed copy, then run install <same source> --json. Assert the change is still there and the JSON result reports the skill as not overwritten. Repeat with --force and assert the overwrite.

Activity

  1. self-assigned this
    on Nov 13, 2026
  2. added
    feature
    bug
    and removed
    feature
    on Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions