Configures CrestApps AI Web Crawlers for Orchard Core 4.0, covering sitemap-based crawling, robots.txt discovery, URL patterns, concurrency, timeouts, incremental re-crawls, and the hourly re-index task.
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 and code for CrestApps web crawlers: a Web AI data source is a knowledge base target, and one or more web crawlers point at it. Each crawler scrapes one site with a crawl strategy, cleans each page to text, and indexes it with its URL kept for citations.
CrestApps.OrchardCore.AI.WebCrawlers; it depends on CrestApps.OrchardCore.AI.DataSources, which comes along.textEmbedding (see orchardcore-ai-data-sources). It has no connection settings and no field mapping: each page is one document keyed by its URL.A recipe can create the Web data source ("Source": "Web" in the AIDataSource step, see orchardcore-ai-data-sources), then its crawlers with the WebCrawlers step. A crawler is matched by ItemId, then by DisplayText within the same strategy, so running the recipe twice adds nothing. Source must be a registered strategy and AIDataSourceId must name a Web data source, so import data sources first.
{
"steps": [
{
"name": "WebCrawlers",
"Crawlers": [
{
"ItemId": "4wc00000000000000000000001",
"Source": "Sitemap",
"DisplayText": "Help center",
"AIDataSourceId": "4ds00000000000000000000002",
"Enabled": true,
"ReindexIntervalMinutes": 1440,
"Properties": { }
}
]
}
]
}
The Web crawlers deployment step (Artificial Intelligence category) exports every crawler with its strategy settings in Properties. Secrets are never exported, and a recipe that leaves one out keeps the stored one. With AI Chat WebAPI, crawlers are also managed through /api/ai/v1/web-crawlers (see orchardcore-ai-conversations).
| Field | Stored as | Notes |
|---|---|---|
| Name | WebCrawler.DisplayText | Required |
| Target web data source | WebCrawler.AIDataSourceId | Required; several crawlers may target one data source |
| Enabled | WebCrawler.Enabled | Disabled crawlers are skipped by the hourly task and by a full data source sync |
| Re-index interval (minutes) | WebCrawler.ReindexIntervalMinutes | Empty uses the default (24 hours); honored to the nearest hour |
Stored in SitemapWebCrawlerMetadata on the crawler (WebCrawler.Source is Sitemap):
| Field | Property | Default |
|---|---|---|
| Base URL | BaseUrl | Discovers the sitemap from robots.txt and conventional locations such as /sitemap.xml |
| Sitemap URL | SitemapUrl | Starts discovery here; supports nested sitemap indexes, gzip, plain text, and RSS or Atom feeds |
| Max pages | MaxPages | 500 |
| Max concurrent requests | MaxConcurrentRequests | 4 |
| Request timeout (seconds) | RequestTimeoutSeconds | 30 |
| Include URL patterns | IncludeUrlPatterns | Empty allows every page; otherwise a URL must match at least one |
| Exclude URL patterns | ExcludeUrlPatterns | A URL matching any pattern is skipped; applied after include |
| User-Agent | UserAgent | CrestApps-WebCrawler/1.0 (+https://crestapps.com) |
Patterns are .NET regular expressions, one per line, matched against the full URL. Examples: ^https://example\.com/docs/ keeps only /docs/; /tag/|/author/ drops taxonomy and author pages; \.pdf$ drops PDF links. Invalid expressions and non-absolute URLs are rejected in the editor.
WebCrawlerReindexBackgroundTask, 0 * * * *) evaluates enabled crawlers hourly and re-indexes the ones that are due.Crawlers and crawl state live in the AI YesSql collection through IWebCrawlerStore and IWebCrawlStateStore; migrations create WebCrawlerIndex and WebCrawlStateIndex.
Pages are indexed with the URL as the reference id, and WebCrawlerReferenceLinkResolver is registered for the Web reference type, so [doc:N] citations link back to the original page.
WebCrawlerOptions holds the fallbacks used when a crawler leaves a field empty: DefaultMaxPages (500), DefaultMaxConcurrentRequests (4), DefaultRequestTimeoutSeconds (30), DefaultUserAgent, and DefaultReindexIntervalMinutes (1440). The Orchard module binds no configuration section to it; change it in code:
public sealed class Startup : StartupBase
{
public override void ConfigureServices(IServiceCollection services)
{
services.Configure<WebCrawlerOptions>(options =>
{
options.DefaultMaxConcurrentRequests = 2;
options.DefaultUserAgent = "ContosoBot/1.0 (+https://contoso.com/bot)";
});
}
}
Artificial Intelligence > Web Crawlers is an AdminList named AIWebCrawlers with the grid columns Name, Strategy, Modified, and Actions; rows are the WebCrawler shape in SummaryAdmin and SummaryAdminGrid (see orchardcore-admin-lists). The whole area, including Synchronize now, requires ManageWebCrawlers (Manage web crawlers, Administrator by default).
A strategy is a keyed IWebCrawlerStrategy plus an entry in WebCrawlerStrategyOptions and a display driver for its settings:
public sealed class Startup : StartupBase
{
internal readonly IStringLocalizer S;
public Startup(IStringLocalizer<Startup> stringLocalizer)
{
S = stringLocalizer;
}
public override void ConfigureServices(IServiceCollection services)
{
services.AddKeyedSingleton<IWebCrawlerStrategy, LinkFollowingWebCrawlerStrategy>("LinkFollowing");
services.Configure<WebCrawlerStrategyOptions>(options => options.AddOrUpdate(
"LinkFollowing",
S["Link following"],
S["Discover pages by following links from a start page to a fixed depth."]));
services.AddDisplayDriver<WebCrawler, LinkFollowingWebCrawlerDisplayDriver>();
}
}
IWebCrawlerStrategy member | Contract |
|---|---|
Name | The strategy key, stored as WebCrawler.Source |
ValidateAsync(crawler, result, cancellationToken) | Validate the strategy settings |
DiscoverAsync(crawler, cancellationToken) | Return the CrawledPageRef list of pages to consider |
DiscoverDetailedAsync(crawler, cancellationToken) | Optional; report whether discovery was complete (the default treats an empty list as incomplete) |
FetchAsync(crawler, url, cancellationToken) | Fetch and clean one page, or return null |
The display driver returns null unless crawler.Source is the strategy key and stores its settings with crawler.Put(...). The built-in sitemap strategy is also exposed as an ingestion connector, the same contract file sources use (see orchardcore-ai-file-sources).
| Symptom | Check |
|---|---|
| No Web source type in Add Data Source | Enable CrestApps.OrchardCore.AI.WebCrawlers. |
| Provide a base URL or an explicit sitemap URL | Set one of them, as an absolute URL. |
| Few or no pages | The sitemap is not discoverable, include patterns are too narrow, or Max pages is low. |
| Site blocks the crawler | Lower concurrency, set a recognizable User-Agent, and confirm crawling is allowed. |
| Pages never refresh | The crawler is disabled, or its interval has not elapsed; use Synchronize now. |
| Citations have no links | The data source is not of type Web, or the page URL is not the reference id. |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
orchard-core, web-crawler, ai-data-source, sitemap, knowledge-base
/crestapps-orchardcore:orchardcore-ai-web-crawlersfrom 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