Skip to main content

ckgraphify

本目录用于 Claude Code plugin。仓库源码统一放在 ${CLAUDE_PLUGIN_ROOT}/repos/,图谱和业务地图统一放在 ${CLAUDE_PLUGIN_ROOT}/graphify-out/

安装依赖

# codex
python3 -m pip install -e ./ckgraphify && graphify install --platform codex
# claude code plugin
python3 -m pip install -e ./ckgraphify && CLAUDE_PLUGIN_ROOT=/Users/alsc/code/shop-ai/genius-kg/apex-kg/claude-plugin graphify install

生成并合并仓库图谱

repo-list.json 是兼容 graph 流程的统一 repository catalog。当前记录以 repo_id 为唯一身份,配合 git/branch/position/description/project_type/business_domains/aliases/tags/capabilities/boundaries/review_status;graph 内部从 repo_id 派生 name/group,repo-profiles.json 也是可重建投影。旧版 name/group/summary 记录继续可读。

下面命令会分别进入 ${CLAUDE_PLUGIN_ROOT}/repos/kl-health${CLAUDE_PLUGIN_ROOT}/repos/ele-newretail-health-audit 生成 graphify-out/graph-main.json,然后合并到 ${CLAUDE_PLUGIN_ROOT}/graphify-out/graph.json

scripts/graph-main-repos.sh --repos-root "${CLAUDE_PLUGIN_ROOT}/repos" --out "${CLAUDE_PLUGIN_ROOT}/graphify-out/graph.json" kl-health ele-newretail-health-audit

也可以传入更多 ${CLAUDE_PLUGIN_ROOT}/repos/ 下的仓库名:

# 健康卡 init all repos
scripts/graph-main-repos.sh --repos-root "${CLAUDE_PLUGIN_ROOT}/repos" --out "${CLAUDE_PLUGIN_ROOT}/graphify-out/graph.json" ele-newretail-drug ele-newretail-health-task ele-newretail-drug-grow ele-newretail-health-audit ele-newretail-health-client ele-newretail-drug-trade kl-health health-vip-card medicine-unicore p ele-newretail-venus ele-newretail-summaryx china-alsc-sales-eleme-newretail-app
# 健康卡 增量更新 p、medicine-unicore repos
scripts/graph-main-repos.sh \
    --incremental \
    --repos-root "${CLAUDE_PLUGIN_ROOT}/repos" \
    --out "${CLAUDE_PLUGIN_ROOT}/graphify-out/graph.json" \
    p medicine-unicore

main-trace 追踪

只输出追踪结果

关于ehealth-member实体的全部链路

graphify main-trace \
    --graph "${CLAUDE_PLUGIN_ROOT}/graphify-out/graph.json" \
    --from ehealth-member \
    --max-depth 8

选择ehealth-member实体的/shopping/healthCard/createHealthCard 支线链路

graphify main-trace \
    --graph "${CLAUDE_PLUGIN_ROOT}/graphify-out/graph.json" \
    --from ehealth-member \
    --api /shopping/healthCard/createHealthCard \
    --max-depth 8

输出追踪结果和来源文件

graphify main-trace \
    --graph "${CLAUDE_PLUGIN_ROOT}/graphify-out/graph.json" \
    --from ehealth-member \
    --max-depth 8 --sources

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ckgraphify-0.2.7.tar.gz (303.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ckgraphify-0.2.7-py3-none-any.whl (324.7 kB view details)

Uploaded Python 3

File details

Details for the file ckgraphify-0.2.7.tar.gz.

File metadata

  • Download URL: ckgraphify-0.2.7.tar.gz
  • Upload date:
  • Size: 303.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.2

File hashes

Hashes for ckgraphify-0.2.7.tar.gz
Algorithm Hash digest
SHA256 2c36cc01eb02dff8f09e8d2778bbd115c7cf88b5ee24a5b2ddd6eb3ea6c2d45f
MD5 780f3107fb079bd4ce0042f2a4ed4b96
BLAKE2b-256 2297c20f5f4e783adb4077d1eaaf6845c685a271ed5a701c16c96c8994e026ab

See more details on using hashes here.

File details

Details for the file ckgraphify-0.2.7-py3-none-any.whl.

File metadata

  • Download URL: ckgraphify-0.2.7-py3-none-any.whl
  • Upload date:
  • Size: 324.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.2

File hashes

Hashes for ckgraphify-0.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 aad9858d1a8e17c49e5e28b3870945773f1a554ff14ca774bd7606623374b70f
MD5 7f3a633c83184038c61684a5eaad5e61
BLAKE2b-256 56e44cef66ea9aaf6f0269be17dfe1a041613442aacacaf20c38ed925f29173a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page