Configures CrestApps.Core web crawlers that scrape public websites into AI data sources. Covers sitemap, feed, and robots.txt crawling with re-index planning and incremental updates.
Ships in crestapps-core. 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.
A Web AI data source (AIDataSourceSourceTypes.Web) is a target bucket with no site configuration and no field mapping. A web crawler (WebCrawler record) chooses a strategy (its Source, for example Sitemap), stores that strategy's settings, and points at the data source. Many crawlers can fill one knowledge base, each re-crawled on its own interval. Folders and file servers use file sources instead (crestapps-core-file-sources); the data source model is in crestapps-core-data-sources.
using CrestApps.Core.AI.WebCrawlers;
using CrestApps.Core.Data.YesSql;
builder.Services.AddCrestAppsCore(crestApps => crestApps
.AddAISuite(ai => ai.AddOpenAI())
.AddIndexingServices(indexing => indexing
.AddYesSqlStores()
.AddElasticsearch(
builder.Configuration.GetSection("CrestApps:Elasticsearch"),
elasticsearch => elasticsearch.AddAIDataSources())));
builder.Services.AddCoreWebCrawlers();
builder.Services.AddCoreWebCrawlerStoresYesSql(); // or AddCoreWebCrawlerStoresEntityCore()
builder.Services.Configure<WebCrawlerOptions>(options =>
{
options.DefaultMaxPages = 500;
options.MaxResponseBytes = 10 * 1024 * 1024; // page bodies; also feeds the sitemap request
options.DefaultMaxConcurrentRequests = 4;
options.DefaultRequestTimeoutSeconds = 30;
options.DefaultReindexIntervalMinutes = 1440;
options.ReindexCheckIntervalMinutes = 15;
});
AddCoreWebCrawlers() registers the named HttpClient (WebCrawlerConstants.HttpClientName, gzip, deflate and brotli, redirects followed), ISitemapCrawler, the keyed Sitemap strategy and its descriptor in WebCrawlerStrategyOptions, IWebCrawlerReindexPlanner, IWebCrawlerReindexService, the Web source handler and keyed IAIReferenceLinkResolver, the crawler catalog handlers, WebCrawlerReindexBackgroundService, the shared ingestion runtime, and the Web entry in AIDataSourceSourceOptions.
AddCoreWebCrawlerStoresYesSql() registers IWebCrawlerStore, IWebCrawlStateStore, IIngestionItemStateStore and the knowledge object store. YesSql hosts create CreateWebCrawlerIndexSchemaAsync, CreateWebCrawlStateIndexSchemaAsync and CreateIngestionItemStateIndexSchemaAsync tables (the last one is required even without file sources).
using CrestApps.Core;
using CrestApps.Core.AI.Models;
using CrestApps.Core.AI.WebCrawlers;
using CrestApps.Core.AI.WebCrawlers.Strategies.Sitemap;
var crawler = new WebCrawler
{
DisplayText = "Product docs",
Source = WebCrawlerConstants.Strategies.Sitemap,
AIDataSourceId = webDataSource.ItemId, // an AIDataSource with Source = AIDataSourceSourceTypes.Web
ReindexIntervalMinutes = 720,
};
crawler.Put(new SitemapWebCrawlerMetadata
{
BaseUrl = "https://docs.example.com",
SitemapUrl = null, // optional; resolved from robots.txt and conventional paths
MaxPages = 2000,
MaxConcurrentRequests = 4,
RequestTimeoutSeconds = 30,
IncludeUrlPatterns = ["^https://docs\\.example\\.com/guides/"],
ExcludeUrlPatterns = ["/changelog/"],
UserAgent = "MyCompany-Crawler/1.0",
});
await webCrawlerStore.CreateAsync(crawler, cancellationToken);
Creating or updating a crawler from JSON (recipes, deployment imports, NewAsync/UpdateAsync with a JsonNode) merges the incoming Properties over the stored ones: omitted entries and fields keep their stored values, keys match without regard to case, and an entry sent as null is removed.
Reads are bounded through BoundedHttpContent: page bodies stop at WebCrawlerOptions.MaxResponseBytes (10 MB), a sitemap or robots.txt at SitemapCrawlRequest.MaxResponseBytes (10 MB) and a gzip sitemap at SitemapCrawlRequest.MaxDecompressedBytes (50 MB). An oversized page is skipped; an oversized sitemap makes discovery incomplete, so nothing is deleted. A leading byte order mark is dropped and picks the encoding when the response has no charset.
A base URL or a sitemap URL is required. The Sitemap strategy follows flat urlset, nested sitemapindex, gzip and plain-text sitemaps, RSS and Atom feeds and robots.txt advertisements, and skips non-HTML responses. Pages are cleaned with HtmlIngestionDocumentReader (AngleSharp HTML5 parsing that removes script, style and other non-content nodes), then normalized, chunked and embedded by the data source pipeline. The page URL is each chunk's reference id and the citation link.
WebCrawlerReindexBackgroundService checks every ReindexCheckIntervalMinutes and calls IWebCrawlerReindexService.ReindexDueAsync(). For each due crawler, IWebCrawlerReindexPlanner.PlanAndEnqueueAsync(crawler) compares discovery with the stored WebCrawlState:
<lastmod> is newer are re-fetched and re-embedded,<lastmod> are refreshed by the nightly data source alignment.The WebCrawlerReindexResult carries NewCount, ChangedCount, RemovedCount, UnchangedCount, DiscoveredCount, Message and a Status of Completed, Skipped, NoPagesDiscovered, DiscoveryFailed or PartiallyDiscovered. A walk that hit its page limit, failed to download a child sitemap, or nested too deep is PartiallyDiscovered and removes nothing.
Drive re-indexing from your own scheduler with IWebCrawlerReindexService.ReindexDueAsync() or ReindexAllAsync() inside a scope.
A crawl strategy is also an IIngestionConnector (through WebIngestionConnector). A crawler whose data source is File runs through the ingestion run service and IFileSourceScheduler (when file sources are registered) and is stored as typed knowledge objects; a crawler feeding a Web data source is driven only by the re-index service. Each record runs on exactly one path.
using System.ComponentModel.DataAnnotations;
using CrestApps.Core;
using CrestApps.Core.AI.Models;
using CrestApps.Core.AI.WebCrawlers;
using CrestApps.Core.AI.WebCrawlers.Strategies;
using CrestApps.Core.DataIngestion;
using CrestApps.Core.Models;
public sealed class UrlListWebCrawlerMetadata
{
public List<string> Urls { get; set; } = [];
}
public sealed class UrlListWebCrawlerStrategy : IWebCrawlerStrategy
{
public const string StrategyName = "UrlList";
private readonly IHttpClientFactory _httpClientFactory;
public UrlListWebCrawlerStrategy(IHttpClientFactory httpClientFactory)
{
_httpClientFactory = httpClientFactory;
}
public string Name => StrategyName;
public ValueTask ValidateAsync(WebCrawler crawler, ValidationResultDetails result, CancellationToken cancellationToken = default)
{
var metadata = crawler.GetOrCreate<UrlListWebCrawlerMetadata>();
if (metadata.Urls.Count == 0 || metadata.Urls.Any(url => !Uri.TryCreate(url, UriKind.Absolute, out _)))
{
result.Fail(new ValidationResult("Enter one or more absolute URLs.", [nameof(UrlListWebCrawlerMetadata.Urls)]));
}
return ValueTask.CompletedTask;
}
public Task<IReadOnlyList<CrawledPageRef>> DiscoverAsync(WebCrawler crawler, CancellationToken cancellationToken = default)
{
var metadata = crawler.GetOrCreate<UrlListWebCrawlerMetadata>();
IReadOnlyList<CrawledPageRef> pages = metadata.Urls.Select(url => new CrawledPageRef(url)).ToList();
return Task.FromResult(pages);
}
// The configured list is the whole site, so discovery is complete. Return IsComplete = false
// whenever discovery may have missed pages, or the planner would delete them.
public async Task<WebCrawlDiscovery> DiscoverDetailedAsync(WebCrawler crawler, CancellationToken cancellationToken = default)
=> new(await DiscoverAsync(crawler, cancellationToken), IsComplete: true);
public async Task<CrawledPage> FetchAsync(WebCrawler crawler, string url, CancellationToken cancellationToken = default)
{
var client = _httpClientFactory.CreateClient(WebCrawlerConstants.HttpClientName);
using var response = await client.GetAsync(url, cancellationToken);
if (!response.IsSuccessStatusCode || response.Content.Headers.ContentType?.MediaType != "text/html")
{
return null;
}
var html = await response.Content.ReadAsStringAsync(cancellationToken);
var text = HtmlIngestionDocumentReader.ExtractText(html);
return string.IsNullOrWhiteSpace(text)
? null
: new CrawledPage(HtmlIngestionDocumentReader.ExtractTitle(html), text);
}
}
using CrestApps.Core.AI.Indexing;
using CrestApps.Core.AI.WebCrawlers.Connectors;
using Microsoft.Extensions.Localization;
builder.Services.AddKeyedSingleton<IWebCrawlerStrategy, UrlListWebCrawlerStrategy>(UrlListWebCrawlerStrategy.StrategyName);
builder.Services.Configure<WebCrawlerStrategyOptions>(options => options.AddOrUpdate(
UrlListWebCrawlerStrategy.StrategyName,
new LocalizedString("UrlList", "URL list"),
new LocalizedString("UrlList Description", "Scrapes a fixed list of page URLs.")));
// Optional: let the strategy feed File data sources too.
builder.Services.AddKeyedScoped<IIngestionConnector>(
UrlListWebCrawlerStrategy.StrategyName,
(sp, key) => new WebIngestionConnector(sp.GetRequiredKeyedService<IWebCrawlerStrategy>(key)));
Strategies are keyed singletons, so inject only singleton-safe services (IHttpClientFactory, options, loggers). The descriptor makes the strategy appear in crawler editors.
IWebCrawlerStrategy.DiscoverDetailedAsync and ISitemapCrawler.DiscoverDetailedAsync are default-implemented, so older strategies still compile. Override them to report incomplete discovery, or a strategy whose DiscoverAsync returns any pages is treated as complete.FileSource records now; a crawler record is never also run as a file source.IngestionItemStateIndex table.Properties now apply them (strategy settings such as SitemapWebCrawlerMetadata); before, only top-level fields were copied.WebCrawlerOptions.MaxResponseBytes for sites with very large pages.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
51 skills in this plugin
/crestapps-core-a2aSkill for Agent-to-Agent (A2A) protocol support in CrestApps.Core on the A2A 1.0 SDK. Covers AddA2AClient and AddCoreAIA2AClient with Entity Framework Core or YesSql connection stores, A2AConnection and A2AConnectionMetadata authentication, AIProfileA2AMetadata, the agent card cache and A2AToolRegistryProvider, the listAvailableAgents, findAgentForTask and findToolsForTask tools, building an A2A host with IAgentHandler, A2AServer, ITaskStore and MapA2A, A2A 1.0 agent cards with supportedInterfaces published at /.well-known/agent-card.json, A2AHostOptions authentication and ExposeAgentsAsSkill, system agents exposed through the host, and upgrading from the 0.3 SDK./crestapps-core-ag-uiSkill for running the CrestApps.Core 2.0 AI chat as an AG-UI agent. Covers the CrestApps.Core.AI.AGUI package (AGUIRunEventWriter, AGUIRunRequest, AGUIJson), AIChatHubCore.RunAgent over SignalR and MapAGUIChat with Server-Sent Events, the RunAgentInput members and streamed events, tool approvals with RequireApproval or an approval tool kind, ApprovalRequiredAIFunction, interrupts and resume, approvals inside agents, page context with crestAppsAGUI.registerContextProvider, shared state with registerStateProvider and update_shared_state, frontend tools, stored tool calls (ChatTurnToolActivity), runs that continue on the next page, AGUIChatOptions.DisconnectedRunTimeout, the protocol and sendPageContext chat options, and the AICompletionContextKeys and ChatResponseHandlerContext members. Use it when showing tool calls in the chat, asking a person before a tool runs, sharing page state with the agent, connecting CopilotKit or another AG-UI client, or troubleshooting approvals and continued runs./crestapps-core-ai-agentsSkill for AI agents in CrestApps.Core 2.0, specialized AIProfile records of type Agent that the primary model invokes as tools. Covers creating agent profiles with AgentMetadata availability (OnDemand or AlwaysAvailable), linking them with AgentInvocationMetadata, how AgentProxyTool runs an agent with tools disabled or through the orchestrator when AllowToolInvocation is set, the AgentInvocationDepth recursion guard, never offering an agent to itself (RunningAgentName), tools of an agent that require an approval and pause the agent, deployment inheritance and the chat slot, code-defined and system agents through IAIProfileProvider including the Tabular Data, PDF, Presentation and Word agents, chat-specific agents that read AIInvocationScope, exposing agents to MCP clients with McpServerOptions Agents and ExposeAllAgents, and SubAgent usage labels. Use it when delegating work to sub-agents, adding a framework-managed agent, publishing an agent over MCP, or troubleshooting an agent the model does not call./crestapps-core-ai-markdownSkill for Markdig-backed Markdown normalization in CrestApps.Core 2.0 AI document, data source and RAG flows. Covers the CrestApps.Core.AI.Markdown package, AddMarkdown on the AI suite builder and AddCoreAIMarkdown on IServiceCollection, MarkdownAITextNormalizer replacing the default IAITextNormalizer, RagTextNormalizer content, chunk and title normalization with HTML stripping and Microsoft.Extensions.DataIngestion.Markdig parsing, the gpt-4o tokenizer chunker with 500 tokens per chunk and 50 tokens of overlap, the plain-text fallback for unsupported inline types, where the normalizer is used (data source indexing, preemptive retrieval, reference titles), and pairing it with document processing. Use it when indexing Markdown-heavy content for retrieval, replacing the text normalizer, or troubleshooting chunk sizes and leftover markup in retrieved text./crestapps-core-ai-memorySkill for AI memory in CrestApps.Core. Covers AddAIMemory, AddCoreAIMemory and AddCoreAIMemoryIndexing, Entity Framework Core and YesSql memory stores, the AIMemory index profile on the Elasticsearch, Azure AI Search and PostgreSQL backends, AIMemoryOptions, the store fallback when no index is usable, background memory indexing, the three kinds of memory (session memory with AIConversationMemory summaries and search_conversation, past conversations with search_past_conversations and list_recent_conversations, durable user memory) switched by MemoryMetadata and ChatInteractionMemoryOptions, preemptive memory retrieval and RunsWhenPreemptiveRagIsDisabled, owner-only chat sessions, the user memory tools, IAIMemorySafetyService validation, and custom IMemoryVectorSearchService implementations./crestapps-core-ai-model-capabilitiesSkill for metadata-driven deployment capabilities in CrestApps.Core 2.0. Covers trained model features such as textGeneration, toolCalling, streaming, reasoning, realtime, textEmbedding, speechToText and textToSpeech, model parameters such as reasoningEffort, declaring them with AIDeploymentMetadata or the Features and Parameters configuration shorthand for Azure App Service settings, registering custom features, parameters and slots with AddAIDeploymentFeature, AddAIDeploymentParameter, AddAIDeploymentSlot and AIDeploymentCapabilityOptions, IAIDeploymentCapabilityService, deployment slots and their resolution chain, AIDeploymentParametersMetadata chat and utility values, IAIDeploymentParameterBinder, UseModelParameters, capability enforcement, the ChatApi Responses routing for reasoning with tools, capability-aware chat UIs, and migrating from AIDeploymentPurpose. Use it when declaring what a model supports, adding a new knob, or fixing stripped tools, missing pickers, or reasoning-effort errors./crestapps-core:crestapps-core-web-crawlersfrom crestapps-core
npx claudepluginhub crestapps/crestapps.agentskills --plugin crestapps-coreOther plugins' skills for the same job