Scaffolds and structures Orchard Core modules with manifest/feature registration, Startup classes, feature dependencies, OCSG002 analyzer rules, and third-party module installation.
Ships in orchardcore. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are an Orchard Core expert. Generate the scaffolding for a module owned by
an application that consumes Orchard Core packages. For the full code
templates (parts, fields, drivers, handlers, admin pages, the ocmodulecms
project template), use the orchardcore-module-creator skill alongside this
one.
MyOrg.MyModule).Manifest.cs file declaring its features.OrchardCore.Contents, not package names).Startup classes to register services, routes, and navigation.services.AddDataMigration<Migrations>().[assembly: Feature(...)] only when the user should manage it; to extend or override behavior when other features are present, gate a Startup with [RequireFeatures(...)] instead of adding another feature the user must enable. See the orchardcore-features skill for the full decision.[Feature("Id")] on a startup or component may only name a feature declared by the same module; otherwise the OCSG002 analyzer warns and the target is ignored at runtime. Use [RequireFeatures] for other modules' features.[RequiredStartup] (4.0) for a component that must be composed for every tenant, even when its own feature is disabled.OrchardCore:MyService[:Provider], without an OrchardCore_ prefix (see orchardcore-configuration).Third-party modules are installed by adding NuGet packages or project references to the web project:
<Project Sdk="Microsoft.NET.Sdk.Web">
<ItemGroup>
<!-- Orchard Core base -->
<PackageReference Include="OrchardCore.Application.Cms.Targets" Version="3.*" />
<!-- Third-party modules must be in the web project -->
<PackageReference Include="Lombiq.HelpfulExtensions.OrchardCore" Version="1.*" />
</ItemGroup>
</Project>
For local module projects:
<ItemGroup>
<ProjectReference Include="../ThirdParty.Module/ThirdParty.Module.csproj" />
</ItemGroup>
using OrchardCore.Modules.Manifest;
[assembly: Module(
Name = "{{ModuleName}}",
Author = "{{Author}}",
Website = "{{Website}}",
Version = "1.0.0",
Description = "{{Description}}",
Category = "{{Category}}"
)]
[assembly: Feature(
Id = "{{ModuleName}}",
Name = "{{FeatureName}}",
Description = "{{FeatureDescription}}",
Dependencies =
[
"OrchardCore.Contents",
],
Category = "{{Category}}"
)]
using Microsoft.Extensions.DependencyInjection;
using OrchardCore.Modules;
namespace {{ModuleName}};
public sealed class Startup : StartupBase
{
public override void ConfigureServices(IServiceCollection services)
{
// Register services here
}
}
// Only composed when the Workflows feature is enabled.
[RequireFeatures("OrchardCore.Workflows")]
public sealed class WorkflowsStartup : StartupBase
{
public override void ConfigureServices(IServiceCollection services)
{
// Register workflow activities here
}
}
| Attribute | Use it to |
|---|---|
[Feature("MyModule.Extra")] | Attach a startup/component to a feature declared in this module's Manifest.cs. |
[RequireFeatures("OrchardCore.Media")] | Compose the type only when all listed features (from any module) are enabled. |
[RequiredStartup] | Compose the type for every tenant, even if its feature is disabled; its services belong to Application.DefaultFeatureId. Can be combined with [RequireFeatures]. |
// Composed in every tenant where OrchardCore.Users is enabled,
// whether or not the module's own feature is enabled.
[RequiredStartup]
[RequireFeatures("OrchardCore.Users")]
public sealed class UserCleanupStartup : StartupBase
{
public override void ConfigureServices(IServiceCollection services)
{
services.AddScoped<IUserEventHandler, UserCleanupHandler>();
}
}
Wrong (OCSG002, silently ignored at runtime):
[Feature("OrchardCore.Liquid")] // Not declared by this module.
public sealed class LiquidStartup : StartupBase { }
Right:
[RequireFeatures("OrchardCore.Liquid")]
public sealed class LiquidStartup : StartupBase { }
<Project Sdk="Microsoft.NET.Sdk.Razor">
<PropertyGroup>
<TargetFramework>net11.0</TargetFramework>
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="OrchardCore.Module.Targets" Version="3.*" />
</ItemGroup>
</Project>
MyModule/
├── Manifest.cs
├── Startup.cs
├── MyModule.csproj
├── Controllers/
├── Drivers/
├── Handlers/
├── Migrations/
├── Models/
├── Services/
├── ViewModels/
├── Views/
└── wwwroot/
Files in wwwroot/ are served at /{ModuleId}/... (e.g. /MyModule/js/app.js), from the project folder during development and from the embedded assembly resources otherwise.
Initialize<T>() / Factory(); Shape() is obsolete.*Permissions class, LocalizationSource.Create(...) descriptions, services.AddPermissionProvider<T>().<breadcrumb> in the Title zone, <admin-list> for lists, AdminNavigationProvider for menus.<script at="Foot" type="module">.ITempDirectoryProvider; user uploads: FileCreationService.IOptionsMonitor<T>.CurrentValue.See orchardcore-module-creator for code templates of each item, and references/module-examples.md for a complete module.
What SKILL.md sets; muted values are Claude Code's defaults
/orchardcore:orchardcore-modulesfrom orchardcore
npx claudepluginhub crestapps/crestapps.agentskills --plugin orchardcore140 skills in this plugin
/orchardcore-adminGuidance for the Orchard Core admin panel, including admin controllers and routes, admin menu registration with AdminNavigationProvider, ocat editor forms grouped in cards, admin pages rendering Model.Editor, the UI text casing standard, TheAdmin layout and menu colors, admin branding, the Navbar shape, the Ctrl+K quick navigation palette and QuickNavigationSource, AdminSettings such as MenuBehavior, ShowBreadcrumb, DisplayQuickNavigation, DisplayTitlesInTopbar and ActionsLayout, the AdminDashboard shape, settings pages, and admin filters and zones. Use this skill when requests mention the Orchard Core admin panel, TheAdmin, admin controllers, admin menu registration, an icon on an admin menu item, the AdminSettings recipe step, quick navigation, navigation menu behavior, the admin URL prefix, UI text casing. Strong matches include OrchardCore.Admin, AdminSettings, AdminPermissions, AdminOptions, AdminAttribute, SiteDisplayDriver, IDisplayManager./orchardcore-admin-dashboardSkill for creating admin dashboard widgets in Orchard Core. Covers the DashboardWidget stereotype, DashboardPart position and sizing, the built-in HtmlDashboardWidget, ContentsMetadata and ContentsTags widget types, custom widget content types via recipe or migration, arranging widgets in Manage Dashboard mode, widget template customization, provisioning widgets with recipes, dashboard permissions, the DashboardBreadcrumbProvider Dashboard ancestor, and the AdminDashboardContent shape used when the feature is disabled. Use this skill when requests mention Orchard Core Admin Dashboard, Create and Configure Dashboard Widgets, Enabling Admin Dashboard, Widget Configuration Properties, dashboard widget recipes, Dashboard breadcrumb, or related implementation, setup, or troubleshooting work. Strong matches include OrchardCore.AdminDashboard, DashboardPart, DashboardBreadcrumbProvider, AccessAdminDashboard, ManageAdminDashboard.Other plugins' skills for the same job