Configures scheduled file ingestion into Orchard Core AI data sources from local folders, FTP, FTPS, and SFTP connectors. Covers file source setup, background tasks, and custom ingestion connectors.
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 file sources: a file source reads a folder on a schedule and ingests every file into a File AI data source, storing each file's text, figures, charts, and tables as separately retrievable knowledge. AI profiles attached to that data source answer from the folder and can cite the figure they used.
orchardcore-ai-documents).CrestApps.OrchardCore.AI.FileSources depends on CrestApps.OrchardCore.AI.DataSources and CrestApps.OrchardCore.AI.Documents, and ships the local file-system connector.orchardcore-ai-mcp-resources).orchardcore-ai-data-sources).App_Data/Sites/{TenantName}/file-sources folder. That root is computed from the tenant identity and cannot be widened by configuration or by a request.imageInput fills the vision slot, or is named on the source.| Feature | Feature ID | Depends on |
|---|---|---|
| AI File Sources | CrestApps.OrchardCore.AI.FileSources | CrestApps.OrchardCore.AI.DataSources, CrestApps.OrchardCore.AI.Documents |
| AI File Sources - FTP | CrestApps.OrchardCore.AI.FileSources.Ftp | AI File Sources |
| AI File Sources - SFTP | CrestApps.OrchardCore.AI.FileSources.Sftp | AI File Sources |
{
"steps": [
{
"name": "Feature",
"enable": [
"OrchardCore.Elasticsearch",
"CrestApps.OrchardCore.AI.DataSources.Elasticsearch",
"CrestApps.OrchardCore.AI.FileSources",
"CrestApps.OrchardCore.AI.FileSources.Sftp"
],
"disable": []
}
]
}
Add CrestApps.OrchardCore.AI.Documents.Pdf and CrestApps.OrchardCore.AI.Documents.OpenXml when the folder holds PDF or Office files (see orchardcore-ai-documents-extractors).
| Field | Stored as | Notes |
|---|---|---|
| Name | FileSource.DisplayText | Required |
| Target file data source | FileSource.AIDataSourceId | Required |
| Enabled | FileSource.Enabled | Disabled sources are skipped by the schedule |
| Re-read interval (minutes) | FileSource.ReindexIntervalMinutes | Empty uses DefaultRunIntervalMinutes |
| Figures | FileSourceMetadata.FigureMode | Auto (default), All, or Off |
| Figures described per document | FileSourceMetadata.MaxFigureDescriptionsPerDocument | Default 25 |
| Vision deployment | FileSourceMetadata.VisionDeploymentName | Empty uses the site's vision slot |
| Utility deployment | FileSourceMetadata.UtilityDeploymentName | Empty uses the site's utility slot |
| Items per run | FileSourceMetadata.MaxItemsPerRun | Empty uses the host default |
| Language | FileSourceMetadata.Language | BCP-47 tag of the corpus, when uniform |
With figures Off nothing is described; with no vision deployment a figure is stored with its caption but never described.
| Connector | FileSource.Source | Settings |
|---|---|---|
| File system | FileSystem | FileSystemFileSourceMetadata: Folder (RootPath, relative to the tenant's file-sources folder, empty is the folder itself), Include sub-folders (Recursive, default on), Files per listing (MaxItems) |
| FTP / FTPS | Ftp | RemoteFileSourceMetadata (RootPath default /, Recursive, MaxItems) plus FtpConnectionMetadata: host, port (21 when empty), username, password, encryption mode, data connection type, accept any certificate, connect and read timeouts in milliseconds, retry count |
| SFTP | Sftp | RemoteFileSourceMetadata plus SftpConnectionMetadata: host, port, username, password or private key with optional passphrase, optional proxy, connection timeout, keep-alive interval |
The local folder is resolved on canonical paths and each segment is checked for links, so .. or a symbolic link that leaves the tenant folder is rejected (That folder is outside the folder this tenant may read.). The editor creates the tenant folder on demand. Remote connectors are not confined to a folder, because the credentials already scope them.
Leaving a password, private key, or passphrase blank on save keeps the stored value; type a new one to replace it.
FileSourceRunBackgroundTask, 0 * * * *) runs per tenant every hour and runs the enabled sources whose interval has elapsed. An interval under 60 minutes still runs at most hourly.IIngestionRunService, ignoring the interval. The list shows each source's last run status and counts.{
"OrchardCore": {
"CrestApps": {
"AI": {
"FileSources": {
"MaxItemsPerRun": 200,
"MaxConcurrentFetches": 2,
"DefaultRunIntervalMinutes": 1440
}
}
}
}
}
| Key | Default | Meaning |
|---|---|---|
MaxItemsPerRun | 200 | Items one run may take on when the source sets no limit |
MaxConcurrentFetches | 2 | Files fetched at a time |
DefaultRunIntervalMinutes | 1440 | Interval of a source that names none |
RunCheckIntervalMinutes | 15 | Poll interval of the framework's hosted scheduler; no effect under Orchard Core |
The section binds to FileSourceOptions through IShellConfiguration. AllowedLocalRoots is discarded on purpose and replaced by the tenant folder, and the file-system connector's own allowed roots and base path are post-configured to that folder. A tenant's own App_Data/Sites/{tenant}/appsettings.json writes the same keys starting at CrestApps, without the OrchardCore wrapper.
Artificial Intelligence > File Sources is an AdminList named AIFileSources with the grid columns Name, Connector, LastRun, Modified, and Actions; rows are the FileSource shape in SummaryAdmin and SummaryAdminGrid (see orchardcore-admin-lists). Every screen, including Read now, requires ManageFileSources (Manage file sources, Administrator by default). Citations of an ingested figure or chart link to a figure download endpoint guarded by OrchardKnowledgeFigureAuthorizationHandler.
The FileSources recipe step creates or updates file sources, matched by ItemId, then by DisplayText
within the same connector. Source must be an enabled connector and AIDataSourceId must name an AI data
source, so import data sources first.
{
"steps": [
{
"name": "FileSources",
"Sources": [
{
"ItemId": "4fs00000000000000000000001",
"Source": "Sftp",
"DisplayText": "Policies",
"AIDataSourceId": "4ds00000000000000000000001",
"Enabled": true,
"ReindexIntervalMinutes": 60,
"Properties": {
"SftpConnectionMetadata": { "Host": "sftp.example.com", "Username": "reader" },
"RemoteFileSourceMetadata": { "RootPath": "/policies", "Recursive": true }
}
}
]
}
]
}
The File sources deployment step (Artificial Intelligence category) exports every file source without
passwords, private keys, passphrases or tokens, which are protected with the keys of the site that stored
them. An update that leaves a secret out keeps the stored one; after importing a new FTP or SFTP source,
open it and enter its password or key. With AI Chat WebAPI, file sources are also managed through
/api/ai/v1/file-sources. Code can still use ISourceCatalogManager<FileSource>.
A connector answers two questions: what is there (DiscoverAsync), and give me that one (FetchAsync). Readers, figure processing, and storage are shared.
public sealed class Startup : StartupBase
{
internal readonly IStringLocalizer S;
public Startup(IStringLocalizer<Startup> stringLocalizer)
{
S = stringLocalizer;
}
public override void ConfigureServices(IServiceCollection services)
{
services.AddCoreIngestionConnector<SharePointIngestionConnector>("SharePoint", descriptor =>
{
descriptor.DisplayName = S["SharePoint"];
descriptor.Description = S["Reads files from a SharePoint document library."];
});
services.AddDisplayDriver<FileSource, SharePointFileSourceDisplayDriver>();
}
}
IIngestionConnector member | Contract |
|---|---|
Name | The registered name, stored as FileSource.Source |
ValidateAsync(source, result, cancellationToken) | Add failures to the ValidationResultDetails |
DiscoverAsync(source, continuationToken, cancellationToken) | List items. A connector that could not list everything must say so; a partial listing taken as complete deletes what it missed. |
FetchAsync(source, itemId, cancellationToken) | Return the content, or null when the item is gone or empty |
The display driver returns null unless fileSource.Source is your connector name, stores its settings with fileSource.Put(...), and protects secrets with data protection. The same connector shape also serves web crawler records (see orchardcore-ai-web-crawlers).
| Symptom | Check |
|---|---|
| No File data source to target | Create one under Data Sources first; the file source editor says so when none exists. |
| That folder is outside the folder this tenant may read | Use a path inside App_Data/Sites/{TenantName}/file-sources, without .. or links that leave it. |
| Source never runs | It is disabled, its interval has not elapsed, or background tasks are off for the tenant. |
| Figures not described | No imageInput deployment fills the vision slot, or Figures is Off. |
| PDF or Office files skipped | Enable the PDF or OpenXml extractor feature. |
| Answers do not cite files | The File data source is not attached to the profile, or its knowledge base has no embedding deployment. |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
orchard-core, ai-file-sources, file-ingestion, ftp, sftp, knowledge-base
/crestapps-orchardcore:orchardcore-ai-file-sourcesfrom 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