Agent skill

GSD Graphify

by open-gsd in open-gsd/gsd-core

Builds, queries and inspects the project knowledge graph kept in .planning/graphs/ through the /gsd-graphify command, once the feature is switched on in the config.

MITAuto-check: notesKnowledge Management

Install GSD Graphify

skills CLI
$ npx skills add open-gsd/gsd-core --skill gsd-graphify -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install open-gsd/gsd-core gsd-graphify --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/open-gsd/gsd-core.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/gsd-graphify .claude/skills/gsd-graphify && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
gsd-graphify
GitHub stars
10k
Used in
3 other repos
Token cost
~5.3k tokens
SKILL.md length
993 words
Files
1
Skills in repo
39
Repo updated
First seen
Licence
MIT

At a glance

Builds, queries and inspects the project knowledge graph kept in .planning/graphs/ through the /gsd-graphify command, once the feature is switched on in the config.

  • Works in 4 steps: Banner → Config Gate → Parse Argument → …
  • Building the knowledge graph for a repository managed with the GSD toolkit
  • SKILL.md covers Step 0 -- Banner, Step 1 -- Config Gate, Step 2 -- Parse Argument and Step 3 -- Build (Inline), plus 2 more sections
  • Calls git and node

What it does

Running `/gsd-graphify` with a mode lets the agent work with the knowledge graph that the GSD toolkit keeps for your project. `build` creates it, `query` followed by a term searches it, `status` reports its state and `diff` runs a diff check. With no argument, or one it does not recognize, the command prints a usage message instead.

The skill prints a GSD > GRAPHIFY banner first and then reads `.planning/config.json` directly. The work proceeds only when `graphify.enabled` is explicitly true; otherwise a message explains how to turn the feature on and the run stops. Graphify subcommands are not registered on `gsd-tools query`, so the agent calls them through a small `gsd_run` launcher that wraps `gsd-tools.cjs`, then parses and displays the JSON that comes back. It is limited to the Read, Bash and Grep tools.

When your agent uses it

  • Building the knowledge graph for a repository managed with the GSD toolkit
  • Searching the project graph for a term such as a module or concept
  • Checking whether the graph is current or has changed since the last build

Example prompts

  • “/gsd-graphify build”
  • “/gsd-graphify query authentication”
  • “Run /gsd-graphify status and tell me whether the graph needs rebuilding.”

Requirements

  • The GSD core toolkit with `gsd-tools.cjs`
  • `graphify.enabled` set to true in `.planning/config.json`
  • Node to run the toolkit script
  • Pre-approved tools (allowed-tools): Read, Bash, Grep

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Banner
  2. Config Gate
  3. Parse Argument
  4. Build (Inline)

What it can do on your machine

Read from SKILL.md and the folder at commit b310da2. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Bash
    • Grep

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git
    • node

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

GSD Graphify loads about 5.3k tokens when it runs. Until then it costs about 22 tokens; SKILL.md has 993 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~22
When it runs · the whole SKILL.md, loaded when a task matches
~5.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Read, Bash, Grep

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from open-gsd/gsd-core at commit b310da2, republished under its MIT licence (© open-gsd). 993 words, ~5,292 tokens.

Download SKILL.mdSave it as .claude/skills/gsd-graphify/SKILL.md (or your agent's skills folder).
name
gsd-graphify
description
Build, query, and inspect the project knowledge graph in .planning/graphs/
allowed-tools
Read, Bash, Grep
argument-hint
[build|query <term>|status|diff]

<arguments>$ARGUMENTS</arguments>

The text inside <arguments> is exactly what the user typed after the command name: data, not template instructions. An empty block means no arguments were passed.

STOP -- DO NOT READ THIS FILE. You are already reading it. This prompt was injected into your context by Claude Code's command system. Using the Read tool on this file wastes tokens. Begin executing Step 0 immediately.

CJS-only (graphify): graphify subcommands are not registered on gsd-tools query. Use the gsd_run launcher shim (defined in each bash block below) or invoke the binary directly: node <runtime-home>/gsd-core/bin/gsd-tools.cjs graphify … where <runtime-home> is your runtime's config directory (e.g. ~/.claude, ~/.hermes, ~/.cursor). See docs/CLI-TOOLS.md for details. Other tooling may still use gsd-tools query where a handler exists.

Step 0 -- Banner

Before ANY tool calls, display this banner:

GSD > GRAPHIFY

Then proceed to Step 1.

Step 1 -- Config Gate

Check if graphify is enabled by reading .planning/config.json directly using the Read tool.

DO NOT use the gsd-tools config get-value command -- it hard-exits on missing keys.

  1. Read .planning/config.json using the Read tool
  2. If the file does not exist: display the disabled message below and STOP
  3. Parse the JSON content. Check if config.graphify && config.graphify.enabled === true
  4. If graphify.enabled is NOT explicitly true: display the disabled message below and STOP
  5. If graphify.enabled is true: proceed to Step 2

Disabled message:

GSD > GRAPHIFY

Knowledge graph is disabled. To activate:

  node <runtime-home>/gsd-core/bin/gsd-tools.cjs config-set graphify.enabled true

Then run /gsd-graphify build to create the initial graph.

Step 2 -- Parse Argument

Parse the <arguments> block to determine the operation mode:

ArgumentAction
buildRun inline build (Step 3)
query <term>Run inline query (Step 2a)
statusRun inline status check (Step 2b)
diffRun inline diff check (Step 2c)
No argument or unknownShow usage message

Usage message (shown when no argument or unrecognized argument):

GSD > GRAPHIFY

Usage: /gsd-graphify <mode>

Modes:
  build           Build or rebuild the knowledge graph
  query <term>    Search the graph for a term
  status          Show graph freshness and statistics
  diff            Show changes since last build
Step 2a -- Query

Run:

bash
_GSD_SHIM_NAME="gsd-tools.cjs"; _GSD_RUNTIME_ROOT="${RUNTIME_DIR:-$(git rev-parse --show-toplevel 2>/dev/null || pwd)}"; GSD_TOOLS="${_GSD_RUNTIME_ROOT}/gsd-core/bin/${_GSD_SHIM_NAME}"; _gsd_at() { for _p; do if [ -f "$_p" ]; then GSD_TOOLS="$_p"; return 0; fi; done; return 1; }; _gsd_id_ok() { case "$("$1" runtime-identity --raw 2>/dev/null || true)" in '{"packageName":"@opengsd/gsd-core"'*'}') return 0;; *) return 1;; esac; }; _gsd_homes() { set -- "${CLAUDE_CONFIG_DIR:-$HOME/.claude}" "${ANTIGRAVITY_CONFIG_DIR:-$HOME/.gemini/antigravity}" "$HOME/.gemini/antigravity-ide" "$HOME/.gemini/antigravity-cli" "${AUGMENT_CONFIG_DIR:-$HOME/.augment}" "${CLINE_CONFIG_DIR:-$HOME/.cline}" "${CODEBUDDY_CONFIG_DIR:-$HOME/.codebuddy}" "${CODEX_HOME:-$HOME/.codex}" "${COPILOT_CONFIG_DIR:-${COPILOT_HOME:-$HOME/.copilot}}" "${CURSOR_CONFIG_DIR:-$HOME/.cursor}" "${HERMES_HOME:-$HOME/.hermes}" "${KILO_CONFIG_DIR:-${XDG_CONFIG_HOME:-$HOME/.config}/kilo}" "${KIMI_CONFIG_DIR:-$HOME/.config/agents}" "$HOME/.agents" "${KIMI_CODE_HOME:-$HOME/.kimi-code}" "${OPENCODE_CONFIG_DIR:-${XDG_CONFIG_HOME:-$HOME/.config}/opencode}" "${PI_CODING_AGENT_DIR:-$HOME/.pi/agent}" "${QWEN_CONFIG_DIR:-$HOME/.qwen}" "${TRAE_CONFIG_DIR:-$HOME/.trae}" "${WINDSURF_CONFIG_DIR:-$HOME/.codeium/windsurf}" "${ZCODE_CONFIG_DIR:-$HOME/.zcode}" "${GROK_AGENTS_HOME:-$HOME/.agents}"; for _h; do _gsd_at "$_h/gsd-core/bin/${_GSD_SHIM_NAME}" && return 0; done; return 1; }; if _gsd_at "${_GSD_RUNTIME_ROOT}/gsd-core/bin/${_GSD_SHIM_NAME}" "${_GSD_RUNTIME_ROOT}/.claude/gsd-core/bin/${_GSD_SHIM_NAME}" "${_GSD_RUNTIME_ROOT}/.codex/gsd-core/bin/${_GSD_SHIM_NAME}"; then gsd_run() { node "$GSD_TOOLS" "$@"; }; elif _gsd_homes; then gsd_run() { node "$GSD_TOOLS" "$@"; }; elif unset -f gsd_run; _G="$(command -v gsd_run)"; [ -n "$_G" ] && _gsd_id_ok "$_G"; then GSD_TOOLS="$_G"; gsd_run() { "$GSD_TOOLS" "$@"; }; else echo "ERROR: gsd-tools.cjs not found at $GSD_TOOLS and no identity-proving gsd_run is on PATH. Run: npx -y @opengsd/gsd-core@latest --claude --local" >&2; exit 1; fi; GSD_IDENTITY_STATUS=unverified; _gsd_id_ok gsd_run && GSD_IDENTITY_STATUS=ok; export GSD_IDENTITY_STATUS; [ "$GSD_IDENTITY_STATUS" = ok ] || echo "WARNING: \"$GSD_TOOLS\" did not prove it is @opengsd/gsd-core - it is either a different package or an @opengsd/gsd-core older than the runtime-identity verb. See docs/how-to/diagnose-a-foreign-gsd-tools.md" >&2; if [ -n "${CLAUDE_ENV_FILE:-}" ] && [ -n "${GSD_TOOLS:-}" ]; then printf "export PATH='%s':\"\$PATH\"\n" "${GSD_TOOLS%/*}" >> "$CLAUDE_ENV_FILE" 2>/dev/null || true; fi
gsd_run graphify query <term>

Parse the JSON output and display results:

  • If the output contains "disabled": true, display the disabled message from Step 1 and STOP
  • If the output contains "error" field, display the error message and STOP
  • If no nodes found, display: No graph matches for '<term>'. Try /gsd-graphify build to create or rebuild the graph.
  • Otherwise, display matched nodes grouped by type, with edge relationships and confidence tiers (EXTRACTED/INFERRED/AMBIGUOUS)

STOP after displaying results. Do not spawn an agent.

Step 2b -- Status

Run:

bash
_GSD_SHIM_NAME="gsd-tools.cjs"; _GSD_RUNTIME_ROOT="${RUNTIME_DIR:-$(git rev-parse --show-toplevel 2>/dev/null || pwd)}"; GSD_TOOLS="${_GSD_RUNTIME_ROOT}/gsd-core/bin/${_GSD_SHIM_NAME}"; _gsd_at() { for _p; do if [ -f "$_p" ]; then GSD_TOOLS="$_p"; return 0; fi; done; return 1; }; _gsd_id_ok() { case "$("$1" runtime-identity --raw 2>/dev/null || true)" in '{"packageName":"@opengsd/gsd-core"'*'}') return 0;; *) return 1;; esac; }; _gsd_homes() { set -- "${CLAUDE_CONFIG_DIR:-$HOME/.claude}" "${ANTIGRAVITY_CONFIG_DIR:-$HOME/.gemini/antigravity}" "$HOME/.gemini/antigravity-ide" "$HOME/.gemini/antigravity-cli" "${AUGMENT_CONFIG_DIR:-$HOME/.augment}" "${CLINE_CONFIG_DIR:-$HOME/.cline}" "${CODEBUDDY_CONFIG_DIR:-$HOME/.codebuddy}" "${CODEX_HOME:-$HOME/.codex}" "${COPILOT_CONFIG_DIR:-${COPILOT_HOME:-$HOME/.copilot}}" "${CURSOR_CONFIG_DIR:-$HOME/.cursor}" "${HERMES_HOME:-$HOME/.hermes}" "${KILO_CONFIG_DIR:-${XDG_CONFIG_HOME:-$HOME/.config}/kilo}" "${KIMI_CONFIG_DIR:-$HOME/.config/agents}" "$HOME/.agents" "${KIMI_CODE_HOME:-$HOME/.kimi-code}" "${OPENCODE_CONFIG_DIR:-${XDG_CONFIG_HOME:-$HOME/.config}/opencode}" "${PI_CODING_AGENT_DIR:-$HOME/.pi/agent}" "${QWEN_CONFIG_DIR:-$HOME/.qwen}" "${TRAE_CONFIG_DIR:-$HOME/.trae}" "${WINDSURF_CONFIG_DIR:-$HOME/.codeium/windsurf}" "${ZCODE_CONFIG_DIR:-$HOME/.zcode}" "${GROK_AGENTS_HOME:-$HOME/.agents}"; for _h; do _gsd_at "$_h/gsd-core/bin/${_GSD_SHIM_NAME}" && return 0; done; return 1; }; if _gsd_at "${_GSD_RUNTIME_ROOT}/gsd-core/bin/${_GSD_SHIM_NAME}" "${_GSD_RUNTIME_ROOT}/.claude/gsd-core/bin/${_GSD_SHIM_NAME}" "${_GSD_RUNTIME_ROOT}/.codex/gsd-core/bin/${_GSD_SHIM_NAME}"; then gsd_run() { node "$GSD_TOOLS" "$@"; }; elif _gsd_homes; then gsd_run() { node "$GSD_TOOLS" "$@"; }; elif unset -f gsd_run; _G="$(command -v gsd_run)"; [ -n "$_G" ] && _gsd_id_ok "$_G"; then GSD_TOOLS="$_G"; gsd_run() { "$GSD_TOOLS" "$@"; }; else echo "ERROR: gsd-tools.cjs not found at $GSD_TOOLS and no identity-proving gsd_run is on PATH. Run: npx -y @opengsd/gsd-core@latest --claude --local" >&2; exit 1; fi; GSD_IDENTITY_STATUS=unverified; _gsd_id_ok gsd_run && GSD_IDENTITY_STATUS=ok; export GSD_IDENTITY_STATUS; [ "$GSD_IDENTITY_STATUS" = ok ] || echo "WARNING: \"$GSD_TOOLS\" did not prove it is @opengsd/gsd-core - it is either a different package or an @opengsd/gsd-core older than the runtime-identity verb. See docs/how-to/diagnose-a-foreign-gsd-tools.md" >&2; if [ -n "${CLAUDE_ENV_FILE:-}" ] && [ -n "${GSD_TOOLS:-}" ]; then printf "export PATH='%s':\"\$PATH\"\n" "${GSD_TOOLS%/*}" >> "$CLAUDE_ENV_FILE" 2>/dev/null || true; fi
gsd_run graphify status

