agentleFS
TairitsuaTairitsua/Monica/skills/monica-infra-persistence/SKILL.md

monica-infra-persistence

Skill18 starsChanged 7 months agoMITView on GitHub

Use when integrating Monica repositories, transactions, object storage, transactional domain events, outbox, or inbox in an application, diagnosing save and commit behavior, or inspecting DbContext connections, activity, and migrations.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If a named skill is unavailable, use $monica-guide to resolve the verified Monica checkout (source resolve --repository monica --json) and …

    line 24

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Monica persistence

Repositories and UnitOfWork cover a local database operation; use transactional-event guidance when a committed write must drive external delivery.

TaskRead
Register a context, stage aggregate ranges, or insert prepared rows with optional audit propertiesRepositories
Cache immutable repository projections using transactional dataset versionsRepository snapshots
Place infrastructure tables and per-context history across relational providersInfrastructure table layout
Place migration projects, consolidate databases, or define schema/history ownership$monica-application (references/05-database-migrations.md)
Inspect registered contexts, provider sessions, migration history, or migration updatesRepository diagnostics
Choose explicit rollback for business failures, Shared/Independent boundaries, or database participantsTransactions
Store binary objects or select a Minio providerBlob storage
Choose before-commit effects or committed delivery; configure outbox, batch inbox, and projectionsTransactional events
Diagnose a failed or slow save, transaction, or deliveryTroubleshooting

For key-value storage, use state stores; for application placement, use Building Block development in $monica-application-building-block-development. For module implementation, use $monica-framework, then $monica-development.

If a named skill is unavailable, use $monica-guide to resolve the verified Monica checkout (source resolve --repository monica --json) and read its canonical skills/<name>/SKILL.md and specified reference.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.