Integrates X/Twitter in Orchard Core: API client setup, sign-in with X, workflow status updates, and credential configuration via settings or recipes.
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 X Twitter module has two distinct features. OrchardCore.Twitter configures
the API client and workflow status activity. OrchardCore.Twitter.Signin
depends on it and OrchardCore.Users.ExternalAuthentication to add external
sign-in. Configure API credentials with the minimum provider permissions
required for the selected capability.
OrchardCore.Twitter for the API client and status-update workflow task.OrchardCore.Twitter.Signin only when X external login is required.TwitterClient is registered through AddHttpClient with bounded retry behavior.UpdateTwitterStatusTask returns Done or Failed and stores the response in TwitterResponse.ConfigureTwitterSettings(), or ITwitterSettingsService for tenant credentials.ConsumerKey and ConsumerSecret; its own settings only hold CallbackPath and SaveTokens.{ "steps": [...] } format.{
"steps": [
{
"name": "Feature",
"enable": [
"OrchardCore.Twitter"
],
"disable": []
}
]
}
For sign-in, add OrchardCore.Twitter.Signin:
{
"steps": [
{
"name": "Feature",
"enable": [
"OrchardCore.Twitter",
"OrchardCore.Twitter.Signin"
],
"disable": []
}
]
}
Configure them at Settings → Integrations → X (Twitter). TwitterSettings contains the OAuth credentials used by TwitterClient:
| Property | Purpose |
|---|---|
ConsumerKey | Application consumer key. |
ConsumerSecret | Application consumer secret. |
AccessToken | Account access token for API operations. |
AccessTokenSecret | Account access-token secret. |
ConsumerSecretSecretName, AccessTokenSecretSecretName | 4.0. Names of TextSecret entries of the Secrets module; each takes precedence over its protected value. |
With the OrchardCore.Secrets feature enabled, both secret editors offer
Use a secret (suggested names Twitter.ConsumerSecret and
Twitter.AccessTokenSecret), and saved values can be moved without retyping
them from Tools → Security → Migrate Secrets. The generic Settings step
can set the two *SecretName properties in TwitterSettings after a
Secrets step created the secrets; the TwitterSettings step has no
secret-name properties. See orchardcore-secrets.
The recipe step name is TwitterSettings (the generic Settings step with a
TwitterSettings object works too). The client decrypts the stored secrets
with data protection, as saved from the admin page, so secrets imported by a
recipe are stored as is and fail to decrypt. Prefer the admin page or
configuration for ConsumerSecret and AccessTokenSecret; the step replaces
all four values, so re-running it clears secrets entered earlier.
{
"steps": [
{
"name": "TwitterSettings",
"ConsumerKey": "consumer-key",
"AccessToken": "access-token"
}
]
}
For configuration overrides, call ConfigureTwitterSettings() on the
OrchardCoreBuilder and use the OrchardCore:X section:
builder.Services
.AddOrchardCms()
.ConfigureTwitterSettings();
{
"OrchardCore": {
"X": {
"ConsumerKey": "consumer-key",
"ConsumerSecret": "plain-consumer-secret",
"AccessToken": "access-token",
"AccessTokenSecret": "plain-access-token-secret"
}
}
}
ConsumerSecret and AccessTokenSecret are plain values here (for example
from OrchardCore__X__ConsumerSecret environment variables or a key vault);
Orchard Core protects them before use. In 4.0 they log a
LegacySecretConfiguration warning (event 8100); move them to secrets.
Configure Settings → Security → Authentication → Sign In with X (Twitter).
The sign-in settings model exposes CallbackPath and SaveTokens; the
consumer key and secret come from the API settings above. Set CallbackPath
explicitly (for example /signin-x) and register the same full tenant URL as
the X app's callback URL. The sign-in startup registers
the authentication and provider-specific options configurations plus the
external login display driver.
Enable OrchardCore.Workflows in addition to OrchardCore.Twitter. The module
registers Update X (Twitter) Status Task. Its StatusTemplate is evaluated
through the workflow expression evaluator before TwitterClient.UpdateStatus
is called.
{
"steps": [
{
"name": "Feature",
"enable": [
"OrchardCore.Twitter",
"OrchardCore.Workflows"
],
"disable": []
}
]
}
Branch on Failed and avoid blindly retrying status updates in a workflow, because a request may have reached the provider even if the response was lost.
Inject the registered typed client rather than creating an unauthenticated
HttpClient:
using OrchardCore.Twitter.Services;
namespace MyModule;
public sealed class SocialUpdateService
{
private readonly TwitterClient _twitterClient;
public SocialUpdateService(TwitterClient twitterClient)
{
_twitterClient = twitterClient;
}
public Task<HttpResponseMessage> PublishAsync(string status)
{
return _twitterClient.UpdateStatus(status);
}
}
Check the response status before reporting success and respect X platform limits and policies.
OrchardCore_X or OrchardCore_Twitter configuration section to OrchardCore:X (old names still work but are deprecated).ConsumerSecret and AccessTokenSecret values from configuration are now honored; in 3.x they had to be already protected and were otherwise ignored.TwitterClient no longer fails after its first request; it no longer overwrites the shared settings' encrypted secrets with decrypted values.TwitterSettings.ConsumerSecret or AccessTokenSecret directly must also honor ConsumerSecretSecretName and AccessTokenSecretSecretName.Official Orchard Core videos shown on the documentation page:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
orchard-core, twitter-integration, x-api, oauth, external-authentication
/orchardcore:orchardcore-twitterfrom 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