neo4j-ontology-skill
Skill by neo4j-contrib
Authors and validates Neo4j Ontology Graph Specification documents in YAML or JSON. Validation checks each document against the live-resolved published spec schema. Built for users writing or editing Neo4j ontologies.
Install neo4j-ontology-skill
Built from the published package, never by AI.
git clone --depth 1 https://github.com/neo4j-contrib/neo4j-skills /tmp/neo4j-skills && mkdir -p ~/.claude/skills && cp -r /tmp/neo4j-skills/neo4j-ontology-skill ~/.claude/skills/neo4j-ontology-skillRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/neo4j-contrib/neo4j-skills /tmp/neo4j-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/neo4j-skills/neo4j-ontology-skill ~/.gemini/antigravity-cli/skills/neo4j-ontology-skillAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install neo4j-ontology-skill in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill helps an AI assistant write and edit Neo4j Ontology Graph Specification documents. It covers nodes, relationships, properties, Neo4jType data types, constraints (key, unique, must_exist), labels, and endpoint cardinality. Documents can be written in YAML or JSON, with YAML as the default.
The skill includes a validator, scripts/validate.py, which runs with uv. It fetches the spec schema live rather than storing a copy, and reports schema violations by field path. The skill asks the user what is being modeled before drafting, and it requires validation to pass before an ontology is presented as done. It is for people authoring Neo4j ontology documents.
Written from the project's SKILL.md and checked against it.
What it can do
- Draft ontology documentsWrites a YAML or JSON ontology from a described domain, with nodes, relationships and properties.
- Define constraintsSets key, unique and must_exist flags, or object-form constraints for composite and named cases.
- Set endpoint cardinalityUses count, min_count or max_count on relationship endpoints.
- Validate documentsRuns scripts/validate.py to check a document against the published spec schema.
- Fetch schema liveResolves the schema from an explicit path or URL, the document's schema URL, or the published current alias.
- Edit extensionsAdds indexes, display, tables, mappings or custom data within each element's fixed extension shape.
What you need
- uv, to run scripts/validate.py
- Network access to fetch the published spec schema
Try asking
- Draft a YAML ontology for a library with authors and books.
- Add a composite key constraint to my ontology and validate it.
- Check this ontology document against the Neo4j spec schema.
Good to know
- Ontology Cypher procedures do not exist yet, so applying an ontology to a database is out of scope.
- Cypher queries are handled by neo4j-cypher-skill, not this skill.
- Generic graph modeling advice is handled by neo4j-modeling-skill.
- If the published host is unreachable, the validator falls back to a moving main branch of the spec repository.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: neo4j-ontology-skill/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to neo4j-ontology-skill
All alternatives →Creates, configures and manages datasets on the Hugging Face Hub, including SQL-based querying and transformation. Built for people who edit dataset content and metadata directly, alongside the HF MCP server.
Diagnoses and repairs gbrain's Postgres access when a command or MCP result shows a GBRAIN_DB_ACCESS marker, or when the operator reports the brain database is down. It runs the hardcoded gbrain db-repair ladder and verifies the result with a re-probe.
Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.
Writes, reviews and migrates Supabase logs queries against the ClickHouse logs table served by the logs.all.otel endpoint. Built for developers who write Logs Explorer SQL or convert older BigQuery logs queries.
Diagnoses and fixes slow Paperclip PostgreSQL queries using Cloud and Neon evidence, local benchmarks, regression tests, and a pull request with passing checks. Built for engineers working on Paperclip.
Guides AI assistants through Prisma 8 projects built on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo. It covers data contracts, migrations, typed queries and runtime setup for developers on Prisma 8.
Compare with hugging-face-datasets, db-repair or alloydb-basics
neo4j-ontology-skill: common questions
Does this skill load an ontology into a Neo4j database?
No. The source says applying an ontology to a database is out of scope, and loading ontologies is handled by neo4j-cypher-skill.
Which formats does it support?
It writes ontology documents in YAML or JSON, and defaults to YAML because it is more readable.
How does validation pick the schema version?
The document's schema field decides the version, so it should point to the published versioned URL of the version being authored.
How do I install neo4j-ontology-skill?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is neo4j-ontology-skill free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is neo4j-ontology-skill safe to use?
It scores 61 of 100. Grades: maintenance A, licence A, quality B. 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 neo4j-ontology-skill?
Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.
