Skip to content

Commit c2b0daa

Browse files
DaYePythonclaude
andcommitted
docs: pass -y -a <agent> to find-skills to avoid unsupported-agent errors
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 8446d7f commit c2b0daa

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎README.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Pick a scope, then paste the whole paragraph into any AI client that supports th
2727
```text
2828
Please install lanhu-context globally for me (do NOT clone any source repository):
2929
1. npm i -g @lanhu-context/cli, then run `lanhu doctor` until it exits 0 (use `lanhu auth set` to configure LANHU_TOKEN if credentials fail);
30-
2. Run `npx skills add DaYePython/lanhu-context --global` to install the skill globally; if that doesn't apply to you, install the lanhu-context-cli skill into your own global skill/rule directory (e.g. Claude Code ~/.claude/skills, Codex ~/.codex/AGENTS.md);
30+
2. Run `npx skills add DaYePython/lanhu-context --global -y -a <the agent name that matches yourself>` to install the skill globally (use -a to target only yourself, so agents that don't support global installs aren't touched); if that doesn't apply to you, install the lanhu-context-cli skill into your own global skill/rule directory (e.g. Claude Code ~/.claude/skills, Codex ~/.codex/AGENTS.md);
3131
3. Report back the doctor result and where the skill was installed.
3232
```
3333

@@ -37,7 +37,7 @@ Please install lanhu-context globally for me (do NOT clone any source repository
3737
Please install lanhu-context inside the current project (do NOT clone any source repository, do NOT install globally):
3838
1. npm i -D @lanhu-context/cli; from then on run every lanhu command with a prefix: `npx lanhu <command>` (or wrap them in package.json scripts and invoke via npm run);
3939
2. Run `npx lanhu doctor` until it exits 0 (use `npx lanhu auth set` to configure LANHU_TOKEN, stored in the project .env.local — make sure it is gitignored);
40-
3. Run `npx skills add DaYePython/lanhu-context` to install the skill (project scope is the default); if that doesn't apply to you, install the lanhu-context-cli skill into this project's skill/rule directory (e.g. .claude/skills, .cursor/rules) and note in the skill usage that commands need the `npx lanhu` prefix;
40+
3. Run `npx skills add DaYePython/lanhu-context -y -a <the agent name that matches yourself>` to install the skill (project scope is the default); if that doesn't apply to you, install the lanhu-context-cli skill into this project's skill/rule directory (e.g. .claude/skills, .cursor/rules) and note in the skill usage that commands need the `npx lanhu` prefix;
4141
4. Report back the doctor result and where the skill was installed.
4242
```
4343

@@ -57,7 +57,7 @@ lanhu auth set # reads token from stdin, keeps it off the command line
5757
lanhu auth test "$URL" # exit 0 = token works
5858
```
5959

60-
To teach your agent how to drive the CLI, install the bundled skills with [find-skills](https://github.com/vercel-labs/skills) (project-scoped by default; add `--global` for a global install):
60+
To teach your agent how to drive the CLI, install the bundled skills with [find-skills](https://github.com/vercel-labs/skills) (project-scoped by default; add `--global` for a global install and `-a <agent>` to pick target agents — agents that don't support global installs are skipped with a ✗):
6161

6262
```bash
6363
npx skills add DaYePython/lanhu-context

‎README.zh.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
```text
2828
请为我全局安装 lanhu-context(不要 clone 任何源码仓库):
2929
1. npm i -g @lanhu-context/cli,然后运行 lanhu doctor 直到退出码为 0(凭据问题用 lanhu auth set 配置 LANHU_TOKEN);
30-
2. 运行 npx skills add DaYePython/lanhu-context --global 全局安装 skill;如果该方式不适用于你,就把 lanhu-context-cli skill 装到你自己的全局技能/规则目录(如 Claude Code 的 ~/.claude/skills、Codex 的 ~/.codex/AGENTS.md 等);
30+
2. 运行 npx skills add DaYePython/lanhu-context --global -y -a <你自己对应的 agent 名> 全局安装 skill(用 -a 只装给你自己,避免向不支持全局安装的 agent 报错);如果该方式不适用于你,就把 lanhu-context-cli skill 装到你自己的全局技能/规则目录(如 Claude Code 的 ~/.claude/skills、Codex 的 ~/.codex/AGENTS.md 等);
3131
3. 安装后向我汇报 doctor 结果和 skill 安装位置。
3232
```
3333

@@ -37,7 +37,7 @@
3737
请在当前项目内安装 lanhu-context(不要 clone 任何源码仓库,不要全局安装):
3838
1. npm i -D @lanhu-context/cli;之后所有 lanhu 命令都要带前缀执行:npx lanhu <command>(或封装进 package.json scripts 后用 npm run 调用);
3939
2. 运行 npx lanhu doctor 直到退出码为 0(凭据问题用 npx lanhu auth set 配置 LANHU_TOKEN,写入项目 .env.local 并确认已被 gitignore);
40-
3. 运行 npx skills add DaYePython/lanhu-context 安装 skill(默认即项目级);如果该方式不适用于你,就把 lanhu-context-cli skill 装到本项目的技能/规则目录(如 .claude/skills、.cursor/rules 等),并在 skill 用法中注明命令需用 npx lanhu 前缀;
40+
3. 运行 npx skills add DaYePython/lanhu-context -y -a <你自己对应的 agent 名> 安装 skill(默认即项目级);如果该方式不适用于你,就把 lanhu-context-cli skill 装到本项目的技能/规则目录(如 .claude/skills、.cursor/rules 等),并在 skill 用法中注明命令需用 npx lanhu 前缀;
4141
4. 安装后向我汇报 doctor 结果和 skill 安装位置。
4242
```
4343

@@ -57,7 +57,7 @@ lanhu auth set # 从 stdin 读 token,不落命令行
5757
lanhu auth test "$URL" # exit 0 = token 有效
5858
```
5959

60-
要让 Agent 学会驱动 CLI,用 [find-skills](https://github.com/vercel-labs/skills) 把本仓 skills 装到你的 Agent(默认项目级,加 `--global` 全局安装):
60+
要让 Agent 学会驱动 CLI,用 [find-skills](https://github.com/vercel-labs/skills) 把本仓 skills 装到你的 Agent(默认项目级,加 `--global` 全局安装;`-a <agent>` 指定目标 agent,部分 agent 不支持全局安装会标 ✗ 跳过):
6161

6262
```bash
6363
npx skills add DaYePython/lanhu-context

0 commit comments

Comments
 (0)