openclaw 网盘下载
OpenClaw

技能详情(站内镜像,无评论)

首页 > 技能库 > Config Tracker

自动追踪并自动提交 OpenClaw 配置和关键工作区 markdown 文件的变更,无需手动操作。

媒体与内容

许可证:MIT-0

MIT-0 ·免费使用、修改和重新分发。无需归因。

版本:v1.0.2

统计:⭐ 0 · 115 · 0 current installs · 0 all-time installs

0

安装量(当前) 0

🛡 VirusTotal :良性 · OpenClaw :可疑

Package:altaircardinal/config-tracker

安全扫描(ClawHub)

  • VirusTotal :良性
  • OpenClaw :可疑

OpenClaw 评估

The skill mostly does what it says (auto-init and auto-commit of OpenClaw config + workspace markdown), but there are inconsistencies and privacy risks (undeclared git dependency, automatic repo initialization in your home dir, potential committing of sensitive config) that you should understand before installing.

目的

The code and SKILL.md align with the stated purpose: it scans workspace markdown files and ~/.openclaw/openclaw.json and auto-commits changes. However the package metadata earlier claimed 'required binaries: none' / 'instruction-only', while the shipped code clearly runs git commands and is non-trivial JavaScript — git should be declared as a required binary and the 'instruction-only' tag is inaccurate.

说明范围

Runtime instructions and implementation focus on git operations (git status, add, commit) and on two locations: workspaceDir and ~/.openclaw/openclaw.json, which is consistent with the SKILL.md. The plugin auto-initializes git repositories and commits without user action (including creating .git in your home or workspace). This stays within the stated scope but grants the skill broad read/write access to those paths and can create many commits.

安装机制

There is no install spec and the SKILL.md asks you to copy the directory into your skills folder — consistent with a local plugin. No remote downloads or package installs are performed. That said, the presence of code files means this is not purely 'instruction-only' as the registry summary implied.

证书

The skill declares no required env vars (which is reasonable), but it relies on the git binary without declaring it. More importantly, it will read and commit files from ~/.openclaw and workspace markdowns which may contain sensitive tokens or configuration. The code does not push to remote by itself (no git push observed in provided code), but if a remote exists in those repos, committing can make secrets easier to expose if the repo later ge…

持久

The skill is not always:true and is not requesting system-wide privileges. It will, however, create and manage local git repositories (.git directories) in your workspace and possibly in ~/.openclaw, and will run automatically on the before_prompt_build hook (every conversation round). That autonomous behavior combined with automatic commits increases privacy/operational impact if you don't want automatic changes recorded.

config-tracker.js:100

Shell command execution detected (child_process).

安装(复制给龙虾 AI)

将下方整段复制到龙虾中文库对话中,由龙虾按 SKILL.md 完成安装。

请把本段交给龙虾中文库(龙虾 AI)执行:为本机安装 OpenClaw 技能「Config Tracker」。简介:自动追踪并自动提交 OpenClaw 配置和关键工作区 markdown 文件的变更,无需手动操作。。
请 fetch 以下地址读取 SKILL.md 并按文档完成安装:https://raw.githubusercontent.com/openclaw/skills/refs/heads/main/skills/altaircardinal/config-tracker/SKILL.md
(来源:yingzhi8.cn 技能库)

SKILL.md

打开原始 SKILL.md(GitHub raw)

# Config Tracker Skill

自动追踪并提交 OpenClaw 配置文件和关键 markdown 文件的变更。

## 功能

- **自动版本控制**:每次对话轮次开始时自动检查并提交文件变更
- **双仓库管理**:分别管理 `~/.openclaw/` 和 workspace 目录
- **零手动操作**:无需手动执行 git 命令,所有提交自动完成
- **可配置**:可自定义追踪的文件列表和提交信息

## 追踪的文件

### Workspace 目录

- `AGENTS.md` — Agent 工作区配置
- `USER.md` — 用户信息
- `SOUL.md` — Agent 身份设定
- `MEMORY.md` — 长期记忆
- `TOOLS.md` — 工具配置
- `HEARTBEAT.md` — 心跳任务配置
- `IDENTITY.md` — Agent 身份

### OpenClaw 配置

- `~/.openclaw/openclaw.json` — 主配置文件

## 触发时机

使用 `before_prompt_build` hook,每次对话轮次开始时自动检查并提交变更。

## 配置项

| 配置项 | 默认值 | 说明 |
|--------|--------|------|
| `enabled` | `true` | 启用/禁用追踪器 |
| `workspaceFiles` | `["AGENTS.md", "USER.md", ...]` | 要追踪的 workspace 文件列表 |
| `openclawConfig` | `~/.openclaw/openclaw.json` | OpenClaw 配置文件路径 |
| `commitMessagePrefix` | `"auto: track config changes"` | 提交信息前缀 |
| `gitUserName` | `"OpenClaw Bot"` | Git 用户名 |
| `gitUserEmail` | `"openclaw@localhost"` | Git 用户邮箱 |

## 安装

将 `config-tracker` 目录复制到你的 skills 目录:

```bash
cp -r config-tracker/ /Volumes/File/OpenClaw/workspace/skills/
```

然后重启 OpenClaw gateway 使其生效。

## 工作原理

1. 每次对话轮次开始时(`before_prompt_build` hook),插件检查配置文件是否有变更
2. 使用 `git status --porcelain` 检测未提交的变更
3. 若有变更,自动执行 `git add <file>` + `git commit -m "auto: track config changes [timestamp]"`
4. 提交信息包含时间戳,便于追溯

## 注意事项

- 首次运行时会自动初始化 git 仓库
- 频繁修改配置文件(如 Doctor 自动修改)会产生大量提交,这是预期行为
- 使用 `git log` 可以查看完整的历史变更
- 提交冷却是 5 秒,防止短时间内多次提交