jaz-pseudo-sql

jaz-pseudo-sql is a skill for Claude Code from teamtinvio/jaz-ai. It costs 148 tokens per session (1,797 once invoked), scanned A, original, MIT.

A read-only query tool for asking custom questions about Jaz's curated reporting data. It uses a limited SQL-like language, so it can combine, filter, group, and calculate data without changing it.

In plain words
What is it for?
Use it for tailored data extracts and analysis, such as joining records or finding invoices that match several conditions.
Why use it?
It fills the gap when standard reports or simple searches cannot express the question.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Claude Code; installed under .agents/ (shared by several agents).

Part of the jaz-ai plugin — 7 skills, 22 commands shipped together

Good fit Use it for tailored data extracts and analysis, such as joining records or finding invoices that match several conditions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/teamtinvio/jaz-ai/jaz-pseudo-sql
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 teamtinvio/jaz-ai --skill jaz-pseudo-sql
Clone the repo
git clone --depth 1 https://github.com/teamtinvio/jaz-ai

Made for: Claude Code.

Or install jaz-ai, the plugin that ships this one along with the rest of its 7 skills, 22 commands.

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 jaz-pseudo-sql

README.md
[![agentmods](https://agentmods.dev/badge/skills/teamtinvio/jaz-ai/jaz-pseudo-sql/github.svg)](https://agentmods.dev/skills/teamtinvio/jaz-ai/jaz-pseudo-sql)
Your own site
<a href="https://agentmods.dev/skills/teamtinvio/jaz-ai/jaz-pseudo-sql"><img src="https://agentmods.dev/badge/skills/teamtinvio/jaz-ai/jaz-pseudo-sql/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 jaz-pseudo-sql

Your own site · 80×15
<a href="https://agentmods.dev/skills/teamtinvio/jaz-ai/jaz-pseudo-sql"><img src="https://agentmods.dev/badge/skills/teamtinvio/jaz-ai/jaz-pseudo-sql.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 148 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,797 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.00148 $0.01797
Opus 5 $0.00074 $0.00898
Sonnet 5 $0.00030 $0.00359
Haiku 4.5 $0.00015 $0.00180

Measured today against content hash 00fcd12c37fc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

jaz-pseudo-sql 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 today.

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/jaz-pseudo-sql/SKILL.md · 90 lines

How it starts

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

Jaz Pseudo-SQL Skill

You are running ad-hoc data queries against the curated reporting schema in Jaz — a read-only SQL DSL exposed via the Jaz API at /api/v1/reports/sql-query/*. Use this skill when:

  • The user asks a custom analytical question that doesn't match any download_export(exportType=...) canonical report.
  • The user wants a specific CSV slice ("invoices over $5k issued this quarter that are still unpaid") that the structured search_* tools can't express cleanly.
  • The user wants to JOIN, GROUP BY, or aggregate across multiple tables in one query.

NOT a general-purpose database surface. Curated schema only — no DML (DELETE/UPDATE/INSERT), no multi-statement input, no access to private columns. Validators reject anything that isn't a single SELECT against an allowed table. See references/error-catalog.md for the full error vocabulary.

Source of truth for the schema

Call get_pseudo_sql_schema first for the live curated catalog (~70 tables, 91 join edges, 47 functions). Pass table to scope it to one table and its joins — the whole catalog is ~18k tokens, one table is ~1k.

The syntax guide is a SEPARATE call, get_pseudo_sql_syntax, returning the canonical jaz-pseudo-sql.md body in agentSkillsDoc.content. It is static — identical for every organization — so fetch it once, cache on version, and skip it entirely if you already have this skill loaded. The two were one response until 2026-09-03; combined they cost ~35k tokens on a call documented as "before any query", of which 42% was the unchanging guide.

The version field is a stable 16-char hex hash; cache by it. If you've already called the tool this session and the version is unchanged on a re-call, the schema and skill body are identical to your cached copy — no need to re-read.

Don't write a pseudo-SQL query from memory. The catalog grows; column names change; the live schema is the only source you should trust.

When NOT to use this skill

Use this instead When
download_export(exportType='analysis-anomalous-invoices') etc. Canonical anomaly / audit / risk reports — they're tuned, parameterized, and faster than re-deriving them in SQL. See jaz-api Rule 141.
download_export(exportType='trial-balance') etc. Statements (TB, BS, P&L, GL, cashflow). The reporting engine handles period closing rules, intercompany eliminations, FX revaluation. SQL would miss these.
search_invoices(filter:...), search_bills, etc. Listing entities with structured filters. Returns typed objects, supports pagination, faster than SQL.
get_invoice(resourceId) etc. Single-entity lookup by ID.
view_auto_reconciliation Bank reconciliation match suggestions.

Read the full file on GitHub · 90 lines

Files

What ships with it

2 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. today Changed 00fcd12c37fc
  2. 2d ago Changed 14420589bf29
  3. 3d ago Changed b4eea377f185
  4. 4d ago Changed · +4 lines · +14 tokens per session 2fc7a2d3db81
  5. 8d ago First seen · 86 lines · 134 tokens per session scan A ca19e9ede0b2

Subscribe to this mod's changes

jaz-pseudo-sql is a skill published in the GitHub repository teamtinvio/jaz-ai (7 stars, last pushed yesterday), licensed MIT. It adds 148 tokens to every session and 1,797 once invoked, about $0.0007 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-08-31.