apache-age

Guide Cypher queries, agtype types, and hybrid SQL+Cypher patterns for Apache AGE.

2|Updated Mar 1, 2026
One-click install
npx skills add https://github.com/synapseradio/ai-skills --skill apache-age
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: apache-age
Source: https://github.com/synapseradio/ai-skills/tree/main/apache-age
Command: npx skills add https://github.com/synapseradio/ai-skills --skill apache-age

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps you effectively use Apache AGE, a graph database extension for PostgreSQL, by providing guidance on Cypher queries, graph schema design, and performance optimization.

Core Features & Use Cases

  • Cypher Querying: Write and understand Cypher queries for graph traversal and manipulation.
  • Graph Schema Modeling: Design efficient graph schemas using labels and properties.
  • Hybrid SQL+Cypher: Integrate graph data with relational data within PostgreSQL transactions.
  • Performance Tuning: Optimize AGE queries through indexing and understanding execution plans.
  • Use Case: You need to model a social network in PostgreSQL using AGE and query relationships between users, such as finding mutual connections or identifying influencers.

Quick Start

Use the apache-age skill to create a new graph named 'my_graph' and add a vertex labeled 'Person' with the name 'Alice'.

Frequently Asked Questions about apache-age

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write Cypher queries in PostgreSQL using Apache AGE?

Apache AGE lets you execute Cypher queries in PostgreSQL by using its specific Cypher query syntax for graph traversal and manipulation. It supports hybrid SQL+Cypher patterns so you can query graph and relational data together within the same transaction.

What is the best way to model a graph schema in PostgreSQL AGE?

Modeling a graph schema in Apache AGE requires designing structures using labels and properties to categorize vertices and edges. This approach enables efficient graph schema modeling for use cases like social networks, allowing you to accurately map and query complex relationships.

How do I optimize Apache AGE query performance for large graphs?

Optimize Apache AGE performance by applying indexing strategies and analyzing execution plans to ensure efficient graph traversal. The extension provides performance tuning techniques that help maintain query speed when managing large-scale graph data within your PostgreSQL database.

Can I use SQL and Cypher together in a single PostgreSQL transaction?

Yes, Apache AGE supports hybrid SQL+Cypher patterns, allowing you to integrate graph data with relational data within PostgreSQL transactions. You can query and manipulate both standard relational tables and graph structures simultaneously within a single database environment.

What data types does Apache AGE use for graph properties?

Apache AGE uses agtype data types to handle JSON-like data structures for graph vertices and edges. Understanding how agtype works is crucial for writing correct Cypher query syntax and ensuring graph properties are accurately stored and manipulated.