Install
openclaw skills install agent-experience-graphUse when an agent should learn from prior task-solving traces, recommend tools or skills for a new decomposed task, record reusable execution experience, or compare current subtasks with solved tasks from other agents.
openclaw skills install agent-experience-graphThis 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 importersagents/openai.yaml: Codex UI metadataadapters/README.md: install notes for Codex, Claude Code, OpenClaw, Hermes, and generic agentsUse this skill to turn prior agent runs into reusable guidance for new tasks. The core loop is:
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:
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
For field definitions and an example trace library, read references/trace_schema.md when creating new datasets, validators, or import/export adapters.