arcadedb: Skill for Claude Code

.claude/skills/engine-concurrency/SKILL.md

engine-concurrency is a skill for Claude Code from ArcadeData/arcadedb. It costs 79 tokens per session (2,883 once invoked), scanned A, original, Apache-2.0.

Guidance for handling parallel work in the ArcadeDB database engine and server code. Parallel work means running independent tasks at the same time.

In plain words
What is it for?
Use it when adding, reviewing, or debugging concurrency in ArcadeDB, including thread-pool sizing, saturation behavior, lock-free reads, locking, metrics, and forked work.
Why use it?
It helps developers choose the correct thread pools, avoid blocking shared system resources, and apply the project's locking and monitoring rules.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is ArcadeData/arcadedb's own configuration. It tells Claude Code how to work on arcadedb 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 arcadedb configures →

About the project

ArcadeDB is a database management system that stores and works with several kinds of data, including graph, document, key-value, time-series, geospatial, and vector data. It is used by applications that need one database supporting interfaces such as SQL, Cypher, Gremlin, HTTP/JSON, MongoDB, and Redis. The catalogue add-on operates ArcadeDB.

ArcadeData/arcadedb · 1,130 stars · on GitHub · arcadedb.com

Reuse

Borrowing it

Nothing to install: this file belongs to ArcadeData/arcadedb. 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/ArcadeData/arcadedb/main/.claude/skills/engine-concurrency/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/ArcadeData/arcadedb

Made for: Claude Code.

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 engine-concurrency

