← 返回
未分类 中文

skill-graph-for-analogical-reasoning

Skill Graph for Analogical Reasoning. Build a graph over SKILL.md skills, choose one primary skill, and retrieve complementary support instead of naively att...
技能图谱用于类比推理:基于 SKILL.md 构建技能图,选取主要技能并检索互补支持,而非简单...
h4444433333 h4444433333 来源
未分类 clawhub v1.0.4 2 版本 100000 Key: 无需
★ 1
Stars
📥 395
下载
💾 0
安装
2
版本
#latest

概述

Skill Graph for Analogical Reasoning

Use this skill when the user wants to work with a graph skill over local SKILL.md folders.

This skill is for:

  • graph-based skill indexing
  • analogical reasoning and transfer
  • one primary skill plus complementary support
  • avoiding naive "top similar skills" retrieval

The full Python package and CLI for this project are available in the GitHub repository.

What this skill does

This skill wraps the grap-skill capability.

It supports three primary commands:

  • /grap-skill build
  • /grap-skill query
  • /grap-skill look

Core rule

  • build is the only command that may scan skill folders and update the graph.
  • query and look are read-only against an existing graph.json.
  • Do not silently rebuild during query.

Code-backed usage

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:

  1. Use the helper script in {baseDir}/scripts/run_grap_skill.py.
  2. If the Python package is installed in the current interpreter, the wrapper may use python -m auto_grap_skill.
  3. If neither bundled code nor the local Python package is available, direct the user to the GitHub repository for this project and install the Python package first.

Primary commands

/grap-skill build

python3 {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 query

python3 {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 look

python3 {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

How to interpret results

  • primary_skill is the execution center.
  • Always treat primary_skill as the default lead. Use a supporting_skill only if it adds clear missing coverage and does not conflict with or dilute the primary skill. If a suggested supporting skill is not actually helpful for the current task, do not adopt it.
  • 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.

Why this is different

Most retrieval systems stop at similarity.

This one tries to separate:

  • the skill that should lead execution
  • the skills that add complementary coverage
  • the skills that are merely nearby or redundant

That is the whole analogical-reasoning goal of this project.

More files in this skill

  • README.md — human-facing usage and install notes
  • reference.md — algorithm and result interpretation
  • scripts/run_grap_skill.py — helper wrapper that calls the actual Python package/CLI

GitHub version

The GitHub release of this project should also point users back to this skill

bundle for skill-style installation:

  • ClawHub/OpenClaw install: openclaw skills install skill-graph-for-analogical-reasoning
  • GitHub/Python install: use the repository's Python package and local CLI when a full source checkout is preferred

版本历史

共 2 个版本

  • v1.0.4 当前
    2026-05-29 13:40
  • v1.0.3
    2026-05-12 05:21 安全 安全

安全检测

腾讯云安全 (Keen)

队列中

腾讯云安全 (Sanbu)

队列中

🔗 相关推荐

knowledge-management

Obsidian

steipete
操作 Obsidian 仓库(纯 Markdown 笔记)并通过 obsidian-cli 自动化。
★ 446 📥 105,205
dev-programming

tree-graph-rag

h4444433333
设计并实现融合PageIndex文档树与LightRAG实体关系锚点的PostgreSQL数据库指南。
★ 1 📥 489
knowledge-management

web-tools-guide

user_ec205dbb
MANDATORY before calling web_search, web_fetch, browser, or opencli. Contains required error-handling procedures (web_se
★ 73 📥 163,203