Configures national and local do-not-call registry checks in CrestApps Orchard Core, including Azure Blob Storage for uploaded local lists. Covers FTC, Canada DNCL, and custom providers.
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 accurate compliance-focused configuration and code for the CrestApps DNC Registry modules. The module screens canonical phone numbers against national registries and locally uploaded lists. The same registries screen Omnichannel contact imports and Contact Center outbound dialing. The optional Azure module moves uploaded local-list files to Azure Blob Storage.
CrestApps.OrchardCore.DncRegistry (and CrestApps.OrchardCore.DncRegistry.Azure when needed) in the web/startup project.CrestApps.OrchardCore.DncRegistry first; it depends on CrestApps.OrchardCore.PhoneNumbers (see orchardcore-phone-numbers).PhoneNumber values (from IPhoneNumberService.TryParse) to registries. Never hand a registry a raw string.DoNotCallScreeningException; never return an empty set on failure. An empty set means "screened and not listed".ProtectedApiKey values and Azure connection strings out of source-controlled recipes and settings files.{ "steps": [...] }.sealed modifier, except for View Models.| Feature | Feature ID | Admin location |
|---|---|---|
| DNC Registry | CrestApps.OrchardCore.DncRegistry | Settings > Content Import (global enforcement) |
| USA FTC Do Not Call Registry | CrestApps.OrchardCore.DncRegistry.UsaFtc | Settings > DNC Registries > USA FTC Registry |
| Canada LNNTE-DNCL Registry | CrestApps.OrchardCore.DncRegistry.CanadaDncl | Settings > DNC Registries > Canada LNNTE-DNCL Registry |
| Local Do Not Call Registry | CrestApps.OrchardCore.DncRegistry.Local | Interaction Center > Local DNC Registry |
| DNC Registry - Azure Blob Storage | CrestApps.OrchardCore.DncRegistry.Azure (depends on Local) | Configuration only |
All screens require the Manage DNC registry settings permission (DncRegistryPermissions.ManageDncRegistrySettings). Each settings group registers that permission with services.AddSiteSettingsPermission(...), so a role holding only this permission can open the pages. Provider menu items appear only when the provider feature is enabled.
{
"steps": [
{
"name": "Feature",
"enable": [
"CrestApps.OrchardCore.DncRegistry",
"CrestApps.OrchardCore.DncRegistry.Local",
"CrestApps.OrchardCore.DncRegistry.UsaFtc"
],
"disable": []
}
]
}
| Registry | Key | Settings object | Properties |
|---|---|---|---|
| USA FTC | usa-ftc-dnc | UsaFtcDncRegistrySettings | OrganizationId, BaseUrl (default https://telemarketing.donotcall.gov/api/), ProtectedApiKey |
| Canada LNNTE-DNCL | canada-lnnte-dncl | CanadaDnclRegistrySettings | AccountNumber, BaseUrl (default https://www.lnnte-dncl.gc.ca/api/), ProtectedApiKey |
| Local | local-dnc | none | Lists are managed in the admin |
Global enforcement lives in DncRegistrySettings (EnforceGlobally, EnforcedRegistryKeys). Provision it with the generic settings step:
{
"steps": [
{
"name": "settings",
"DncRegistrySettings": {
"EnforceGlobally": true,
"EnforcedRegistryKeys": [
"usa-ftc-dnc",
"local-dnc"
]
},
"UsaFtcDncRegistrySettings": {
"OrganizationId": "example-org",
"BaseUrl": "https://telemarketing.donotcall.gov/api/"
}
}
]
}
Saved API keys are protected and never redisplayed; entering a new value replaces the key. BaseUrl is required when saving from the admin screen.
orchardcore-omnichannel-management and orchardcore-content-transfer.DoNotCallScreeningException suppresses the attempt with ComplianceScreeningUnavailable, which is not terminal, so the activity is retried in a later cycle. Extension calls skip screening because they are not consumer outreach. See orchardcore-contact-center and orchardcore-telephony.The Local feature registers LocalDncRegistry (key local-dnc), ILocalDncListManager, ILocalDncFileStore, LocalDncListIndex, LocalDncEntryIndex, and the Local DNC Import Processor background task.
LocalDncList as Pending and returns immediately; rows import in the background.Pending, Processing, Completed, Failed, Paused, and Deleting. The admin shows a completed list with rejected rows as Completed with errors.LocalDncEntryIndex by E.164 number and optional country.App_Data/Sites/{tenant}/DncRegistry unless Azure storage is enabled.CrestApps:BackgroundWork:Pacing settings (see orchardcore-content-transfer).CSV files hold one phone number per row in a single column. The importer skips blank rows, a header row, duplicates in the file and invalid numbers, rejects multi-column rows, and parses numbers without + using the country chosen at upload. Rejected rows with reasons are downloadable as CSV.
555-123-4567
(555) 234-5678
5559876543
The Local feature registers DoNotCallListConsentSource, an IConsentSource named ConsentSourceNames.DoNotCallLists registered with services.AddConsentSource<T>() (the shared consent building block in CrestApps.OrchardCore.Consent.Abstractions). For the Phone channel it reports an E.164 number as opted out when it is on a completed local list, so modules that ask IConsentService honor local lists without referencing this module.
The Local DNC lists deployment step (Do Not Call category) exports every Completed list with its phone numbers (personal data: export only to a site you trust). The LocalDncLists recipe step queues each list for the same background import an upload uses; a list whose name and country already exist is skipped, so a recipe can run twice. Both have CrestApps Recipes JSON schemas.
{
"steps": [
{
"name": "LocalDncLists",
"Lists": [
{ "Name": "Opted out", "CountryCode": "US", "PhoneNumbers": [ "+12025550101", "+12025550102" ] }
]
}
]
}
ILocalDncListManager.GetPhoneNumbersAsync(listId) returns a list's numbers.
With Data Pipelines Core (OrchardCore.DataPipelines.Core) and the Local feature enabled, the DNC registry data source (DncRegistry) is readable with ManageDncRegistrySettings:
| Data set | Rows | Main date | Fields |
|---|---|---|---|
DncLists | One per local list | CreatedUtc | ListId (identifier), Name, UploadedFileName, CountryCode, PhoneNumberCount, CreatedUtc, Status, TotalRecords, TotalProcessed, ImportedCount, ErrorCount, FailedAttempts, Error, ProcessSaveUtc, CompletedUtc |
DncEntries | One per imported number | None | EntryId (identifier), ListId (references DncLists.ListId), CountryCode |
The phone numbers themselves are not exposed. Only entries of Completed lists screen numbers, so join DncLists and filter Status to report on numbers in use. The USA FTC and Canada registries store nothing to report on.
DncRegistrySettings and DncRegistryConstants live in CrestApps.OrchardCore.DncRegistry.Abstractions, so modules such as the Omnichannel Management contact import read enforcement settings without referencing the module.
The Local DNC Registry page renders through Orchard Core's AdminList shape (list name LocalDncLists, row model LocalDncList, grid columns Name, Status and Actions). Customize rows with LocalDncList_SummaryAdmin placement for the List layout and SummaryAdminGrid placement for the Grid layout, or add columns with an IAdminListColumnsProvider for LocalDncLists. See orchardcore-admin-lists.
Configure CrestApps:DncRegistry:AzureBlobStorage under OrchardCore in the root appsettings.json (a tenant's own App_Data/Sites/{tenant}/appsettings.json starts at CrestApps):
{
"OrchardCore": {
"CrestApps": {
"DncRegistry": {
"AzureBlobStorage": {
"ConnectionString": "",
"ContainerName": "dnc-registry-{{ ShellSettings.Name }}",
"BasePath": "",
"CreateContainer": true,
"RemoveContainer": false,
"RemoveFilesFromBasePath": false
}
}
}
}
}
| Setting | Meaning |
|---|---|
ConnectionString | Required. Keep it in a secret source. |
ContainerName | Required. Liquid with ShellSettings; resolved lowercase and must be a valid container name (3 to 63 lowercase letters, digits, single hyphens). |
BasePath | Optional folder in the container; Liquid supported (for example {{ ShellSettings.Name }} in a shared container). |
CreateContainer | Create the container on tenant activation. |
RemoveContainer | Delete the container when the tenant is removed. Do not use on a shared container. |
RemoveFilesFromBasePath | Delete only BasePath content on tenant removal. Use with a shared container. |
The Azure module registers the store with the shared services.AddTenantFileStore<ILocalDncFileStore>("DncRegistry", "CrestApps:DncRegistry:AzureBlobStorage", ..., removeOnTenantRemoval: true) building block (CrestApps.OrchardCore.FileStorage.Core), which binds TenantStoreBlobStorageOptions<ILocalDncFileStore>, expands the Liquid in the container name and base path, and creates or removes the container with the tenant. The former DncRegistryBlobStorageOptions class and its tenant events are gone; the configuration keys are unchanged. When ConnectionString or ContainerName is missing, the local file store keeps serving files. Azure stores only uploaded source files; the entry indexes stay in the database.
Reference CrestApps.OrchardCore.DncRegistry.Abstractions and register the provider in its own feature that depends on CrestApps.OrchardCore.DncRegistry:
using CrestApps.OrchardCore.DncRegistry;
using CrestApps.OrchardCore.PhoneNumbers;
namespace MyCompany.OrchardCore.Compliance;
public sealed class MyRegistry : INationalDoNotCallRegistry
{
private readonly IHttpClientFactory _httpClientFactory;
public MyRegistry(IHttpClientFactory httpClientFactory)
{
_httpClientFactory = httpClientFactory;
}
public string Key => "my-registry";
public string DisplayName => "My Registry";
public string Description => "Checks numbers against My Registry.";
public Task<HashSet<PhoneNumber>> GetRegisteredNumbersAsync(
IEnumerable<PhoneNumber> phoneNumbers,
CancellationToken cancellationToken = default)
=> GetRegisteredNumbersAsync(phoneNumbers, null, cancellationToken);
public async Task<HashSet<PhoneNumber>> GetRegisteredNumbersAsync(
IEnumerable<PhoneNumber> phoneNumbers,
NumberSearchContext context,
CancellationToken cancellationToken = default)
{
try
{
var client = _httpClientFactory.CreateClient(nameof(MyRegistry));
// Submit the canonical numbers (filter by context?.CountryCode when set) and
// return only the inputs the registry reports as listed.
return [];
}
catch (HttpRequestException ex)
{
// Fail closed: an unreachable registry has not screened anything.
throw new DoNotCallScreeningException(Key, "My Registry could not be reached.", ex);
}
}
}
services.AddHttpClient(nameof(MyRegistry));
services.AddScoped<INationalDoNotCallRegistry, MyRegistry>();
DncRegistryTelemetry publishes the meter and activity source CrestApps.OrchardCore.DncRegistry (matched by CrestApps.OrchardCore.*, see orchardcore-opentelemetry):
| Instrument | Tags | Measures |
|---|---|---|
crestapps.dnc.screening.duration | registry (usa_ftc, canada_dncl, local), outcome (ok, error, skipped, cancelled, timeout), reason (not_configured, when skipped) | One screening of numbers against one registry |
crestapps.dnc.screening.size | registry | Numbers one screening asked about |
crestapps.dnc.screening.listed | registry | Screened numbers reported as listed |
crestapps.dnc.import.duration | outcome, reason | One local list import run |
crestapps.dnc.import.rows | result (imported, duplicate, invalid_number, blank, multiple_columns, header) | File rows, counted once their batch is saved |
Spans: crestapps.dnc.screening, crestapps.dnc.import.run, crestapps.deferred.dnc_local_import, crestapps.deferred.dnc_local_delete. A failed import retry counts on crestapps.retry.attempts (area = dnc), and LocalDncImportBackgroundTask on crestapps.background_task.*. Event id 16400 logs an import run ending, under a DncListId log scope. The Contact Center dial path adds crestapps.contactcenter.dialer.dnc.lookup.duration (result listed, clear, error).
DoNotCallScreeningException on lookup failure instead of returning an empty set.AdminList; overrides of the old list markup must move to LocalDncList_SummaryAdmin and SummaryAdminGrid placement.appsettings.json it belongs under OrchardCore (OrchardCore:CrestApps:DncRegistry:AzureBlobStorage), not at the root.| Symptom | Check |
|---|---|
| Local registry has no hits | The list reached Completed, and inputs normalize to the same E.164 value |
| Upload returns but no entries exist | The background import is pending, paused, or failed; check the list state and errors |
| Local numbers rejected | Choose the correct country at upload |
| Dialer keeps skipping a number with ComplianceScreeningUnavailable | A registry is throwing DoNotCallScreeningException; fix its credentials or connectivity |
| Azure storage ignored | Both ConnectionString and ContainerName are set under OrchardCore:CrestApps:DncRegistry:AzureBlobStorage |
| Invalid container name at tenant start | The tenant name breaks Azure naming rules; use a shared container with BasePath |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
137 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./crestapps-orchardcore:orchardcore-dnc-registryfrom crestapps-orchardcore
npx claudepluginhub crestapps/crestapps.agentskills --plugin crestapps-orchardcoreOther plugins' skills for the same job