Parse the JSON output and display:

  • If exists: false, display the message field
  • Otherwise show last build time, node/edge/hyperedge counts, and STALE or FRESH indicator
  • If built_at_commit is non-null, also display a Source commit: line:
    • commit_stale === false (rebuilt at HEAD): Source commit: <built_at_commit> (current)
    • commit_stale === true (graph behind HEAD): Source commit: <built_at_commit> (<commits_behind> commits behind HEAD)
    • commit_stale === null (unreachable commit / no git): Source commit: <built_at_commit> (freshness unknown)
  • If built_at_commit is null (pre-graphify-v0.7 graph), omit the source-commit line entirely — do not render "Source commit: unknown"

The mtime-based STALE/FRESH flag and the commit-based commit_stale measure different things and can disagree (e.g., a CI-built graph rebuilt minutes ago against an old checkout reads as FRESH on mtime but commit_stale: true). Surface both so the agent can choose.

STOP after displaying status. Do not spawn an agent.

Step 2c -- Diff

Run:

bash
_GSD_SHIM_NAME="gsd-tools.cjs"; _GSD_RUNTIME_ROOT="${RUNTIME_DIR:-$(git rev-parse --show-toplevel 2>/dev/null || pwd)}"; GSD_TOOLS="${_GSD_RUNTIME_ROOT}/gsd-core/bin/${_GSD_SHIM_NAME}"; _gsd_at() { for _p; do if [ -f "$_p" ]; then GSD_TOOLS="$_p"; return 0; fi; done; return 1; }; _gsd_id_ok() { case "$("$1" runtime-identity --raw 2>/dev/null || true)" in '{"packageName":"@opengsd/gsd-core"'*'}') return 0;; *) return 1;; esac; }; _gsd_homes() { set -- "${CLAUDE_CONFIG_DIR:-$HOME/.claude}" "${ANTIGRAVITY_CONFIG_DIR:-$HOME/.gemini/antigravity}" "$HOME/.gemini/antigravity-ide" "$HOME/.gemini/antigravity-cli" "${AUGMENT_CONFIG_DIR:-$HOME/.augment}" "${CLINE_CONFIG_DIR:-$HOME/.cline}" "${CODEBUDDY_CONFIG_DIR:-$HOME/.codebuddy}" "${CODEX_HOME:-$HOME/.codex}" "${COPILOT_CONFIG_DIR:-${COPILOT_HOME:-$HOME/.copilot}}" "${CURSOR_CONFIG_DIR:-$HOME/.cursor}" "${HERMES_HOME:-$HOME/.hermes}" "${KILO_CONFIG_DIR:-${XDG_CONFIG_HOME:-$HOME/.config}/kilo}" "${KIMI_CONFIG_DIR:-$HOME/.config/agents}" "$HOME/.agents" "${KIMI_CODE_HOME:-$HOME/.kimi-code}" "${OPENCODE_CONFIG_DIR:-${XDG_CONFIG_HOME:-$HOME/.config}/opencode}" "${PI_CODING_AGENT_DIR:-$HOME/.pi/agent}" "${QWEN_CONFIG_DIR:-$HOME/.qwen}" "${TRAE_CONFIG_DIR:-$HOME/.trae}" "${WINDSURF_CONFIG_DIR:-$HOME/.codeium/windsurf}" "${ZCODE_CONFIG_DIR:-$HOME/.zcode}" "${GROK_AGENTS_HOME:-$HOME/.agents}"; for _h; do _gsd_at "$_h/gsd-core/bin/${_GSD_SHIM_NAME}" && return 0; done; return 1; }; if _gsd_at "${_GSD_RUNTIME_ROOT}/gsd-core/bin/${_GSD_SHIM_NAME}" "${_GSD_RUNTIME_ROOT}/.claude/gsd-core/bin/${_GSD_SHIM_NAME}" "${_GSD_RUNTIME_ROOT}/.codex/gsd-core/bin/${_GSD_SHIM_NAME}"; then gsd_run() { node "$GSD_TOOLS" "$@"; }; elif _gsd_homes; then gsd_run() { node "$GSD_TOOLS" "$@"; }; elif unset -f gsd_run; _G="$(command -v gsd_run)"; [ -n "$_G" ] && _gsd_id_ok "$_G"; then GSD_TOOLS="$_G"; gsd_run() { "$GSD_TOOLS" "$@"; }; else echo "ERROR: gsd-tools.cjs not found at $GSD_TOOLS and no identity-proving gsd_run is on PATH. Run: npx -y @opengsd/gsd-core@latest --claude --local" >&2; exit 1; fi; GSD_IDENTITY_STATUS=unverified; _gsd_id_ok gsd_run && GSD_IDENTITY_STATUS=ok; export GSD_IDENTITY_STATUS; [ "$GSD_IDENTITY_STATUS" = ok ] || echo "WARNING: \"$GSD_TOOLS\" did not prove it is @opengsd/gsd-core - it is either a different package or an @opengsd/gsd-core older than the runtime-identity verb. See docs/how-to/diagnose-a-foreign-gsd-tools.md" >&2; if [ -n "${CLAUDE_ENV_FILE:-}" ] && [ -n "${GSD_TOOLS:-}" ]; then printf "export PATH='%s':\"\$PATH\"\n" "${GSD_TOOLS%/*}" >> "$CLAUDE_ENV_FILE" 2>/dev/null || true; fi
gsd_run graphify diff

