Configures Markdig-backed Markdown normalization for CrestApps.Core 2.0 AI document and RAG flows. Covers registration, gpt-4o chunking (500 tokens, 50 overlap), and troubleshooting markup in retrieved text.
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.
CrestApps.Core.AI.Markdown makes text normalization Markdown-aware. It is opt-in: AddCoreAIServices() registers only the plain DefaultAITextNormalizer, and the core AI package does not depend on Markdig.
CrestApps.Core.AI.Markdown package and call AddMarkdown() on CrestAppsAISuiteBuilder, or AddCoreAIMarkdown() on IServiceCollection (namespace CrestApps.Core.AI.Markdown).MarkdownAITextNormalizer as the singleton IAITextNormalizer. The base registration uses TryAddSingleton and this one uses AddSingleton, so the Markdown normalizer wins whichever is called first.RagTextNormalizer: HTML is stripped, the text is parsed through Microsoft.Extensions.DataIngestion.Markdig, and plain text is extracted before whitespace is normalized.AddMarkdown() does not register document stores, readers or upload endpoints. Add document processing or ingestion separately (crestapps-core-document-processing).using CrestApps.Core.AI.Documents;
using CrestApps.Core.AI.Documents.OpenXml;
using CrestApps.Core.AI.Documents.Pdf;
using CrestApps.Core.AI.Markdown;
using CrestApps.Core.Data.EntityCore;
builder.Services.AddCrestAppsCore(crestApps => crestApps
.AddAISuite(ai => ai
.AddMarkdown()
.AddDocumentProcessing(documentProcessing => documentProcessing
.AddEntityCoreStores()
.AddOpenXml()
.AddPdf())));
Direct registration:
builder.Services.AddCoreAIMarkdown();
IAITextNormalizer has three members, all implemented by MarkdownAITextNormalizer:
| Member | Behavior |
|---|---|
NormalizeContentAsync(text) | Strips HTML (line breaks and block closes become newlines, entities are decoded, pilcrows removed), parses Markdown, joins the extracted text, collapses horizontal spaces and repeated blank lines |
NormalizeAndChunkAsync(text) | Strips HTML, parses Markdown, then chunks with DocumentTokenChunker using TiktokenTokenizer.CreateForModel("gpt-4o"), MaxTokensPerChunk = 500, OverlapTokens = 50 |
NormalizeTitle(title) | Strips HTML and collapses all whitespace to single spaces |
When Markdig reports an unsupported inline type, the normalizer falls back to plain-text normalization and character-based chunking (about 4,000 characters per chunk with 200 characters of overlap) instead of failing the ingestion.
The registered IAITextNormalizer is resolved by data source indexing (DefaultAIDataSourceIndexingService), data source retrieval and reference titles (DataSourceRetrieval), and preemptive retrieval (DataSourcePreemptiveRagHandler). Registering Markdown therefore changes both how content is chunked when indexed and how retrieved text and titles look when they reach the model.
Implement IAITextNormalizer (namespace CrestApps.Core.AI.Services) to change chunking, and reuse RagTextNormalizer for the parts you keep:
using CrestApps.Core.AI.Services;
namespace MyApp.Ingestion;
public sealed class HeadingAwareTextNormalizer : IAITextNormalizer
{
public Task<string> NormalizeContentAsync(string text, CancellationToken cancellationToken = default)
=> RagTextNormalizer.NormalizeContentAsync(text, cancellationToken);
public async Task<List<string>> NormalizeAndChunkAsync(string text, CancellationToken cancellationToken = default)
{
var chunks = await RagTextNormalizer.NormalizeAndChunkAsync(text, cancellationToken);
return chunks
.Where(chunk => chunk.Length >= 40)
.ToList();
}
public string NormalizeTitle(string title)
=> RagTextNormalizer.NormalizeTitle(title);
}
builder.Services.AddSingleton<IAITextNormalizer, HeadingAwareTextNormalizer>();
RagTextNormalizer ships in the Markdown package, so a custom normalizer that reuses it still needs the package reference. Register the custom normalizer after AddMarkdown() so it is the last registration.
**, # or HTML tags: Markdown normalization is not registered; add AddMarkdown().What SKILL.md sets; muted values are Claude Code's defaults
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:crestapps-core-ai-markdownfrom crestapps-core
npx claudepluginhub crestapps/crestapps.agentskills --plugin crestapps-coreOther plugins' skills for the same job