← 返回
开发者工具 中文

SkillChain

Supply chain intelligence for OpenClaw skills. Use when analyzing the local skill ecosystem, understanding tool and package dependencies, discovering skill c...
OpenClaw技能的供应链智能。用于分析本地技能生态、理解工具和包依赖、发现技能c...
hyx-cn
开发者工具 clawhub v1.0.1 1 版本 100000 Key: 无需
★ 2
Stars
📥 505
下载
💾 14
安装
1
版本
#latest

概述

SkillChain

Supply chain intelligence and ecosystem analysis for OpenClaw skills. Operates offline-first against locally installed skills; optionally enriches with live clawhub metadata (stars, downloads, moderation verdicts) when network is available.

When to Use

TriggerAction
-----------------
"Analyze my skills" / "skill inventory"ingest analyze-all (one-shot)
"What tools / packages do my skills use?"analyze packages
"Show dependencies for skill X"analyze supply-chain --skill
"Which skills share package X?"analyze find-users --package
"Skill categories / ecosystem breakdown"analyze categories
"How complete / healthy are my skills?"analyze health
"Do any skills overlap or duplicate?"analyze overlaps
"Sync online popularity / security data"ingest enrich
"Full ecosystem report with insights"analyze report
"Rebuild graph from scratch"ingest reset && ingest scan

Workflow

One-shot (recommended)

# Reset, scan, health check, overlap analysis, full report — all in one command
python3 scripts/ingest.py analyze-all

# With custom directories
python3 scripts/ingest.py analyze-all --dirs ~/.cursor/skills-cursor ~/.openclaw/skills ~/Downloads/skills-main/skills

Step 1 — Ingest (build the graph from local skills)

# Auto-discover skills under default paths
python3 scripts/ingest.py scan

# Specify directories explicitly
python3 scripts/ingest.py scan --dirs ~/Downloads/skills-main/skills ~/.codex/skills ~/Downloads/ontology

# Online enrichment: adds stars, downloads, moderation verdict from clawhub
# Skipped automatically if network is unavailable
python3 scripts/ingest.py enrich

# Check what's currently in the graph
python3 scripts/ingest.py status

# Reset and rebuild
python3 scripts/ingest.py reset
python3 scripts/ingest.py scan

Step 2 — Analyze

# Ecosystem overview (counts, categories, top packages)
python3 scripts/analyze.py stats

# Category distribution
python3 scripts/analyze.py categories

# Skill completeness health scores (0-100 per skill, with specific issues)
python3 scripts/analyze.py health

# Detect overlapping or complementary skill pairs
python3 scripts/analyze.py overlaps

# Top N skills by a metric
python3 scripts/analyze.py top --by stars --limit 10
python3 scripts/analyze.py top --by downloads --limit 10

# Skill profile card (dependencies, tools, bins, invocation pattern, online metrics)
python3 scripts/analyze.py profile --skill ontology

# Full supply chain for a skill (invoked_via → requires_bin → tools → packages → skill deps)
python3 scripts/analyze.py supply-chain --skill agent-browser

# Find all skills that use a specific package
python3 scripts/analyze.py find-users --package playwright

# Most-used packages across all skills
python3 scripts/analyze.py packages --top 20

# Full markdown report with Key Insights section
python3 scripts/analyze.py report

Data Sources

SourceWhat it providesRequired?
------------------------------------
SKILL.md frontmattername, description, license, allowed-tools, metadata.requires.bins, read_whenYes
requirements.txtDeclared Python package deps (pypi)When present
pyproject.tomlPython deps: PEP 621, Poetry, optional-depsWhen present
PipfilePython deps (Pipfile format)When present
package.jsonnpm deps: dependencies / devDeps / peerDepsWhen present
scripts/*.py AST scanImplicit Python imports (non-stdlib only)When present
_meta.json / .clawhub/origin.jsonslug, version, registryWhen present
clawhub API (online)stars, downloads, moderation verdict, ownerOptional

Graph Relations

RelationMeaning
-------------------
belongs_to_categoryskill belongs to a functional category
requires_packageskill depends on a pypi / npm package
uses_toolskill uses a detected tool (heuristic)
requires_toolskill requires a system binary (metadata.requires.bins)
invoked_viaskill is called through a tool channel (allowed-tools)
depends_on_skillskill references another skill in its description

Default Scan Paths

The ingest script checks these locations by default:

  • ~/.openclaw/skills
  • ~/.openclaw/extensions (extensions exposing their own skills via /skills/*)
  • /Applications/OpenClaw.app/Contents/Resources/skills (macOS app bundle, when installed)

In addition, ingest scan augments the user-provided or default --dirs

arguments with:

  • /skills — project-local skills folder when this skill lives

inside a repository

  • $(npm root -g)/openclaw/skills — globally installed OpenClaw skills from

a Node.js / npm environment

Any directory containing a SKILL.md file is treated as a skill.

Ontology Contract

ontology:
  reads: [Skill, SkillCategory, Tool, SoftwarePackage]
  writes: [Skill, SkillCategory, Tool, SoftwarePackage]
  storage: memory/skillchain/graph.jsonl
  schema: schema/skillchain.yaml
  preconditions:
    - "At least one local skill directory is accessible"
  postconditions:
    - "Every discovered skill has a Skill entity"
    - "Skills with requirements.txt have SoftwarePackage entities and requires_package relations"

Storage

Graph data is written to memory/skillchain/graph.jsonl using the same append-only JSONL format as the ontology skill. Reuse scripts/ontology.py from the ontology skill for low-level graph operations.

References

  • references/model.md — Full ontology model (types, relations, constraints)
  • schema/skillchain.yaml — Machine-readable schema for validation

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-03-30 01:37 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,799
developer-tools

Agent Browser

matrixy
专为AI智能体优化的无头浏览器自动化CLI,支持无障碍树快照和基于引用的元素选择。
★ 427 📥 118,203
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 668 📥 324,165