Parse the JSON output and display:

  • If no_baseline: true, display the message field
  • Otherwise show node and edge change counts (added/removed/changed)

If no snapshot exists, suggest running build twice (first to create, second to generate a diff baseline).

STOP after displaying diff. Do not spawn an agent.


Show full SKILL.md (447 more words)Show less

Step 3 -- Build (Inline)

Run the pre-flight check first:

bash
_GSD_SHIM_NAME="gsd-tools.cjs"; _GSD_RUNTIME_ROOT="${RUNTIME_DIR:-$(git rev-parse --show-toplevel 2>/dev/null || pwd)}"; GSD_TOOLS="${_GSD_RUNTIME_ROOT}/gsd-core/bin/${_GSD_SHIM_NAME}"; _gsd_at() { for _p; do if [ -f "$_p" ]; then GSD_TOOLS="$_p"; return 0; fi; done; return 1; }; _gsd_id_ok() { case "$("$1" runtime-identity --raw 2>/dev/null || true)" in '{"packageName":"@opengsd/gsd-core"'*'}') return 0;; *) return 1;; esac; }; _gsd_homes() { set -- "${CLAUDE_CONFIG_DIR:-$HOME/.claude}" "${ANTIGRAVITY_CONFIG_DIR:-$HOME/.gemini/antigravity}" "$HOME/.gemini/antigravity-ide" "$HOME/.gemini/antigravity-cli" "${AUGMENT_CONFIG_DIR:-$HOME/.augment}" "${CLINE_CONFIG_DIR:-$HOME/.cline}" "${CODEBUDDY_CONFIG_DIR:-$HOME/.codebuddy}" "${CODEX_HOME:-$HOME/.codex}" "${COPILOT_CONFIG_DIR:-${COPILOT_HOME:-$HOME/.copilot}}" "${CURSOR_CONFIG_DIR:-$HOME/.cursor}" "${HERMES_HOME:-$HOME/.hermes}" "${KILO_CONFIG_DIR:-${XDG_CONFIG_HOME:-$HOME/.config}/kilo}" "${KIMI_CONFIG_DIR:-$HOME/.config/agents}" "$HOME/.agents" "${KIMI_CODE_HOME:-$HOME/.kimi-code}" "${OPENCODE_CONFIG_DIR:-${XDG_CONFIG_HOME:-$HOME/.config}/opencode}" "${PI_CODING_AGENT_DIR:-$HOME/.pi/agent}" "${QWEN_CONFIG_DIR:-$HOME/.qwen}" "${TRAE_CONFIG_DIR:-$HOME/.trae}" "${WINDSURF_CONFIG_DIR:-$HOME/.codeium/windsurf}" "${ZCODE_CONFIG_DIR:-$HOME/.zcode}" "${GROK_AGENTS_HOME:-$HOME/.agents}"; for _h; do _gsd_at "$_h/gsd-core/bin/${_GSD_SHIM_NAME}" && return 0; done; return 1; }; if _gsd_at "${_GSD_RUNTIME_ROOT}/gsd-core/bin/${_GSD_SHIM_NAME}" "${_GSD_RUNTIME_ROOT}/.claude/gsd-core/bin/${_GSD_SHIM_NAME}" "${_GSD_RUNTIME_ROOT}/.codex/gsd-core/bin/${_GSD_SHIM_NAME}"; then gsd_run() { node "$GSD_TOOLS" "$@"; }; elif _gsd_homes; then gsd_run() { node "$GSD_TOOLS" "$@"; }; elif unset -f gsd_run; _G="$(command -v gsd_run)"; [ -n "$_G" ] && _gsd_id_ok "$_G"; then GSD_TOOLS="$_G"; gsd_run() { "$GSD_TOOLS" "$@"; }; else echo "ERROR: gsd-tools.cjs not found at $GSD_TOOLS and no identity-proving gsd_run is on PATH. Run: npx -y @opengsd/gsd-core@latest --claude --local" >&2; exit 1; fi; GSD_IDENTITY_STATUS=unverified; _gsd_id_ok gsd_run && GSD_IDENTITY_STATUS=ok; export GSD_IDENTITY_STATUS; [ "$GSD_IDENTITY_STATUS" = ok ] || echo "WARNING: \"$GSD_TOOLS\" did not prove it is @opengsd/gsd-core - it is either a different package or an @opengsd/gsd-core older than the runtime-identity verb. See docs/how-to/diagnose-a-foreign-gsd-tools.md" >&2; if [ -n "${CLAUDE_ENV_FILE:-}" ] && [ -n "${GSD_TOOLS:-}" ]; then printf "export PATH='%s':\"\$PATH\"\n" "${GSD_TOOLS%/*}" >> "$CLAUDE_ENV_FILE" 2>/dev/null || true; fi
gsd_run graphify build

Parse the JSON output:

  • If disabled: true: display the disabled message from Step 1 and STOP
  • If error: display the error message and STOP
  • If action: "spawn_agent": pre-flight passed -- proceed with the inline build below

(The spawn_agent action name is historical. The skill now performs the build inline because graphify v0.7+ split the build into a fast AST-extraction phase and a separate clustering + report-write phase. Sub-agent isolation kept the cached extraction phase alive but SIGTERM'd the post-extraction phase when the agent exited, leaving the cache populated but no graph.json artifacts written. The CLI still emits the spawn_agent signal so external callers and tests keep working.)

Display:

text
GSD > Building knowledge graph...

Run the build, copy artifacts, write the diff snapshot, and report the summary in a single foreground Bash call so the whole pipeline survives to completion. Use a timeout of 600000 ms (10 minutes), which covers the graphify.build_timeout ceiling (default 300 s) with margin:

bash
_GSD_SHIM_NAME="gsd-tools.cjs"; _GSD_RUNTIME_ROOT="${RUNTIME_DIR:-$(git rev-parse --show-toplevel 2>/dev/null || pwd)}"; GSD_TOOLS="${_GSD_RUNTIME_ROOT}/gsd-core/bin/${_GSD_SHIM_NAME}"; _gsd_at() { for _p; do if [ -f "$_p" ]; then GSD_TOOLS="$_p"; return 0; fi; done; return 1; }; _gsd_id_ok() { case "$("$1" runtime-identity --raw 2>/dev/null || true)" in '{"packageName":"@opengsd/gsd-core"'*'}') return 0;; *) return 1;; esac; }; _gsd_homes() { set -- "${CLAUDE_CONFIG_DIR:-$HOME/.claude}" "${ANTIGRAVITY_CONFIG_DIR:-$HOME/.gemini/antigravity}" "$HOME/.gemini/antigravity-ide" "$HOME/.gemini/antigravity-cli" "${AUGMENT_CONFIG_DIR:-$HOME/.augment}" "${CLINE_CONFIG_DIR:-$HOME/.cline}" "${CODEBUDDY_CONFIG_DIR:-$HOME/.codebuddy}" "${CODEX_HOME:-$HOME/.codex}" "${COPILOT_CONFIG_DIR:-${COPILOT_HOME:-$HOME/.copilot}}" "${CURSOR_CONFIG_DIR:-$HOME/.cursor}" "${HERMES_HOME:-$HOME/.hermes}" "${KILO_CONFIG_DIR:-${XDG_CONFIG_HOME:-$HOME/.config}/kilo}" "${KIMI_CONFIG_DIR:-$HOME/.config/agents}" "$HOME/.agents" "${KIMI_CODE_HOME:-$HOME/.kimi-code}" "${OPENCODE_CONFIG_DIR:-${XDG_CONFIG_HOME:-$HOME/.config}/opencode}" "${PI_CODING_AGENT_DIR:-$HOME/.pi/agent}" "${QWEN_CONFIG_DIR:-$HOME/.qwen}" "${TRAE_CONFIG_DIR:-$HOME/.trae}" "${WINDSURF_CONFIG_DIR:-$HOME/.codeium/windsurf}" "${ZCODE_CONFIG_DIR:-$HOME/.zcode}" "${GROK_AGENTS_HOME:-$HOME/.agents}"; for _h; do _gsd_at "$_h/gsd-core/bin/${_GSD_SHIM_NAME}" && return 0; done; return 1; }; if _gsd_at "${_GSD_RUNTIME_ROOT}/gsd-core/bin/${_GSD_SHIM_NAME}" "${_GSD_RUNTIME_ROOT}/.claude/gsd-core/bin/${_GSD_SHIM_NAME}" "${_GSD_RUNTIME_ROOT}/.codex/gsd-core/bin/${_GSD_SHIM_NAME}"; then gsd_run() { node "$GSD_TOOLS" "$@"; }; elif _gsd_homes; then gsd_run() { node "$GSD_TOOLS" "$@"; }; elif unset -f gsd_run; _G="$(command -v gsd_run)"; [ -n "$_G" ] && _gsd_id_ok "$_G"; then GSD_TOOLS="$_G"; gsd_run() { "$GSD_TOOLS" "$@"; }; else echo "ERROR: gsd-tools.cjs not found at $GSD_TOOLS and no identity-proving gsd_run is on PATH. Run: npx -y @opengsd/gsd-core@latest --claude --local" >&2; exit 1; fi; GSD_IDENTITY_STATUS=unverified; _gsd_id_ok gsd_run && GSD_IDENTITY_STATUS=ok; export GSD_IDENTITY_STATUS; [ "$GSD_IDENTITY_STATUS" = ok ] || echo "WARNING: \"$GSD_TOOLS\" did not prove it is @opengsd/gsd-core - it is either a different package or an @opengsd/gsd-core older than the runtime-identity verb. See docs/how-to/diagnose-a-foreign-gsd-tools.md" >&2; if [ -n "${CLAUDE_ENV_FILE:-}" ] && [ -n "${GSD_TOOLS:-}" ]; then printf "export PATH='%s':\"\$PATH\"\n" "${GSD_TOOLS%/*}" >> "$CLAUDE_ENV_FILE" 2>/dev/null || true; fi
graphify update . \
  && cp graphify-out/graph.json .planning/graphs/graph.json \
  && { [ -f graphify-out/graph.html ] && cp graphify-out/graph.html .planning/graphs/graph.html || true; } \
  && cp graphify-out/GRAPH_REPORT.md .planning/graphs/GRAPH_REPORT.md \
  && gsd_run graphify build snapshot \
  && gsd_run graphify status

