diff --git a/README.cn.md b/README.cn.md index 931acb1..0800ee8 100644 --- a/README.cn.md +++ b/README.cn.md @@ -130,16 +130,19 @@ go test ./... 如果客户端版本过旧,请替换后重试;旧客户端仍可能发送过时的 `entryFile` 元数据,即使服务端已更新也会触发跨主机路径错误。 -## Codex 技能 +## Agent 技能 -本仓库还附带了一个可安装的 Codex 技能,位于 `skills/static-html-preview`。 +本仓库附带了一个 agent 技能,位于 `skills/sth`,可以让编码助手(Claude Code、Codex、Cursor 等)自动使用 `sth`。 -使用本地安装脚本从 GitHub 安装: +使用 [npx skills](https://github.com/vercel-labs/skills) 安装: ```bash -~/.codex/skills/.system/skill-installer/scripts/install-skill-from-github.py \ - --repo sun-praise/static-html \ - --path skills/static-html-preview -``` +# 安装到当前项目 +npx skills add sun-praise/static-html + +# 全局安装 +npx skills add sun-praise/static-html -g -安装技能后,重启 Codex 即可生效。 +# 安装到指定 agent +npx skills add sun-praise/static-html -a claude-code -a cursor +``` diff --git a/README.md b/README.md index 3c599c1..32ad456 100644 --- a/README.md +++ b/README.md @@ -130,16 +130,19 @@ Checklist: If the client is stale, replace it and retry; old clients can still send legacy `entryFile` metadata and trigger cross-host path errors even if the server is updated. -## Codex Skill +## Agent Skill -This repo also ships an installable Codex skill at `skills/static-html-preview`. +This repo ships an agent skill at `skills/sth` that teaches coding agents (Claude Code, Codex, Cursor, etc.) how to use `sth`. -Install it from GitHub with the local installer helper: +Install it with [npx skills](https://github.com/vercel-labs/skills): ```bash -~/.codex/skills/.system/skill-installer/scripts/install-skill-from-github.py \ - --repo sun-praise/static-html \ - --path skills/static-html-preview -``` +# Install to current project +npx skills add sun-praise/static-html + +# Install globally +npx skills add sun-praise/static-html -g -After installing the skill, restart Codex to pick it up. +# Install to specific agents +npx skills add sun-praise/static-html -a claude-code -a cursor +``` diff --git a/skills/static-html-preview/SKILL.md b/skills/sth/SKILL.md similarity index 100% rename from skills/static-html-preview/SKILL.md rename to skills/sth/SKILL.md diff --git a/skills/static-html-preview/scripts/bootstrap-repo.sh b/skills/sth/scripts/bootstrap-repo.sh similarity index 100% rename from skills/static-html-preview/scripts/bootstrap-repo.sh rename to skills/sth/scripts/bootstrap-repo.sh diff --git a/skills/static-html-preview/scripts/send-file.sh b/skills/sth/scripts/send-file.sh similarity index 100% rename from skills/static-html-preview/scripts/send-file.sh rename to skills/sth/scripts/send-file.sh diff --git a/skills/static-html-preview/scripts/start-server.sh b/skills/sth/scripts/start-server.sh similarity index 100% rename from skills/static-html-preview/scripts/start-server.sh rename to skills/sth/scripts/start-server.sh