From 0b11a6d0be6fe90a57b8cfdc0830a3707a63b809 Mon Sep 17 00:00:00 2001 From: Agent Date: Thu, 14 May 2026 22:06:12 +0800 Subject: [PATCH 1/2] chore: rename skill directory from static-html-preview to sth Align directory name with the skill name for npx skills compatibility. Co-Authored-By: Claude Opus 4.7 --- skills/{static-html-preview => sth}/SKILL.md | 0 skills/{static-html-preview => sth}/scripts/bootstrap-repo.sh | 0 skills/{static-html-preview => sth}/scripts/send-file.sh | 0 skills/{static-html-preview => sth}/scripts/start-server.sh | 0 4 files changed, 0 insertions(+), 0 deletions(-) rename skills/{static-html-preview => sth}/SKILL.md (100%) rename skills/{static-html-preview => sth}/scripts/bootstrap-repo.sh (100%) rename skills/{static-html-preview => sth}/scripts/send-file.sh (100%) rename skills/{static-html-preview => sth}/scripts/start-server.sh (100%) 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 From 68dcc45d9531d9eaba45ae315cc0272fc6fe0932 Mon Sep 17 00:00:00 2001 From: Agent Date: Thu, 14 May 2026 22:08:22 +0800 Subject: [PATCH 2/2] docs: update skill section with npx skills install instructions Co-Authored-By: Claude Opus 4.7 --- README.cn.md | 19 +++++++++++-------- README.md | 19 +++++++++++-------- 2 files changed, 22 insertions(+), 16 deletions(-) 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 +```