Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions README.cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
19 changes: 11 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
File renamed without changes.
Loading