Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

graph-db-writes

Skill by samugit83

Sets the rules for writing to RedAmon's Neo4j attack-surface graph. Covers the tenant-isolation MERGE key, which mixin holds each graph method, and the schema files to update together. For contributors editing graph_db code.

  • Score 82
  • 3.5k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install graph-db-writes

Built from the published package, never by AI.

git clone --depth 1 https://github.com/samugit83/redamon /tmp/redamon && mkdir -p ~/.claude/skills && cp -r /tmp/redamon/skills/graph-db-writes ~/.claude/skills/graph-db-writes

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install graph-db-writes in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill sets the rules for writing to the Neo4j attack-surface graph in RedAmon. Every entity node must carry the user_id and project_id keys in its MERGE, because a MERGE without them silently merges one project's data into another's. Global reference nodes such as CVE key on their natural id only.

It also says where graph methods belong: in the mixin for each domain, not in neo4j_client.py. It covers provenance with ON CREATE SET, the ingest-then-prune rule that spares muted and human-triaged findings, and the steps for declaring a new label, relationship or property in schema_sections.md. It is for contributors editing the RedAmon graph code.

Written from the project's SKILL.md and checked against it.

What it can do

  • Tenant-isolation MERGE keyRequires entity nodes to MERGE on the natural key plus user_id and project_id.
  • Mixin placementMaps each kind of graph write to the mixin file that owns it.
  • Provenance with ON CREATE SETKeeps first-writer fields such as source from being overwritten by later tools.
  • Ingest-then-prune ruleExplains when unseen findings may be pruned and which nodes must be spared.
  • Circuit breaker handlingPrevents pruning sources or hosts that the run could not re-check.
  • Scoped reads and writesRequires user_id and project_id on every entity MATCH to avoid cross-project access.
  • Schema declaration stepsLists the files and commands to update when adding a label, relationship or property.
  • Reuse of existing labelsDirects writers to existing labels, such as Subdomain for discovered hostnames.

What you need

  • Neo4j, the graph database used by RedAmon
  • A RedAmon repository checkout
  • Python 3 for the schema seed command

Try asking

  • Write a Cypher MERGE for a new Endpoint node in a graph mixin
  • Check that my new graph write keeps the tenant key on entity nodes
  • Show me where to declare a new node label in the RedAmon schema

Good to know

  • Written for the RedAmon repository and its file layout
  • Do not edit graph_db/neo4j_client.py directly; edit a mixin instead
  • Reference nodes such as CVE must not carry tenant keys

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/graph-db-writes/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md9 KB

Alternatives to graph-db-writes

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

graph-db-writes: common questions

Why does a MERGE need user_id and project_id?

Without the tenant keys, a MERGE can silently merge one project's data into another's. The source says natural ids are not unique across the database.

Where should a new graph method go?

It goes in the mixin for its domain, such as recon_mixin.py or gvm_mixin.py. The source says not to edit neo4j_client.py directly.

Where is the graph schema declared?

Every label, property and relationship is declared in graph_db/schema_sections.md. The source says to re-seed it with seed_schema_catalog.py after changes.

How do I install graph-db-writes?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is graph-db-writes free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is graph-db-writes safe to use?

It scores 82 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to graph-db-writes?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

graph-db-writes Install

Add to stack

Loading.