servicenow-atlas: Skill for Claude Code

.agents/skills/atlas-optimization-patterns/SKILL.md

atlas-optimization-patterns is a skill for Claude Code, Codex from sagar-shirwalkar/servicenow-atlas. It costs 72 tokens per session (1,146 once invoked), scanned A, original, Apache-2.0.

A set of coding patterns for Atlas, a read-only search system that loads data from Parquet files into NumPy arrays and serves queries through MCP. It focuses on reducing startup time, memory use, and extra dependencies.

In plain words
What is it for?
Use it when changing Atlas source files, choosing data structures, adding dependencies, handling startup-heavy code, or parallelizing CPU-bound ONNX work.
Why use it?
It avoids slow imports, unnecessary table abstractions, and added libraries when changing Atlas code. It also provides patterns for efficient text matching and CPU-heavy work.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is sagar-shirwalkar/servicenow-atlas's own configuration. It tells Claude Code and Codex how to work on servicenow-atlas itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything servicenow-atlas configures →

Reuse

Borrowing it

Nothing to install: this file belongs to sagar-shirwalkar/servicenow-atlas. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/sagar-shirwalkar/servicenow-atlas/main/.agents/skills/atlas-optimization-patterns/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/sagar-shirwalkar/servicenow-atlas

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 atlas-optimization-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/sagar-shirwalkar/servicenow-atlas/atlas-optimization-patterns/github.svg)](https://agentmods.dev/skills/sagar-shirwalkar/servicenow-atlas/atlas-optimization-patterns)
Your own site
<a href="https://agentmods.dev/skills/sagar-shirwalkar/servicenow-atlas/atlas-optimization-patterns"><img src="https://agentmods.dev/badge/skills/sagar-shirwalkar/servicenow-atlas/atlas-optimization-patterns/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 atlas-optimization-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/sagar-shirwalkar/servicenow-atlas/atlas-optimization-patterns"><img src="https://agentmods.dev/badge/skills/sagar-shirwalkar/servicenow-atlas/atlas-optimization-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 72 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,146 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.00072 $0.01146
Opus 5 $0.00036 $0.00573
Sonnet 5 $0.00014 $0.00229
Haiku 4.5 $0.00007 $0.00115

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

Security

Grade A, and why

atlas-optimization-patterns 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 11d 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.

.agents/skills/atlas-optimization-patterns/SKILL.md · 123 lines

How it starts

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

When to use

  • Adding a new dependency — always ask "can I do this with numpy/pyarrow?"
  • Choosing a data structure for the chunks table
  • Writing startup/import-heavy code
  • Adding CPU-bound parallel work
  • Any change to atlas/ source files

Principles

  1. Zero new deps. Every library adds import time, CVE surface, and lockfile bloat. Prefer numpy + pyarrow (already installed) over anything new. Pandas is explicitly banned — see patterns below.

  2. Optimize startup, not just hot path. A ~300 ms pandas import on every atlas-* command hurts more than a 10 ms saving in a rarely-hit code path.

  3. DataFrame abstractions are overhead. The chunks table is read-only, loaded once, and accessed by column. Store columns as numpy arrays for masks and list[str] for string data. Index by position, not by label.

  4. C-level string ops when possible. Use pyarrow.compute (match_substring) instead of Python loops over 250k strings. Use pc.match_substring(arrow_array, token) — it's the same speed as pandas str.contains.

  5. Process-level parallelism for CPU-bound ONNX. ONNX session.run is CPU-bound. Use concurrent.futures.ProcessPoolExecutor with min(os.cpu_count(), 4) workers, each loading its own ONNX session. Only for onnx-cpu backend — MLX and CUDA are sequential.

  6. Lazy init for argparse and other I/O. Never call parse_args() or read_parquet() at module level. Use the _get_args() / _bundle_cache double-checked locking pattern from rag_server.py.

  7. Pre-compute at build time. Norms, manifest SHAs, anything that can be computed once and stored. Query time should be as close to a single matrix multiply as possible.

  8. Single matrix multiply for cosine similarity. 250k × 768 dims: (embeddings @ query).flatten() / norms. No FAISS, no Qdrant, no vector database. Numpy is sufficient and has zero infrastructure.

  9. Don't rebuild what's already built. The bundle is the slowest thing we produce (~15 min MLX, hours on CPU). Default to publishing the existing ./data/rag-bundle. Only rebuild when the docs source has changed. This is encoded in scripts/publish-bundle.sh.

Read the full file on GitHub · 123 lines

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. 11d ago First seen · 123 lines · 72 tokens per session scan A d90948122894

Subscribe to this mod's changes

atlas-optimization-patterns is a skill published in the GitHub repository sagar-shirwalkar/servicenow-atlas (2 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 72 tokens to every session and 1,146 once invoked, about $0.0004 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.

Related

Other skills, from other repositories

mongodb-mcp-v3-migration

Migrates external consumer code from the mongodb-mcp-server v1/v2 single-package API to the v3 scoped-package structure. In v3, mongodb-mcp-server is a binary-only package (npx / MCPB); library embedding uses @mongodb-js/mcp-cli, @mongodb-js/mcp-core, @mongodb-js/mcp-http-runners, @mongodb-js/mcp-tools-, and the other…

mongodb-js/mongodb-mcp-server · 153 tokens

rag-web-fallback

Only reach for external web search when the local corpus comes back empty or clearly insufficient. Forces the agent to try knowledge-rag first, then explicitly document why it needed to escalate. Prevents wasted API cost, latency, and (in air-gapped deployments) accidental network calls.

lyonzin/knowledge-rag · 61 tokens

servicenow-cmdb

ITOM CMDB operations on the ServiceNow CMDB + CI Lifecycle Management APIs via the servicenow-api MCP server — query configuration items by class, read a CI with its attributes and relations, create/update/patch CI instances, manage CI relationships, and drive the CI lifecycle (status, actions, leases, operators). Use…

Knuckles-Team/servicenow-api · 130 tokens

servicenow-import-attachment-batch

ServiceNow data-ingest, file, and batched-REST surface — push rows through Import Sets (single & bulk), upload/get/delete record attachments, and bundle many REST calls into one batch request via the servicenow-api MCP server. Use when the agent must load external data through a transform-mapped import set, attach or…

Knuckles-Team/servicenow-api · 144 tokens

servicenow-platform-utilities

ServiceNow cross-domain platform helpers — send notification email, render deployed Flow Designer flows to Mermaid and read flow metadata, fetch data-classification and application metadata, list activity subscriptions, and push MetricBase time-series via the servicenow-api MCP server. Use when the agent needs a…

Knuckles-Team/servicenow-api · 156 tokens

servicenow-table-api

Foundational ServiceNow data access — generic Table API CRUD, Aggregate/stats roll-ups, and raw REST escape-hatch via the servicenow-api MCP server. Use when the agent must read, insert, update, patch, delete, count, or aggregate records in ANY ServiceNow table (including scoped app tables with no dedicated API), or…

Knuckles-Team/servicenow-api · 180 tokens