Skip to content

install: support skills published as zip archives over HTTPS #883

Open

Description

@salmonumbrella

Found by running v0.30.6 and reading internal/install/source.go at 08ecb7a.

The situation

Some publishers ship skills only as zip files, with no Git repo behind them. Z.ai's legal kit for GLM-5.3-FlashX-Legal is one: 33 skills, each its own zip, listed on https://docs.z.ai/guides/legal-mcp. For example:

https://autoglm-public-oss.z.ai/autoclaw/autoclaw-skills/case-brief-1.0.0.zip

Each zip holds a single <name>/SKILL.md folder, so it's a normal skill once unpacked.

Current behavior

ParseSource knows four source types: local path, GitHub, Git HTTPS and Git SSH (source.go#L94-L103). Any other https:// URL matches gitHTTPSPattern (#L158) and goes to parseGitHTTPS (#L277-L279), so the zip gets cloned:

$ skillshare install https://autoglm-public-oss.z.ai/autoclaw/autoclaw-skills/case-brief-1.0.0.zip --dry-run -g
✗ failed to clone repository: repository 'https://autoglm-public-oss.z.ai/autoclaw/autoclaw-skills.git/' not found (nested GitLab fallback also failed: repository 'https://autoglm-public-oss.z.ai/autoclaw/autoclaw-skills/case-brief-1.0.0.zip.git/' not found)

What works today, and why it is not enough

Download and unzip by hand, then install the folder as a local path or drop it into the source dir. That works, but skillshare then only knows a local folder. It has no idea the skill came from a URL, so update and check can't refetch it or tell that it changed. For 33 zips that means a separate script outside skillshare just to keep them current, which is the part skillshare already does well for Git sources.

Request

Accept an HTTPS URL to a .zip (and probably .tar.gz) as an archive source:

  • download it with a size cap and the usual path-safety checks (reject .. entries, absolute paths and symlinks that escape), unpack to a temp dir, then reuse the existing local-path discovery, selection (-s, --into, --name) and audit
  • record the URL and the archive's sha256 in the skill's metadata
  • skillshare update re-downloads that URL and reinstalls only when the hash changed, and check reports the change

Out of scope: discovering newer versions when the publisher bumps the version in the filename, as Z.ai does. Re-running install with the new URL is fine for that.

Suggested tests

  • ParseSource classifies https://host/path/x.zip as an archive source, not Git HTTPS
  • install from an httptest server serving a zip with one skill; a zip with a ../evil entry is rejected
  • update against an unchanged zip is a no-op, and against changed bytes it reinstalls

Activity

  1. added
    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

Labels

feature

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions