Configures SMS messaging in Orchard Core: provider setup (Log, Twilio, Azure), programmatic sending via ISmsService, custom ISmsProvider, SMS workflow activity, and notifications.
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.
None: SKILL.md is the whole skill.
OrchardCore.Sms to get Settings → Communication → SMS, guarded by
OrchardCore.Sms.SmsPermissions.ManageSmsSettings.ISmsService returns a failed Result.ISmsService to send; implement ISmsProvider for new providers.SmsProviderOptions, TwilioOptions, and AzureSmsOptions are refreshed from
site settings without a shell release; read them with
IOptionsMonitor<T>.CurrentValue.{ "steps": [...] }.sealed modifier, except for View Models.| Provider | Feature | Description |
|---|---|---|
Log | OrchardCore.Sms | Writes messages to the log. Registered only when the host environment is Development. |
Twilio | OrchardCore.Sms | Sends through Twilio. Requires an account SID, auth token, and phone number. |
Azure | OrchardCore.Sms.Azure | Tenant-specific Azure Communication Services settings. |
DefaultAzure | OrchardCore.Sms.Azure | Azure Communication Services from OrchardCore:Sms:Azure configuration. |
See orchardcore-sms-azure for the Azure providers.
{
"steps": [
{
"name": "Feature",
"enable": [
"OrchardCore.Sms"
]
},
{
"name": "Settings",
"SmsSettings": {
"DefaultProviderName": "Twilio"
},
"TwilioSettings": {
"IsEnabled": true,
"PhoneNumber": "+15555550123",
"AccountSID": "your-account-sid"
}
}
]
}
The admin UI (Twilio tab) encrypts AuthToken with Data Protection, so
enter the token there instead of in a recipe. Then pick the default on the
Providers tab.
In 4.0, TwilioSettings.AuthTokenSecretName can name a TextSecret of the
Secrets module instead; it takes precedence over AuthToken. With the
OrchardCore.Secrets feature enabled, the auth token editor offers Use a
secret (suggested name Twilio.AuthToken), and a saved token can be moved
without retyping it from Tools → Security → Migrate Secrets. A recipe can
create the secret with the Secrets step (value from the
OrchardCore__Secrets__Twilio.AuthToken environment variable) and set
"AuthTokenSecretName": "Twilio.AuthToken" in TwilioSettings. See
orchardcore-secrets.
using Microsoft.AspNetCore.Mvc;
using OrchardCore.Sms;
public sealed class NotificationController : Controller
{
private readonly ISmsService _smsService;
public NotificationController(ISmsService smsService)
{
_smsService = smsService;
}
[HttpPost]
public async Task<IActionResult> SendOrderConfirmation(
string phoneNumber,
string orderId,
CancellationToken cancellationToken)
{
var message = new SmsMessage
{
To = phoneNumber,
Body = $"Your order {orderId} has been confirmed and is being processed.",
};
var result = await _smsService.SendAsync(message, cancellationToken);
if (result.Succeeded)
{
return Ok(new { success = true });
}
return BadRequest(new { success = false, errors = result.Errors });
}
}
SmsMessage has To, Body, and an optional From; when From is empty the
provider's configured phone number is used. The
SendAsync(to, body, cancellationToken) extension builds the message for
simple cases. Use E.164 numbers such as +15555550123.
ISmsProvider requires a Name and SendAsync. Register providers that need
no settings with AddSmsProvider<T>("TechnicalName"):
using System.Net.Http.Json;
using Microsoft.Extensions.Localization;
using OrchardCore.Infrastructure;
using OrchardCore.Sms;
public sealed class WebhookSmsProvider : ISmsProvider
{
public const string TechnicalName = "Webhook";
private readonly IHttpClientFactory _httpClientFactory;
internal readonly IStringLocalizer S;
public WebhookSmsProvider(
IHttpClientFactory httpClientFactory,
IStringLocalizer<WebhookSmsProvider> stringLocalizer)
{
_httpClientFactory = httpClientFactory;
S = stringLocalizer;
}
public LocalizedString Name => S["Webhook"];
public async Task<Result> SendAsync(
SmsMessage message,
CancellationToken cancellationToken = default)
{
var client = _httpClientFactory.CreateClient(TechnicalName);
var response = await client.PostAsJsonAsync(
"/api/sms/send",
new { from = message.From, to = message.To, body = message.Body },
cancellationToken);
return response.IsSuccessStatusCode
? Result.Success()
: Result.Failed(S["Failed to send SMS via webhook."]);
}
}
using OrchardCore.Sms;
public sealed class Startup : StartupBase
{
public override void ConfigureServices(IServiceCollection services)
{
services.AddHttpClient(WebhookSmsProvider.TechnicalName, client =>
client.BaseAddress = new Uri("https://sms.example.com"));
services.AddSmsProvider<WebhookSmsProvider>(WebhookSmsProvider.TechnicalName);
}
}
When availability depends on site settings, build options from the settings,
read them through IOptionsMonitor<T>, and contribute the provider with
IConfigureOptions<SmsProviderOptions>. This mirrors the built-in Twilio
provider.
using Microsoft.Extensions.Options;
using OrchardCore.Settings;
using OrchardCore.Sms;
public sealed class CustomSmsSettings
{
public bool IsEnabled { get; set; }
}
public sealed class CustomSmsOptions
{
public bool IsEnabled { get; set; }
}
public sealed class CustomSmsOptionsConfiguration : IConfigureOptions<CustomSmsOptions>
{
private readonly ISiteService _siteService;
public CustomSmsOptionsConfiguration(ISiteService siteService)
{
_siteService = siteService;
}
public void Configure(CustomSmsOptions options)
=> options.IsEnabled = _siteService.GetSettings<CustomSmsSettings>().IsEnabled;
}
public sealed class CustomProviderOptionsConfiguration : IConfigureOptions<SmsProviderOptions>
{
private readonly IOptionsMonitor<CustomSmsOptions> _customOptions;
public CustomProviderOptionsConfiguration(IOptionsMonitor<CustomSmsOptions> customOptions)
{
_customOptions = customOptions;
}
public void Configure(SmsProviderOptions options)
{
options.TryAddProvider("CustomProvider", new SmsProviderTypeOptions(typeof(CustomSmsProvider))
{
IsEnabled = _customOptions.CurrentValue.IsEnabled,
});
}
}
public sealed class Startup : StartupBase
{
public override void ConfigureServices(IServiceCollection services)
{
services
.AddSignalOptionsChangeTokenSource<CustomSmsOptions>()
.AddTransient<IConfigureOptions<CustomSmsOptions>, CustomSmsOptionsConfiguration>()
.AddSmsProviderOptionsConfiguration<CustomProviderOptionsConfiguration>();
}
}
CustomSmsProvider injects IOptionsMonitor<CustomSmsOptions>. In the
settings display driver, after a successful save, inject
IOptionsUpdateNotifier (OrchardCore.Environment.Options) and call
RequestUpdate<CustomSmsOptions>().RequestUpdate<SmsProviderOptions>() so the
monitors refresh after the session commits.
With OrchardCore.Sms and OrchardCore.Workflows enabled, the SMS Task
activity (category Messaging, outcomes Done and Failed) sends a message.
Its fields support Liquid: Phone Number (recipient), the optional From
Phone Number (with country code, overriding the provider's number), and
Body. The persisted activity properties are PhoneNumber, FromNumber, and
Body; the send result is stored in LastResult.
{
"steps": [
{
"name": "Feature",
"enable": [
"OrchardCore.Sms",
"OrchardCore.Workflows"
]
}
]
}
Enable OrchardCore.Notifications.Sms to deliver user notifications by SMS
according to user preferences (see orchardcore-notifications).
{
"steps": [
{
"name": "Feature",
"enable": [
"OrchardCore.Sms",
"OrchardCore.Notifications",
"OrchardCore.Notifications.Sms"
]
}
]
}
With OrchardCore.HealthChecks enabled, the SMS module adds a health check that
reports the status of the Twilio SMS service (see orchardcore-health-checks).
IOptions<SmsProviderOptions>, IOptions<TwilioOptions>, and
IOptions<AzureSmsOptions> → IOptionsMonitor<T>.CurrentValue; settings
changes no longer release the shell.OrchardCore.Sms.SmsPermissionProvider.ManageSmsSettings was removed; use
OrchardCore.Sms.SmsPermissions.ManageSmsSettings.OrchardCore_Sms_AzureCommunicationServices → OrchardCore:Sms:Azure.FromNumber) field
and now honors workflow cancellation.TwilioSettings.AuthToken or AzureSmsSettings.ConnectionString
directly must also honor AuthTokenSecretName / ConnectionStringSecretName,
or read IOptionsMonitor<TwilioOptions> / IOptionsMonitor<AzureSmsOptions>.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/orchardcore:orchardcore-smsfrom 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