agentleFS
dprakash2101dprakash2101/dotnet-production-agent-skills/skills/google-firestore-dotnet/SKILL.md

google-firestore-dotnet

Skill4 starsChanged 52 days agoMITView on GitHub

Use when implementing, reviewing, or troubleshooting .NET Firestore document models, queries, transactions, batched writes, indexes, optimistic concurrency, or read/write costs.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 6 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    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:

    Follow the repository's data-access boundary and installed Google.Cloud.Firestore version.

    line 8
  2. Distinctive:

    Use stable, collision-safe document IDs.

    line 12
  3. Distinctive:

    Use explicit serialization attributes/converters where domain and stored representations differ.

    line 13
  4. Distinctive:

    Use transactions for read-dependent atomic decisions and expect the callback may execute more than once.

    line 15
  5. Distinctive:

    Use indexed, bounded queries with cursors for pagination.

    line 17
  6. Distinctive:

    Test serialization compatibility, absent/null fields, transaction reruns, concurrency preconditions, pagination, and cost-significant query …

    line 23
  7. Distinctive:

    Test transaction callback reruns and cursor boundaries with the emulator or appropriate isolated environment when feasible.

    line 25

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

Google Cloud Firestore for .NET

Follow the repository's data-access boundary and installed Google.Cloud.Firestore version. Create/reuse FirestoreDb through established DI/configuration. Use Application Default Credentials and deployed workload/service identities; never commit service-account keys.

Model for document access patterns, not relational normalization. Choose collection/document boundaries, denormalization, document size/growth, consistency needs, and update frequency from the reads and writes the application actually performs. Avoid joins simulated through many serial reads.

  • Use stable, collision-safe document IDs. Do not place secrets or unnecessary PII in IDs or paths; IDs appear in logs and operational tooling.
  • Use explicit serialization attributes/converters where domain and stored representations differ. Treat missing fields, nulls, server timestamps, numeric types, and schema evolution deliberately.
  • Fetch only required documents and avoid read-before-write when a precondition, transaction, atomic transform, or direct write can enforce the requirement. Firestore charges and latency are affected by unnecessary reads.
  • Use transactions for read-dependent atomic decisions and expect the callback may execute more than once. Keep transaction code deterministic and free of non-idempotent external side effects. Use batched writes for atomic write-only groups.
  • Apply update-time/precondition checks where lost updates matter. Bound concurrency and do not share mutable model state between operations.
  • Use indexed, bounded queries with cursors for pagination. Avoid offsets for large scans, unbounded collection reads, and query shapes that require accidental fan-out. Treat missing-index errors as a schema/deployment decision, not a reason to bypass safe queries.
  • Propagate cancellation where the client API supports it. Classify cancellation, permission, precondition/conflict, quota/transient, invalid-data, and permanent failures without swallowing them.
  • Log operation, collection, safe document/correlation identifiers, latency, and outcome; do not log full documents or sensitive field values by default.

Do not add custom retries merely because failures can be transient. Add them only when explicitly requested or required by existing architecture, and prefer client-supported behavior. Before retrying, account for transaction callback reruns, write idempotency, preconditions, duplicate side effects, timeout budget, bounded attempts, cancellation, and permanent error classification.

Test serialization compatibility, absent/null fields, transaction reruns, concurrency preconditions, pagination, and cost-significant query behavior when applicable.

Test transaction callback reruns and cursor boundaries with the emulator or appropriate isolated environment when feasible. Verify server-side IAM and application authorization independently of document structure.

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.