feat(skill): add architecture, yaml, moderator, list subcommands (#517)

This commit is contained in:
2026-05-25 22:42:05 +08:00
parent 8123399189
commit 108f134020
7 changed files with 311 additions and 1 deletions
+35 -1
View File
@@ -15,7 +15,7 @@ import {
} from "./commands/cas.js";
import { cmdLogClean, cmdLogList, cmdLogShow } from "./commands/log.js";
import { cmdSetup, cmdSetupInteractive } from "./commands/setup.js";
import { cmdSkillCli } from "./commands/skill.js";
import { cmdSkillArchitecture, cmdSkillCli, cmdSkillList, cmdSkillModerator, cmdSkillYaml } from "./commands/skill.js";
import { cmdStepFork, cmdStepList, cmdStepRead, cmdStepShow } from "./commands/step.js";
import {
cmdThreadCancel,
@@ -473,14 +473,48 @@ For more information, see: uwf help thread list
});
const skill = program.command("skill").description("Built-in skill references for agents");
skill.addHelpCommand(false);
skill
.command("cli")
.description("Print a markdown reference of all uwf commands")
.action(() => {
// biome-ignore lint/nursery/noConsole: CLI user-facing output
console.log(cmdSkillCli());
});
skill
.command("architecture")
.description("Print the architecture reference")
.action(() => {
// biome-ignore lint/nursery/noConsole: CLI user-facing output
console.log(cmdSkillArchitecture());
});
skill
.command("yaml")
.description("Print the workflow YAML schema reference")
.action(() => {
// biome-ignore lint/nursery/noConsole: CLI user-facing output
console.log(cmdSkillYaml());
});
skill
.command("moderator")
.description("Print the moderator reference")
.action(() => {
// biome-ignore lint/nursery/noConsole: CLI user-facing output
console.log(cmdSkillModerator());
});
skill
.command("list")
.description("List all available skill names")
.action(() => {
// biome-ignore lint/nursery/noConsole: CLI user-facing output
console.log(cmdSkillList().join("\n"));
});
program
.command("setup")
.description("Configure provider, model, and agent")