Skip to content

feat(opencode): oc kit CLI (list, validate) on Phase 1 domain model #8

Closed

Description

@qkhalk

Goal

Build the oc kit CLI on top of the Phase 1 OC Kit domain model: oc kit list
(enumerate kits/skills/agents/workflows/hooks from the registry) and
oc kit validate (run the schema + cross-reference validator).

Why

Phase 1 (PR #2) shipped the domain model, registry, manifest, resolver, and
config schema but no user-facing command. Phase 2 exposes that model so a user
can inspect what is installed and catch broken cross-references (e.g. a skill
referencing a missing agent) before relying on it.

Scope

  • packages/opencode/src/ockit/cli.ts: oc kit list and oc kit validate
    subcommands wired into the opencode CLI.
  • packages/opencode/src/ockit/validator.ts: real checks — unique ids and
    cross-reference validation (the earlier stub was replaced with actual checks
    in 57c0889).
  • Tests for the validator and the CLI surface.

Acceptance

  • oc kit list prints every registered artifact; oc kit validate reports
    duplicate ids and dangling references and exits nonzero when any are found.
  • Unit tests for the validator pass in the CI container (root-skipped where
    POSIX permission assertions do not apply).

Activity

  1. self-assigned this
    on Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions