graph-setup
/graph-setup
Wdraża w przestrzeni roboczej z repozytoriami git narzędzie graphify: wykrywa lub instaluje je, buduje brakujące grafy i dodaje hooki git po commicie i merge.
- Autor
- choiyounggi ↗
- Repozytorium
- dev-loop ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 23.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 23.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Wdraża w przestrzeni roboczej z repozytoriami git narzędzie graphify: wykrywa lub instaluje je, buduje brakujące grafy i dodaje hooki git po commicie i merge.
Wyzwalacze z opisu
Argumenty
/graph-setup [global | repo]
Oryginalny opis (EN)
Onboard a workspace of git repos onto the graphify code graph — detect or (with consent) install graphify, record the workspace roots in tools.json, build absent graphs with graphify update after one batch confirmation, and install graphify's post-commit/post-checkout hooks plus dev-loop's post-merge hook per repo. Use when asked to "set up the code graph", "onboard the workspace", "install graphify", "graph setup", or "/dev-loop:graph-setup".
Jak działa
- Steps
- Guardrails
- Pre-send check
Podgląd SKILL.md
---
name: graph-setup
effort: medium
argument-hint: "[global | repo]"
description: Onboard a workspace of git repos onto the graphify code graph — detect or (with consent) install graphify, record the workspace roots in tools.json, build absent graphs with graphify update after one batch confirmation, and install graphify's post-commit/post-checkout hooks plus dev-loop's post-merge hook per repo. Use when asked to "set up the code graph", "onboard the workspace", "install graphify", "graph setup", or "/dev-loop:graph-setup".
---
# graph-setup — onboard a workspace onto the graphify code graph
Every install and every build in this skill runs only after the user said yes
to an explicit `AskUserQuestion`. Nothing here runs from a SessionStart hook —
`hooks/graph-nudge.sh` only reports; this skill is the only place that builds
or installs.
## Steps
### Step 1 — detect graphify
Run `command -v graphify`.
- **Found** → continue to Step 2.
- **Absent** → ask with `AskUserQuestion`:
- Option 1: "Install with pipx (Recommended)" — runs the exact command
`pipx install graphifyy` (the PyPI package name is `graphifyy`, not
`graphify` — state this to the user).
- Option 2: "Skip — stop here"
On yes, run `pipx install graphifyy </dev/null > "$tmp" 2>&1` and show the
tail of `$tmp`. On no, stop here — nothing else in this skill runs.
### Step 2 — configure the workspace
Run `sh ${CLAUDE_PLUGIN_ROOT}/scripts/resolve-tools.sh --role workspace`.
- Already has `roots`? Use them as-is.
- Unset (`{"kind":"default"}`)? Ask the user for the root directory path(s)
and the scope, same choice as `/dev-loop:configure`:
- **Global** (all projects): `~/.claude/dev-loop/tools.json`
- **Per-repo** (committed, team-shared): `<repo>/.dev-loop/tools.json`
Write the key into that file (create it as `{}` first if it does not
exist yet):
```sh
jq '. + {workspace: {roots: $r, depth: 2, exclude: ["node_modules","graphify-out"]}}'
```
### Step 3 — show status
Run, with the configured depth/exclude/roots:
```sh
sh ${CLAUDE_PLUGIN_ROOT}/scripts/graph-workspace.sh --status --depth <n> [--exclude <glob>]... -- <root>...
```
Print every returned line verbatim as a table: repo, freshness, hooks.
### Step 4 — build absent graphs
Collect every repo Step 3 reported `absent`. If there are none, skip to
Step 5. Otherwise, before asking, brief the user with this sentence
verbatim:
> graphify update is AST-only (no LLM) and preserves semantic nodes from an
> earlier full run while replacing only code nodes, so the result is not
> identical to a full /graphify build.
Then ask ONE batch `AskUserQuestion` listing every absent repo, with option 1
"Build all N absent graphs now (Recommended)" and an option to skip. On yes,
run `graphify update "<repo>" </dev/null > "$tmp" 2>&1` for each absent repo,
sequentially, and report each result. On no, leave those graphs absent and
continue to Step 5 (hooks still get installed).
### Step 5 — install hooks
For every repo in the workspace, in order:
1. `(cd "<repo>" && graphify hook install)` — installs graphify's own
`post-commit`/`post-checkout` hooks.
2. `sh ${CLAUDE_PLUGIN_ROOT}/scripts/graph-hooks.sh install "<repo>"` —
installs dev-loop's `post-merge` hook.
`graph-hooks.sh install` also adds `graphify-out/` to `.git/info/exclude` (graphify's own installer does not); a repo's `.gitignore` is never touched by either — do not edit it yourself either.
### Step 6 — verify
Re-run Step 3's `--status`. Every repo should now report `hooks: ok`.
Anything else (`partial`, `none`, or `cannot-evaluate <reason>`) is listed
with its exact status line, not summarized away.
## Guardrails
- Never run any part of this skill from a SessionStart hook — only an
explicit `/dev-loop:graph-setup` invocation builds a graph or installs
anything; `hooks/graph-nudge.sh` only reports.
- Never install (pipx, `graphify hook install`, `graph-hooks.sh install`, or
`graphify update`) without a preceding `AskUserQuestion` "yes".
- Never edit a repo's `.gitignore` — installs use `.git/info/exclude`
instead.
- Worktrees (a `.git` **file**, not a directory) are skipped by
`graph-workspace.sh` by design; point a worker's `--graph` flag at the
main checkout's `graphify-out/graph.json` instead.
## Pre-send check
- [ ] Did every install (pipx, `graphify hook install`, `graph-hooks.sh
install`, `graphify update`) have an explicit `AskUserQuestion` "yes"
first?
- [ ] Was the update-vs-full-build sentence shown before any graph was
built?
- [ ] Is every repo in the workspace reported as `hooks: ok`, or explicitly
listed with its non-ok status line?
Wersje
W bazie nie ma innych skilli o nazwie graph-setup.
Migawka bazy z 13.11.2026 · wersja paczki df8e83df3ad7 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 95graphify
Obsługuje Graphify z linii poleceń: buduje, odświeża i przeszukuje graf wiedzy o kodzie, eksportuje raporty i serwuje go jako serwer MCP. - 100graphify
Mapuje folder lub bazę kodu na graf wiedzy za pomocą graphify CLI bez kosztów LLM i odpowiada na pytania o architekturę i zależności. - 100graphify-usage
Wyjaśnia, jak odpytywać graf wiedzy graphify o strukturę kodu, kiedy wybrać narzędzia grafowe zamiast grep i jak czytać wyniki zapytań. - 100graphify
Buduje graf wiedzy z kodu źródłowego przez CLI graphify, by odpowiedzieć, jak części projektu łączą się i zależą od siebie. - 100graph
Buduje i odświeża graf wiedzy repozytorium (struktura kodu i wiki) przez graphify, z interaktywną wizualizacją i raportem GRAPH_REPORT.md. - 100graphify
Buduje i odpytuje graf wiedzy o kodzie i dokumentach przez CLI graphify, instaluje go przez mise i eksportuje do GraphML, SVG, Neo4j lub Obsidiana.