mongodb
Skill2 starsChanged 10 months agoMITView on GitHub
Configures MongoDB document storage and query operations for Sorcha's distributed ledger Use when: implementing document storage, querying collections, creating indexes, or working with Register/Transaction/Docket data
6 other projects use a version of this.
Adopted by
Most recently taken up by
- fworks-tech/agenthoodtheir own version, first seen Sep 28, 2026
- anurag-azure/skillstheir own version, first seen Jun 27, 2026
- ffsshhttiikk/opencode-agents-skillstheir own version, first seen Feb 28, 2026
- hoodini/ai-agents-skillstheir own version, first seen Jan 7, 2026
- Makiya1202/ai-agents-skillstheir own version, first seen Jan 7, 2026
- akornmeier/claude-configtheir own version, first seen Nov 16, 2025
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- hoodini/ai-agents-skills★ 281same name
- akornmeier/claude-config★ 4same name
- fworks-tech/agenthood★ 3same name
- ffsshhttiikk/opencode-agents-skills★ 2same name
- Makiya1202/ai-agents-skills★ 2same name
- anurag-azure/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository79 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- docs/llms-full.txtllms.txt
- llms.txtllms.txt
- aspireSkill
- aspnet-coreSkill
- blazorSkill
- blueprint-builderSkill
- configuring-opentelemetry-dotnetSkill
- coverage-analysisSkill
- coverletSkill
- cryptographySkill
- database-expertSkill
- dockerSkill
- dotnetSkill
- entity-framework-coreSkill
- entity-frameworkSkill
- fluent-assertionsSkill
- frontend-designSkill
- grpcSkill
- jwtSkill
- mcpSkill
- microsoft-extensionsSkill
- migrate-xunit-to-xunit-v3Skill
- minimal-api-file-uploadSkill
- minimal-apisSkill
- moqSkill
- nbitcoinSkill
- network-bootstrapSkill
- nunitSkill
- optimizing-ef-core-queriesSkill
- playwrightSkill
- postgresqlSkill
- prodexecSkill
- redisSkill
- scalarSkill
- signalrSkill
- sorcha-appSkill
- sorcha-architectureSkill
- sorcha-cliSkill
- sorcha-uiSkill
- speckit-agent-context-updateSkill
- speckit-analyzeSkill
- speckit-checklistSkill
- speckit-clarifySkill
- speckit-constitutionSkill
- speckit-git-commitSkill
- speckit-git-featureSkill
- speckit-git-initializeSkill
- speckit-git-remoteSkill
- speckit-git-validateSkill
- speckit-implementSkill
- speckit-planSkill
- speckit-specifySkill
- speckit-tasksSkill
- speckit-taskstoissuesSkill
- verifiable-credentialsSkill
- walkthrough-builderSkill
- worker-servicesSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
0
Distinctive
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
- Very specific: line 104
Use mcp__context7__resolve-library-id to search for "mongodb c# driver"
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
MongoDB Skill
MongoDB is the document store for Sorcha's Register Service, providing storage for registers, transactions, dockets, and system blueprints. The codebase uses a two-tier storage architecture: warm-tier (mutable IDocumentStore<T>) and cold-tier (immutable IWormStore<T> for WORM/ledger data).
Quick Start
Connection Setup
// Program.cs - Register Service
builder.Services.AddSingleton<IMongoClient>(sp =>
{
var connectionString = builder.Configuration.GetConnectionString("MongoDB")
?? "mongodb://localhost:27017";
return new MongoClient(connectionString);
});
builder.Services.AddSingleton<IMongoDatabase>(sp =>
{
var client = sp.GetRequiredService<IMongoClient>();
return client.GetDatabase("sorcha_register");
});Repository Registration
// Use extension method from Sorcha.Storage.MongoDB
builder.Services.AddMongoClient(builder.Configuration);
builder.Services.AddMongoDatabase("sorcha_register");
builder.Services.AddMongoDocumentStore<Blueprint, string>(
"blueprints",
doc => doc.Id,
doc => doc.Id
);Key Concepts
| Concept | Usage | Example |
| Filter Builders | Type-safe queries | Builders<T>.Filter.Eq(x => x.Id, id) |
| Update Builders | Atomic updates | Builders<T>.Update.Set(x => x.Height, 10) |
| Composite Indexes | Multi-field queries | IndexKeys.Ascending(x => x.RegisterId).Ascending(x => x.TxId) |
| WORM Store | Immutable ledger data | IWormStore<Transaction, string> - no updates/deletes |
| Document Store | Mutable documents | IDocumentStore<Blueprint, string> - full CRUD |
Common Patterns
Filtered Query with Pagination
var filter = Builders<TransactionModel>.Filter.And(
Builders<TransactionModel>.Filter.Eq(t => t.RegisterId, registerId),
Builders<TransactionModel>.Filter.Gte(t => t.TimeStamp, since)
);
var results = await _collection
.Find(filter)
.SortByDescending(t => t.TimeStamp)
.Skip(page * pageSize)
.Limit(pageSize)
.ToListAsync(cancellationToken);Array Element Query
// Find transactions where address is in RecipientsWallets array
var filter = Builders<TransactionModel>.Filter.AnyEq(
t => t.RecipientsWallets,
walletAddress
);See Also
- patterns
- types
- modules
- errors
Related Skills
- dotnet - Runtime and C# patterns
- entity-framework - Alternative ORM (PostgreSQL uses EF)
- redis - Caching layer integration
- docker - MongoDB container setup
- xunit - Integration tests with Testcontainers
Documentation Resources
Fetch latest MongoDB C# driver documentation with Context7.
How to use Context7:
- Use
mcp__context7__resolve-library-idto search for "mongodb c# driver" - Query with
mcp__context7__query-docsusing the resolved library ID
Library ID: /mongodb/mongo-csharp-driver
Recommended Queries:
- "filter builder examples CRUD operations"
- "BSON serialization attributes"
- "index creation async"
- "aggregation pipeline C#"
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
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.

