Compare commits
6 Commits
6d22374d00
...
f7c6e6f673
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f7c6e6f673 | ||
|
|
847d81c0cd | ||
|
|
795080b6c1 | ||
|
|
617af20f1e | ||
|
|
fe1cf8dff1 | ||
|
|
53fbfd7493 |
@@ -14,6 +14,12 @@ Before doing anything else:
|
|||||||
2. Read `USER.md` — this is who you're helping
|
2. Read `USER.md` — this is who you're helping
|
||||||
3. Read `memory/YYYY-MM-DD.md` (today + yesterday) for recent context
|
3. Read `memory/YYYY-MM-DD.md` (today + yesterday) for recent context
|
||||||
4. **If in MAIN SESSION** (direct chat with your human): Also read `MEMORY.md`
|
4. **If in MAIN SESSION** (direct chat with your human): Also read `MEMORY.md`
|
||||||
|
5. Always remember runtime separation at session start:
|
||||||
|
- System Node is managed by nvm, but OpenClaw/skills use dedicated Node in `F:/openclaw-runtime` and are not affected by nvm switching.
|
||||||
|
- System Python is managed by pyenv-win, but OpenClaw uses its own dedicated Python environment and is not affected by pyenv switching.
|
||||||
|
- Execution priority in OpenClaw context is: `OPENCLAW_NODE`/`OPENCLAW_PYTHON` > OpenClaw runtime/config > system `PATH`/nvm/pyenv.
|
||||||
|
- `F:/npm-global` must be in user `PATH` for global npm executables (like `openclaw.cmd`).
|
||||||
|
- `F:/npm-cache` is cache-only and should not be added to `PATH`.
|
||||||
|
|
||||||
Don't ask permission. Just do it.
|
Don't ask permission. Just do it.
|
||||||
|
|
||||||
|
|||||||
18
TOOLS.md
18
TOOLS.md
@@ -118,6 +118,13 @@ await axios.post(url, body, { headers });
|
|||||||
await axios.post(uploadUrl, form, {headers: form.getHeaders()});
|
await axios.post(uploadUrl, form, {headers: form.getHeaders()});
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### OpenClaw Runtime 环境说明
|
||||||
|
|
||||||
|
- 系统 Node 由 **nvm** 管理。
|
||||||
|
- OpenClaw 与 Skill 执行使用独立 Node:`F:/openclaw-runtime`,不受 nvm 切换影响。
|
||||||
|
- 系统 Python 由 **pyenv-win** 管理。
|
||||||
|
- OpenClaw 也使用独立 Python 运行环境,不受系统 pyenv 切换影响。
|
||||||
|
|
||||||
### 成功案例记录
|
### 成功案例记录
|
||||||
|
|
||||||
**2026-03-05 18:44** - 成功发送database_analysis_summary.txt
|
**2026-03-05 18:44** - 成功发送database_analysis_summary.txt
|
||||||
@@ -127,4 +134,15 @@ await axios.post(url, body, { headers });
|
|||||||
- API: /v1.0/robot/groupMessages/send
|
- API: /v1.0/robot/groupMessages/send
|
||||||
- ProcessQueryKey: lXs/uLRd0YxJVk1x0VyTLfSdY2YKCE1yrGn2vGlQ+GM=
|
- ProcessQueryKey: lXs/uLRd0YxJVk1x0VyTLfSdY2YKCE1yrGn2vGlQ+GM=
|
||||||
|
|
||||||
|
### 默认发图稳定流程(柏方确认)
|
||||||
|
|
||||||
|
当用户说“发图”时,默认按以下顺序执行:
|
||||||
|
|
||||||
|
1. `GET https://oapi.dingtalk.com/gettoken?appkey=...&appsecret=...` 获取 token
|
||||||
|
2. `POST https://oapi.dingtalk.com/media/upload?access_token=...` 上传图片,获取 `media_id`
|
||||||
|
3. `POST https://api.dingtalk.com/v1.0/robot/groupMessages/send` 发送消息
|
||||||
|
- Header: `x-acs-dingtalk-access-token: <token>`
|
||||||
|
- `msgKey = sampleMarkdown`
|
||||||
|
- `msgParam` 必须是 JSON 字符串(内嵌图片)
|
||||||
|
|
||||||
Add whatever helps you do your job. This is your cheat sheet.
|
Add whatever helps you do your job. This is your cheat sheet.
|
||||||
|
|||||||
13
USER.md
13
USER.md
@@ -4,7 +4,18 @@
|
|||||||
- **What to call them:** Fang
|
- **What to call them:** Fang
|
||||||
- **Pronouns:** (unknown)
|
- **Pronouns:** (unknown)
|
||||||
- **Timezone:** Asia/Tokyo
|
- **Timezone:** Asia/Tokyo
|
||||||
- **Notes:** Prefers task plans before execution, wants alternative options considered
|
- **Notes:** Prefers task plans before execution, wants alternative options considered; at the start of each new session, first account for OpenClaw runtime separation (nvm/pyenv-win do not affect OpenClaw runtime).
|
||||||
|
|
||||||
|
## Environment Variable Rules (OpenClaw Runtime)
|
||||||
|
|
||||||
|
- System `node` is managed by **nvm**; system `python` is managed by **pyenv-win**.
|
||||||
|
- OpenClaw and skills use dedicated runtime under `F:/openclaw-runtime` and are isolated from nvm/pyenv switching.
|
||||||
|
- Priority when executing skills/CLI in OpenClaw context:
|
||||||
|
1. `OPENCLAW_NODE` / `OPENCLAW_PYTHON`
|
||||||
|
2. OpenClaw config/runtime wiring
|
||||||
|
3. System `PATH` / nvm / pyenv
|
||||||
|
- `F:/npm-global` should be included in user `PATH` for global npm executables (e.g., `openclaw.cmd`).
|
||||||
|
- `F:/npm-cache` is npm cache only and should **not** be added to `PATH`.
|
||||||
|
|
||||||
## Context
|
## Context
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user