Skip to content
Open
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
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,19 @@ done

这样不会改动 Claude Code 的 `~/.claude/skills/` 安装方式;两套安装可以同时存在。Codex 读取 skill 列表通常需要重启应用或开启新会话。

> 说明:`SKILL.md` 里的 `allowed-tools` 是 Claude Code 权限声明。Codex 只依赖 `name` / `description` 触发 skill,会忽略这类 Claude 专属字段。
> 说明:`SKILL.md` 里的 `allowed-tools` 是 Claude Code 权限声明。Codex / Hermes 只依赖 `name` / `description` 触发 skill,会忽略这类 Claude 专属字段。

### Hermes Agent

把各子 skill 安装到 `~/.hermes/skills/`(支持嵌套目录,整个仓库作为一个 category):

```bash
./install-hermes.sh
```

安装后仓库以 `cheat-on-money` 为 category 注册到 `~/.hermes/skills/`,6 个子 skill 自动发现。Hermes 的 `skill_view` 和 `skills_list` 工具可直接读取。原有相对路径(`../../shared-references/` 等)无需改动即可正确解析。

> 三套安装(Claude Code / Codex / Hermes)互不冲突,可以同时存在。

## 典型流程

Expand Down
29 changes: 29 additions & 0 deletions install-hermes.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/usr/bin/env bash
# Install cheat-on-money skills for Hermes Agent.
# Hermes supports nested skill directories, so we symlink the entire repo
# into ~/.hermes/skills/ as a single category. All relative paths
# (../../shared-references/, ../../templates/, etc.) resolve correctly.
set -euo pipefail

ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
DEST="${HERMES_SKILLS_DIR:-$HOME/.hermes/skills}/cheat-on-money"

mkdir -p "$(dirname "$DEST")"

if [ -L "$DEST" ]; then
rm "$DEST"
fi
if [ -e "$DEST" ] && [ ! -d "$DEST" ]; then
echo "error: $DEST exists and is not a directory" >&2
exit 1
fi

ln -sfn "$ROOT" "$DEST"
echo "linked: cheat-on-money → $DEST"
echo ""
echo "6 skills registered under category 'cheat-on-money':"
for d in "$DEST"/skills/*/; do
echo " - $(basename "$d")"
done
echo ""
echo "Usage: say 「我想搞钱」to trigger money-init."
4 changes: 2 additions & 2 deletions skills/money-find/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ allowed-tools: Bash(*), Read, Write, Edit, Glob, WebSearch, WebFetch, Skill

## 跨平台说明(一次性,下文不再重复)

- **资源路径**:下文写的 `../../shared-references/`、`../../templates/`、`../../examples/`、`../../adapters/` 是 repo / Claude Code 的路径;**Codex 安装下改读当前 skill 目录的 `references/`、`templates/`、`examples/`、`adapters/`**(`install-codex.sh` 已软链进来)。
- **网页检索/打开网页**:Claude Code 用 WebSearch / WebFetch;Codex 用其内置等价能力。`allowed-tools` 是 Claude Code 权限声明,Codex 忽略。
- **资源路径**:下文写的 `../../shared-references/`、`../../templates/`、`../../examples/`、`../../adapters/` 是 repo / Claude Code 的路径;**Codex 安装下改读当前 skill 目录的 `references/`、`templates/`、`examples/`、`adapters/`**(`install-codex.sh` 已软链进来);**Hermes 安装下保留原相对路径**(`install-hermes.sh` 把整个 repo 链到 `~/.hermes/skills/cheat-on-money/`,`../../` 自然解析到仓库根目录)
- **网页检索/打开网页**:Claude Code 用 WebSearch / WebFetch;Codex 用其内置等价能力;Hermes 用 `web_search` / `web_extract`。`allowed-tools` 是 Claude Code 权限声明,Codex / Hermes 忽略。

## 核心方法(先读这条)

Expand Down
2 changes: 1 addition & 1 deletion skills/money-init/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ allowed-tools: Bash(*), Read, Write, Edit, Glob, Skill

## 跨平台说明(一次性,下文不再重复)

下文写的 `../../shared-references/`、`../../templates/` 是 repo / Claude Code 的路径;**Codex 安装下改读当前 skill 目录的 `references/`、`templates/`**(`install-codex.sh` 已软链进来)。`allowed-tools` 是 Claude Code 权限声明,Codex 忽略。
下文写的 `../../shared-references/`、`../../templates/` 是 repo / Claude Code 的路径;**Codex 安装下改读当前 skill 目录的 `references/`、`templates/`**(`install-codex.sh` 已软链进来);**Hermes 安装下保留原相对路径**(`install-hermes.sh` 把整个 repo 链到 `~/.hermes/skills/cheat-on-money/`,`../../` 自然解析到仓库根目录)。`allowed-tools` 是 Claude Code 权限声明,Codex / Hermes 忽略。

## 设计哲学(必须先认同)

Expand Down
2 changes: 1 addition & 1 deletion skills/money-plan/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ allowed-tools: Bash(*), Read, Write, Edit, Glob, WebSearch, WebFetch, Skill

## 跨平台说明(一次性,下文不再重复)

下文"网页检索/打开网页":Claude Code 用 WebSearch / WebFetch,Codex 用其内置等价能力。`allowed-tools` 是 Claude Code 权限声明,Codex 忽略。
下文"网页检索/打开网页":Claude Code 用 WebSearch / WebFetch,Codex 用其内置等价能力,Hermes 用 `web_search` / `web_extract`。`allowed-tools` 是 Claude Code 权限声明,Codex / Hermes 忽略。

## 前置检查
- 读 `.money-state.json` 找该机会。若未验证过或判定为高危 ❌,**先劝用户走 `money-verify`**,不直接做计划。
Expand Down
2 changes: 1 addition & 1 deletion skills/money-retro/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ allowed-tools: Bash(*), Read, Write, Edit, Glob, Skill

## 跨平台说明

`allowed-tools` 是 Claude Code 权限声明;Codex 可忽略,并使用当前会话可用的本地文件工具完成同等动作。
`allowed-tools` 是 Claude Code 权限声明;Codex / Hermes 可忽略,并使用当前会话可用的本地文件工具完成同等动作。

## 流程

Expand Down
2 changes: 1 addition & 1 deletion skills/money-status/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ allowed-tools: Bash(*), Read, Glob, Skill

## 跨平台说明

`allowed-tools` 是 Claude Code 权限声明;Codex 可忽略,并使用当前会话可用的本地文件工具完成同等动作。
`allowed-tools` 是 Claude Code 权限声明;Codex / Hermes 可忽略,并使用当前会话可用的本地文件工具完成同等动作。

## 流程

Expand Down
4 changes: 2 additions & 2 deletions skills/money-verify/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ allowed-tools: Bash(*), Read, Write, Edit, Glob, WebSearch, WebFetch, Skill

## 跨平台说明(一次性,下文不再重复)

- **资源路径**:下文写的 `../../shared-references/` 是 repo / Claude Code 的路径;**Codex 安装下改读当前 skill 目录的 `references/`**(`install-codex.sh` 已软链进来)。
- **网页检索/打开网页**:Claude Code 用 WebSearch / WebFetch;Codex 用其内置等价能力。`allowed-tools` 是 Claude Code 权限声明,Codex 忽略。
- **资源路径**:下文写的 `../../shared-references/` 是 repo / Claude Code 的路径;**Codex 安装下改读当前 skill 目录的 `references/`**(`install-codex.sh` 已软链进来);**Hermes 安装下保留原相对路径**(`install-hermes.sh` 把整个 repo 链到 `~/.hermes/skills/cheat-on-money/`,`../../` 自然解析到仓库根目录)
- **网页检索/打开网页**:Claude Code 用 WebSearch / WebFetch;Codex 用其内置等价能力;Hermes 用 `web_search` / `web_extract`。`allowed-tools` 是 Claude Code 权限声明,Codex / Hermes 忽略。

## 唯一标准来源

Expand Down