Skip to content

refactor: remove OCI skill management code (moved to skillimage) #38

Closed

Description

@pavelanni

Summary

Remove the OCI skill pack/push/pull/inspect functionality from DocsClaw. This code has been moved to the standalone skillimage project and its skillctl CLI.

What to remove

CLI commands (internal/cmd/)

File Command Replacement
skill_pack.go docsclaw skill pack skillctl pack
skill_push.go docsclaw skill push skillctl push
skill_pull.go docsclaw skill pull skillctl pull
skill_inspect.go docsclaw skill inspect skillctl inspect

OCI library (internal/oci/)

All files — the entire package:

  • pack.go, pack_test.go
  • push.go
  • pull.go, push_pull_test.go
  • inspect.go
  • media.go
  • extract_test.go

Dependencies (go.mod)

  • oras.land/oras-go/v2 — no longer needed after removal

What to keep

  • pkg/skills/ — skill discovery and loading from local directories (SKILL.md parsing). This is the runtime component that reads skills from disk regardless of how they got there.
  • examples/openshift/ — deployment manifests that reference skill images (these use skillctl or image volumes, not DocsClaw commands)
  • docs/demo/ — demo manifests referencing quay.io/skillimage/ images

Migration notes

  • Update any documentation that references docsclaw skill commands to point to skillctl
  • The deploy/agent-with-skills.yaml init container example should use ghcr.io/redhat-et/skillctl:latest instead of the docsclaw image for skill pulling
  • Consider adding a note in docsclaw skill --help (if keeping the subcommand) that directs users to skillctl

Related

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