EngramGraph: Skill for Claude Code

.agents/skills/database-assistant/SKILL.md

database is a skill for Claude Code from AsiaOstrich/EngramGraph. It costs 68 tokens per session (1,283 once invoked), scanned A, original, MIT.

A guide for designing databases, planning schema changes, and improving queries. A database stores and organizes application data, while a migration changes its structure over time.

In plain words
What is it for?
Use it for schema design, foreign keys, indexes, migration planning, normalization, and query optimization.
Why use it?
It helps avoid duplicated data, unsafe migrations, missing relationships, and slow queries. It also promotes reversible changes and protection for sensitive fields.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: installed under .agents/ (shared by several agents).

This is AsiaOstrich/EngramGraph's own configuration. It tells Claude Code how to work on EngramGraph itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything EngramGraph configures →

Reuse

Borrowing it

Nothing to install: this file belongs to AsiaOstrich/EngramGraph. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/AsiaOstrich/EngramGraph/main/.agents/skills/database-assistant/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/AsiaOstrich/EngramGraph

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for database

README.md
[![agentmods](https://agentmods.dev/badge/skills/asiaostrich/engramgraph/database-assistant/github.svg)](https://agentmods.dev/skills/asiaostrich/engramgraph/database-assistant)
Your own site
<a href="https://agentmods.dev/skills/asiaostrich/engramgraph/database-assistant"><img src="https://agentmods.dev/badge/skills/asiaostrich/engramgraph/database-assistant/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for database

Your own site · 80×15
<a href="https://agentmods.dev/skills/asiaostrich/engramgraph/database-assistant"><img src="https://agentmods.dev/badge/skills/asiaostrich/engramgraph/database-assistant.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,283 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00068 $0.01283
Opus 5.5 $0.00027 $0.00513
Sonnet 5.5 $0.00014 $0.00257
Haiku 4.5 $0.00007 $0.00128

Measured 14d ago against content hash bf37b1dd1a46, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

database scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 14d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/database-assistant/SKILL.md · 120 lines

How it starts

The opening of the file, as written. The whole thing — 120 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Database Assistant | 資料庫助手

Guide database design, migration planning, and query optimization.

引導資料庫設計、遷移規劃和查詢最佳化。

Core Principles | 核心原則

Principle Description 說明
Normalization Eliminate redundancy (3NF minimum) 消除冗餘(至少 3NF)
Referential Integrity Enforce FK constraints 強制外鍵約束
Index Strategy Index query patterns, not all columns 依查詢模式建立索引
Migration Safety Always reversible, zero-downtime 可逆、零停機
Data Protection Encrypt sensitive fields, audit access 加密敏感欄位、稽核存取

Schema Design Checklist | Schema 設計檢查清單

  • Primary keys defined (prefer UUID or BIGINT) | 主鍵已定義
  • Foreign keys with proper ON DELETE/UPDATE | 外鍵含適當的級聯策略
  • NOT NULL constraints on required fields | 必填欄位加 NOT NULL
  • Indexes on frequently queried columns | 常查詢欄位建立索引
  • Created/Updated timestamps on all tables | 所有表加建立/更新時間戳
  • Sensitive data encrypted at rest | 敏感資料靜態加密
  • Naming conventions consistent (snake_case) | 命名慣例一致(snake_case)

Normalization Quick Reference | 正規化快速參考

Normal Form Rule 規則
1NF Atomic values, no repeating groups 原子值、無重複群組
2NF 1NF + no partial dependencies 1NF + 無部分相依
3NF 2NF + no transitive dependencies 2NF + 無遞移相依
Denormalize Only for proven read performance needs 僅針對已證實的讀取效能需求

Migration Workflow | 遷移工作流程

PLAN ──► WRITE ──► TEST ──► DEPLOY ──► VERIFY

1. Plan — Assess Impact | 評估影響

Identify affected tables, estimate data volume, plan rollback strategy.

識別受影響的表、估算資料量、規劃回滾策略。

2. Write — Create Migration | 撰寫遷移

Write forward and rollback scripts. Use incremental, numbered migrations.

撰寫正向和回滾腳本。使用遞增編號的遷移。

3. Test — Validate Migration | 驗證遷移

Run on staging with production-like data. Verify data integrity post-migration.

在 staging 環境使用類生產資料執行。驗證遷移後資料完整性。

4. Deploy — Execute Migration | 執行遷移

Apply during maintenance window or use online schema change tools.

Read the full file on GitHub · 120 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 14d ago First seen · 120 lines · 68 tokens per session scan A bf37b1dd1a46

Subscribe to this mod's changes

database is a skill published in the GitHub repository AsiaOstrich/EngramGraph (3 stars, last pushed today), licensed MIT. It adds 68 tokens to every session and 1,283 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-16.

Related

Other skills, from other repositories

mushroom

Live graph memory for agents — query and create entities, derive relationships by rule, explain why two things are associated, read the graph at a past commit, ask what a change would do, and answer as one role. Trigger on: memory, remember, recall, relationship, entity, association, why are X and Y related, as of…

MatthewSherlin/mushroomdb · 0 tokens

omnigraph

Operate OmniGraph graphs and deployments. Use for .pg schemas, .gq queries, OmniGraph CLI commands, file:///s3:///az:// graph URIs, cluster.yaml, operator config, bearer-authenticated servers, graph-backed knowledge or memory, Blob values, embeddings, branches, commits, and change feeds. Apply especially before schema…

ModernRelay/omnigraph · 94 tokens

memgraph-storage-reviewer

Review code changes in Memgraph's storage layer, including MVCC, concurrency patterns, WAL, recovery, DDL operations, index/constraint management, delta chains, and skip list operations. Invoke for pull requests or changes to src/storage/v2/.

memgraph/memgraph · 56 tokens

kivgraph

Use Kivgraph's local MCP server to search symbols, read their source, and follow references, dependencies, cross-repository consumers and graph status in the indexed code graph.

Luqueee/kivgraph · 39 tokens

nornicdb-cypher-queries

Pick fast, predictable Cypher query shapes in NornicDB — point lookups, batch retrieval, pagination, search, traversal, batched UNWIND/MERGE writes, cleanup, multi-tenant isolation. Use when writing or reviewing Cypher whose latency or throughput matters; maps user intent to the executor's hot-path query templates.

orneryd/NornicDB · 79 tokens

nornicdb-knowledge-policies

Author and use NornicDB knowledge-layer policies (decay profiles, parameter bundles, promotion profiles, promotion policies) from Cypher. Use when writing CREATE/ALTER/DROP/SHOW DECAY PROFILE / PROMOTION PROFILE / PROMOTION POLICY, calling kp. procedures, or reading entity scores via decayScore() / decay() / policy()…

orneryd/NornicDB · 87 tokens