Configures the GitHub Copilot chat orchestrator in Orchard Core via the CrestApps AI Chat Copilot module. Covers OAuth and API key authentication, encrypted credentials, callback flow, live options, and profile/template settings.
Ships in crestapps-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.
You are an Orchard Core expert. Generate configuration, recipes, and extension code for the GitHub Copilot SDK-based chat orchestrator. This module is an alternative orchestration runtime, not an Orchard AI provider connection or deployment provider.
CrestApps.OrchardCore.AI.Chat.Copilot to select GitHub Copilot orchestration on profiles, profile-source templates, and Chat Interactions.CopilotOptionsConfiguration binds CrestApps:AI:Copilot shell configuration and then overlays configured CopilotSettings.AuthenticationType is non-default or HasStoredConfiguration() is true.GitHubOAuth for user or profile GitHub credentials and ApiKey for a directly configured model provider.NotConfigured intentionally disables the Copilot orchestrator for a tenant./copilot/OAuthCallback.openai, azure, and anthropic provider types.Default, Low, Medium, or High, and whether to allow all tool executions per profile, template, or interaction.CopilotAuthController validates local return URLs and uses __popup__ only for the profile-editor popup flow.| Feature | Feature ID | Purpose |
|---|---|---|
| AI Services | CrestApps.OrchardCore.AI | Shared AI profile and orchestration infrastructure |
| AI Copilot Orchestrator | CrestApps.OrchardCore.AI.Chat.Copilot | Copilot SDK orchestration and tenant settings |
| AI Chat | CrestApps.OrchardCore.AI.Chat | Profile chat UI |
| AI Chat Interactions | CrestApps.OrchardCore.AI.Chat.Interactions | Ad-hoc interaction UI and SignalR hub |
Install the package in the web/startup project:
dotnet add package CrestApps.OrchardCore.AI.Chat.Copilot
{
"steps": [
{
"name": "Feature",
"enable": [
"CrestApps.OrchardCore.AI",
"CrestApps.OrchardCore.AI.Chat.Copilot",
"CrestApps.OrchardCore.AI.Chat"
],
"disable": []
}
]
}
Provide non-secret defaults through the section used by CopilotOptionsConfiguration:
{
"CrestApps": {
"AI": {
"Copilot": {
"AuthenticationType": "ApiKey",
"ProviderType": "openai",
"BaseUrl": "https://api.openai.com/v1",
"DefaultModel": "gpt-4o",
"WireApi": "completions"
}
}
}
}
Use environment variables or a secret store for ApiKey and OAuth client secrets. Tenant settings win for every value they hold. Keys: AuthenticationType (NotConfigured, GitHubOAuth, ApiKey), ClientId, ClientSecret and Scopes for OAuth; ProviderType, BaseUrl, ApiKey, DefaultModel, WireApi and AzureApiVersion for API-key mode. The example is a tenant App_Data/Sites/{tenant}/appsettings.json; the host file wraps the same keys in OrchardCore, for example OrchardCore__CrestApps__AI__Copilot__ApiKey.
CrestApps.Core reads CopilotOptions through IOptionsMonitor<CopilotOptions>. The module registers services.AddSignalOptionsChangeTokenSource<CopilotOptions>() and the settings editor calls IOptionsUpdateNotifier.RequestUpdate<CopilotOptions>() on save, so saved settings apply without a tenant restart. Code of your own that reads Copilot settings must also use IOptionsMonitor<CopilotOptions>; see orchardcore-site-settings.
Use OAuth when sessions should use models entitled to a GitHub identity:
https://your-domain.example/copilot/OAuthCallback, uncheck Webhook > Active (webhooks are not needed), and grant Copilot Chat > Read-only under Account permissions so models can be listed.The OAuth flow requests user:email and read:org. CopilotAuthController.AuthorizeGitHub generates the authorization redirect and OAuthCallback exchanges the code, stores the encrypted credential, and returns to a safe local URL or closes the popup.
Use API-key mode when the Copilot orchestration API should call a configured provider without a Copilot subscription:
openai, azure, or anthropic.Use completions for the compatible chat-completions wire format. Use responses only with a provider and model that support the Responses API.
Copilot does not use the ordinary connection and deployment fields. AIProfileCopilotDisplayDriver instead stores CopilotSessionMetadata. The orchestrator resolves profile credentials before user credentials. Model pickers show each model's Copilot cost multiplier, for example (x1) or (x3), when GitHub reports one. Allow all tool executions is checked by default.
The orchestrator is registered under the name copilot. A recipe sets it with OrchestratorName and the per-profile values in CopilotSessionMetadata:
{
"steps": [
{
"name": "AIProfile",
"Profiles": [
{
"Name": "copilot-assistant",
"DisplayText": "Copilot Assistant",
"Type": "Chat",
"OrchestratorName": "copilot",
"Properties": {
"CopilotSessionMetadata": {
"CopilotModel": "gpt-4o",
"ReasoningEffort": "Default",
"IsAllowAll": false
}
}
}
]
}
]
}
Never put OAuth tokens in a recipe; profile-scoped credentials are created by signing in from the profile editor.
For a profile-source template, configure the Copilot model, effort, and allow-all setting once. AIProfileTemplateCopilotDisplayDriver copies those values when the template creates a profile.
Avoid profile-scoped OAuth credentials unless the profile is intentionally a shared service identity. A user-level credential is safer for individual users.
Enable the interactions feature when creating ad-hoc sessions:
{
"steps": [
{
"name": "Feature",
"enable": [
"CrestApps.OrchardCore.AI",
"CrestApps.OrchardCore.AI.Chat.Copilot",
"CrestApps.OrchardCore.AI.Chat.Interactions"
],
"disable": []
}
]
}
ChatInteractionCopilotDisplayDriver and CopilotChatInteractionSettingsHandler save Copilot model, reasoning effort, and allow-all settings as CopilotSessionMetadata.
| Route | Handler | Purpose |
|---|---|---|
/copilot/Authorize | AuthorizeGitHub | Starts OAuth and validates the local return URL |
/copilot/OAuthCallback | OAuthCallback | Exchanges the authorization code and stores credentials |
/copilot/api/status | CopilotAuthEndpoints GET handler | Returns current-user status and tenant configuration state |
/copilot/api/models | CopilotAuthEndpoints GET handler | Lists available models for the signed-in user |
/copilot/api/disconnect | CopilotAuthEndpoints POST handler | Removes current-user OAuth credentials after antiforgery validation |
CopilotPermissionProvider supplies ManageCopilotSettings, granted to Administrators by default. Restrict it to trusted operators because it controls OAuth application credentials and provider API keys.
/copilot/OAuthCallback path.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/crestapps-orchardcore:orchardcore-ai-chat-copilotfrom crestapps-orchardcore
npx claudepluginhub crestapps/crestapps.agentskills --plugin crestapps-orchardcore137 skills in this plugin
/orchardcore-accountsSkill for the CrestApps Orchard Core Accounts module (CrestApps.OrchardCore.Accounts) with its Account Members, Account Team, Account E-mail Domains and Account Locations features. Covers the Account type and AccountPart, the account picker and search, IAccountChildTypeRule, account page sections (AccountPageTabs, AddPageSection, Notes), members and IAccountMemberService, account invitations, the account owner and team picked from staff, e-mail domains, locations with a billing location, the account's billing profile and party members, the Accounts recipe and deployment steps, and the admin menu. Use this skill when requests mention accounts, the businesses or households records belong to, an account page tab, members, invitations, owners, domains or locations. Strong matches include AccountPart, AccountPageTabs, IAccountMemberService, IAccountInvitationService, AccountInvitation, AccountTeamPart, AccountEmailDomainsPart, IAccountEmailDomains, AccountLocationsPart and ManageAccountMembers./orchardcore-accounts-b2bSkill for the CrestApps Orchard Core Accounts B2B module (CrestApps.OrchardCore.Accounts.B2B), business selling on an Account content item. Covers B2BAccountPart and B2BAccount, buyers as account members and ship-to addresses as account locations, terms (deposit, net days, credit limit) through the account-terms tender billed to the account, the account's billing profile, purchase order numbers, quotes, price lists through IBuyerPriceProvider, order limits, approvals and budgets, OCI punchout, the account/business page and API, the PriceLists recipe and deployment steps, the B2BAccounts report source, and the move from the removed Companies module. Use this skill when requests mention B2B, wholesale or business buyers, net terms, purchase orders, price lists, order approvals or punchout. Strong matches include B2BAccountPart, B2BAccount, AccountTerms, AccountTermsTenderProvider, B2BAccountBillingProfileSource, IB2BAccountStore, PriceList, B2BPriceProvider, B2BApprovalService and ManageB2BAccounts.Other plugins' skills for the same job