📦 Csharp Dotnetcore Natasha — 动态C#生成

v3.3.0

Natasha 为 .NET Core 提供运行时动态编译能力,可即时生成类、方法、属性与程序集,支持 Roslyn 语法树与元数据操作,让热插拔脚本、插件系统与动态业务逻辑开发更轻量高效。

0· 95·0 当前·0 累计
by @nmsazulxxiaohao (NMSAzulXXiaoHao)
下载技能包
最后更新
2026/3/30
0
安全扫描
VirusTotal
无害
查看报告
OpenClaw
安全
high confidence
The skill's requirements and instructions are internally coherent with its stated purpose (runtime C# dynamic compilation using the Natasha library), but it documents powerful features (compiling and executing arbitrary code, accessing private members) that carry significant security implications the user should consider before use.
评估建议
This skill is coherent with its stated purpose (runtime C# compilation using Natasha), but it documents and encourages powerful operations: compiling and executing arbitrary code and accessing private/internal members of types. Before using or deploying this skill: - Do not compile or execute untrusted user-supplied code inside sensitive processes. Treat dynamic scripts as untrusted input unless you fully control their source. - Accessing private/internal members (IgnoreAccessibility / ToAcce...
详细分析 ▾
用途与能力
Name/description match the actual content: SKILL.md and referenced docs exclusively describe Natasha-based runtime C# compilation, dynamic class/delegate generation, load-context/domain management, and private-member access features. No unrelated credentials, binaries, or install steps are requested.
指令范围
The instructions fully cover how to compile, load, and execute arbitrary C# code and explicitly show patterns for creating plugin systems and accessing private/internal members (via IgnoreAccessibility and ToAccessPrivateTree). This is expected for a dynamic-compilation skill, but it means the skill encourages actions (running user-supplied code and reaching into private state) that can expose secrets or escalate privileges if used on untrusted inputs.
安装机制
Instruction-only skill with no install spec and no code files to execute — lowest install risk. The SKILL.md recommends adding NuGet packages to the user's project (standard and proportional to the stated functionality).
凭证需求
The skill declares no required environment variables, no credentials, and no config paths. The examples reference writing a file-based using-code cache (Natasha.Namespace.cache) which is coherent for caching but should be considered when running in constrained or multi-tenant environments.
持久化与权限
The skill is not always-enabled and does not request system-level or cross-skill configuration changes. It does recommend writing a file cache to disk in some modes, which is expected behavior for performance caching and not an elevated privilege by itself.
安全有层次,运行前请审查代码。

运行时依赖

无特殊依赖

版本

latestv3.3.02026/3/30

csharp-dotnetcore-natasha 3.3.0 - Added an extensive SKILL.md with clear documentation on dynamic runtime C# code generation using Natasha. - Details provided for three distinct compilation modes: Smart Mode, Simple Mode, and Custom Compilation Mode. - Included setup instructions, code samples, and explanations for each usage scenario. - Outlined prerequisites, supported frameworks (.NET Core 3.1+ through .NET 8.0+), and optimization strategies. - Clarified common workflows, cache usage, and fine-grained metadata management options.

无害

安装命令

点击复制
官方npx clawhub@latest install csharp-dotnetcore-natasha
镜像加速npx clawhub@latest install csharp-dotnetcore-natasha --registry https://cn.longxiaskill.com
数据来源ClawHub ↗ · 中文优化:龙虾技能库