Individual skill
orchardcore-scripting
Skill for using Orchard Core scripting and creating custom IGlobalMethodProvider implementations. Covers JavaScript evaluation with Jint, IScriptingManager and IScriptingEngine, disposing scripting scopes, built-in global methods, custom scripting providers that stay correct under lazy globals and engine reuse, service resolution from IServiceProvider, configuring Jint.Options execution limits (MaxStatements, TimeoutInterval, LimitMemory, constraint factories), StackOverflowGuard, cancellation tokens that stop scripts, JavaScriptEngineOptions.EnginePoolSize, Jint 4.16 and 4.17 behavior changes, recipe expressions, layer rules, and file scripting. Use it for OrchardCore.Scripting, OrchardCore.Scripting.JavaScript, IScriptingManager, GlobalMethod, JavaScriptEngine, JavaScriptScope, OperationDeadlineConstraint, and related Orchard Core setup, extension, upgrade, or troubleshooting work.
plugins/orchardcore/skills/orchardcore-scripting/SKILL.md
Source commit d86d04f234b1b2bd8145368a2544490f9d557596
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- Yes
- Repository scan complete
- No
- Skill scan complete
- Yes
- Observed behavior
- Instructions only
- Last checked
- Nov 6, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 13
- Repository last updated
- Oct 21, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- agent-skills Repository topic
- ai Repository topic
- ai-agents-framework Repository topic
- dotnet Repository topic
- mcp Repository topic
- mcp-server Repository topic
- orchardcore Repository topic
- engineering Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 32,673 bytes
Read excerpt
# Orchard Core Scripting - Prompt Templates
## Use the Orchard Core Scripting Engine
You are an Orchard Core expert. Generate code and configuration for scripting, JavaScript evaluation, global methods, custom scripting providers, JavaScript engine limits, and recipe scripting expressions.
### Guidelines
- The scripting module provides `IScriptingManager` for evaluating scripts in different languages.
- The default JavaScript engine uses the `js:` prefix and is powered by Jint. The file engine uses `file:`.
- A *directive* passed to `IScriptingManager` carries the prefix (`js: uuid()`). A script passed directly to `IScriptingEngine.Evaluate()` does not.
- Prefer `IScriptingManager.EvaluateAsync(...)` with a `CancellationToken`; it creates the scope, evaluates, and disposes the scope for you.
- If you create a scope yourself with `IScriptingEngine.CreateScope()`, dispose it in a `finally` (`(scope as IDisposable)?.Dispose()`) so the engine returns to the tenant's pool.
- Use `IGlobalMethodProvider` to register custom global methods as singletons.