Skip to content

feat: add layer annotations for oras CLI compatibility #23

Closed

Description

@pavelanni

Problem

When pulling a skill artifact with oras pull, the CLI skips layers because they lack the org.opencontainers.image.title annotation on individual layer descriptors:

$ oras pull quay.io/docsclaw/skill-policy-comparator:1.0.0
✓ Skipped  application/vnd.docsclaw.skill.card.v1+yaml
✓ Skipped  application/vnd.agentskills.skill.content.v1.tar+gzip
Skipped pulling layers without file name in "org.opencontainers.image.title"

Users must fall back to oras copy --to-oci-layout which produces an OCI layout directory instead of extracting files directly.

Root cause

In internal/oci/pack.go, we set org.opencontainers.image.title on the manifest annotations but not on individual layer descriptors. The oras pull command looks for the title annotation on each layer to determine the output filename.

Proposed fix

Add annotations to layer descriptors during Pack:

  • Layer 0 (SkillCard): org.opencontainers.image.title: skill.yaml
  • Layer 1 (content): org.opencontainers.image.title: <skill-name>.tar.gz
  • Config blob: org.opencontainers.image.title: config.json

This follows the ORAS artifact guidance for making layers pullable as named files.

After this fix, oras pull would extract files directly:

$ oras pull quay.io/docsclaw/skill-policy-comparator:1.0.0
✓ Pulled  skill.yaml
✓ Pulled  policy-comparator.tar.gz

Impact

This enables a workflow where users can download skills using the standard oras CLI without needing docsclaw installed — useful for personal agents, CI/CD pipelines, and environments where installing docsclaw is not practical.

Scope

  • Modify Pack() in internal/oci/pack.go to add title annotations to layer descriptors
  • Only affects artifact mode (not --as-image which uses standard OCI image layer types)
  • No breaking changes to existing artifacts (annotations are additive)

Activity

  1. added 4 commits that reference this issue on Apr 14, 2026
    287aaa1
    0d9737e
    495ea6c
    e847034
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions