Provides code-defined system agents for creating, editing, previewing, and exporting documents (presentations, Word, PDF, tabular data) within conversations. Covers registration, workspace management, SVG previews, PDF signing, and A2A/MCP exposure.
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.
Four code-defined system agents work on files for the primary model. Each is always available to orchestration, hidden from AI Profile and Chat Interaction agent pickers, published through an A2A host, and runs its own hidden tools. The primary model delegates every request that produces or changes that kind of file, and every follow-up ("make the title blue"), to the agent. Base document processing is in crestapps-core-document-processing.
| Agent | Name | Registered by | Package |
|---|---|---|---|
| Tabular Data Agent | tabular-data-agent | AddDocumentProcessing() | CrestApps.Core.AI.Documents |
| Presentation Agent | presentation-agent | AddOpenXml() | CrestApps.Core.AI.Documents.OpenXml (agent code in CrestApps.Core.AI.Documents) |
| Word Agent | word-agent | AddWord() | CrestApps.Core.AI.Documents.Word |
| PDF Agent | pdf-agent | AddPdf() on the document-processing builder | CrestApps.Core.AI.Documents.Pdf |
using CrestApps.Core.AI.Documents;
using CrestApps.Core.AI.Documents.Endpoints;
using CrestApps.Core.AI.Documents.OpenXml;
using CrestApps.Core.AI.Documents.Pdf;
using CrestApps.Core.AI.Documents.Word;
builder.Services.AddCrestAppsCore(crestApps => crestApps
.AddAISuite(ai => ai
.AddOpenAI()
.AddChatInteractions(chatInteractions => chatInteractions.AddYesSqlStores())
.AddDocumentProcessing(documentProcessing => documentProcessing
.AddYesSqlStores()
.AddOpenXml() // Office readers and writers, Presentation Agent
.AddWord() // Word Agent (uses the OpenXml .docx support)
.AddPdf() // PDF reader and writer, PDF Agent, PDF export of decks
.AddPdfSigning(options =>
{
options.CertificatePath = builder.Configuration["Pdf:CertificatePath"];
options.CertificatePassword = builder.Configuration["Pdf:CertificatePassword"];
options.TimestampAuthorityUrl = "https://timestamp.example.com";
})
.AddReferenceDownloads())));
var app = builder.Build();
app.AddDownloadAIDocumentEndpoint();
Previews are SVG pictures stored through IGeneratedDocumentService and served by ai/documents/{documentId}/download. Without AddDownloadAIDocumentEndpoint() (or without a writer for the preview format) a preview tool falls back to text, a Markdown table for tabular data, rather than emitting broken image markers.
IDocumentFileStore and removed when the conversation is deleted or its history is cleared..pptx and .docx files saved as a new version on every all-or-nothing tool call. PDF compositions are kept as a definition (page setup, theme, running heads, cover, table of contents, numbered blocks) and rendered on demand..potx and .dotx uploads act as templates. Presentation revisions (MaxRevisions) back undo_presentation_change and compare_presentations.preview_presentation, preview_word, preview_pdf and preview_tabular_data return one [fig:N] marker per picture plus a [doc:N] download of the file they show. The chat client turns markers into a stacked carousel. An export of the same version later in the turn returns the same [doc:N]. A preview written as text gives no download.
The .svg preview writer is registered with requestable: false, so hosts can write it while generate_file and export_tabular_data can never be asked for model-authored SVG served from your origin.
builder.Services.Configure<PresentationAgentOptions>(options => options.Enabled = true);
builder.Services.Configure<PresentationWorkspaceOptions>(options =>
{
options.MaxDecks = 10;
options.MaxRevisions = 5;
options.MaxSlides = 200;
options.MaxImageBytes = 15 * 1024 * 1024;
});
builder.Services.Configure<PresentationPreviewOptions>(options =>
{
options.MaxSlides = 8;
options.Width = 960;
});
builder.Services.Configure<WordAgentOptions>(options =>
{
options.MaxWorkingDocuments = 40;
options.MaxDocumentBytes = 50L * 1024 * 1024;
options.MaxUncompressedDocumentBytes = 256L * 1024 * 1024; // zip-bomb guard for uploads
options.Author = "AI Assistant"; // signs comments and tracked changes
});
builder.Services.Configure<WordPreviewOptions>(options =>
{
options.MaxPages = 4;
options.MaxRenderPages = 12;
options.MaxLayoutPages = 500;
});
builder.Services.Configure<PdfAgentOptions>(options =>
{
options.MaxDocumentBytes = 50L * 1024 * 1024;
options.MaxWorkingDocuments = 40;
options.MaxVisionPagesPerCall = 8;
});
builder.Services.Configure<PdfCompositionOptions>(options =>
{
options.DefaultPageSize = "A4"; // default
options.DefaultMarginMm = 20;
options.DefaultFontFamily = "Arial";
});
builder.Services.Configure<PdfPreviewOptions>(options => options.MaxPages = 4);
builder.Services.Configure<TabularPreviewOptions>(options =>
{
options.MaxRows = 50;
options.MaxColumns = 15;
});
Set PresentationAgentOptions.Enabled, WordAgentOptions.Enabled or PdfAgentOptions.Enabled to false to keep reading and writing the format (and generate_file) without the agent. While the Presentation Agent is enabled, generate_file hands .pptx requests to it.
The understanding tools of the PDF Agent (summarize_pdf, ask_pdf, ocr_pdf and others) use the utility deployment slot for text and the vision slot for scanned pages and pictures, and say so when none is configured. generate_slide_image uses the image slot.
sign_pdf signs only with an identity the host configures, never one supplied in the conversation. AddPdfSigning() loads a PKCS#12 file through FilePdfSigningCertificateProvider. To use a certificate store or key vault, register your own provider before AddPdfSigning() (its registration is a TryAdd).
using System.Security.Cryptography.X509Certificates;
using CrestApps.Core.AI.Documents.Pdf;
public sealed class StorePdfSigningCertificateProvider : IPdfSigningCertificateProvider
{
private readonly string _thumbprint;
public StorePdfSigningCertificateProvider(IConfiguration configuration)
{
_thumbprint = configuration["Pdf:SigningCertificateThumbprint"];
}
public Task<X509Certificate2> GetCertificateAsync(CancellationToken cancellationToken = default)
{
if (string.IsNullOrWhiteSpace(_thumbprint))
{
return Task.FromResult<X509Certificate2>(null); // sign_pdf reports that signing is not configured
}
using var store = new X509Store(StoreName.My, StoreLocation.LocalMachine);
store.Open(OpenFlags.ReadOnly);
var matches = store.Certificates.Find(X509FindType.FindByThumbprint, _thumbprint, validOnly: false);
return Task.FromResult(matches.Count > 0 ? matches[0] : null);
}
}
builder.Services.AddSingleton<IPdfSigningCertificateProvider, StorePdfSigningCertificateProvider>();
PdfSigningOptions also has DigestAlgorithm (SHA256), DefaultReason, DefaultLocation and ContactInfo. verify_pdf_signature works without any signing setup.
A feature that keeps working state per conversation implements IConversationWorkspaceCleanupHandler. DefaultConversationDocumentCleanupService calls every handler after the conversation's documents and tabular data are removed, and a failing handler is logged without stopping the others.
using CrestApps.Core.AI.Documents;
using Microsoft.Extensions.DependencyInjection.Extensions;
// IDiagramWorkspaceStore is the host's own store.
public sealed class DiagramWorkspaceCleanupHandler : IConversationWorkspaceCleanupHandler
{
private readonly IDiagramWorkspaceStore _store;
public DiagramWorkspaceCleanupHandler(IDiagramWorkspaceStore store)
{
_store = store;
}
public Task CleanupAsync(string referenceId, string referenceType, CancellationToken cancellationToken = default)
=> _store.DeleteForConversationAsync(referenceId, referenceType, cancellationToken);
}
builder.Services.TryAddEnumerable(
ServiceDescriptor.Scoped<IConversationWorkspaceCleanupHandler, DiagramWorkspaceCleanupHandler>());
generate_file, exports and agent downloads write through keyed IGeneratedFileWriter implementations.
using CrestApps.Core.AI.Documents.Generation;
builder.Services.AddGeneratedFileWriter<RtfGeneratedFileWriter>(".rtf"); // requestable
builder.Services.AddGeneratedFileWriter<SnapshotGeneratedFileWriter>(requestable: false, ".snap"); // host-only
IGeneratedFileWriter.WriteAsync(GeneratedFileContent content, Stream destination, CancellationToken).GeneratedFileContent carries Title, Text, Header, Rows, Sheets (multi-sheet workbooks), SpreadsheetFormatting and EncodedContent. Bytes in EncodedContent are stored as given without a writer.GeneratedDocumentRequest.ContentType overrides the media type a stored file is served with.IGeneratedFileWriterResolver.SupportedExtensions, which generate_file and export_tabular_data gate on.IAIProfileManager.GetAsync(AIProfileType.Agent) publishes these agents too (see crestapps-core-a2a). Filter them out if remote clients should not reach them.McpServerOptions.Agents or when ExposeAllAgents is true (see crestapps-core-mcp).CrestApps.Core.AI.Documents.Pdf now writes and edits PDFs with its own reader and writer built on PdfPig (Apache-2.0), so the package depends only on MIT, Apache-2.0 or BSD libraries. Nothing changes unless your own code used PDFsharp or MigraDoc types that came in through this package; reference the library yourself in that case and check its license (6.5.0 and later are AGPL-3.0).protect_pdf writes AES-256, AES-128 or RC4-128 itself, and changing a protected file still needs its owner password.ask_pdf, summarize_pdf, classify_pdf, extract_pdf_entities, extract_pdf_data, cross_reference_pdfs, ocr_pdf, analyze_pdf_images) no longer send a temperature of 0.2, so reasoning models that accept only their default work.0.25) are read as fractions of the width.AddOpenXml() or AddPdf() gain the Presentation or PDF Agent automatically; set the matching Enabled = false to keep 1.x behavior.AddWord() is a new opt-in package..docx files and tabular exports now render Markdown and HTML structure, number formats, totals and charts instead of literal text.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
document-agents, presentation-agent, word-agent, pdf-agent, tabular-data-agent, a2a, mcp
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-document-agentsfrom crestapps-core
npx claudepluginhub crestapps/crestapps.agentskills --plugin crestapps-coreOther plugins' skills for the same job