mongodb
Use when adding, reviewing, or refactoring NTS MongoDB code, including repositories, filters, update definitions, indexes, and MongoDB.Driver usage. Apply NTS MongoDB conventions: keep update definition builders simple and side-effect free; do not add try/catch blocks or telemetry activities inside update definition methods.
Works with
Agent Skills format with YAML frontmatter. Claude Code reads it as-is.
--- name: "mongodb" description: "Use when adding, reviewing, or refactoring NTS MongoDB code, including repositories, filters, update definitions, indexes, and MongoDB.Driver usage. Apply NTS MongoDB conventions: keep update definition builders simple and side-effect free; do not add try/catch blocks or telemetry activities inside update definition methods." license: "MIT" --- # NTS MongoDB Use MongoDB.Driver APIs in the simplest typed form that fits the operation. Keep Mongo persistence code focused on persistence concerns and leave domain decisions to Domain or Application code. ## Update Definitions When implementing methods such as `GetUpdateDefinition`: - Return the `Builders<T>.Update` definition directly. - Use typed member expressions such as `.Set(x => x.Name, document.Name)` where possible. - Do not start telemetry activities inside update definition methods. - Do not wrap update definition construction in `try/catch`. - Do not tag and rethrow exceptions from update definition builders. - Keep the method side-effect free: no I/O, logging, telemetry, repository calls, or domain decisions. If telemetry or exception tagging is needed, place it around the Mongo operation that executes the update, not around construction of the update definition. ## Repository Boundaries Repositories may translate models to Mongo filters, updates, and collection operations. They should not enforce domain invariants or coordinate workflows across repositories. Move those rules to the owning Domain object or Application service.
More Refactoring skills
vercel-react-best-practices
vercel-labs/agent-skills
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
analyze-project
lllllllama/rigorpilot-skills
Rigor Analyze / Rigor Audit read-only skill for deep learning research repositories. Use when the user wants to read and understand a repository, inspect model structure and training or inference entrypoints, review configs and insertion points, or flag suspicious implementation patterns without modifying code or running heavy jobs. Do not use for active command execution, broad refactoring, speculative code adaptation, or automatic bug fixing.
request-refactor-plan
mattpocock/skills
Create a detailed refactor plan with tiny commits via user interview, then file it as a GitHub issue. Use when user wants to plan a refactor, create a refactoring RFC, or break a refactor into safe incremental steps.

