redhat-developer / redhat-developer/rhdh-plugins
RHDH plugin for fetching and extracting OCI skills images build via 'skillctl' CLI
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 48
- Forks
- 120
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 337
Description
Reference JIRA: https://redhat.atlassian.net/browse/RHIDP-16943
Description
build a typescript plugin that via code can fetch and process OCI skills images built by https://github.com/redhat-et/skillimageConnect your Github account
As a starting reference, see if the nodejs based image client at https://github.com/oras-project/rust-oci-client-nodeConnect your Github account can serve as either an imported library or a reference implementation that can be copy/pasted into the new RHDH plugin build
Acceptance Criteria
-
running the plugin via the ‘yarn dev’ or ‘yarn start’ command in your IDE, create a plugin that takes image refs as configuration, and fetches the configured images
-
confirm if the image meets the format specified by https://github.com/redhat-et/skillimage
- one such image is quay.io/gabemontero/hello-world-skill:1.0.0-draft
- golang code from skillimage that inspects images is at https://github.com/redhat-et/skillimage/blob/main/pkg/oci/inspect.go
- typescript code that pulls images is shown at https://github.com/oras-project/rust-oci-client-node#usage
-
extract the skillimage.yaml and SKILLS.md files onto local storage,
- see https://github.com/redhat-developer/rhdh-plugins/blob/main/workspaces/ai-integrations/plugins/catalog-techdoc-url-reader-backend/src/plugin.ts#L40 and https://github.com/redhat-developer/rhdh-plugins/blob/main/workspaces/ai-integrations/plugins/catalog-techdoc-url-reader-backend/src/plugin.ts#L68-L99 for examples of how to store files locally form a RHDH plugin
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the catalog-techdoc-url-reader-backend plugin.ts examples for local storage, then compare skillimage/pkg/oci/inspect.go with the rust-oci-client-node usage reference. Build the RHDH plugin around configured image references and verify it with quay.io/gabemontero/hello-world-skill:1.0.0-draft. Done means the plugin runs via yarn dev or yarn start, validates the image format, and stores skillimage.yaml and SKILLS.md locally.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, typescript
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100