Skip to content
Back to skills

Setup

ASecurity

Use when Sidegraph needs to be set up (or its setup finished/verified) in a repo — "set up sidegraph", "install sidegraph here", "get sidegraph working on this project", "настрой sidegraph", a fresh clone where memory should be turned on, or "why is my SessionStart map empty". Also reachable directly as /sidegraph:setup. The end-to-end first run: engine → graph → store → wiring check — offers domain naming after wiring, then hands off to import-adrs / record-decision for the first real memory.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 21, 2026
ai-agentspythongoshellbashgitapi

Works with

  • claude code
  • terminal
  • cli
  • api
  • mcp

Security analysis

A100/100

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

Scanned November 21, 2026

npx -y skills add SantyagoSeaman/sidegraph --skill setup --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Setup?

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

Security grade badge for Setup
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/santyagoseaman-setup/badge)](https://www.skillsdirectory.com/skills/santyagoseaman-setup)

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: setup
description: >-
  Use when Sidegraph needs to be set up (or its setup finished/verified) in a repo — "set up sidegraph", "install sidegraph here", "get sidegraph working on this project", "настрой sidegraph", a fresh clone where memory should be turned on, or "why is my SessionStart map empty". Also reachable directly as /sidegraph:setup. The end-to-end first run: engine → graph → store → wiring check — offers domain naming after wiring, then hands off to import-adrs / record-decision for the first real memory.
---

# Set up Sidegraph

Bring a repo from zero to a working memory loop. One fact up front: **if this skill is
running, the Sidegraph plugin is already installed**. Claude Code wires MCP and all four
hooks (`SessionStart`, `Stop`, `PreToolUse`, `SubagentStart`); Codex wires MCP and
`SessionStart`, `Stop`, `SubagentStart`. Grok Build wires MCP and all four hooks, but Grok
does not hand `SessionStart` or `SubagentStart` output to the model, so the MCP server sends the
session map instead. Every host launches Sidegraph through `uvx` from the PyPI release that
matches the plugin version.
Muse adds the session map and a subagent brief through two hooks, with no capture nudge or read
context. OpenCode supports MCP and skills only: use explicit MCP calls there.
What may still be missing: the engine, the graph, the store, and the first
memory. Work through the steps in order; every one is idempotent and safe to re-run.

## 1. Engine

```bash
export GRAPHIFY_NO_AUTO_REFRESH=1        # macOS, Linux: keeps Graphify off your agent skills
$env:GRAPHIFY_NO_AUTO_REFRESH = "1"      # Windows PowerShell: use this line instead
graphify --version
```

Missing → install it, pinned to a known-good version: `uv tool install "graphifyy==0.9.90"`
(double-y package name; the CLI is `graphify` — see
[engine version pinning](../../../../docs/integrations/graphify.md#engine-version-pinning)
for the current known-good range). If the command is still not found afterwards, the
`uv tool` bin directory isn't on `PATH` — `uv tool update-shell`, new shell, retry.

## 2. Graph

At the repo root, run `graphify update .` with the environment variable `GRAPHIFY_NO_AUTO_REFRESH=1` set. Without the variable, Graphify 0.9.87 and later refresh the agent skills they installed (such as `~/.claude/skills/graphify/`) on the first run after a Graphify upgrade; [set it persistently](../../../../docs/integrations/graphify.md#building-the-graph) to stop repeating it.

The LLM-free build — no API key. Produces `graphify-out/graph.json`, which Sidegraph reads
**read-only** (never writes). Works on code *and* markdown/ADR corpora, and on a non-git
folder too (sync falls back to a content-hash graph version — see
[non-git corpora](../../../../docs/integrations/graphify.md#non-git-and-doc-only-corpora)).

The graph is rebuilt from the code, so keep it out of git: if the root `.gitignore` has no
`graphify-out/` line, append one (create the file if it is missing). Write it as UTF-8; in
Windows PowerShell 5.1 use `Add-Content .gitignore "graphify-out/"`, not `>>`, which writes
UTF-16 that git ignores.

## 3. Store

```bash
uvx --from sidegraph==0.34.0 --python 3.13 sidegraph-init
```

Every Sidegraph CLI in this skill (`sidegraph-init --hooks`, `--no-hooks`, `--remove-hooks`,
`sidegraph-doctor --json`) is run this way: put the `uvx` launch above before the
command name, so it runs at the plugin's pinned version rather than the copy on `PATH`
([why](../../../../docs/reference/cli.md#running-the-clis-beside-the-plugin)).

Inside a Sidegraph checkout, use `uv run --project <checkout> --package sidegraph --frozen --no-active <cli>` instead.

Creates `.sidegraph/` — the repo-committed, file-per-record sidecar, plus its own
`.gitignore` keeping the derived `index.db` out of git — and reports the graph check.
Expected: `created store: .sidegraph`, `already initialized: .sidegraph exists.`, or
`empty store: .sidegraph exists; complete setup using the guidance below.` — all are
successful store results — and `found graph:` followed by the absolute path of
`graphify-out/graph.json`.
`missing graph:` means step 2 didn't run here. Run from a session it is non-interactive, so it
does not ask whether to install the git hook that keeps the graph fresh; it prints how to
(`sidegraph-init --hooks`, or `--no-hooks` to stop the reminder). Defer the hook question to step 5. Do not ask it or
install it here (see [the Graphify
integration](../../../../docs/integrations/graphify.md#keeping-the-graph-fresh-git-hooks)).
Commit `.sidegraph/` with the repo — the store travels with the code.

## 4. Verify the wiring

Before any MCP call, require step 3 to exit successfully and report
`created store:` or `already initialized:`, or `empty store:`,
plus `found graph:` for the intended project.
Verify that both reported paths exist. If initialization failed, either expected output
is missing/malformed, or the store or graph is absent, stop and repair steps 2–3.
Do not call MCP tools to create a missing store.

On Muse, first confirm that Muse was started in this repository: the MCP
server serves the Git repository enclosing the process's starting directory. Otherwise exit and restart Muse here.

Call `list_domains()` — the cheapest read-only MCP tool. A well-formed answer proves the
server is alive; an empty list is normal on a fresh store. To verify the intended project
store, retrieve a known project record, or use the linked capture/recall proof for a new store. On hosts with lifecycle hooks, the `SessionStart` memory map appears at the start of the **next** session — a stub
on an empty store is expected, not broken. On Grok Build the map comes from the MCP server: it is
there before the first answer, or after the first tool call when the server started slowly. For the full four-case proof (host wiring, durable
capture and retrieval, ratification, sync), point the human at
[verifying your setup](../../../../docs/guides/verifying-your-setup.md).

### Offer domain naming once

This is the only domain-naming offer in this setup flow. First confirm that the store
from step 3 exists and the graph from step 2 is available; if either is missing, repair
setup and do not offer yet. Read `list_domains(status="accepted")` and
`list_domains(status="proposed")`. Continue only when both results' `matched` counts are
`0`; an empty `domains` array does not prove zero matches. If either call fails or a
result is malformed, do not offer: finish the wiring check first.

Then call `list_domain_candidates(min_members=0, limit=1)`. Offer only if `graph_version`
is not null and `total_significant > 0`; a missing or unreadable graph, no communities,
or a failed/malformed result means no offer. The zero threshold checks for any community;
actual domain naming still uses the skill's normal candidate threshold.

Ask exactly this one line, once, and wait for the human's reply:

> Sidegraph's memory tools are connected. Would you like to name this project's domains now with sidegraph:name-domains?

On yes, invoke `sidegraph:name-domains` now, then resume this setup flow here. That yes
opens the naming conversation; it does not pick a domain set or authorize domain writes.
On no or defer, continue setup. Do not repeat the offer in the final handoff or in later
ordinary sessions. An explicit new setup request starts a new setup flow.

### Finish the host check

For Codex, Grok Build, OpenCode and Muse, the MCP call is the wiring check; skip
the following Claude-specific settings check. Shared `sidegraph:<skill>` names denote the corresponding
installed skill; in OpenCode use `@sidegraph-<skill>`.

On Claude Code, run `uvx --from sidegraph==0.34.0 --python 3.13 sidegraph-doctor --json` (a pure read) and read the finding `plugin-off-in-subdirectories`. It says that Claude
sessions started below the repository root run without Sidegraph: the plugin is enabled only in
the root's `.claude/settings.json`, which Claude Code reads for root launches alone, or a nested
directory's own settings leave it off. The fix changes the human's settings, so put the options
to them and do not edit the files unasked: enable the plugin in `.claude/settings.local.json` at
the root (it applies to every directory of the repository) or in their user settings. Version
skew is not part of this step: a session's Bash tool has no plugin root to compare against, so
the `Sidegraph <version>` line `SessionStart` prints and its notice cover it. See
[troubleshooting](../../../../docs/guides/troubleshooting.md#plugin-off-in-subdirectories).

## 5. Keep the graph fresh (ask the human first)

A graph nobody rebuilds goes stale, and memory then cannot see or anchor to new code. Ask the
human whether to install the refresh hook: a marked block in `post-commit`, `post-merge` and
`post-checkout` that rebuilds the **code** graph in the background, in the main checkout only
(linked worktrees read its graph). It never replaces an existing hook, and
`sidegraph-init --remove-hooks` takes it out. On a yes run
`uvx --from sidegraph==0.34.0 --python 3.13 sidegraph-init --hooks`; on a no run
`uvx --from sidegraph==0.34.0 --python 3.13 sidegraph-init --no-hooks`, which records the answer so that Sidegraph stops asking. Do not run
either unasked, and do not run `graphify hook install` instead: Graphify's own hook also rebuilds
in every linked worktree. (Doc/prose extraction still needs a manual rebuild after doc changes: run `graphify update .` with the environment variable `GRAPHIFY_NO_AUTO_REFRESH=1` set.) Details:
[keeping the graph fresh](../../../../docs/integrations/graphify.md#keeping-the-graph-fresh-git-hooks).

**Do NOT run `graphify claude install`.** The plugin already fronts the graph for Claude
Code (SessionStart map, records on read and edit, MCP); Graphify's own Claude wiring is redundant and
noisier — see
[why](../../../../docs/integrations/graphify.md#graphify-claude-install-is-redundant-with-the-sidegraph-plugin--skip-it).

## 6. Review policy (ask the human first)

Run from a session, `sidegraph-init` asks no settings question either, so the project keeps
the `manual` policy: every record the agent proposes waits for review. In a terminal the same
command asks whether to auto-ratify, and its default answer is yes. Put that question to the
human: should the lessons, gotchas and facts the agent proposes be accepted without review
once they are anchored to code? ADRs, constraints and domains always wait for a person either
way. On a yes run
`uvx --from sidegraph==0.34.0 --python 3.13 sidegraph-init --ratify-policy auto-low-risk`;
on a no run the same command with `--ratify-policy manual`, which records the answer. It
writes `SIDEGRAPH_RATIFY_POLICY` into `.claude/settings.json`, which the project commits, and
never overwrites a value already there. The MCP server reads the policy when it starts, so
the new policy applies from the next session. Claude Code applies the committed value, which also caps a looser value from the user's local settings; under
Codex, Grok and Muse it counts only when it is stricter than the host's own
`SIDEGRAPH_RATIFY_POLICY`. Details:
[`sidegraph-init`](../../../../docs/reference/cli.md#sidegraph-init).

## 7. First memory — hand off

In order of payoff:

1. **`sidegraph:import-adrs`** — if the repo already has ADRs/specs/runbooks, seed the
   store from them instead of starting empty.
2. **`sidegraph:record-decision`** — capture the first gotcha by hand; then call
   `get_task_context(files=[...])` for the relevant files to check recall on any host.

## Reset / cleanup

The store is `.sidegraph/`; everything Graphify owns is `graphify-out/`. Delete both to
start over. Source files are never touched. Sidegraph can also leave a few things outside
those two directories:

- the graph refresh hook, if installed (`sidegraph-init --hooks`, or a yes to its question):
  a helper and three hook blocks under `.git/hooks/`. Run
  `uvx --from sidegraph==0.34.0 --python 3.13 sidegraph-init --remove-hooks` first, because deleting the directories leaves them behind.
- the git config key `sidegraph.graphRefresh`, recorded by `sidegraph-init --no-hooks`.
  `--remove-hooks` clears it.
- the `.sidegraph/` block in the project-root `.ignore`, if `sidegraph-init` wrote it (see
  [the root `.ignore`](../../../../docs/reference/store-format.md#searching-the-repository-the-root-ignore)).
  `--remove-hooks` leaves it; delete the block by hand.
- `SIDEGRAPH_RATIFY_POLICY` in `.claude/settings.json`, if `sidegraph-init` wrote it.
- `${XDG_CACHE_HOME:-~/.cache}/sidegraph/launch-commit`, which a Sidegraph launched from `@main`
  (Codex, Muse, an older Claude plugin) writes at SessionStart and shares across every project on
  the machine. The current Claude plugin writes nothing there.

## See also

- [`docs/getting-started/quickstart.md`](../../../../docs/getting-started/quickstart.md) —
  the same path in doc form, including the no-plugin manual wiring alternative.
- [`docs/reference/configuration.md`](../../../../docs/reference/configuration.md) —
  store/graph path resolution (`SIDEGRAPH_DIR`, `SIDEGRAPH_GRAPH`), the most common cause
  of "nothing shows up".

Files in this skill

  • SKILL.md12.9 KB
  • agents/openai.yaml109 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.