genocs-library: Skill for Codex

.codex/skills/saga-writer/SKILL.md

saga-writer is a skill for Codex from Genocs/genocs-library. It costs 14 tokens per session (174 once invoked), scanned A, original, MIT.

A guide for designing and managing sagas, which are workflows that coordinate steps across separate services and undo completed steps when something fails.

In plain words
What is it for?
Use it to define saga steps and compensating actions with NServiceBus, store saga state in MongoDB, draw Mermaid diagrams, and validate the logic with Reqnroll tests.
Why use it?
It helps make distributed transactions—multi-service operations that cannot use one shared database transaction—handle failures safely.

Skill for Codex

Written for Codex: installed under .codex/.

This is Genocs/genocs-library's own configuration. It tells Codex how to work on genocs-library 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 genocs-library configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Genocs/genocs-library. 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/Genocs/genocs-library/main/.codex/skills/saga-writer/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/Genocs/genocs-library

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 saga-writer

README.md
[![agentmods](https://agentmods.dev/badge/skills/genocs/genocs-library/saga-writer/github.svg)](https://agentmods.dev/skills/genocs/genocs-library/saga-writer)
Your own site
<a href="https://agentmods.dev/skills/genocs/genocs-library/saga-writer"><img src="https://agentmods.dev/badge/skills/genocs/genocs-library/saga-writer/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 saga-writer

Your own site · 80×15
<a href="https://agentmods.dev/skills/genocs/genocs-library/saga-writer"><img src="https://agentmods.dev/badge/skills/genocs/genocs-library/saga-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 174 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.00014 $0.00174
Opus 5 $0.00007 $0.00087
Sonnet 5 $0.00003 $0.00035
Haiku 4.5 $0.00001 $0.00017

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

Security

Grade A, and why

saga-writer 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 10d 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.

.codex/skills/saga-writer/SKILL.md · 26 lines

What it actually says

Saga Writer

When to use this skill

Use this skill when the user needs to manage distributed transactions using sagas...

Library and tools

  1. Write saga using NServiceBus library
  2. Use MongoDB to store saga state and data
  3. Use Mermaid state diagrams to visualize the saga flow
  4. Use Reqnroll specs tests to validate the saga logic

How to create a saga

  1. Define the saga steps and compensating actions

How to handle failures

  1. Implement compensating actions for each step in the saga...
  2. Use the saga writer to execute the saga and handle any failures that occur during execution.
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. 10d ago First seen · 26 lines · 14 tokens per session scan A 0095db08270e

Subscribe to this mod's changes

saga-writer is a skill published in the GitHub repository Genocs/genocs-library (4 stars, last pushed 7d ago), licensed MIT. It adds 14 tokens to every session and 174 once invoked, about $0.0001 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

architecture-patterns

Software architecture patterns and best practices.

aAAaqwq/AGI-Super-Team · 10 tokens

enterprise-architecture-patterns

Complete guide for enterprise architecture patterns including domain-driven design, event sourcing, CQRS, saga patterns, API gateway, service mesh, and scalability.

manutej/luxor-claude-marketplace · 34 tokens

build-teaql-app

Build or change a TeaQL application in Java, Rust, Go, Swift, Python, C#/.NET, or TypeScript, including Kotlin/JVM applications that consume Java-generated libraries. Mandatory order: first draft and save a complete KSML model, then verify the client and evaluate that saved model, repair it through repeated evaluation…

teaql/teaql-agent-kit · 112 tokens

domain-driven-design

DDD tactical patterns for complex business modeling including entities, value objects, aggregates, domain services, repositories, specifications, and bounded contexts. Python dataclass implementations with TypeScript alternatives. Use when building rich domain models, enforcing invariants, or separating domain logic…

yonatangross/orchestkit · 57 tokens

Contract Testing with Pact

Consumer-driven contract testing skill using Pact, covering consumer tests, provider verification, Pact Broker integration, and CI/CD workflows.

PramodDutta/qaskills · 29 tokens

architecture-paradigm-microservices

Applies microservices for independent deployment and per-service scaling. Use when teams need autonomous release cycles with distinct capability scaling needs.

athola/claude-night-market · 33 tokens