Agent skill

Agent Context Graph

by memgraph in memgraph/ai-toolkit

Set up and check Codex context capture into Memgraph. An agent skill from memgraph/ai-toolkit.

MITAuto-check passedAgent Workflows

Install Agent Context Graph

skills CLI
$ npx skills add memgraph/ai-toolkit --skill agent-context-graph -a claude-code

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

GitHub CLI
$ gh skill install memgraph/ai-toolkit agent-context-graph --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/memgraph/ai-toolkit.git skills-src && mkdir -p .claude/skills && cp -r skills-src/context-graph/plugins/agent-context-graph-codex/skills/agent-context-graph .claude/skills/agent-context-graph && 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
agent-context-graph
GitHub stars
113
Token cost
~683 tokens
SKILL.md length
241 words
Files
1
Skills in repo
2
Repo updated
First seen
Licence
MIT

At a glance

Set up and check Codex context capture into Memgraph. An agent skill from memgraph/ai-toolkit.

  • Tasks that involve Codebase knowledge for agents
  • SKILL.md covers Model, Checks and Configuration
  • Calls docker and uv; needs MEMGRAPH_PASSWORD

What it does

Agent Context Graph is an agent skill from memgraph/ai-toolkit. Set up and check Codex context capture into Memgraph.

Its SKILL.md is about 680 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Agent Workflows, covering Codebase knowledge for agents. The repository describes itself as: Toolkit for building AI-driven graph apps on Memgraph, with LangChain, MCP, and agent implementations. The licence is MIT.

When your agent uses it

  • Tasks that involve Codebase knowledge for agents

Example prompts

  • “/agent-context-graph”

Requirements

  • Python 3
  • Docker

What it can do on your machine

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

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • docker
    • uv

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

  • Network

    No URLs in SKILL.md. Its commands use docker and uv, 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 these keys or tokens, usually read from environment variables:

    • MEMGRAPH_PASSWORD

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

Context cost

Agent Context Graph loads about 683 tokens when it runs. Until then it costs about 18 tokens; SKILL.md has 241 words of instructions outside code blocks.

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

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 passed

The automated check found no risky patterns in SKILL.md.

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 memgraph/ai-toolkit at commit 5d6b99c, republished under its MIT licence (© memgraph). 241 words, ~683 tokens.

Download SKILL.mdSave it as .claude/skills/agent-context-graph/SKILL.md (or your agent's skills folder).
name
agent-context-graph
description
Set up and check Codex context capture into Memgraph.

Agent Context Graph

Use this skill when the user asks whether Codex activity is being captured, how Agent Context Graph hooks work, or why graph facts are missing.

Model

Codex Plugin -> Codex Runtime Adapter -> Event Protocol -> Graph Connector -> Memgraph.

The plugin only installs runtime hook wiring. It must not assign graph meaning. Graph connectors decide which normalized events matter.

Checks

For first-time setup, run the plugin bootstrap once. It delegates to the CLI bootstrap and falls back to uvx if agent-context-graph is not installed yet:

bash
./scripts/bootstrap.sh

If bootstrap says Memgraph is not reachable, tell the user to start Memgraph:

bash
docker run --rm -p 7687:7687 memgraph/memgraph-mage

Run the single CLI doctor first. It checks the same Python environment that the hook command uses:

bash
agent-context-graph doctor --runtime codex --connector skills-graph --connector actions-graph --connector sessions-graph

If doctor is not available, use the strict hook smoke:

bash
printf '{"hook_event_name":"Stop","session_id":"doctor"}' \
  | agent-context-graph hook run codex --connector skills-graph --connector actions-graph --connector sessions-graph --strict

Do not check skills_graph with system python3; agent-context-graph may be installed in an isolated uv tool or pipx environment.

Configuration

Connection settings live in ~/.config/context-graph/config.toml. Hook subprocesses read from this file (not environment variables).

If MEMGRAPH_URL, MEMGRAPH_USER, MEMGRAPH_PASSWORD, or MEMGRAPH_DATABASE environment variables are set when bootstrap runs, they are automatically written to the config file. No manual config set needed in that case.

View current config:

bash
agent-context-graph config show

Set values:

bash
agent-context-graph config set identity.user_id "username"
agent-context-graph config set memgraph.url "neo4j://coordinator:7687"
agent-context-graph config set memgraph.user "username"
agent-context-graph config set memgraph.password
agent-context-graph config set memgraph.database "dbname"

For HA clusters, use the neo4j:// scheme pointing to any coordinator. The driver handles routing and failover automatically:

bash
agent-context-graph config set memgraph.url "neo4j://memgraph-coordinator-1:7687"

Supported keys: identity.user_id, memgraph.url, memgraph.user, memgraph.password, memgraph.database.

If skill usage is missing, inspect whether the session actually read or invoked a skill. Search/list results can be surfacing, not proven usage.

© memgraph, 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 context-graph/plugins/agent-context-graph-codex/skills/agent-context-graph of memgraph/ai-toolkit.

Open the folder on GitHubat commit 5d6b99c

Compare with similar skills

Agent Context Graph 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.

Agent Context Graph compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Agent Context Graph this skillmemgraph/ai-toolkit113—~683Automated safety check: PassMIT
ccc Semantic Code Searchcocoindex-io/cocoindex-code2.7k—~938Automated safety check: PassApache-2.0
Context Engineeringabashev/vfs-s31069 repos~2.6kAutomated safety check: NotesApache-2.0
Repomix Codebase Packeryamadashy/repomix29k—~1.3kAutomated safety check: NotesMIT
Codebase Handbook BuilderRuhan-Wang/Harness_Handbook332—~2.2kAutomated safety check: PassApache-2.0
CodemapJordanCoin/codemap704—~1.8kAutomated safety check: PassMIT

Similar skills

  • ccc Semantic Code Search

    cocoindex-io/cocoindex-code

    Semantic code search and index management with the ccc CLI: the agent initializes, indexes and queries the project by concept, filtering by language or path.

    2.7k GitHub stars~938 tokensUpdated 2 days ago
    Agent WorkflowsAuto-check passed
  • Context Engineering

    abashev/vfs-s3

    Optimizes agent context setup. An agent skill from abashev/vfs-s3.

    106 GitHub starsUsed in 9 repos~2.6k tokens
    Agent WorkflowsAuto-check: notes
  • Repomix Codebase Packer

    yamadashy/repomix

    Packs a local directory or remote GitHub repository into one AI-friendly file with Repomix, then searches it to explore structure, find patterns and count tokens.

    29k GitHub stars~1.3k tokensUpdated 5 days ago
    Agent WorkflowsAuto-check: notes
  • Codebase Handbook Builder

    Ruhan-Wang/Harness_Handbook

    Generates, refreshes, validates and uses a compact handbook that maps where a change touches in a repository, using the active Codex session and no external LLM API.

    332 GitHub stars~2.2k tokensUpdated 1 mo ago
    Agent WorkflowsAuto-check passed
  • Codemap

    JordanCoin/codemap

    Gives an agent a quick map of a codebase's structure, dependencies, changes and handoffs, and tunes per-project config so the output stays code-first.

    704 GitHub stars~1.8k tokensUpdated 2 days ago
    Agent WorkflowsAuto-check passed
  • Repomix Context Skill

    sopaco/deepwiki-rs

    A skill your agent uses when an agent needs source code from the local repomix index under .terrain/agent/repomix.md (not committed; regenerate via Terrain scan).

    3.1k GitHub stars~671 tokensUpdated 24 days ago
    Agent WorkflowsAuto-check passed

More from memgraph/ai-toolkit

  • Release

    memgraph/ai-toolkit

    Used to release all toolbox, integrations, agents. An agent skill from memgraph/ai-toolkit.

    113 GitHub stars~1.2k tokensUpdated yesterday
    Auto-check passed

Categories

Questions about Agent Context Graph

What does Agent Context Graph do?

Set up and check Codex context capture into Memgraph. An agent skill from memgraph/ai-toolkit. Agent Context Graph is an agent skill from memgraph/ai-toolkit. Set up and check Codex context capture into Memgraph.

When should I use Agent Context Graph?

Agent Context Graph fits situations like: tasks that involve Codebase knowledge for agents.

How do I install Agent Context Graph in Claude Code?

Run `npx skills add memgraph/ai-toolkit --skill agent-context-graph -a claude-code`. Or copy the skill folder (context-graph/plugins/agent-context-graph-codex/skills/agent-context-graph in memgraph/ai-toolkit) into .claude/skills/agent-context-graph in your project. Claude Code loads it when a task matches its description.

How do I install Agent Context Graph in Codex?

Run `npx skills add memgraph/ai-toolkit --skill agent-context-graph -a codex`. Or copy the skill folder (context-graph/plugins/agent-context-graph-codex/skills/agent-context-graph in memgraph/ai-toolkit) into .agents/skills/agent-context-graph in your project. Codex loads it when a task matches its description.

Can I use Agent Context Graph 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 memgraph/ai-toolkit --skill agent-context-graph -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/agent-context-graph, .gemini/skills/agent-context-graph, .github/skills/agent-context-graph and .opencode/skills/agent-context-graph in your project.

What does Agent Context Graph need to run?

Going by SKILL.md and its folder, Agent Context Graph needs the command-line tools its instructions call (docker and uv) and credentials named MEMGRAPH_PASSWORD. Our summary lists: Python 3; Docker.

Does Agent Context Graph access the network?

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

Is Agent Context Graph safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Agent Context Graph use?

Agent Context Graph 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 Agent Context Graph use?

About 683 tokens (SKILL.md is roughly 2.7k 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 Agent Context Graph?

Skills that share tags, products or a category with Agent Context Graph: ccc Semantic Code Search (cocoindex-io/cocoindex-code, 2.7k stars), Context Engineering (abashev/vfs-s3, 106 stars), Repomix Codebase Packer (yamadashy/repomix, 29k stars) and Codebase Handbook Builder (Ruhan-Wang/Harness_Handbook, 332 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Agent Context Graph?

memgraph (a GitHub organization) maintains it in memgraph/ai-toolkit, which has 113 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on October 7, 2026.

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