orchardcore-scripting

orchardcore-scripting is a skill for Claude Code from CrestApps/CrestApps.AgentSkills. It costs 174 tokens per session (7,084 once invoked), scanned A, original, MIT.

A guide to Orchard Core’s scripting engine, which evaluates JavaScript and other script sources and lets modules add named helper functions. It also covers scripts used in recipes and layer rules.

In plain words
What is it for?
Use it to evaluate scripts, add global methods, resolve application services safely, and write recipe or file-based scripts.
Why use it?
It helps keep script engines, service access, and custom functions registered with the correct types and lifetimes.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the orchardcore plugin — 116 skills shipped together

Good fit Use it to evaluate scripts, add global methods, resolve application services safely, and write recipe or file-based scripts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/crestapps/crestapps.agentskills/orchardcore-scripting
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add CrestApps/CrestApps.AgentSkills --skill orchardcore-scripting
Clone the repo
git clone --depth 1 https://github.com/CrestApps/CrestApps.AgentSkills

Made for: Claude Code.

Or install orchardcore, the plugin that ships this one along with the rest of its 116 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for orchardcore-scripting

README.md
[![agentmods](https://agentmods.dev/badge/skills/crestapps/crestapps.agentskills/orchardcore-scripting/github.svg)](https://agentmods.dev/skills/crestapps/crestapps.agentskills/orchardcore-scripting)
Your own site
<a href="https://agentmods.dev/skills/crestapps/crestapps.agentskills/orchardcore-scripting"><img src="https://agentmods.dev/badge/skills/crestapps/crestapps.agentskills/orchardcore-scripting/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for orchardcore-scripting

Your own site · 80×15
<a href="https://agentmods.dev/skills/crestapps/crestapps.agentskills/orchardcore-scripting"><img src="https://agentmods.dev/badge/skills/crestapps/crestapps.agentskills/orchardcore-scripting.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 174 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,084 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00174 $0.07084
Opus 5.5 $0.00070 $0.02834
Sonnet 5.5 $0.00035 $0.01417
Haiku 4.5 $0.00017 $0.00708

Measured 1mo ago against content hash 415a7048d087, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

orchardcore-scripting scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/orchardcore/skills/orchardcore-scripting/SKILL.md · 677 lines

How it starts

The opening of the file, as written. The whole thing — 677 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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.
  • GlobalMethod.Method (and AsyncMethod) is Func<IServiceProvider, Delegate>: a factory that receives the evaluation's service provider and returns a strongly-typed delegate (Func<string, string>, Action<string>, ...).
  • Global method factories run lazily, once per evaluation that reads the name, and may receive a null service provider when a script runs outside a tenant. Keep them side-effect free.
  • Resolve scoped or transient services from the serviceProvider passed to the factory, never from the provider's constructor and never cache them in fields.
  • Configure the JavaScript engine through IOptions<Jint.Options>. Sites that let non-administrators author scripts should set at least one execution limit.
  • Recipe expressions use the [js: expression] syntax for dynamic values. Layer rules use JavaScript expressions evaluated by the scripting engine.
  • All recipe JSON must be wrapped in { "steps": [...] }.
  • All C# classes must use the sealed modifier.

Read the full file on GitHub · 677 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +125 lines · +89 tokens per session 415a7048d087
  2. 2mo ago First seen · 552 lines · 85 tokens per session scan A 9efbb8a9d0a9

Subscribe to this mod's changes

orchardcore-scripting is a skill published in the GitHub repository CrestApps/CrestApps.AgentSkills (14 stars, last pushed 5d ago), licensed MIT. It adds 174 tokens to every session and 7,084 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-12.

Related

orchardcore-scripting compared with skills from other repositories

orchardcore-scripting next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
orchardcore-scriptingCrestApps/CrestApps.AgentSkillsSkill145d agoMITA174Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill82ktodayMITA200Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15ktodayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code