Schemap banner
alansyahmi alansyahmi

Schemap

Data community

Description

Make your database understandable to AI coding agents. Schemap analyzes schemas, detects issues, maps relationships, and generates compact AI-ready context files for Claude Code, Codex, Cursor, and other AI tools.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

Schemap Logo — AI Database Context Compiler

Stop AI Agents From Guessing Your Database.

The Deterministic AI Database Context Compiler for Claude Code, Cursor, Windsurf, Codex, and Copilot.

PyPI Version Python Versions License: MIT Claude Code Cursor Local First


⚡ The Problem: Why AI Coding Agents Fail at SQL

Modern AI coding agents (Claude Code, Cursor, GitHub Copilot, Codex) struggle with production databases:

  • Raw pg_dump SQL dumps waste 10,000+ tokens of precious context window.
  • Cluttered DDL dumps introduce noisy system metadata and lock definitions.
  • LLMs hallucinate non-existent foreign keys (e.g. guessing orders.customer_id when the column is orders.user_id), creating broken multi-table JOINs.

**Schemap solves this.** Schemap is a high-speed CLI compiler that introspects your database, computes an **AI Readiness Score**, and outputs clean, token-optimized context maps (`schemap_database_context.md`, `CLAUDE.md`, `AGENTS.md`).


📊 Benchmarks: Next-Gen AI Models & Multi-Turn Agent Economics

*Measured using OpenAI `tiktoken` (`cl100k_base` / `o200k_base` across Claude Opus 5, GPT-5.6 Terr