cratis-arc-page-query

cratis-arc-page-query is a skill for Claude Code, Codex from Cratis/AI. It costs 47 tokens per session (505 once invoked), scanned A, original, MIT.

A server-side database query pattern for filtering, sorting, and paging a list of results. It uses MongoDB, a database that stores records in document form, and leaves the query unexecuted until the server applies the requested page.

In plain words
What is it for?
Use it for searchable author lists or other filtered lists that need database-level paging and sorting.
Why use it?
It prevents the application from loading and sorting the entire result set in memory. It also lets the server count matching records before returning one page.

Skill for Claude CodeCodex

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

Good fit Use it for searchable author lists or other filtered lists that need database-level paging and sorting.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cratis/ai/cratis-arc-page-query
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 Cratis/AI --skill cratis-arc-page-query
Clone the repo
git clone --depth 1 https://github.com/Cratis/AI

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 cratis-arc-page-query

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/cratis/ai/cratis-arc-page-query"><img src="https://agentmods.dev/badge/skills/cratis/ai/cratis-arc-page-query.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 505 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.00047 $0.00505
Opus 5.5 $0.00019 $0.00202
Sonnet 5.5 $0.00009 $0.00101
Haiku 4.5 $0.00005 $0.00051

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

Security

Grade A, and why

cratis-arc-page-query 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.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/check-pages.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.cratis/ai/skills/cratis-arc-page-query/SKILL.md · 30 lines

What it actually says

Return one page of a query

Count the authorized matches and return one stable window of that same set. Apply a deterministic order before cutting the page; do not count or page the returned window again. Choose a finite query by default. Use a live page only when the provider supports it and the open page must reflect writes.

Read the reference for the host

The artifact being changed selects the one reference to read: *.csproj → C#; a Node server package.json → TypeScript; *.kt → Kotlin; *.java → Java; go.mod → Go; mix.exs → Elixir. Another language's reference is not a template. Python has no released Arc SDK: call the owning service over HTTP.

Expected outcome

With three matching rows and one other, request a page size of two and then the next page, as the same caller and tenant, with the data unchanged. Expect two IDs, then the remaining one, none repeated, and a total of three on both. Save both response bodies and run node scripts/check-pages.mjs first.json second.json id from the skill directory. Expect Distinct rows per page: 2 1. Check paging.totalItems separately; the script only checks successful, nonempty responses and distinct IDs.

In the frontend, request another page through the generated proxy's paging API rather than slicing the returned array.

Before allowing caller-selected sorts

Refuse sorts on hidden fields before ordering, because result order leaks their rankings. Restrict rows to the caller’s authorized set before counting.

Files

What ships with it

8 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 · -9 lines · +9 tokens per session ee4464e93124
  2. 2d ago First seen · 39 lines · 38 tokens per session scan A 749258b43dda

Subscribe to this mod's changes

cratis-arc-page-query is a skill published in the GitHub repository Cratis/AI (4 stars, last pushed today), licensed MIT. It adds 47 tokens to every session and 505 once invoked, about $0.0002 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-11-27.

Related

cratis-arc-page-query compared with skills from other repositories

cratis-arc-page-query next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cratis-arc-page-queryCratis/AISkill4todayMITA47Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill330k2d agoMITA21Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill14kyesterdayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code