transactions-consistency

transactions-consistency is a skill for Codex from d4rkNinja/arcforge. It costs 77 tokens per session (2,607 once invoked), scanned A, original, MIT.

A set of guidance for reviewing and changing transactions or shared state when multiple operations can happen at once or across different systems. It covers problems such as duplicate effects, incorrect ordering, and data that becomes inconsistent.

In plain words
What is it for?
Analyzing transaction boundaries, isolation, locking, retries, idempotency, replication, sharding, distributed locks, and state-machine behavior.
Why use it?
It helps identify concurrency and consistency errors that may not appear during a normal code review or simple test.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Analyzing transaction boundaries, isolation, locking, retries, idempotency, replication, sharding, distributed locks, and state-machine behavior.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/d4rkninja/arcforge/transactions-consistency
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 d4rkNinja/arcforge --skill transactions-consistency
Clone the repo
git clone --depth 1 https://github.com/d4rkNinja/arcforge

Made for: 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 transactions-consistency

README.md
[![agentmods](https://agentmods.dev/badge/skills/d4rkninja/arcforge/transactions-consistency.svg)](https://agentmods.dev/skills/d4rkninja/arcforge/transactions-consistency)
Your own site
<a href="https://agentmods.dev/skills/d4rkninja/arcforge/transactions-consistency"><img src="https://agentmods.dev/badge/skills/d4rkninja/arcforge/transactions-consistency.svg" alt="Measured on agentmods" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,607 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Memory Poisoning · line 10
    Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.
    Fix: Protect agent memory and state from modification by untrusted content. Use read-only memory for critical instructions and validate all state changes.
How audits are shown
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.00077 $0.02607
Opus 5 $0.00039 $0.01303
Sonnet 5 $0.00015 $0.00521
Haiku 4.5 $0.00008 $0.00261

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

Security

Grade A, and why

transactions-consistency 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 4d 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.

skills/transactions-consistency/SKILL.md · 154 lines

How it starts

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

Think Through Transactions & Consistency

Overview

Production guidance for correctness under concurrency and distribution. Each reference paper captures the hazards that pass code review silently: isolation levels that do not mean what their names claim, dual writes that corrupt state, idempotency keys without fingerprints, locks without fencing, and retries that duplicate committed effects.

Core principle: Every invariant needs an enforcement point at an authoritative boundary. A local transaction never makes a remote side effect atomic, and a timeout never proves a rollback.

Domain Law

NO CONCURRENCY OR CONSISTENCY CHANGE WITHOUT:
1. the minimum required primary paper(s) for the mechanism selected from the context table;
2. the invariant, its authoritative owner, and all concurrent writers
   named before choosing a control;
3. the paper's pre-change questions
   answered, or each open point labeled as an assumption;
4. every applicable MUST mapped to an enforcement point, a test that
   forces the interleaving, or a documented exception.

When to Use

Use this skill when thinking through, reviewing, changing, or verifying:

  • transaction boundaries, isolation levels, deadlocks, and retry scopes;
  • optimistic locking, version columns, compare-and-swap, conditional updates;
  • pessimistic locking, advisory locks, mutex/semaphore usage;
  • entity state machines, legal transitions, and transition history;
  • idempotency keys, request fingerprinting, response replay, dedup scope;
  • sagas, compensation, and cross-service workflow consistency;
  • consistency model selection (read-committed through serializable, eventual);
  • replication topology and read semantics;
  • partitioning/sharding keys, resharding, and hot-partition behavior;
  • consensus-backed stores and leader election assumptions;
  • distributed locks, leases, and fencing tokens;
  • ordering guarantees and their scope.

When Not to Use

  • Queue/job delivery semantics and the outbox pattern: use async-messaging (043, 047).
  • Retry budgets, timeouts, circuit breakers: use resilience-flow-control (052, 053, 054).
  • Schema constraints and index design: use data-storage (022, 027).
  • Whole-system architecture and boundary decisions: use system-architecture-harness.

Read the full file on GitHub · 154 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. 4d ago Changed · +3 lines 16d523684f7a
  2. 8d ago First seen · 151 lines · 77 tokens per session scan A ce1877423725

Subscribe to this mod's changes

transactions-consistency is a skill published in the GitHub repository d4rkNinja/arcforge (16 stars, last pushed 4d ago), licensed MIT. It adds 77 tokens to every session and 2,607 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

architecture-paradigm-cqrs-es

Applies CQRS and Event Sourcing for read/write separation and audit trails. Use when designing systems with complex domain logic or full state-change history.

athola/claude-night-market · 39 tokens

backend-event-sourcing

Use this skill when the user says 'event sourcing', 'event store', 'event stream', 'event sourced', 'rehydrate from events', 'event replay', 'projection rebuild', 'event log', 'append-only log', 'event history'. This skill enforces: events as the single source of truth, current state derived from event replay…

j4flmao/agent-skills · 118 tokens

backend-cqrs-patterns

Use this skill when the user says 'CQRS', 'command query segregation', 'separate read write model', 'command model', 'query model', 'read model', 'write model', 'materialized view', 'command handler', 'query handler'. This skill enforces: strict command/query separation, write model optimized for consistency, read…

j4flmao/agent-skills · 125 tokens

nosql-database-design

Designs a NoSQL data model by leading with access pattern analysis. Covers DynamoDB single-table design (PK/SK/GSI) and MongoDB embedding vs referencing, consistency models, and capacity planning. Invoked when the user asks to design a DynamoDB schema, MongoDB data model, or NoSQL data model.

soulcodex/agentic · 71 tokens

sql-query-optimization

Diagnoses and optimises slow SQL queries using EXPLAIN ANALYZE. Covers identifying bottlenecks (sequential scans, bad estimates, heap fetches), index strategy, query rewrites, and verification. Invoked when the user asks to optimize a query, fix a slow database query, or improve database performance.

soulcodex/agentic · 70 tokens

backend-designer

This skill should be used when the user asks to "design an API", "plan database schema", "set up authentication", "design backend architecture", or discusses backend patterns and infrastructure. Provides pragmatic backend design guidance following "solid indie" principles.

Data-Wise/craft · 53 tokens