extsource

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 4, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package extsource resolves non-git extension sources (zip archives, bare SKILL.md URLs) into a local directory that skill/plugin managers can install.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractZip

func ExtractZip(zipPath, destDir string) error

ExtractZip unzips zipPath into the existing directory destDir. It rejects any entry whose path escapes destDir (zip-slip), any absolute path, and any symlink entry, so a crafted archive cannot write outside destDir.

func FetchSKILLURL

func FetchSKILLURL(url, destDir string) error

FetchSKILLURL downloads a single SKILL.md from url into destDir/SKILL.md. It is the agentskills.io "bare skill file" form; the caller installs destDir as a one-skill pack.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL