Commit 1f2e06d
Add OCI skill packager using ocispec types
Implement the SkillPackager interface with deterministic OCI artifact
creation from skill directories. Uses canonical ocispec types from
github.com/opencontainers/image-spec for OCI 1.1 compliance.
Reads SKILL.md YAML frontmatter for metadata, creates per-platform
OCI configs (ocispec.Image) with skill metadata in labels, manifests
(ocispec.Manifest) with annotations, and multi-platform image indexes
(ocispec.Index). Uses digest.FromBytes for diff IDs and
specs.Versioned for schema version.
Security: rejects symlinks (files and directories), hardlinks, device
entries, and path traversal in filesystem reads. Nil store panics at
construction. Frontmatter capped at 64KB.
New dependencies: github.com/opencontainers/image-spec, gopkg.in/yaml.v3
Resolves: #16
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent be33c9c commit 1f2e06d
3 files changed
Lines changed: 1162 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | | - | |
29 | 29 | | |
0 commit comments