README.md
[![agentmods](https://agentmods.dev/badge/skills/arcadedata/arcadedb/engine-concurrency.svg)](https://agentmods.dev/skills/arcadedata/arcadedb/engine-concurrency)
Your own site
<a href="https://agentmods.dev/skills/arcadedata/arcadedb/engine-concurrency"><img src="https://agentmods.dev/badge/skills/arcadedata/arcadedb/engine-concurrency.svg" alt="Measured on agentmods" height="20"></a>
Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,883 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.00079 $0.02883
Opus 5 $0.00039 $0.01442
Sonnet 5 $0.00016 $0.00577
Haiku 4.5 $0.00008 $0.00288

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

Security

Grade A, and why

engine-concurrency 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 7d 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.

.claude/skills/engine-concurrency/SKILL.md · 117 lines

How it starts

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

Engine Concurrency and Parallelism

Core principle: ArcadeDB avoids the JDK common ForkJoinPool (ForkJoinPool.commonPool()) for engine-internal parallelism. The common pool is shared with user-supplied code (Gremlin, Polyglot, custom SQL functions, application JVM) and JDK internals (parallel GC, reference handler), so long-running engine work submitted there starves user code and JDK housekeeping. Engine code that needs parallelism submits to one of the dedicated pools below; the rule is documented at the head of com.arcadedb.query.QueryEngineManager's class Javadoc.

Existing JDK-common-pool callers (tagged in source with NOTE (concurrency) comments referencing the rule, will migrate as workloads justify it):

  • GraphBatch.parallelSort (engine/...graph/GraphBatch.java)

ArcadeStateMachine.notifyInstallSnapshotFromLeader was on this list until issue #6202 gave it a dedicated single-worker executor (arcadedb-raft-snapshot-install); a follower snapshot install is a full database download, i.e. the longest-running thing the HA layer does, and it no longer parks a common-pool worker for it.

Dedicated thread pools

Pool Module Purpose Sizing Saturation policy
QueryEngineManager JVM-wide pool engine Query-time parallelism: graph algorithms (parallelForRange), parallel index scans, anything that forks query work arcadedb.queryParallelismPoolThreads (default max(2, CPU)) Bounded queue (arcadedb.queryParallelismQueueSize, default 1024), caller-runs rejection, throttled WARNING (60s window)
SparseVectorScoringPool engine Reserved for per-segment parallel scoring of LSM_SPARSE_VECTOR top-K (dispatch wiring deferred to issue #4085) arcadedb.sparseVectorScoringPoolThreads (default max(2, CPU)), 1024 queue; lazy-init via Holder idiom Bounded queue, caller-runs, throttled WARNING
ParallelScanProducerPool engine The BLOCKING producer tasks of a parallel bucket scan (FetchFromTypeExecutionStep.syncPullParallel) arcadedb.parallelScanProducerPoolThreads (default max(2, CPU)) Deviation: unbounded queue and NO caller-runs - caller-runs on a blocking producer is the #4948 self-deadlock. Back-pressure comes from each query's bounded RESULT queue; queue_depth is the saturation signal
AsyncCommandPool engine Commands dispatched with awaitResponse=false that parse to DDL, which cannot run on an async worker (#6303 item 3) arcadedb.asyncCommandPoolThreads (default max(2, CPU)), arcadedb.asyncCommandQueueSize (default 1024) Bounded queue, caller-runs even on a shut-down pool (there is no future to cancel and the submitter has already counted the command as in flight), throttled WARNING
DatabaseAsyncExecutor engine Per-database async ops (background scheduled tasks, async commit) arcadedb.asyncWorkerThreads (default CPU - 1, min 1) Bounded queue (arcadedb.asyncOperationsQueueSize, default 1024)
PageManagerFlushThread engine Dedicated single thread for paginated-component page writes 1 thread Backpressure via arcadedb.maxRAMForPageRamUsageInMB
TransactionManager Timer engine Periodic WAL housekeeping Timer thread n/a
TimeSeriesEngine pool engine Time-series rollup work configurable n/a
BackupScheduler server Cron-style backup jobs scheduled executor n/a
MaterializedViewScheduler server Cron-style MV refresh scheduled executor n/a
Raft HA pools ha-raft Leader election, log replication configurable in Raft conf n/a
ArcadeStateMachine.snapshotInstallExecutor ha-raft Leader-initiated follower snapshot install, off the Ratis state-machine thread 1 worker, 16-deep queue (Ratis serialises installs per division) Abort, turned into a failed future so Ratis retries - never caller-runs, which would put the download back on the Ratis thread
Undertow IO + worker server HTTP request handling hardcoded 500 worker threads Undertow built-in
ServerMonitor server Periodic metric collection scheduled executor n/a

Read the full file on GitHub · 117 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. 7d ago First seen · 117 lines · 79 tokens per session scan A 8ab88048bda2

Subscribe to this mod's changes

engine-concurrency is a skill published in the GitHub repository ArcadeData/arcadedb (1,130 stars, last pushed today), licensed Apache-2.0. It adds 79 tokens to every session and 2,883 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-30.

Related

Other skills, from other repositories

arangodb

ArangoDB multi-model database reference covering document, graph, and key-value operations. Includes AQL query language, graph traversals, shortest path algorithms, indexing, ArangoSearch, clustering, backup, and administration.

bytesagain/ai-skills · 47 tokens

data-model-selector

Choose between relational, document, and graph data models for an application by analyzing data shape, relationship complexity, and query patterns. Use when asked "should I use MongoDB or PostgreSQL?", "when does a graph database make sense?", "how do I choose between SQL and NoSQL?", or "what data model fits my…

bookforge-ai/bookforge-skills · 223 tokens

triage-issues

Triage GitHub issues in the googleapis/mcp-toolbox repo: propose the correct labels (type / priority / product / status), check for duplicates, verify a bug has enough info to act on, and draft a triage comment. Use whenever a maintainer asks you to triage, label, categorize, prioritize, or "look at" an issue (or a…

googleapis/mcp-toolbox · 164 tokens

postgresql-indexing

PostgreSQL indexing best practices for Prowler: index design, partial indexes, partitioned table indexing, EXPLAIN ANALYZE validation, concurrent operations, monitoring, and maintenance. Trigger: When creating or modifying PostgreSQL indexes, analyzing query performance with EXPLAIN, debugging slow queries, reviewing…

prowler-cloud/prowler · 108 tokens

alert-rule-troubleshoot

This skill should be used when the user reports that an alert rule is "not firing", "no alert was sent", "the rule didn't trigger", "the rule isn't working", "it should have alerted but didn't", "why didn't I get an alert", "alert rule not firing", or wants to diagnose why a specific alert rule failed to produce an…

ccfos/nightingale · 129 tokens

ops-troubleshooting

This skill should be used when the user asks to "troubleshoot", "diagnose", "debug alert", "investigate incident", "locate a fault", "investigate an alert", "diagnose a problem", "fix an issue", "check alerts", "analyze alerts", "root cause analysis", "check metrics", "check logs", or discusses…

ccfos/nightingale · 99 tokens