Install
openclaw skills install skill-graph-for-analogical-reasoningSkill Graph for Analogical Reasoning. Build a graph over SKILL.md skills, choose one primary skill, and retrieve complementary support instead of naively attaching top similar skills.
openclaw skills install skill-graph-for-analogical-reasoningUse this skill when the user wants to work with a graph skill over local SKILL.md folders.
This skill is for:
The full Python package and CLI for this project are available in the GitHub repository.
This skill wraps the grap-skill capability.
It supports three primary commands:
/grap-skill build/grap-skill query/grap-skill lookbuild is the only command that may scan skill folders and update the graph.query and look are read-only against an existing graph.json.query.This skill is allowed to call code.
The python3 {baseDir}/scripts/run_grap_skill.py ... commands below are the
stable execution entrypoints intended for the skill runtime and for model-driven
tool use. They let the skill call a controlled wrapper inside the installed
skill bundle instead of relying on ad hoc shell reconstruction.
Preferred execution order:
{baseDir}/scripts/run_grap_skill.py.python -m auto_grap_skill./grap-skill buildpython3 {baseDir}/scripts/run_grap_skill.py build --source <skills_dir> --output <graph_dir>
Example:
python3 {baseDir}/scripts/run_grap_skill.py build --source ./skills-main --output ./.grap-skill
/grap-skill querypython3 {baseDir}/scripts/run_grap_skill.py query "<task text>" --graph <graph_json_path>
Example:
python3 {baseDir}/scripts/run_grap_skill.py query "edit a docx file with comments" --graph ./.grap-skill/graph.json
/grap-skill lookpython3 {baseDir}/scripts/run_grap_skill.py look --graph <graph_json_path> --output <html_path>
Example:
python3 {baseDir}/scripts/run_grap_skill.py look --graph ./.grap-skill/graph.json --output ./.grap-skill/graph-look.html
primary_skill is the execution center.supporting_skills are the only skills that should normally supplement the primary skill in context.fallback_skills are substitutes for failure paths.similar_skills are for graph browsing, not default prompt context.Most retrieval systems stop at similarity. This one tries to separate:
That is the whole analogical-reasoning goal of this project.
README.md — human-facing usage and install notesreference.md — algorithm and result interpretationscripts/run_grap_skill.py — helper wrapper that calls the actual Python package/CLIThe GitHub release of this project should also point users back to this skill bundle for skill-style installation:
openclaw skills install skill-graph-for-analogical-reasoning