Skip to main content

Module bundle

Module bundle 

Source
Expand description

Skill bundle import/export

Supports zip-based packaging of skills for distribution, version management, and inline bundle injection. Follows OpenAI Skills API packaging patterns:

  • Safe zip extraction with path traversal protection
  • Size limits (50MB compressed, 25MB per file, 500 files max)
  • Manifest validation after extraction
  • Versioned storage layout

Structs§

ImportedSkillInfo
Result of importing a skill bundle
SkillStoreIndex
Skill store index for tracking versions
SkillVersionIndex

Constants§

MAX_BUNDLE_SIZE
Maximum compressed bundle size (50 MB)
MAX_FILE_COUNT
Maximum file count per bundle
MAX_FILE_SIZE
Maximum uncompressed file size (25 MB)

Functions§

export_skill_bundle
Export a skill directory to a zip bundle (bytes)
import_inline_bundle
Import a skill from base64-encoded zip (inline bundle)
import_skill_bundle
Import a skill bundle (zip bytes) into the skill store
load_skill_index
Load the skill store index