← 返回 Skills 市场
yao23

Agent Experience Graph

作者 Yao Li · GitHub ↗ · v0.1.1 · MIT-0
cross-platform ✓ 安全检测通过
107
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install agent-experience-graph
功能描述
Use when an agent should learn from prior task-solving traces, recommend tools or skills for a new decomposed task, record reusable execution experience, or...
使用说明 (SKILL.md)

Agent Experience Graph

This is a portable agent capability, not a runtime-specific plugin. It should work in any agent environment that can read markdown instructions and run Python 3 scripts. Runtime-specific metadata lives outside this file:

  • capability.json: neutral capability manifest for launchers, registries, and importers
  • agents/openai.yaml: Codex UI metadata
  • adapters/README.md: install notes for Codex, Claude Code, OpenClaw, Hermes, and generic agents

Use this skill to turn prior agent runs into reusable guidance for new tasks. The core loop is:

  1. Describe the current task and likely subtasks.
  2. Retrieve similar solved traces.
  3. Recommend skills, tools, workflow patterns, and warnings.
  4. Apply only the recommendations that fit the current constraints.
  5. After the task, record a sanitized trace so future agents can learn from it.

Quick Workflow

Create a query with a task and optional subtasks:

{
  "task": "Build an ingestion pipeline for markdown API docs",
  "subtasks": [
    {"description": "Parse markdown into structured sections"},
    {"description": "Chunk content for coding-agent retrieval"},
    {"description": "Evaluate extracted endpoint metadata"}
  ]
}

Run the bundled recommender against a trace file:

python3 scripts/recommend_traces.py \
  --traces assets/example_traces.json \
  --query query.json

Use the output as evidence, not as an order. Prefer recommendations with:

  • successful or partially successful outcomes
  • matched subtasks, not only matched task titles
  • clear lessons or failure notes
  • skills/tools that are available in the current environment

Recording A Trace

After finishing a task, create a compact trace with no secrets, credentials, private user data, or proprietary snippets. Keep enough detail to support future retrieval:

{
  "id": "trace-2026-05-18-doc-ingestion",
  "task": "Build a structured ingestion demo for API documentation",
  "outcome": "success",
  "subtasks": [
    {
      "description": "Normalize markdown into sections",
      "skills": ["structured-ingestion"],
      "tools": ["python"],
      "outcome": "success",
      "lessons": ["Preserve headings and code blocks before chunking."]
    }
  ],
  "skills": ["structured-ingestion"],
  "tools": ["python", "ripgrep"],
  "lessons": ["Chunk metadata improves downstream retrieval."]
}

Append it to an existing trace library:

python3 scripts/recommend_traces.py \
  --traces traces.json \
  --append-trace new_trace.json

Interpretation Rules

  • Similarity is a hint. Always check whether the prior environment, constraints, and outcome match the current task.
  • A tool appearing in a trace does not prove it caused success. Prefer tools attached to matched successful subtasks.
  • Preserve negative evidence. Failed traces are useful when their lessons explain what to avoid.
  • When traces disagree, choose the recommendation with the closest subtask match and the best outcome evidence.
  • Do not expose raw traces from private workspaces. Share redacted summaries or derived recommendations.

Trace Schema

For field definitions and an example trace library, read references/trace_schema.md when creating new datasets, validators, or import/export adapters.

安全使用建议
This result is low confidence because the artifact files were not inspectable in the sandbox. Re-run the review with readable metadata.json and artifact/ contents before relying on this install decision.
能力评估
Purpose & Capability
Review could not confirm the skill purpose or capabilities because metadata.json and artifact/ were not readable in this run.
Instruction Scope
No instruction-scope issue is supported by artifact evidence available to this reviewer.
Install Mechanism
Install behavior could not be assessed from artifacts because workspace inspection failed.
Credentials
No environment access concern is supported by artifact evidence available to this reviewer.
Persistence & Privilege
No persistence or privilege concern is supported by artifact evidence available to this reviewer.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install agent-experience-graph
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /agent-experience-graph 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.1
Move homepage and source metadata to the standalone repository
v0.1.0
Initial release of a portable agent trace recommender capability
元数据
Slug agent-experience-graph
版本 0.1.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

Agent Experience Graph 是什么?

Use when an agent should learn from prior task-solving traces, recommend tools or skills for a new decomposed task, record reusable execution experience, or... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 107 次。

如何安装 Agent Experience Graph?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install agent-experience-graph」即可一键安装,无需额外配置。

Agent Experience Graph 是免费的吗?

是的,Agent Experience Graph 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Agent Experience Graph 支持哪些平台?

Agent Experience Graph 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Agent Experience Graph?

由 Yao Li(@yao23)开发并维护,当前版本 v0.1.1。

💬 留言讨论