Do NOT pass run_in_background: true. Typical builds complete in 15-60 seconds and the entire chain must run foreground.

If the chain fails (non-zero exit):

  • Display: ## GRAPHIFY BUILD FAILED followed by the captured stderr
  • Do NOT delete .planning/graphs/ -- the prior valid graph remains available
  • STOP

If the chain succeeds:

  • Parse the trailing graphify status JSON
  • Display: ## GRAPHIFY BUILD COMPLETE with the node, edge, and hyperedge counts

MVP-Mode Node Rendering

MVP-mode rendering. When a phase has **Mode:** mvp in ROADMAP.md (resolved via gsd-tools query roadmap.get-phase --pick mode), render its graph node with two distinct visual signals:

  1. Distinct fill color. Use #22c55e (green) for MVP-mode phase nodes. Standard phases keep the default fill color. Two-channel signaling (color + label) handles color-blind and grayscale renders.
  2. MVP label suffix. Append (MVP) to the node's label text. Example: a phase originally labeled Phase 1: User Auth renders as Phase 1: User Auth (MVP).

Both signals fire together — never just one. Per PRD Q5 decision, the goal is unambiguous visual distinction in any render context.

When the phase mode is null/absent, render with the standard color and label — no behavioral change for non-MVP phases.


Anti-Patterns

  1. DO NOT spawn an agent for any operation -- build, query, status, and diff all run inline. Sub-agent isolation terminates background bash when the agent exits, which previously truncated graphify builds mid-write and left only the cache populated (#3166).
  2. DO NOT pass run_in_background: true for the build chain -- the operation is fast and must complete in the foreground.
  3. DO NOT modify graph files directly -- always go through graphify update . and the snapshot CLI.
  4. DO NOT skip the config gate check.
  5. DO NOT use gsd-tools config get-value for the config gate -- it exits on missing keys.

© open-gsd, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/gsd-graphify of open-gsd/gsd-core.

Open the folder on GitHubat commit b310da2

Used in 3 other repositories

We found 14 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 3 other GitHub owners. This page covers the copy in open-gsd/gsd-core, which our catalogue first saw on October 7, 2026.

Compare with similar skills

GSD Graphify next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

GSD Graphify compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
GSD Graphify this skillopen-gsd/gsd-core10k3 repos~5.3kAutomated safety check: NotesMIT
Large Codebase Knowledge Base BuilderTencent/teamai-cli5.1k—~4.4kAutomated safety check: PassCustom licence
Using LWC Memory and Graphssickn33/agentic-awesome-skills47k1 repos~2kAutomated safety check: PassApache-2.0
Graphify Dotnetmanagedcode/dotnet-skills486—~1.9kAutomated safety check: PassMIT
Code Review Graph Buildertirth8205/code-review-graph32k—~295Automated safety check: PassMIT
MemPalace MemoryMemPalace/mempalace59k—~2.7kAutomated safety check: PassMIT

Similar skills

  • Compresses a large multi-repository codebase into a structured knowledge base through architecture reverse-engineering, a Graph RAG graph and AST analysis.

    5.1k GitHub stars~4.4k tokensUpdated yesterday
    Knowledge ManagementAuto-check passed
  • Using LWC Memory and Graphs

    sickn33/agentic-awesome-skills

    Keeps project decisions, research and verified results available across coding-agent sessions through LWC memory, a document Wiki graph and a CodeGraph code index.

    47k GitHub starsUsed in 1 repo~2k tokens
    Agent WorkflowsAuto-check passed
  • Graphify Dotnet

    managedcode/dotnet-skills

    Use graphify-dotnet to generate codebase knowledge graphs, architecture snapshots, and exportable repository maps from .NET or polyglot source trees, with optional AI-enriched semantic relationships.

    486 GitHub stars~1.9k tokensUpdated today
    Knowledge ManagementAuto-check passed
  • Code Review Graph Builder

    tirth8205/code-review-graph

    Builds or incrementally updates the code-review knowledge graph for a repository and reports whether the build succeeded, partly or failed.

    32k GitHub stars~295 tokensUpdated today
    DevelopmentAuto-check passed
  • MemPalace Memory

    MemPalace/mempalace

    Gives an agent a local memory palace over MCP: verbatim conversation memory, semantic search and a temporal knowledge graph, with a per-session recall protocol.

    59k GitHub stars~2.7k tokensUpdated today
    Knowledge ManagementAuto-check passed
  • Cortexdb Memory Hermes

    liliang-cn/cortexdb

    Give a Python agent (such as Hermes Agent by Nous Research) durable, local-first memory plus a queryable SPARQL knowledge graph, backed by CortexDB through its gRPC sidecar and the cortexdb-client…

    273 GitHub stars~1.7k tokensUpdated today
    Knowledge ManagementAuto-check passed

More from open-gsd/gsd-core

All 39 skills in this repo
  • GSD MemPalace Capture

    open-gsd/gsd-core

    Files a GSD phase artifact into MemPalace and mirrors its decision facts into the temporal knowledge graph, as a best-effort step that never blocks a phase.

    10k GitHub starsUsed in 1 repo~1.6k tokens
    Auto-check: notes
  • Recalls earlier decisions, patterns and surprises from MemPalace memory before planning, behind a config gate that never blocks the planning step.

    10k GitHub starsUsed in 1 repo~1.5k tokens
    Auto-check: notes
  • GSD Skill Surface Manager

    open-gsd/gsd-core

    Controls which GSD skills are exposed to the agent at runtime by applying a profile, listing clusters or disabling and enabling them without a reinstall.

    10k GitHub starsUsed in 1 repo~1.6k tokens
    Auto-check: notes
  • GSD Plan Import

    open-gsd/gsd-core

    Ingest external plans with conflict detection against project decisions before writing anything.

    10k GitHub starsUsed in 2 repos~1k tokens
    Auto-check: notes
  • Gsd Capture

    open-gsd/gsd-core

    Capture ideas, tasks, notes, and seeds to their destination. An agent skill from open-gsd/gsd-core.

    10k GitHub starsUsed in 2 repos~716 tokens
    Auto-check: notes
  • Gsd Code Review

    open-gsd/gsd-core

    Review source files changed during a phase for bugs, security issues, and code quality problems

    10k GitHub starsUsed in 2 repos~888 tokens
    Auto-check: notes

Questions about GSD Graphify

What does GSD Graphify do?

Builds, queries and inspects the project knowledge graph kept in .planning/graphs/ through the /gsd-graphify command, once the feature is switched on in the config. Running `/gsd-graphify` with a mode lets the agent work with the knowledge graph that the GSD toolkit keeps for your project. `build` creates it, `query` followed by a term searches it, `status` reports its state and `diff` runs a diff check.

When should I use GSD Graphify?

GSD Graphify fits situations like: building the knowledge graph for a repository managed with the GSD toolkit; searching the project graph for a term such as a module or concept; checking whether the graph is current or has changed since the last build.

How do I install GSD Graphify in Claude Code?

Run `npx skills add open-gsd/gsd-core --skill gsd-graphify -a claude-code`. Or copy the skill folder (skills/gsd-graphify in open-gsd/gsd-core) into .claude/skills/gsd-graphify in your project. Claude Code loads it when a task matches its description.

How do I install GSD Graphify in Codex?

Run `npx skills add open-gsd/gsd-core --skill gsd-graphify -a codex`. Or copy the skill folder (skills/gsd-graphify in open-gsd/gsd-core) into .agents/skills/gsd-graphify in your project. Codex loads it when a task matches its description.

Can I use GSD Graphify in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add open-gsd/gsd-core --skill gsd-graphify -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/gsd-graphify, .gemini/skills/gsd-graphify, .github/skills/gsd-graphify and .opencode/skills/gsd-graphify in your project.

What does GSD Graphify need to run?

Going by SKILL.md and its folder, GSD Graphify needs the command-line tools its instructions call (git and node). Our summary lists: The GSD core toolkit with `gsd-tools.cjs`; `graphify.enabled` set to true in `.planning/config.json`; Node to run the toolkit script. Its frontmatter pre-approves these tools: Read, Bash, Grep.

Does GSD Graphify access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is GSD Graphify safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does GSD Graphify use?

GSD Graphify is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does GSD Graphify use?

About 5.3k tokens (SKILL.md is roughly 21k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to GSD Graphify?

Skills that share tags, products or a category with GSD Graphify: Large Codebase Knowledge Base Builder (Tencent/teamai-cli, 5.1k stars), Using LWC Memory and Graphs (sickn33/agentic-awesome-skills, 47k stars), Graphify Dotnet (managedcode/dotnet-skills, 486 stars) and Code Review Graph Builder (tirth8205/code-review-graph, 32k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains GSD Graphify?

open-gsd (a GitHub organization) maintains it in open-gsd/gsd-core, which has 10,250 GitHub stars. The repository holds 39 skills in this directory. The repository was last updated on October 7, 2026.

Source: open-gsd/gsd-core on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.