Protects Orchard Core endpoints and forms with Google reCAPTCHA. Covers settings, shapes, tag helpers, controller validation, recipe configuration, and user login/registration/password-reset protection.
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.
The OrchardCore.ReCaptcha feature supplies Google reCAPTCHA rendering and
verification. Add OrchardCore.ReCaptcha.Users when built-in user login,
registration, and password recovery pages also need protection. It is not a
replacement for authorization, rate limiting, or server-side input validation.
OrchardCore.ReCaptcha for the base service, settings, and shape.OrchardCore.ReCaptcha.Users to protect user forms; it depends on the base feature and Users.ReCaptcha shape or the <captcha /> tag helper to render a challenge.ValidateReCaptchaAttribute only for form posts that actually render and submit the challenge token.OrchardCore.Forms and OrchardCore.ReCaptcha.OrchardCore.Workflows and OrchardCore.ReCaptcha.ReCaptchaService verifies the server response and retries its HTTP calls through the configured resilient client.ReCaptchaSettings through IOptionsMonitor<ReCaptchaSettings>.CurrentValue; settings changes apply without a shell release.IDetectRobots, or PreventAbuse mode despite older docs; the challenge always renders when settings are configured.OrchardCore.RateLimits for user endpoints (see orchardcore-rate-limits).{ "steps": [...] } format.{
"steps": [
{
"name": "Feature",
"enable": [
"OrchardCore.ReCaptcha",
"OrchardCore.ReCaptcha.Users"
],
"disable": []
}
]
}
The Users feature registers IRegistrationFormEvents, ILoginFormEvent, and
IPasswordRecoveryFormEvents. With the relevant Users subfeatures enabled it
also provides display drivers for registration, forgot-password, and
reset-password forms.
Navigate to Settings → Security → reCaptcha and set the site key and
secret key. ReCaptchaSettings exposes SiteKey, SecretKey,
ReCaptchaScriptUri, and ReCaptchaApiUri. A usable configuration requires
the keys and verification URI (ConfigurationExists(); the old IsValid()
is obsolete). The URIs default to Google's endpoints. With
OrchardCore.Deployment, a ReCaptcha settings deployment step exports
them.
Configure a recipe with the Settings step:
{
"steps": [
{
"name": "Settings",
"ReCaptchaSettings": {
"SiteKey": "your-site-key",
"SecretKey": "your-secret-key",
"ReCaptchaScriptUri": "https://www.google.com/recaptcha/api.js",
"ReCaptchaApiUri": "https://www.google.com/recaptcha/api/siteverify"
}
}
]
}
Override tenant settings through configuration by calling
ConfigureReCaptchaSettings() (namespace OrchardCore.ReCaptcha.Extensions)
on the OrchardCoreBuilder:
using OrchardCore.ReCaptcha.Extensions;
builder.Services
.AddOrchardCms()
.ConfigureReCaptchaSettings();
{
"OrchardCore": {
"ReCaptcha": {
"SiteKey": "your-site-key",
"SecretKey": "your-secret-key"
}
}
}
using Microsoft.Extensions.Options;
using OrchardCore.ReCaptcha.Configuration;
namespace MyModule.Services;
public sealed class CaptchaAvailability
{
private readonly IOptionsMonitor<ReCaptchaSettings> _settings;
public CaptchaAvailability(IOptionsMonitor<ReCaptchaSettings> settings)
{
_settings = settings;
}
public bool IsConfigured()
=> _settings.CurrentValue.ConfigurationExists();
}
Do not cache IOptions<ReCaptchaSettings>.Value; it does not track settings
changes.
Render the ReCaptcha shape in the form and validate the posted token on the action.
The attribute adds a model-state error named ReCaptcha when verification
fails, so the action must return the model when ModelState is invalid.
<form asp-action="Submit" method="post">
<input asp-for="Email" />
<shape type="ReCaptcha" language="en-US" />
<button type="submit">Submit</button>
</form>
using Microsoft.AspNetCore.Mvc;
using OrchardCore.ReCaptcha.ActionFilters;
namespace MyModule.Controllers;
public sealed class ContactController : Controller
{
[HttpPost]
[ValidateReCaptcha]
public IActionResult Submit(ContactViewModel model)
{
if (!ModelState.IsValid)
{
return View(model);
}
return RedirectToAction(nameof(Complete));
}
public IActionResult Complete() => View();
}
For a client-side JSON post, send the generated token in the
g-recaptcha-response request header when a workflow task consumes it.
Use the shape when building Liquid or Razor output instead of hand-writing the provider markup. The shape always renders the challenge when settings are configured:
{% shape "ReCaptcha", language: "en-US" %}
<shape type="ReCaptcha" language="en-US" />
In a Form content type, add the ReCaptcha form part after enabling Forms and
ReCaptcha. The module registers ReCaptchaPart and its display driver, which renders the
challenge:
<captcha language="en-US" />
The <captcha /> tag helper renders the ReCaptcha shape and accepts
optional language and onload attributes.
The Validate ReCaptcha workflow task is available only when Workflows is also enabled. It validates the challenge submitted with the request and is appropriate for a Forms workflow, not for bypassing server-side validation.
IOptionsMonitor<ReCaptchaSettings> and read CurrentValue instead of IOptions<ReCaptchaSettings>.OrchardCore_ReCaptcha configuration section to OrchardCore:ReCaptcha (the old name still works but is deprecated).OrchardCore.ReCaptcha.Permissions.ManageReCaptchaSettings with OrchardCore.ReCaptcha.ReCaptchaPermissions.ManageReCaptchaSettings.What SKILL.md sets; muted values are Claude Code's defaults
/orchardcore:orchardcore-recaptchafrom 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