Skip to content

Add OCI skills media types, constants, and platform types#17

Merged
JAORMX merged 1 commit intomainfrom
oci-skills-mediatypes
Feb 6, 2026
Merged

Add OCI skills media types, constants, and platform types#17
JAORMX merged 1 commit intomainfrom
oci-skills-mediatypes

Conversation

@JAORMX
Copy link
Contributor

@JAORMX JAORMX commented Feb 6, 2026

Summary

  • Introduce oci/skills package with OCI media types, annotation/label constants, and data structures for ToolHive skill artifacts
  • Port from Skillet's internal/infrastructure/oci/mediatypes.go with namespace changes (dev.toolhive.skills.*), bundle removal, and import-shadowing fix
  • Add doc.go with Alpha stability notice following httperr/doc.go pattern
  • Comprehensive table-driven tests with testify (100% error-path coverage)

This is PR 1 of 2 for stacklok/toolhive-core#14. PR 2 (store + interfaces) depends on types defined here.

Part of epic: stacklok/stacklok-epics#239

Test plan

  • task lint — 0 issues
  • task test — all pass with -race
  • task license-check — SPDX headers valid
  • Reviewer: verify constant namespaces match dev.toolhive.skills.* convention
  • Reviewer: confirm no bundle-related code carried over from Skillet

🤖 Generated with Claude Code

Introduce the oci/skills package with OCI media types, annotation/label
constants, and data structures for ToolHive skill artifacts. This is the
foundation for skill packaging, registry push/pull, and local storage.

Ref: #14

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@JAORMX JAORMX merged commit d1c91d9 into main Feb 6, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants