feat(cli): reorganize help categories - merge Skill Lifecycle into Publish & Manage

- Merge 'Skill Lifecycle' commands (archive, hide, unhide) into 'Publish & Manage'
- Move 'reviews' from My Profile to Publish & Manage (related to publish workflow)
- Rename section from 'Publish & Content' to 'Publish & Manage'

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)
Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
chenbaowang 2026-04-24 16:32:12 +08:00
parent 0bfcb028c2
commit 5caf0b360b
2 changed files with 25 additions and 9 deletions

View file

@ -50,7 +50,6 @@ function buildTopLevelHelp(version: string): string {
sections.push(formatSection("Discovery", [
{ cmd: "explore", desc: "Browse or search skills from the registry", alias: "find, find-skills, search" },
{ cmd: "inspect <skill>", desc: "View skill metadata and versions", alias: "info, view" },
{ cmd: "resolve <skill>", desc: "Resolve the latest version of a skill" },
]));
sections.push("");
@ -60,7 +59,6 @@ function buildTopLevelHelp(version: string): string {
{ cmd: "update [skill]", desc: "Update installed skills from their source", alias: "up" },
{ cmd: "uninstall [skill]", desc: "Uninstall a skill from local agent", alias: "un" },
{ cmd: "list", desc: "List installed skills", alias: "ls" },
{ cmd: "check", desc: "Check installed skills against lock file" },
]));
sections.push("");
@ -68,20 +66,15 @@ function buildTopLevelHelp(version: string): string {
{ cmd: "me skills", desc: "List your published skills", alias: "me ls" },
{ cmd: "me stars", desc: "List your starred skills" },
{ cmd: "me namespaces", desc: "List namespaces you have access to" },
{ cmd: "me submissions", desc: "List your review submissions" },
{ cmd: "rating <skill>", desc: "View your rating for a skill" },
{ cmd: "reviews", desc: "List your review submissions", alias: "reviews my, reviews submissions" },
]));
sections.push("");
sections.push(formatSection("Publish & Content", [
{ cmd: "init [name]", desc: "Create a new SKILL.md template" },
sections.push(formatSection("Publish & Manage", [
{ cmd: "publish [path]", desc: "Publish a skill to SkillHub registry" },
{ cmd: "sync [path]", desc: "Scan and publish all skills from a directory" },
{ cmd: "delete <skill>", desc: "Delete a skill you own", alias: "del, unpublish" },
]));
sections.push("");
sections.push(formatSection("Skill Lifecycle", [
{ cmd: "archive <skill>", desc: "Archive a skill you own" },
{ cmd: "hide <skill>", desc: "Hide a skill" },
{ cmd: "unhide <skill>", desc: "Unhide a skill" },

View file

@ -113,4 +113,27 @@ export function registerMe(program: Command) {
process.exitCode = 1;
}
});
me
.command("submissions")
.description("List your review submissions")
.action(async () => {
try {
const token = await requireToken();
const config = loadConfigFromProgram(program);
const client = new ApiClient({ baseUrl: config.registry, token, debug: program.opts().debug });
const submissions = await client.get<{ id: number; skillSlug: string; skillDisplayName: string; namespace: string; version: string; status: string; createdAt: string }[]>("/api/v1/reviews/my-submissions");
if (!submissions || submissions.length === 0) {
console.log("No review submissions.");
return;
}
for (const r of submissions) {
info(`${r.skillDisplayName} (${r.skillSlug})`);
dim(` ${r.namespace} · v${r.version} · ${r.status} · ${r.createdAt}`);
}
} catch (e: any) {
error(`Failed: ${e.message}`);
process.exitCode = 1;
}
});
}