Skip to content

feat(skills): add publish subcommand for skills registry [CRF-1144]#241

Merged
mfauzaan merged 1 commit into
mainfrom
CRF-1144
May 11, 2026
Merged

feat(skills): add publish subcommand for skills registry [CRF-1144]#241
mfauzaan merged 1 commit into
mainfrom
CRF-1144

Conversation

@amirulabu

@amirulabu amirulabu commented May 6, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds wukong skills publish — an interactive wizard for uploading a local skill from .agents/skills/<name>/SKILL.md to the internal skills registry via the new publishSkill GraphQL mutation on wukong-api-proxy.

Jira: CRF-1144[CLI] wukong skills push — Publish a local skill to the registry

Behavior

Interactive wizard that guides the user through publishing a skill:

  • Discovers local skills under .agents/skills/<name>/SKILL.md
  • Prompts for skill slug and commit message
  • Validates SKILL.md frontmatter before publishing
  • Pushes to the GitHub registry under <skill-slug>/SKILL.md
  • Maps known server errors to friendly messages
  • Confirms success and outputs the published location

Changes

  • SDK: hand-patch schema.json with publishSkill + SkillPublishResult; add PublishSkill mutation and publish_skill SDK method.
  • CLI: WKClient wrapper with api_event telemetry; new interactive publish.rs handler.
  • Docs + completion snapshots updated.

Test plan

  • cargo build succeeds
  • cargo test passes (snapshot updates verified)
  • wukong skills publish end-to-end against staging registry
  • Verify error messages for: missing SKILL.md, invalid frontmatter, slug already exists, auth failure

Adds `wukong skills publish` for uploading a local skill from
`.agents/skills/<name>/SKILL.md` to the internal skills registry repo
via the new `publishSkill` GraphQL mutation on wukong-api-proxy.

- SDK: hand-patch schema.json with publishSkill + SkillPublishResult,
  add PublishSkill mutation and `publish_skill` SDK method.
- CLI: WKClient wrapper with api_event telemetry, plus interactive
  publish.rs handler (skill discovery, slug + commit message prompts,
  frontmatter check, friendly error mapping for known server errors).
- Docs + completion snapshots updated.
@amirulabu amirulabu requested a review from mfauzaan May 7, 2026 01:42
@mfauzaan mfauzaan merged commit de06d79 into main May 11, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants