Borrowing it
Nothing to install: this file belongs to tternquist/marklogic-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/tternquist/marklogic-mcp/master/.claude/skills/marklogic-data-modeling/SKILL.mdgit clone --depth 1 https://github.com/tternquist/marklogic-mcpWrote 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.
[](https://agentmods.dev/skills/tternquist/marklogic-mcp/marklogic-data-modeling)<a href="https://agentmods.dev/skills/tternquist/marklogic-mcp/marklogic-data-modeling"><img src="https://agentmods.dev/badge/skills/tternquist/marklogic-mcp/marklogic-data-modeling/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.
<a href="https://agentmods.dev/skills/tternquist/marklogic-mcp/marklogic-data-modeling"><img src="https://agentmods.dev/badge/skills/tternquist/marklogic-mcp/marklogic-data-modeling.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00117 | $0.02021 |
| Opus 5.5 | $0.00047 | $0.00808 |
| Sonnet 5.5 | $0.00023 | $0.00404 |
| Haiku 4.5 | $0.00012 | $0.00202 |
Grade A, and why
marklogic-data-modeling 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 173 lines — stays where its author put it; the contents beside it link to each section on GitHub.
MarkLogic Data Modeling
Three decisions, in order: which models, how documents are shaped and named, and whether an envelope is warranted.
1. Model selection
Choose the least machinery that answers the query goals.
| Use | When | Skip it when |
|---|---|---|
| Documents | always — the base model | never |
| Triples | cross-entity relationships, graph traversal, taxonomy links | relationships are simple parent-child → just nest them in the document |
| Vectors | semantic similarity, RAG, recommendations | no similarity requirement |
| TDE / Optic | GROUP BY, joins, aggregation | no analytical queries |
State for each model you keep: why it fits, what it holds, what query capability it unlocks. Being explicit about what you are not using is as valuable as the inclusions.
2. Document design
- Collection strategy — one collection per entity type; a
<source>-rawcollection per source system when harmonizing. - URI pattern — see §3.
- Range index candidates — the fields used for filtering, sorting, or
ml_values_query. Check what exists withml_indexes_list. - TDE view candidates — the fields needing GROUP BY or JOIN.
- Never store
"". Empty strings pollute range indexes, break range queries, and create misleading TDE rows. Omit the field, or usenull. - Dates as ISO-8601 strings, to match a
dateTimerange index scalar type.
3. URI design — six rules
URIs are stable identity. Get them wrong and every later query is awkward.
- Prefix with the collection or entity type. The prefix is the directory;
ml_document_listscopes to it./orders/order-{orderId}.json✓ —/{orderId}.json✗ (no grouping possible) - Embed every primary key value. Deterministic and collision-free. Avoid UUIDs
unless the source has no key.
/events/gdelt/{GlobalEventID}.json✓ —/orders/order.json✗ (overwrites on every write) - Match the URI prefix to the collection short name. Collection
orders→ URIs under/orders/. - URL-safe characters only — letters, digits,
/,-,_,.. Replace spaces and colons with-; turn slashes in values into path segments. - Right extension —
.json/.xmlfor content,.sjs/.xqyfor modules (Modules database),.tdejfor JSON TDE templates (Schemas database). - Nest child entities under the parent key.
/customers/{customerId}/orders/{orderId}.jsonlets you list one customer's orders by directory.
What ships with it
1 file 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.
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.
- 2mo ago First seen · 173 lines · 117 tokens per session scan A 5d38fcaad122
marklogic-data-modeling is a skill published in the GitHub repository tternquist/marklogic-mcp (4 stars, last pushed 1mo ago), licensed MIT. It adds 117 tokens to every session and 2,021 once invoked, about $0.0005 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-08-31.
marklogic-data-modeling compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| marklogic-data-modelingtternquist/marklogic-mcp | Skill | 4 | 1mo ago | MIT | A | 117 | Claude Code |
| embeddingsruvnet/ruflo | Skill | 81k | yesterday | MIT | A | 62 | Claude Code |
| rag-pineconedavila7/claude-code-templates | Skill | 33k | yesterday | MIT | A | 65 | Claude Code, Codex |
| data-engineerdavila7/claude-code-templates | Skill | 33k | yesterday | MIT | A | 35 | Claude Code, Codex |
| similarity-search-patternsforyourhealth111-pixel/Vibe-Skills | Skill | 3.8k | 3d ago | Apache-2.0 | A | 30 | Claude Code, Codex |
| ingesting-into-data-lakeaws/agent-toolkit-for-aws | Skill | 3.4k | yesterday | Apache-2.0 | A | 228 | Claude Code |
| graphjin-envdosco/graphjin | Skill | 3.2k | 5d ago | Apache-2.0 | A | 61 | Claude Code, Codex |