Token导航 LogoToken导航

Agent Skill · 研究检索

lx-agent-optimizer(lxAgent 优化器)

lx-agent-optimizer 用于记录任务执行中的错误、用户纠正、经验和能力缺口,适合在 OpenClaw 中希望让 Agent 持续沉淀问题、修正和最佳实践时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

lx-agent-optimizer 是研究检索类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为接触敏感数据;许可证为 MIT-0,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 18,928。

总安装 5,843周安装 251GitHub Stars 2下载 2,048核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.4.0

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:lx-agent-optimizer(lxAgent 优化器)
来源仓库:https://github.com/paoloxiamn/lx-agent-optimizer
安装命令:
openclaw skills install lx-agent-optimizer
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install lx-agent-optimizer

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

基于实战经验构建的代理自我改进与知识沉淀系统。lx-agent-optimizer 属于研究检索类 Skill,可作为该场景下的辅助能力补充。用于记录错误、用户修正与能力缺口形成闭环学习。非编码人员也可快速部署并持续优化 Agent 表现。涉及对话日志存储,应设置合理的保留周期与访问控制。

每条规则均来自真实使用场景,强调实用性与可操作性。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install lx-agent-optimizer;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

lx-agent-optimizer 怎么安装?

在终端执行 openclaw skills install lx-agent-optimizer。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

lx-agent-optimizer 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

lx-agent-optimizer 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

lx-agent-optimizer 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

lx-agent-optimizer 用的人多吗?

公开数据是累计安装 5,843 次,近一周安装 251 次,下载 2,048 次,GitHub 2 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

lx-agent-optimizer 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
lx-agent-optimizer

lxAgent 优化器 · 本页

5,8432接触敏感数据MIT-0通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
lx-agent-optimizer
slug
lx-agent-optimizer
version
1.3.1
description
|
Covers
behavior learning, proactive patterns, cron discipline, cost control, and false-positive prevention.
author
paoloxiamn
license
MIT
tags
[self-improvement, optimization, proactive, cron, cost-control, learning]

LX Agent Optimizer

A unified skill for agents that want to learn, act proactively, run lean, and cost less — built from real production experience, not theory.

Born from weeks of real usage by Paolo + LX (OpenClaw). Every pattern here was tested, broke something, got fixed, and survived. Notably: this skill was created by a non-coder author. That is exactly why it is practical — it focuses on observable failures, reusable workflows, and user experience, instead of abstract agent philosophy.

Four Pillars

1. 🧠 Behavior Learning

Learn from real mistakes. Write them down. Review weekly. Change behavior.

→ See references/behavior-learning.md

2. 🎯 Proactive Patterns

Know when to speak up, when to stay silent, and when to just do it.

→ See references/proactive-patterns.md

3. ⚙️ Cron Discipline

Script-first cron jobs that are silent on success, reliable, and cheap.

→ See references/cron-discipline.md

4. 💰 Cost Control

Token spend is real. Route models wisely, cache aggressively, stay lean.

→ See references/cost-control.md


Quick Start

Step 1: Set up improvement log

touch ~/.openclaw/workspace/improvement_log.md

Add this header:

# Agent Improvement Log
Record weekly: problems encountered, lessons learned, behavior changes.

Step 2: Add weekly analysis cron (main session)

{
  "name": "Weekly Self-Improvement",
  "schedule": { "kind": "cron", "expr": "0 9 * * 1", "tz": "Asia/Shanghai" },
  "sessionTarget": "main",
  "payload": {
    "kind": "systemEvent",
    "text": "⏰ Weekly improvement: read improvement_log.md, review last week's problems, add 2-3 new lessons, send brief report to user."
  }
}

Step 3: Run the optimizer audit

Say: "audit my agent setup" — the skill will analyze your workspace and propose improvements.


Core Rules (Non-Negotiable)

These were learned the hard way:

RuleWhy
File writes → main session onlywork agents can't write files; main session can
Data fetch → validate with curl firstSPAs return empty shells; APIs return 403; test before shipping
Debugging → internal, not exposedUser sees results, not "trying A... trying B..."
Infer before askingRead filenames, context, history — ask only when truly ambiguous
Script-first cronEmbed logic in .py files, not in cron message prompts
Silent on successOnly alert on anomalies, errors, or changes
Channel health checks → real-time probe, not stale logsHistorical cron errors may be old; verify current channel state before alerting or auto-remediating
Cron alerts → classify error type before paging userDelivery failure, task logic failure, and node failure need different handling; don't treat them as the same outage
Reminder source mapping → check both cron and HEARTBEAT.mdSome reminders live in cron jobs, others live in heartbeat rules; disabling one side is not enough
Success once ≠ learnedA task is only truly learned after the verified path is written into external memory (TOOLS.md, improvement log, or long-term memory)

Tool Path Memory (Verified)

TaskUse ThisNot This
Token usage data~/.openclaw/agents/*/sessions/*.jsonlcodexbar, gateway.log
WeChat article bodyagent-browser eval "document.querySelector('#js_content')?.innerText"Built-in browser tool
PDF image extractionpdfimages -j <file> /tmp/outpymupdf (not installed)
Send image to usermessage tool (media/filePath)Absolute/~ paths
Sports data (no API key)ESPN public APIsofascore (403), official site (SPA)
Apple Calendar today eventsRun python3 /Users/paolo/.openclaw/workspace/skills/calendar-morning/scripts/today_events.py on Paolo's Mac mini; under the hood it uses /usr/bin/osascript + Calendar.appRe-guessing the tool, calendar names, or prompting from scratch
Telegram channel health checkSend a silent real-time probe via message tool and only remediate/alert on actual send failureScanning historical cron lastError / deliveryStatus and assuming the channel is currently down
Cron anomaly triageFirst classify as delivery failure / task failure / node failure, then decide whether to alert, retry, or remediateTreating every consecutiveErrors > 0 as the same kind of outage
Reminder disable auditCheck both cron jobs and HEARTBEAT.md before saying a reminder is removedLooking only at cron list and missing heartbeat-driven reminders

Weekly Improvement Cycle

Monday 9:00 AM
    ↓
Read improvement_log.md
    ↓
Review last week's conversations for:
  - Tasks that needed retries
  - Times user waited too long
  - Wrong tool choices
  - Repeated mistakes
    ↓
Write 2-3 new lessons to improvement_log.md
    ↓
Send brief report: "N problems this week, key lesson: X, focus next week: Y"

Proactive Trigger Rules

Reach out when:

  • Important email or calendar event incoming (< 2h)
  • Cron task failed with consecutive errors
  • Something discovered user would want to know
  • Haven't spoken in > 8h during waking hours

Stay silent when:

  • Late night (23:00–08:00) unless urgent
  • User is clearly busy
  • Nothing new since last check
  • Just checked < 30 min ago
  • Task succeeded (success = silent)

Do without asking:

  • Read files, search, organize
  • Execute cron/heartbeat checks
  • Update memory and logs
  • Commit workspace changes

Always ask first:

  • Send emails, tweets, public posts
  • Delete data
  • Spend money
  • Make commitments for the user

Heartbeat Design

Heartbeat = control plane only (cheap).

✅ Good heartbeat tasks:

  • Check cron consecutiveErrors
  • Classify cron errors by type (delivery / task / node) before deciding whether to alert
  • Check if Telegram channel is down
  • Quick calendar scan

❌ Move to isolated cron instead:

  • Heavy data fetching
  • Report generation
  • Multi-tool workflows
HEARTBEAT_OK  ← 99% of the time
Alert only when: errors > 0, channel down, something changed

Important: heartbeat may use cron error state to spot anomalies, but must not auto-remediate Telegram/channel issues from stale cron history alone. Use cron state to detect "something looks wrong," then verify with a live probe before fallback alerts or recovery actions.


Cron Design Checklist

Before shipping any cron job:

  • [ ] Logic is in a .py script, not embedded in the prompt
  • [ ] Script tested locally with python3 script.py
  • [ ] Silent on success (exit(0) with no output = no message sent)
  • [ ] Output is minimal (< 200 chars for routine alerts)
  • [ ] Model is cheapest tier that works (e.g., qwen-plus for simple tasks)
  • [ ] Timeout is realistic (not too short = retries, not too long = waste)
  • [ ] File writes use main session, not work agent
  • [ ] Validated data source with curl before embedding URL

Model Selection Guide

Task TypeRecommended TierExample
Simple fetch + formatcheapest (qwen-plus / gemini-lite)sports results, reminders, weather
固定流程任务(文章总结、写文件、数据抓取)qwen-plus微信文章总结、Obsidian 写入、cron 推送
中文内容处理(总结/整理/改写)qwen-plus中文语境更准,比 claude 省 token
周复盘 / cron 状态检查gemini-2.5-flash够用,比 sonnet 便宜
Reasoning + writingmid-tier (sonnet)self-improvement analysis, strategy
Complex multi-stephigh-tier (opus)only when mid-tier fails repeatedly

分工原则:主 session(claude)只做判断+调度+对话;固定流程和中文任务一律 sessions_spawn → qwen-plus。

主模型注意事项(2026-03-28):

  • 不要把 Gemini 设为主 session 默认模型 → compaction.mode: safeguard 与 Gemini preview 模型有 API 兼容性问题,导致 400 报错
  • Gemini 适合做 fallback 或在 isolated cron 中指定使用
  • 主 session 保持 renlijia/claude-sonnet-4-6

Cost rule: Cache hit rate > 70% = healthy. If < 40%, you're creating too many new sessions.


Files

  • references/behavior-learning.md — improvement log format and weekly cycle
  • references/proactive-patterns.md — when to act, when to stay quiet
  • references/cron-discipline.md — script-first cron patterns, error classification, and channel-health rules
  • references/cost-control.md — token cost reduction playbook
  • scripts/token_report.py — weekly token usage report script

Hermes-Inspired Extensions(v1.4)

三个从 Hermes Agent 框架借鉴的自进化机制,补充原有四大支柱。

5. 📋 Skill Awareness(技能感知层)

Agent 应该主动知道自己有什么能力,而不是靠记忆猜。

每周扫描机制:

ls /Users/paolo/.openclaw/workspace/skills/

扫描后更新 memory/skill-registry.md,格式:

# Skill Registry(更新日期:YYYY-MM-DD)
- skill-name: 一句话描述,适用场景

触发规则:

  • 每周一自检一次,有新 Skill 时更新
  • 接到任务前先查 skill-registry.md,判断是否有现成 Skill 可用
  • 优先复用已验证的 Skill,不要重新摸索相同路径

6. 🔁 Memory Recall Gate(记忆召回门控)

在处理较复杂任务前,先主动搜索记忆库,复用已有成功路径。

执行流程:

接到任务
  ↓
memory_search(关键词:任务类型 + 工具名)
  ↓
命中成功路径?
  ├── 是 → 直接复用,记录为"路径复用"
  └── 否 → 重新执行,执行完后记录路径到 TOOLS.md 或 improvement_log.md

规则:

  • 命中率低(连续 3 次同类任务都没命中记忆)→ 说明记忆库记录不足,补录
  • 禁止"凭印象试错":有相似历史路径一定先查,再动手
  • 验证路径写入格式:TOOLS.md | 已验证工具路径 表格

7. 📊 Task Quality Signal(任务质量反馈)

每次执行较复杂任务后,记录结果质量,形成可追踪的成功率数据。

记录格式(追加到 improvement_log.md):

## Task Signal(YYYY-MM-DD)
- 任务:[任务简述]
- 结果:✅ 成功 / ⚠️ 部分成功 / ❌ 失败
- 是否重试:否 / 是(N次)
- 关键路径:[用了什么工具/命令]
- 教训(失败时):[一句话]

什么算"较复杂任务":

  • 调用超过 2 个工具
  • 涉及文件写入 / cron 变更 / 外部 API
  • 用户明确说"帮我做XX"

周报中汇报:

本周任务信号:共 N 次,成功率 X%,重试 Y 次,最高频失败点:Z

平台分布

OpenClaw

80.91%
按下载量换算1,657

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills