Individual skill

orchardcore-ai-tools

Skill for registering, authorizing and selecting AI tools (functions) in Orchard Core with CrestApps AI Services (CrestApps.OrchardCore.AI). Covers AddCoreAITool and the AIToolBuilder (WithTitle, WithDescription, WithCategory, WithPurpose, WithDependency, Selectable, Hidden), system versus hidden versus selectable tools, AIToolDefinitionOptions.GetSelectableTools, how the orchestrator assembles tools from ProfileToolRegistryProvider, SystemToolRegistryProvider, tool instances and agents, where selections are stored (FunctionInvocationMetadata, ProfileTemplateMetadata.ToolNames, ChatInteraction.ToolNames), the AccessAnyAITool and AccessAITool_{toolName} permissions with OrchardCoreAIToolAccessEvaluator, when access is checked for editors, chat interactions and AI profile sessions, and MCP exposure of selectable tools. Use this skill when requests mention Orchard Core AI tools, custom AI functions, AddCoreAITool, selectable or system tools, tool permissions, or tools missing for a role.

plugins/crestapps-orchardcore/skills/orchardcore-ai-tools/SKILL.md

Read pinned source

Source commit d86d04f234b1b2bd8145368a2544490f9d557596

What was checked

Matches the observed repository HEAD
Yes
Scanner rules are current
Yes
Repository scan complete
No
Skill scan complete
No
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.

Files and excerpt

File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.

Browse files
Read excerpt

# Orchard Core AI Tools

A tool is a named `AITool` (usually an `AIFunction`) registered in code. Profiles, templates, chat interactions, and workflow tasks select tools by name; the orchestrator resolves them as keyed services for each request, after an authorization check.

## Guidelines

- Enable `CrestApps.OrchardCore.AI` for the tool pickers, permissions, and access evaluator. Install CrestApps packages in the web/startup project.
- Register a tool with `services.AddCoreAITool<TTool>(name)`; it adds the definition to `AIToolDefinitionOptions` and a keyed `AITool` singleton under the same name. Names must be unique and stable.
- **A new tool is a system tool by default.** System tools are auto-included by the orchestrator, never appear in pickers, and are never exposed by the MCP server. Call `.Selectable()` to show it in pickers, or `.Hidden()` to keep it out of pickers while letting a profile (for example a system agent) reference it by name.
- Only selectable tools can be opted in for MCP clients (`orchardcore-ai-mcp-server`).
- Descriptions are what the model reads to choose a tool. Describe side effects and required arguments precisely.
- Do not make destructive or privileged tools selectable for ordinary users.

## Register a custom tool