database-hana

database-hana is a skill for Claude Code, Codex from HoangNguyen0403/agent-skills-standard. It costs 57 tokens per session (834 once invoked), scanned A, original, MIT.

Standards for writing and optimizing SQL for SAP HANA, an in-memory database platform from SAP. They cover safe parameters, large lists of query values, column names, data types, and pagination.

In plain words
What is it for?
Use it when writing or reviewing SAP HANA queries, handling large IN lists, joining tables, casting values, or diagnosing HANA driver problems.
Why use it?
They help prevent SQL injection, driver errors, ambiguous query results, and inefficient database operations in HANA applications.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when writing or reviewing SAP HANA queries, handling large IN lists, joining tables, casting values, or diagnosing HANA driver problems.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hoangnguyen0403/agent-skills-standard/database-hana
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add HoangNguyen0403/agent-skills-standard --skill database-hana
Clone the repo
git clone --depth 1 https://github.com/HoangNguyen0403/agent-skills-standard

Made for: Claude Code, Codex.

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-hana

README.md
[![agentmods](https://agentmods.dev/badge/skills/hoangnguyen0403/agent-skills-standard/database-hana/github.svg)](https://agentmods.dev/skills/hoangnguyen0403/agent-skills-standard/database-hana)
Your own site
<a href="https://agentmods.dev/skills/hoangnguyen0403/agent-skills-standard/database-hana"><img src="https://agentmods.dev/badge/skills/hoangnguyen0403/agent-skills-standard/database-hana/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-hana

Your own site · 80×15
<a href="https://agentmods.dev/skills/hoangnguyen0403/agent-skills-standard/database-hana"><img src="https://agentmods.dev/badge/skills/hoangnguyen0403/agent-skills-standard/database-hana.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 834 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00057 $0.00834
Opus 5 $0.00028 $0.00417
Sonnet 5 $0.00011 $0.00167
Haiku 4.5 $0.00006 $0.00083

Measured 9d ago against content hash bd0e288d5369, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

database-hana 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 9d 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.

skills/database/database-hana/SKILL.md · 54 lines

How it starts

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

SAP HANA Database Standards

Priority: P0 (CRITICAL)

Rules

  • Strict Parameterization: Always use ? parameter placeholders for SAP HANA queries. Never use raw string concatenation, fmt.Sprintf, or untrusted interpolation for values.
  • Batching & Chunking Limits: Chunk large IN (...) parameter lists into batches of at most 1,000 items to avoid HANA driver and engine parameter limits.
  • Explicit Column Aliasing: Always explicitly alias columns in multi-table queries (e.g. m.code AS code, m.name AS name). SAP HANA and Go database drivers map scan columns by name; duplicate column names across joins silently collide or overwrite values. Never use SELECT *.
  • HANA Datatype Casting Gotchas: SAP HANA functions (such as COALESCE, SUBSTR, CONCAT) require strictly compatible parameter types. Explicitly cast values when comparing or falling back (e.g. COALESCE(col, 'default'), TO_VARCHAR(...), CAST(? AS NVARCHAR)).
  • Identifier Case-Sensitivity: Unquoted SQL identifiers in SAP HANA default to UPPERCASE. Quoted identifiers ("columnName") preserve case. Keep identifiers consistent with schema conventions.
  • Keyset & Streaming Pagination: Avoid deep LIMIT/OFFSET on large columnar tables. Prefer keyset/seek pagination (WHERE id > ? ORDER BY id ASC LIMIT ?) and stream large result sets using rows.Next() directly into models to prevent memory spikes.
  • Transaction Scope: Keep transactions short and focused on atomic write operations. Never perform slow external I/O or unbounded operations inside an open transaction. Always pair with defer tx.Rollback().

Verify

  • Query uses ? placeholders for all user-supplied or dynamic values.
  • Large IN (...) queries chunk parameters into batches of ≤ 1,000 items.
  • All joined queries use explicit, distinct column aliases without SELECT *.
  • Built-in functions (COALESCE, SUBSTR) use matching datatypes or explicit CAST/TO_VARCHAR.
  • Pagination enforces strict LIMIT caps and stable ORDER BY.
  • Transactions are scoped to write paths with defer tx.Rollback().

Read the full file on GitHub · 54 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 9d ago First seen · 54 lines · 57 tokens per session scan A bd0e288d5369

Subscribe to this mod's changes

database-hana is a skill published in the GitHub repository HoangNguyen0403/agent-skills-standard (565 stars, last pushed 3d ago), licensed MIT. It adds 57 tokens to every session and 834 once invoked, about $0.0003 per session on Opus 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-09-03.