factory-reliability

factory-reliability is a skill for Claude Code, Codex from sjarmak/coding-agent-workflows. It costs 28 tokens per session (1,494 once invoked), scanned A, original, MIT.

A guide for checking reliability in distributed software factories, where multiple workers or agents may retry work and communicate asynchronously. It focuses on who may write, which work is the same work, and which effects actually happened.

In plain words
What is it for?
Reviewing contracts, simulations, drills, or verification tools for retries, writer authority, event delivery, recovery, and duplicate-effect handling in agent systems.
Why use it?
It helps find duplicate actions, outdated workers writing late, lost events, excessive retries, and recovery failures that are difficult to reproduce in multi-process systems.

Skill for Claude CodeCodex

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

Good fit Reviewing contracts, simulations, drills, or verification tools for retries, writer authority, event delivery, recovery, and duplicate-effect handling in agent systems.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sjarmak/coding-agent-workflows/factory-reliability
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 sjarmak/coding-agent-workflows --skill factory-reliability
Clone the repo
git clone --depth 1 https://github.com/sjarmak/coding-agent-workflows

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 factory-reliability

README.md
[![agentmods](https://agentmods.dev/badge/skills/sjarmak/coding-agent-workflows/factory-reliability/github.svg)](https://agentmods.dev/skills/sjarmak/coding-agent-workflows/factory-reliability)
Your own site
<a href="https://agentmods.dev/skills/sjarmak/coding-agent-workflows/factory-reliability"><img src="https://agentmods.dev/badge/skills/sjarmak/coding-agent-workflows/factory-reliability/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 factory-reliability

Your own site · 80×15
<a href="https://agentmods.dev/skills/sjarmak/coding-agent-workflows/factory-reliability"><img src="https://agentmods.dev/badge/skills/sjarmak/coding-agent-workflows/factory-reliability.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,494 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.00028 $0.01494
Opus 5.5 $0.00011 $0.00598
Sonnet 5.5 $0.00006 $0.00299
Haiku 4.5 $0.00003 $0.00149

Measured 1mo ago against content hash 7d013cf42fcf, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

factory-reliability 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 1mo 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.

source/skills/factory-reliability/SKILL.md · 108 lines

How it starts

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

Factory Reliability

A software factory is a distributed system whose workers are nondeterministic. That is allowed. The factory still has to be deterministic about exactly three things: which work exists, who may write, and which effects happened. Every boundary below is a place one of those three quietly stops being true.

Apply the boundaries below to the repository's own contracts, drills, simulator, or equivalent verification tools. If those artifacts do not exist, state the missing evidence and instantiate only the checks the system can support.

Two properties that move in opposite directions

Conflating them is behind most duplicate-effect incidents in the evidence base.

  • Work identity survives executors. A logical work item needs an identity that outlives any process, so a retry converges on the same work instead of forking it.
  • Authority dies with its generation. An executor's right to write must expire when it is replaced, so a late writer cannot land an effect after someone else already did.

A design that gives the retry a fresh identity duplicates work. A design that lets identity carry authority lets a zombie publish.

The failure boundaries

Each row is a drill in drills/<name>/DRILL.md, stated as a question with a pass condition and a required unsafe negative control. Use the drill names as the vocabulary — a parallel local taxonomy fragments something that already exists and is executable.

Boundary The question it asks Holds it
effect-commits-ack-is-lost Destination commits, worker dies before recording completion, retry begins. One physical effect, or two? effect-identity, explicit-unknown-state, durable-intent
stale-writer-completes Gen 7 loses its lease, gen 8 publishes, gen 7 returns late and writes. Rejected at the destination, naming gen 7 as stale? fenced-authority
worker-dies-agent-survives Worker dies before any checkpoint; the agent session it started is still running. Does retry attach, or launch a second one? stable-work-identity, start-or-attach
event-is-lost The notification is dropped in transit. Does a level-triggered pass observe current state and finish the transition anyway? reconciliation
artifact-changes-after-verification A passes verification; the mutable ref moves to B; publication reads the ref. Can B ride A's verdict? verify-before-publish
repository-base-moves Work is produced against R1, R2 lands, the worker publishes from R1. Detected and given a disposition, or silent? verify-before-publish, cross-repo-campaigns
campaign-coverage-drifts A target appears after discovery ran. Does completion re-run discovery, or does all-children-finished close a coverage hole? cross-repo-campaigns, reconciliation
retry-storm A shared dependency recovers at reduced capacity and everything retries at once. Bounded and dispersed? topology-aware-scheduling

Read the full file on GitHub · 108 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. 1mo ago First seen · 108 lines · 28 tokens per session scan A 7d013cf42fcf

Subscribe to this mod's changes

factory-reliability is a skill published in the GitHub repository sjarmak/coding-agent-workflows (7 stars, last pushed 2d ago), licensed MIT. It adds 28 tokens to every session and 1,494 once invoked, about $0.0001 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-10-02.

Related

factory-reliability compared with skills from other repositories

factory-reliability next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
factory-reliabilitysjarmak/coding-agent-workflowsSkill72d agoMITA28Claude Code, Codex
browser-tracemxyhi/ok-skillsSkill5189d agoApache-2.0A88Claude Code
orca-replaymxyhi/ok-skillsSkill5189d agoApache-2.0A67Claude Code
opencli-autofixmxyhi/ok-skillsSkill5189d agoApache-2.0A61Claude Code
diagnosing-bugsmxyhi/ok-skillsSkill5189d agoApache-2.0A40Codex
data-manager-api-troubleshootinggoogle/skillsSkill25ktodayApache-2.0A179Claude Code, Codex
reproduce-and-fix-issuesbacknotprop/pstackSkill5.5ktodayMITA48Claude Code, Cursor