senrecep/csharpessentials/csharpessentials-clone
Claude Code and agent skill by senrecep/csharpessentials
- community
Checking that the SKILL.md file is still in the repository.
Use when entities need deep-copy semantics. Implement ICloneable<T> on domain objects, then call .Clone() on IEnumerable<T> or IQueryable<T> collections to produce independent deep copies of every element.
Install
npx vskill@latest install senrecep/csharpessentials/csharpessentials-cloneSKILL.md
CSharpEssentials.Clone
Typed deep-copy contract for domain objects. ICloneable<T> is covariant and type-safe, unlike System.ICloneable which returns object.
Installation
Namespace
Implement ICloneable\<T\>
Clone Collections
Extension methods call Clone() on every element:
Typical Use Case
Snapshot EF Core results before applying in-memory transformations, without mutating tracked entities:
Best Practices
- Always deep-copy nested collections inside
Clone(); a shallow copy defeats the purpose ICloneable<T>is covariant (out T): aProduct : ICloneable<Product>is also anICloneable<object>Clone()on a sequence is lazy; callToList()to materialize the copies once- Consider using
recordtypes withwithexpressions for immutable value objects instead ofICloneable<T> ICloneable<T>is most valuable for mutable domain objects that are tracked by EF Core
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.well-known/agent-skills/csharpessentials-clone/SKILL.md
Popularity
- Repository stars
- 27
- Repository forks
- 1
- 7-day trend score
- 22
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/senrecep/csharpessentials/csharpessentials-clone)