Skip to content

🀯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

πŸ› fix(builtin-skills): align lobehub skill CLI references with the real lh commands (#20088)

Arvin Xu42495a46fc0e
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index c00ac97577d..9ab62acad78 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -77,8 +77,8 @@ jobs:
run: pnpm install
working-directory: apps/cli
- - name: Test CLI build configuration and bundle
- run: bunx vitest run --config vitest.config.mts --silent='passed-only' tsdown.config.test.ts bundle.test.ts
+ - name: Test CLI build configuration, bundle and model-facing docs
+ run: bunx vitest run --config vitest.config.mts --silent='passed-only' tsdown.config.test.ts bundle.test.ts src/modelFacingDocs.test.ts
working-directory: apps/cli
- name: Test packages with coverage
diff --git a/apps/cli/src/modelFacingDocs.test.ts b/apps/cli/src/modelFacingDocs.test.ts
new file mode 100644
index 00000000000..ebda81faf41
--- /dev/null
+++ b/apps/cli/src/modelFacingDocs.test.ts
@@ -0,0 +1,183 @@
+import { readdirSync, readFileSync } from 'node:fs';
+import path from 'node:path';
+
+import type { Command } from 'commander';
+import { describe, expect, it } from 'vitest';
+
+import { createProgram } from './program';
+
+/**
+ * Prose that agents read and then copy into `lh` calls. When it names a command
+ * or flag the CLI no longer has, the model burns a round on `unknown command` /
+ * `unknown option` and often falls back to a worse path β€” so every `lh …`
+ * snippet in these files is checked against the real command tree.
+ */
+const repoRoot = path.resolve(__dirname, '../../..');
+const lobehubSkillDir = path.join(repoRoot, 'packages/builtin-skills/src/lobehub');
+
+const MODEL_FACING_FILES = [
+ path.join(lobehubSkillDir, 'content.ts'),
+ ...readdirSync(path.join(lobehubSkillDir, 'references'))
+ .filter((name) => name.endsWith('.ts') && !name.endsWith('.test.ts'))
+ .map((name) => path.join(lobehubSkillDir, 'references', name)),
+ path.join(repoRoot, 'apps/server/src/services/verify/executor.ts'),
+];
+
+const program = createProgram() as Command;
+
+const findSubcommand = (cmd: Command, name: string) =>
+ cmd.commands.find((sub) => sub.name() === name || sub.aliases().includes(name));
+
+/**
+ * Every `lh …` inline code span and every code-block command starting with
+ * `lh `, with backslash line continuations joined into one invocation.
+ */
+const extractSnippets = (source: string): string[] => {
+ const text = source.replaceAll('\\`', '`');
+ const snippets = new Set<string>();
+ for (const match of text.matchAll(/`((?:[^\n`]*?\s)?lh [a-z][^\n`]*)`/g)) snippets.add(match[1]);
+ const lines = text.split('\n');
+ for (let i = 0; i < lines.length; i++) {
+ let command = lines[i].trim();
+ if (!/^lh [a-z]/.test(command)) continue;
+ // Template-literal sources escape the continuation backslash as `\\`.
+ while (/\\+$/.test(command) && i + 1 < lines.length) {
+ command = `${command.replace(/\\+$/, '').trimEnd()} ${lines[++i].trim()}`;
+ }
+ snippets.add(command);
+ }
+ return [...snippets];
+};
+
+const checkSnippet = (snippet: string): string[] => {
+ const tokens = snippet.replace(/^.*?\blh /, '').split(/\s+/);
+ let cmd = program;
+ const commandPath: string[] = [];
+
+ let consumed = 0;
+ for (const token of tokens) {
+ if (cmd.commands.length === 0 || !/^[a-z][\w-]*$/.test(token)) break;
+ const sub = findSubcommand(cmd, token);
+ if (!sub) {
+ // A command that takes positional args may legitimately be followed by a word.
+ if (cmd.registeredArguments.length > 0) break;
+ return [`unknown command "lh ${[...commandPath, token].join(' ')}"`];
+ }
+ cmd = sub;
+ commandPath.push(token);
+ consumed += 1;
+ }
+ if (cmd === program) return [];
+
+ const problems: string[] = [];
+ // Match each flag on its own so an adjacent flag is never swallowed as the
+ // previous one's value; the following token is only inspected for arity.
+ for (const match of snippet.matchAll(/(?<![\w-])(--?[a-z][\w-]*)/gi)) {
+ const flag = match[1];
+ if (flag === '--help' || flag === '-h') continue;
+ const option = cmd.options.find((opt) => opt.long === flag || opt.short === flag);
+ if (!option) {
+ problems.push(`unknown option ${flag} on "lh ${commandPath.join(' ')}"`);
+ continue;
+ }
+ const next = snippet
+ .slice(match.index + flag.length)
+ .trim()
+ .split(/\s+/)[0];
+ if (option.required && (!next || next.startsWith('-') || next.startsWith(']'))) {
+ problems.push(`option ${flag} on "lh ${commandPath.join(' ')}" requires a value`);
+ }
+ }
+
+ // A bare `lh kb view` in prose names the command; only a written-out
+ // invocation (anything after the command path) must be complete.
+ const rest = tokens.slice(consumed).filter(Boolean);
+ if (rest.length === 0) return problems;
+
+ // Keep bracket context: a mandatory flag written as `[--flag <v>]` tells the
+ // model it may be omitted, which commander then rejects.
+ const used = new Set<string>();
+ const bracketed = new Set<string>();
+ for (const match of snippet.matchAll(/(?<![\w-])(--?[a-z][\w-]*)/gi)) {
+ const before = snippet.slice(0, match.index);
+ const depth = (before.match(/\[/g) ?? []).length - (before.match(/\]/g) ?? []).length;
+ (depth > 0 ? bracketed : used).add(match[1]);
+ }
+ for (const option of cmd.options) {
+ if (!option.mandatory || used.has(option.long!) || used.has(option.short!)) continue;
+ problems.push(
+ bracketed.has(option.long!) || bracketed.has(option.short!)
+ ? `required option ${option.long} on "lh ${commandPath.join(' ')}" is shown as optional`
+ : `missing required option ${option.long} on "lh ${commandPath.join(' ')}"`,
+ );
+ }
+
+ // Count positionals outside `[...]` groups, skipping flags and their values.
+ let depth = 0;
+ let positionals = 0;
+ for (let i = 0; i < rest.length; i++) {
+ const token = rest[i];
+ const opens = (token.match(/\[/g) ?? []).length;
+ const closes = (token.match(/\]/g) ?? []).length;
+ const optional = depth > 0 || token.startsWith('[');
+ depth += opens - closes;
+ if (optional) continue;
+ if (token.startsWith('-')) {
+ const option = cmd.options.find((opt) => opt.long === token || opt.short === token);
+ if (option?.required || option?.optional) i += 1;
+ continue;
+ }
+ positionals += 1;
+ }
+ const requiredArgs = cmd.registeredArguments.filter((arg) => arg.required).length;
+ if (positionals < requiredArgs) {
+ problems.push(
+ `missing required argument on "lh ${commandPath.join(' ')}" (expects ${requiredArgs}, got ${positionals})`,
+ );
+ }
+ return problems;
+};
+
+describe('model-facing lh CLI docs', () => {
+ it.each(MODEL_FACING_FILES.map((file) => [path.relative(repoRoot, file), file]))(
+ '%s only references commands and flags the CLI accepts',
+ (_label, file) => {
+ const problems = extractSnippets(readFileSync(file, 'utf8')).flatMap((snippet) =>
+ checkSnippet(snippet).map((problem) => `${problem} <- ${snippet}`),
+ );
+ expect(problems).toEqual([]);
+ },
+ );
+
+ it('flags a stale command and a stale option', () => {
+ expect(checkSnippet('lh config whoami')).toEqual(['unknown command "lh config"']);
+ expect(checkSnippet('lh eval run get --run-id <id>')).toEqual([
+ 'unknown option --run-id on "lh eval run get"',
+ 'missing required option --id on "lh eval run get"',
+ ]);
+ expect(checkSnippet('lh agent run -a <id> --replay')).toEqual([
+ 'option --replay on "lh agent run" requires a value',
+ ]);
+ expect(checkSnippet('lh whoami --json')).toEqual([]);
+ // An adjacent flag must be validated, not read as the previous flag's value.
+ expect(checkSnippet('lh usage --daily --stale')).toEqual([
+ 'unknown option --stale on "lh usage"',
+ ]);
+ expect(
+ checkSnippet('lh eval run-topic report-result --run-id <id> --topic-id <id> --score <n>'),
+ ).toEqual([
+ 'missing required option --correct on "lh eval run-topic report-result"',
+ 'missing required option --result-json on "lh eval run-topic report-result"',
+ ]);
+ expect(checkSnippet('lh kb upload <kbId> [--parent <folderId>]')).toEqual([
+ 'missing required argument on "lh kb upload" (expects 2, got 1)',
+ ]);
+ // A mandatory flag inside `[...]` reads as optional to the model.
+ expect(checkSnippet('lh plugin install -i <identifier> [--manifest <json>]')).toEqual([
+ 'required option --manifest on "lh plugin install" is shown as optional',
+ ]);
+ expect(checkSnippet('lh plugin install -i <identifier> --manifest <json>')).toEqual([]);
+ // A bare command name in prose is a reference, not an invocation.
+ expect(checkSnippet('lh kb view')).toEqual([]);
+ });
+});
diff --git a/apps/server/src/services/verify/__tests__/executor.test.ts b/apps/server/src/services/verify/__tests__/executor.test.ts
index 880503adcda..d8ea96e6198 100644
--- a/apps/server/src/services/verify/__tests__/executor.test.ts
+++ b/apps/server/src/services/verify/__tests__/executor.test.ts
@@ -172,6 +172,45 @@ describe('VerifyExecutorService', () => {
);
});
+ it('points a missing run-evidence item at a submit command it can run as-is', async () => {
+ mocks.runEnsureForOperation.mockResolvedValue({
+ id: 'run-1',
+ plan: [
+ {
+ id: 'shot-check',
+ index: 0,
+ onFail: 'auto_repair',
+ required: true,
+ title: 'Screenshot',
+ verifierConfig: {
+ requiredEvidence: [{ modality: 'image', scope: 'run_evidence', type: 'screenshot' }],
+ },
+ verifierType: 'llm',
+ },
+ ],
+ planConfirmedAt: new Date(),
+ });
+
+ await new VerifyExecutorService({} as never, 'user-1').execute({
+ deliverable: 'ui change',
+ goal: 'verify ui',
+ modelConfig: { model: 'model', provider: 'provider' },
+ operationId: 'builder-op-shot',
+ runVerifierAgent: vi.fn().mockResolvedValue({ verifierOperationId: 'verifier-op-shot' }),
+ });
+
+ expect(mocks.resultUpdateByCheckItem).toHaveBeenCalledWith(
+ 'run-1',
+ 'shot-check',
+ expect.objectContaining({
+ suggestion: expect.stringContaining(
+ 'lh acceptance run result submit --run run-1 --item shot-check',
+ ),
+ verdict: 'uncertain',
+ }),
+ );
+ });
+
it('routes file-backed text evidence to an agent that can inspect the stored artifact', async () => {
mocks.runEnsureForOperation.mockResolvedValue({
id: 'run-1',
diff --git a/apps/server/src/services/verify/executor.ts b/apps/server/src/services/verify/executor.ts
index 7f230a913a7..6f09cfa2227 100644
--- a/apps/server/src/services/verify/executor.ts
+++ b/apps/server/src/services/verify/executor.ts
@@ -281,7 +281,9 @@ export class VerifyExecutorService {
completedAt: new Date(),
confidence: 0,
status: 'failed',
- suggestion: `Capture and upload the missing evidence (${missing}) via \`lh verify upload-evidence\`.`,
+ // `result submit` needs a run selector; spell out this run and item so
+ // the recovery command can be run as-is.
+ suggestion: `Capture and upload the missing evidence (${missing}) via \`lh acceptance run result submit --run ${verifyRunId} --item ${item.id} --type <type> --file <path>\`.`,
toulmin: { limitation: `Required evidence not provided: ${missing}.` },
verdict: 'uncertain',
});
diff --git a/packages/builtin-skills/src/lobehub/content.ts b/packages/builtin-skills/src/lobehub/content.ts
index 07990f7913e..993999a0eef 100644
--- a/packages/builtin-skills/src/lobehub/content.ts
+++ b/packages/builtin-skills/src/lobehub/content.ts
@@ -19,8 +19,8 @@ Treat them as common knowledge β€” you never need to call any tool to discover t
1. **Answer identity questions directly.** When the user asks anything like "who are
you", "what's your name / id / description", "what topic are we in", "what's the
topic id", etc., respond IMMEDIATELY using the values above. Do **NOT** call
- \`runCommand\`, \`activateSkill\`, \`lh agent get\`, \`lh agent search\`, \`lh agent list\`,
- \`lh topic show\`, \`lh topic list\`, or any other tool to look up information that is
+ \`runCommand\`, \`activateSkill\`, \`lh agent view\`, \`lh agent list\`, \`lh topic view\`,
+ \`lh topic list\`, or any other tool to look up information that is
already in the table above. Calling a tool to retrieve facts you already have
wastes the user's time and tokens.
@@ -60,14 +60,18 @@ run commands.
| \`lh plugin\` | Plugin management |
| \`lh bot\` | Bot integration management (Discord, Slack, Telegram, etc.) |
| \`lh eval\` | Evaluation workflow management |
-| \`lh config\` | User info and usage statistics |
+| \`lh whoami\` / \`lh usage\` | User info and usage statistics (top-level commands, not a \`config\` module) |
# Usage Pattern
1. Read the reference file for the relevant module to learn detailed commands
2. Run commands via \`runCommand\` β€” the \`lh\` prefix is automatically handled
-3. Use \`--json\` flag on any command for structured output
-4. Use \`lh <module> --help\` for full command-line help
+3. Add \`--json\` for structured output on commands that support it (most \`list\` / \`view\`
+ commands do; many write commands do not)
+4. Use \`lh <module> <command> --help\` for the exact flags of a command
+5. If the CLI rejects a command or flag shown in these references (\`unknown command\` /
+ \`unknown option\`), the installed \`lh\` is a different version from this guide. Run
+ \`lh <module> <command> --help\` once and use what it lists β€” do not retry guessed variants
# Examples
@@ -90,7 +94,7 @@ lh agent run -a <agentId> -p "Summarize today's tasks"
# Important Notes
-- All commands support \`--json\` for machine-readable output
+- \`--json\` is available on most read commands; check \`--help\` before relying on it
- Use \`--yes\` to skip confirmation prompts on destructive operations
- IDs can be found via \`list\` commands
- For detailed usage of any module, read its reference file using \`readReference\`
diff --git a/packages/builtin-skills/src/lobehub/references/agent.ts b/packages/builtin-skills/src/lobehub/references/agent.ts
index c781aa35e6d..99986a95354 100644
--- a/packages/builtin-skills/src/lobehub/references/agent.ts
+++ b/packages/builtin-skills/src/lobehub/references/agent.ts
@@ -10,7 +10,7 @@ Manage agents (AI assistants with custom configurations).
- \`lh agent edit [agentId] [-t <title>] [-d <description>] [-m <model>] [-s <systemRole>] [--config-file <path>] [--json]\` - Update agent
- \`lh agent delete <agentId> [--yes]\` - Delete agent
- \`lh agent duplicate <agentId> [-t <title>]\` - Duplicate agent
-- \`lh agent run -a <agentId> -p <prompt> [-t <topicId>] [--replay]\` - Run agent with a prompt
+- \`lh agent run -a <agentId> -p <prompt> [-t <topicId>] [--json]\` - Run agent with a prompt
- \`lh agent status <operationId> [--history]\` - Check agent operation status
## Editing your own configuration
@@ -37,8 +37,8 @@ actually landed instead of assuming it did.
## Tips
- Use \`--slug\` to reference agents by slug instead of ID
-- \`lh agent run --replay\` replays the full conversation output
-- \`lh agent status --history\` shows operation execution history
+- \`lh agent run --replay <file>\` replays events from a JSON file saved by an earlier \`--json\` run (offline)
+- \`lh agent status <operationId> --history\` shows operation execution history
- Commands run in the same workspace as you. \`lh whoami\` prints that scope β€”
check it first if an agent, topic or file you expect to exist reports "not found"
`;
diff --git a/packages/builtin-skills/src/lobehub/references/bot-slack.ts b/packages/builtin-skills/src/lobehub/references/bot-slack.ts
index 61e6737c2c4..5361d2e1d2e 100644
--- a/packages/builtin-skills/src/lobehub/references/bot-slack.ts
+++ b/packages/builtin-skills/src/lobehub/references/bot-slack.ts
@@ -79,14 +79,6 @@ lh bot add -a <agentId> \\
--bot-token <xoxbToken> \\
--signing-secret <signingSecret>
-# Socket Mode (WebSocket) β€” also pass App Token
-lh bot add -a <agentId> \\
- --platform slack \\
- --app-id <appId> \\
- --bot-token <xoxbToken> \\
- --signing-secret <signingSecret> \\
- --app-token <xappToken>
-
lh bot test <botId>
lh bot connect <botId>
\`\`\`
@@ -94,7 +86,7 @@ lh bot connect <botId>
## Notes
- **Bot Token vs User Token**: always use the \`xoxb-\` Bot Token β€” never use \`xoxp-\` User Tokens unless explicitly needed
-- **Socket Mode** is recommended for development (no public URL needed) and is required if your server is behind a firewall
+- **Socket Mode** is recommended for development (no public URL needed) and is required if your server is behind a firewall. The CLI has no flag for its App-Level Token (\`xapp-\`): add the bot with the command above, then have the user paste the App-Level Token in the agent's Slack channel settings
- Signing Secret validates that inbound webhook POST requests are genuinely from Slack
- If you add new scopes, reinstall the app to the workspace (a banner will appear at the top of the OAuth page)
`;
diff --git a/packages/builtin-skills/src/lobehub/references/bot.ts b/packages/builtin-skills/src/lobehub/references/bot.ts
index de86b814618..7726c793c7b 100644
--- a/packages/builtin-skills/src/lobehub/references/bot.ts
+++ b/packages/builtin-skills/src/lobehub/references/bot.ts
@@ -9,13 +9,13 @@ Discord, Slack, Telegram, Lark, Feishu
## Subcommands
- \`lh bot list [-a <agentId>] [--platform <p>]\` - List bot integrations
-- \`lh bot view <botId> [-a <agentId>]\` - View bot details
-- \`lh bot add -a <agentId> --platform <p> [--bot-token <t>] [--app-id <id>]\` - Add bot to agent
+- \`lh bot view <botId>\` - View bot details
+- \`lh bot add -a <agentId> --platform <p> --app-id <id> [--bot-token <t>]\` - Add bot to agent
- \`lh bot update <botId> [--bot-token <t>] [--platform <p>]\` - Update bot credentials
- \`lh bot remove <botId> [--yes]\` - Remove bot integration
- \`lh bot enable <botId>\` - Enable bot
- \`lh bot disable <botId>\` - Disable bot
-- \`lh bot connect <botId> [-a <agentId>]\` - Connect and start bot
+- \`lh bot connect <botId>\` - Connect and start bot
## Message Subcommands
diff --git a/packages/builtin-skills/src/lobehub/references/config.ts b/packages/builtin-skills/src/lobehub/references/config.ts
index 3eae85fd26c..b26395f714c 100644
--- a/packages/builtin-skills/src/lobehub/references/config.ts
+++ b/packages/builtin-skills/src/lobehub/references/config.ts
@@ -1,15 +1,16 @@
-const content = `# lh config - User Info and Usage
+const content = `# lh whoami / lh usage - User Info and Usage
-View account information and usage statistics.
+View account information and usage statistics. These are **top-level** commands β€”
+there is no \`config\` module.
-## Subcommands
+## Commands
-- \`lh config whoami\` - Display current user information
-- \`lh config usage [--month <YYYY-MM>] [--daily]\` - View token usage statistics
+- \`lh whoami [--json]\` - Display current user information and the workspace scope
+- \`lh usage [--month <YYYY-MM>] [--agent-id <id>] [--daily] [--json]\` - View token usage statistics
## Tips
-- \`whoami\` shows user ID, email, and account details
+- \`whoami\` shows user ID, email, account details and whether commands run in a workspace
- \`usage --daily\` shows a daily breakdown with heatmap
`;
diff --git a/packages/builtin-skills/src/lobehub/references/eval.ts b/packages/builtin-skills/src/lobehub/references/eval.ts
index 19213d76e70..807fa435a26 100644
--- a/packages/builtin-skills/src/lobehub/references/eval.ts
+++ b/packages/builtin-skills/src/lobehub/references/eval.ts
@@ -1,21 +1,38 @@
const content = `# lh eval - Evaluation Workflow Management
-Manage external evaluation workflows for testing agent quality.
+Manage evaluation benchmarks, datasets, test cases and runs, including external
+evaluation workflows. Resource IDs are passed with \`--id\` (not \`--run-id\` /
+\`--dataset-id\`) on \`get\` / \`update\` / \`delete\` style commands.
-## Subcommands
+## Runs
-- \`lh eval run get --run-id <id>\` - Get run information
-- \`lh eval run set-status --run-id <id> --status <completed|external>\` - Set run status
-- \`lh eval dataset get --dataset-id <id>\` - Get dataset information
-- \`lh eval run-topics list --run-id <id> [--only-external]\` - List topics in a run
-- \`lh eval threads list --topic-id <id>\` - List threads by topic
-- \`lh eval messages list --topic-id <id> [--thread-id <id>]\` - List messages
-- \`lh eval test-cases count --dataset-id <id>\` - Count test cases
-- \`lh eval run-topic report-result --run-id <id> --topic-id <id> --score <n>\` - Report result
+- \`lh eval run list [--dataset-id <id>] [--experiment-id <id>] [--status <status>]\` - List runs
+- \`lh eval run get --id <id> [--external]\` - Get run information
+- \`lh eval run create --dataset-id <id> --agent-id <id> [-n <name>] [--external]\` - Create a run
+- \`lh eval run claim --id <id>\` - Claim a pending external run and fetch its workload
+- \`lh eval run start --id <id>\` / \`lh eval run abort --id <id>\` - Start or abort a run
+- \`lh eval run progress --id <id>\` / \`lh eval run results --id <id>\` - Progress and results
+- \`lh eval run set-status --id <id> --status <completed|external>\` - Set run status
+
+## External evaluation workflow
+
+- \`lh eval run-topic list --run-id <id> [--only-external]\` - List topics in a run
+- \`lh eval thread list --topic-id <id>\` - List threads by topic
+- \`lh eval message list --topic-id <id> [--thread-id <id>]\` - List messages
+- \`lh eval agent run --run-id <id> --case-id <id>\` - Execute one case of a claimed run
+- \`lh eval run-topic report-result --run-id <id> --topic-id <id> --score <n> --correct <true|false> --result-json <json>\` - Report one result (\`--thread-id <id>\` when k > 1)
+- \`lh eval run-topic report-results --run-id <id> --file <path>\` - Batch report results
+
+## Datasets and test cases
+
+- \`lh eval dataset list [--benchmark-id <id>]\` / \`lh eval dataset get --id <id> [--external]\`
+- \`lh eval testcase list --dataset-id <id>\` / \`lh eval testcase get --id <id>\`
+- \`lh eval testcase count --dataset-id <id>\` - Count test cases
+- \`lh eval benchmark list\` / \`lh eval experiment list\` - Benchmarks and experiments
## Tips
-- Evaluation runs test agent responses against datasets
+- Every eval command accepts \`--json\` for a structured envelope
- Use \`report-result\` to submit scores for individual topics
`;
diff --git a/packages/builtin-skills/src/lobehub/references/kb.ts b/packages/builtin-skills/src/lobehub/references/kb.ts
index 3971ac646f1..1cf22b50669 100644
--- a/packages/builtin-skills/src/lobehub/references/kb.ts
+++ b/packages/builtin-skills/src/lobehub/references/kb.ts
@@ -18,7 +18,7 @@ Manage knowledge bases, folders, documents, and files.
## Tips
-- Use \`--json\` on any subcommand for structured output
+- \`lh kb list\` and \`lh kb view\` accept \`--json\` for structured output; the write commands do not
- \`lh kb view\` shows a full tree of folders, files, and documents
- After uploading a file, use \`lh doc parse <fileId>\` to extract text content
`;
diff --git a/packages/builtin-skills/src/lobehub/references/model.ts b/packages/builtin-skills/src/lobehub/references/model.ts
index 128fdba1d52..e174580681a 100644
--- a/packages/builtin-skills/src/lobehub/references/model.ts
+++ b/packages/builtin-skills/src/lobehub/references/model.ts
@@ -7,7 +7,7 @@ Manage AI models for providers.
- \`lh model list <providerId> [--enabled] [--type <type>] [-L <limit>]\` - List models
- \`lh model view <id>\` - View model details
- \`lh model create --id <id> --provider <p> --display-name <name> [--type <type>]\` - Create model
-- \`lh model edit <id> [--provider <p>] [--display-name <name>]\` - Update model
+- \`lh model edit <id> --provider <p> [--display-name <name>] [--type <type>]\` - Update model
- \`lh model toggle <id> --provider <p> [--enable|--disable]\` - Enable/disable model
- \`lh model delete <id> --provider <p> [--yes]\` - Delete model
- \`lh model batch-toggle <ids...> --provider <p> [--enable|--disable]\` - Batch toggle
diff --git a/packages/builtin-skills/src/lobehub/references/plugin.ts b/packages/builtin-skills/src/lobehub/references/plugin.ts
index e1d5462e5ef..58da3b5ab0e 100644
--- a/packages/builtin-skills/src/lobehub/references/plugin.ts
+++ b/packages/builtin-skills/src/lobehub/references/plugin.ts
@@ -5,7 +5,7 @@ Manage installed plugins (external tool integrations).
## Subcommands
- \`lh plugin list\` - List installed plugins
-- \`lh plugin install -i <identifier> [--manifest <url>] [--type <type>] [--settings <json>]\` - Install plugin
+- \`lh plugin install -i <identifier> --manifest <json> [--type <type>] [--settings <json>]\` - Install plugin
- \`lh plugin uninstall <id> [--yes]\` - Uninstall plugin
- \`lh plugin update <id> [--manifest <url>] [--settings <json>]\` - Update plugin
diff --git a/packages/types/src/verify.ts b/packages/types/src/verify.ts
index 754052094ae..83f91416bb3 100644
--- a/packages/types/src/verify.ts
+++ b/packages/types/src/verify.ts
@@ -834,7 +834,7 @@ export interface ToulminVerdict {
/**
* Declares that a criterion is evidence-driven: it cannot pass on the
* deliverable text alone β€” the run must capture and upload an artifact of each
- * listed `type` (via `lh verify upload-evidence`). Stored under the plan item's
+ * listed `type` (via `lh acceptance run result submit`). Stored under the plan item's
* `verifierConfig.requiredEvidence`, so adding it needs no schema change. The
* structural gate marks a required item `uncertain` when any listed type is
* missing, independent of the LLM judge.