Skip to content
Back to skills

Spot Graph

ASecurity

为当前 Git 仓库启用 CodeGraph,成功提交后自动增量刷新代码图谱。Use when explicitly asked to enable, refresh, or disable post-commit graph updates.

  • 6 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 12, 2026
ai-agentsnodegit

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned November 12, 2026

npx -y skills add hopkinson/spotter --skill spot-graph --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Spot Graph?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Spot Graph
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hopkinson-spot-graph/badge)](https://www.skillsdirectory.com/skills/hopkinson-spot-graph)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: spot-graph
description: 为当前 Git 仓库启用 CodeGraph,成功提交后自动增量刷新代码图谱。Use when explicitly asked to enable, refresh, or disable post-commit graph updates.
---

在目标 Git 仓库内运行本技能目录下的 `scripts/graph.mjs`。

- `$spot-graph` 或 `/spot-graph` 运行 `node "<本技能目录>/scripts/graph.mjs"`。首次从 npm 获取固定版本的 CodeGraph,将运行时放在 Git 元数据目录,初始化图谱,再安装本地 `post-commit`。重复运行可刷新图谱并更新受管 hook。
- `$spot-graph --off` 传入 `--off`,仅移除内容仍由 Spotter 管理的 hook,保留图谱。
- 主工作树的提交会刷新启用时选定的图谱,包含尚未提交的文件改动。成功时静默,失败时提示,Git 提交仍然保留。
- 遇到已有 `post-commit`、自定义 `core.hooksPath` 或 Git 链接工作树时,报告脚本的提示。项目自管的 hook 应直接调用可信位置的 CodeGraph 安装。

收尾遵循公共规则「统一收尾」:显式调用时报告实际已启用、已刷新或已停用的结果;正常完成无需额外操作。异常时说明失败步骤、图谱与 hook 的实际状态,以及最直接的处理操作,不把初始化失败说成启用成功。提交后自动刷新的成功静默行为保持不变。

Files in this skill

  • SKILL.md1.3 KB
  • scripts/graph.mjs6.6 KB
  • scripts/sync.cjs1000 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.