Managing Databases logo

Managing Databases

Community
rileyhilliard
managing-databases

Guides database architecture for PostgreSQL, DuckDB, Parquet, PGVector, and Neo4j. Use when designing schemas, choosing storage strategies, optimizing queries, configuring vector or graph workloads, or diagnosing performance issues.

Overview

Publisherrileyhilliard
Repositoryclaude-essentials
Skill namemanaging-databases
Stars
127
Forks
19
Bundled files
10
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 10 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by rileyhilliard on GitHub. Read the source before you install it.

Installation

Install the Managing Databases AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/rileyhilliard/claude-essentials.git /tmp/claude-essentials
mkdir -p .claude/skills
cp -r /tmp/claude-essentials/plugins/ce/skills/managing-databases .claude/skills/managing-databases
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Managing Databases in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Managing Databases on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Managing Databases is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Database Management

Decision guidance for PostgreSQL, DuckDB, Parquet, and Neo4j in hybrid storage architectures.

Contents

  • When to use which database
  • PostgreSQL quick reference
  • DuckDB quick reference
  • Parquet quick reference
  • PGVector quick reference
  • Neo4j quick reference
  • Cross-database conventions
  • Performance debugging checklist

When to use which database

WorkloadUseWhy
Transactional (CRUD, users, sessions)PostgreSQLACID, row-level locking, indexes
Analytical (aggregations, scans)DuckDBColumnar, vectorized, parallel
Data storage/interchangeParquetCompressed, columnar, portable
Metadata + relationshipsPostgreSQLForeign keys, constraints
Ad-hoc explorationDuckDBFast on Parquet, no ETL needed
Time-series with point lookupsPostgreSQL + partitioningPartition pruning + indexes
Time-series analyticsDuckDB on ParquetScan performance
Vector similarity searchPostgreSQL + PGVectorHNSW/IVFFlat indexes, hybrid search
RAG / semantic searchPostgreSQL + PGVectorEmbeddings + metadata in same DB
Graph traversals / relationshipsNeo4jNative graph, index-free adjacency
Pattern matching / fraud detectionNeo4jMulti-hop traversal, path finding
Knowledge graphs / ontologiesNeo4jFlexible schema, relationship-first

Hybrid pattern example:

  • PostgreSQL: transactional data, relationships, users (metadata)
  • DuckDB + Parquet: analytical content, aggregations, time-series

PostgreSQL quick reference

Use for: Metadata, relationships, OLTP workloads, anything needing ACID.

Key decisions:

  • Partition tables >100M rows or with retention requirements
  • Index columns in WHERE/JOIN clauses, not everything
  • Tune autovacuum for high-churn tables

See references/postgres-architecture.md for maintenance patterns. See references/postgres-querying.md for advanced query techniques.

DuckDB quick reference

Use for: Analytics, aggregations, Parquet queries, data exploration.

Key decisions:

  • Prefer Parquet files over CSV (10-100x faster)
  • Let DuckDB auto-parallelize; don't micro-optimize
  • For remote data, increase threads beyond CPU count

See references/duckdb-architecture.md for storage and parallelism. See references/duckdb-querying.md for DuckDB-specific SQL features.

Parquet quick reference

Use for: Storing analytical data, data interchange, columnar compression.

Key decisions:

  • Target 128MB-1GB file sizes
  • Partition by low-to-moderate cardinality columns (date, region)
  • Sort by columns used in filters for better pruning

See references/parquet-architecture.md for file design. See references/parquet-querying.md for query optimization.

PGVector quick reference

Use for: Similarity search, RAG applications, semantic search, recommendations.

Key decisions:

  • HNSW for low-latency, high-recall (default choice)
  • IVFFlat for memory-constrained or batch-updated data
  • Use iterative scan for filtered queries
  • Consider hybrid search (vector + keyword) for 8-15% accuracy boost

See references/pgvector-architecture.md for index configuration. See references/pgvector-querying.md for hybrid search and filtering.

Neo4j quick reference

Use for: Graph traversals, relationship-heavy queries, pattern matching, knowledge graphs.

Key decisions:

  • Model around your queries, not your source data
  • Promote properties to nodes when you need to traverse through shared values
  • Use specific relationship types to avoid supernode bottlenecks
  • Bound all variable-length paths ([*1..5], never [*])
  • Use parameters in Cypher for execution plan caching

See references/neo4j-architecture.md for data modeling, indexing, and maintenance. See references/neo4j-querying.md for Cypher optimization and anti-patterns.

Performance debugging checklist

PostgreSQL slow query

  1. Run EXPLAIN (ANALYZE, BUFFERS) on the query
  2. Check for sequential scans on large tables
  3. Verify indexes exist on filter/join columns
  4. Check pg_stat_user_tables for bloat (dead tuples)
  5. Review work_mem if seeing disk sorts

DuckDB slow query

  1. Check if reading CSV instead of Parquet
  2. Verify not doing SELECT * on remote data
  3. Check thread count matches workload
  4. Look for unnecessary type conversions

Parquet slow reads

  1. Verify predicate pushdown is working (check query plan)
  2. Check file sizes (too small = overhead, too large = no parallelism)
  3. Confirm data is sorted by filter columns
  4. Look for high-cardinality partition keys (too many small files)

PGVector slow search

  1. Verify index exists and is being used (EXPLAIN)
  2. Check ef_search (HNSW) or probes (IVFFlat) settings
  3. Enable iterative scan for filtered queries
  4. Check if IVFFlat recall degraded (rebuild index if heavily updated)
  5. Consider partial indexes for common filters

Neo4j slow query

  1. Run PROFILE on the query, read operators bottom-up
  2. Look for AllNodesScan or NodeByLabelScan (missing index)
  3. Check for CartesianProduct (disconnected MATCH patterns)
  4. Verify parameters are used instead of literals (plan caching)
  5. Check for unbounded variable-length paths
  6. Monitor page_cache.hit_ratio (below 98% = need more page cache memory)

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Managing Databases AI skill do?

Guides database architecture for PostgreSQL, DuckDB, Parquet, PGVector, and Neo4j. Use when designing schemas, choosing storage strategies, optimizing queries, configuring vector or graph workloads, or diagnosing performance issues.

Why use Managing Databases on TypingMind?

Because you install it once and use it with any model. Managing Databases is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Managing Databases in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/rileyhilliard/claude-essentials/tree/main/plugins/ce/skills/managing-databases. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Managing Databases?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Managing Databases?

As many as you like. As long as a model supports skills, you can use Managing Databases with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Managing Databases AI skill free?

Yes. It is published on GitHub by rileyhilliard under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