agami-query SKILL.md skillA
agami-query from agamiai/agami-core is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add agamiai/agami-core/agami-query@git:20261102.70809b5Pins git:20261102.70809b5 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- agamiai/agami-core
- Path
plugins/agami/skills/agami-query/SKILL.md- Versions recorded
- 19
- Latest version
- git:20261102.70809b5, committed Nov 2, 2026
- First version recorded
- Aug 3, 2026
- Size
- 98,971 bytes
- Repository stars
- 29
- License
- a license file GitHub does not identify
Answers natural-language questions about the user's database. Loads the agami semantic model (subject areas, tables, columns, relationships with join cardinality, entities, metrics) and few-shot examples from <artifacts_dir>/<profile>/, generates SQL via the examples-first traversal (pick subject area → match examples → resolve entities/metrics → compound table context), executes it locally via the user's chosen tool (psql / mysql / snowsql / sqlite3 native CLI, DuckDB binary, or the Python…
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# agami query-database You answer the user's natural-language question about their database. Goal: generate correct SQL from the semantic model + the few-shot examples via the examples-first traversal, execute it locally, return rows + an insight, and offer a chart / export when appropriate. Everything runs on the user's machine. This skill orchestrates: 1. **Setup** (once per session) — resolve the profile + the semantic model at `<artifacts_dir>/<profile>/`, verify the configured database tool still works. 2. **Generate SQL** — examples-first traversal: pick the subject area → match curated examples → (cold start) resolve entities/metrics + identify opaque literals → compound `get_table_context` → produce one SQL statement → safety checks. 3. **Execute** — run via the chosen tool; the Python tier runs the fan/chasm pre-flight and the scope/PII gates; auto-retry on classified errors; risk-assess large-table queries. 4. **Present** — markdown table; CSV via `--csv` or "export this"; Chart.js HTML via `--chart` or "make that a chart". …
Read the whole file at its exact version.
How to install
mdr add agamiai/agami-core/agami-query@sha256:8b081908a877303bThe line at the top of this page pins the label git:20261102.70809b5, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_43sdilxrkehr6gqb)
1 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 19 versions of this file, between Aug 3, 2026 and Nov 2, 2026, about one every 5 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261102.70809b5 latest | 2026-11-02 | 70809b5 | 98,971 B | A | view · diff |
| git:20261102.8710bc0 | 2026-11-02 | 8710bc0 | 98,981 B | A | view · diff |
| git:20261102.4d1962d | 2026-11-02 | 4d1962d | 98,480 B | A | view · diff |
| git:20261102.b003e1d | 2026-11-02 | b003e1d | 98,746 B | A | view · diff |
| git:20261030.0b08d43 | 2026-10-30 | 0b08d43 | 98,235 B | A | view · diff |
| git:20261030.ffcf5cc | 2026-10-30 | ffcf5cc | 98,245 B | A | view · diff |
| git:20261029.be66b1a | 2026-10-29 | be66b1a | 98,016 B | A | view · diff |
| git:20261027.f35f6e1 | 2026-10-27 | f35f6e1 | 98,132 B | A | view · diff |
| git:20261013.9f20fe3 | 2026-10-13 | 9f20fe3 | 97,903 B | A | view · diff |
| git:20261012.9e27d38 | 2026-10-12 | 9e27d38 | 97,649 B | A | view · diff |
| git:20261011.c18f7cd | 2026-10-11 | c18f7cd | 97,139 B | A | view · diff |
| git:20261007.2686e64 | 2026-10-07 | 2686e64 | 96,724 B | A | view · diff |
| git:20260916.a0ecf98 | 2026-09-16 | a0ecf98 | 96,353 B | A | view · diff |
| git:20260916.c0c3325 | 2026-09-16 | c0c3325 | 96,241 B | A | view · diff |
| git:20260805.d0f57d5 | 2026-08-05 | d0f57d5 | 96,061 B | A | view · diff |
| git:20260805.76aad28 | 2026-08-05 | 76aad28 | 95,694 B | A | view · diff |
| git:20260805.59796b4 | 2026-08-05 | 59796b4 | 95,440 B | A | view · diff |
| git:20260804.bb65ee1 | 2026-08-04 | bb65ee1 | 92,534 B | A | view · diff |
| git:20260803.62b2771 | 2026-08-03 | 62b2771 | 91,682 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (98971 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
agamiai/agami-core · 29 stars · license a license file GitHub does not identify · pushed 2026-11-06 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_43sdilxrkehr6gqb GET https://markdownregistry.com/api/v1/resolve?ref=agamiai/agami-core/agami-query GET https://markdownregistry.com/api/v1/blob/8b081908a877303ba218a0b07adfe5d66e147a220bdf998a16d0383a80a88515
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.