Schedules published Orchard Core content to be automatically unpublished at a future date. Covers ArchiveLaterPart, scheduled UTC dates, index queries, editor behavior, admin list display, and the ScheduledArchivingBackgroundTask.
Ships in 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 content definitions and integration code for automatically unpublishing (archiving) a published content item when its scheduled time arrives.
OrchardCore.ArchiveLater feature. Its module dependency is OrchardCore.Contents.ArchiveLaterPart to each content type whose items editors may schedule for archiving.ArchiveLaterPart.ScheduledArchiveUtc is a nullable UTC DateTime. The editor (rendered in the Actions zone) converts the editor's local date and time to UTC with ILocalClock; clearing the date or using the cancel button removes the schedule.PublishContent permission (CommonPermissions.PublishContent) for the item to set or cancel the schedule; otherwise the posted value is ignored.ScheduledArchivingBackgroundTask (title Content Items Archiver) as an IBackgroundTask. Its schedule is * * * * *, so due content is checked every minute, and only while the tenant is running.ArchiveLaterPartIndex for rows that are Latest and Published and whose ScheduledArchiveDateTimeUtc is earlier than IClock.UtcNow.ArchiveLaterPart_SummaryAdmin shape: Meta:25 in the List layout (SummaryAdmin) and Modified:25 in the Grid layout (SummaryAdminGrid). Override placement for each display type separately.ScheduledArchiveUtc, applies the part, then calls IContentManager.UnpublishAsync so the item is removed from the published set while the draft is retained.{ "steps": [...] } format.sealed modifier, except View Models.{
"steps": [
{
"name": "Feature",
"enable": [
"OrchardCore.ArchiveLater"
],
"disable": []
}
]
}
{
"steps": [
{
"name": "ContentDefinition",
"ContentTypes": [
{
"Name": "Article",
"DisplayName": "Article",
"Settings": {
"ContentTypeSettings": {
"Creatable": true,
"Draftable": true,
"Versionable": true
}
},
"ContentTypePartDefinitionRecords": [
{
"PartName": "ArchiveLaterPart",
"Name": "ArchiveLaterPart",
"Settings": {}
}
]
}
]
}
]
}
using OrchardCore.ContentManagement.Metadata;
using OrchardCore.Data.Migration;
namespace MyModule;
public sealed class Migrations : DataMigration
{
private readonly IContentDefinitionManager _contentDefinitionManager;
public Migrations(IContentDefinitionManager contentDefinitionManager)
{
_contentDefinitionManager = contentDefinitionManager;
}
public async Task<int> CreateAsync()
{
await _contentDefinitionManager.AlterTypeDefinitionAsync("Article", type => type
.WithPart("ArchiveLaterPart"));
return 1;
}
}
// Schedule an item to be unpublished 30 days from now (IClock and IContentManager are injected).
var part = contentItem.As<ArchiveLaterPart>();
part.ScheduledArchiveUtc = _clock.UtcNow.AddDays(30);
contentItem.Apply(part);
await _contentManager.UpdateAsync(contentItem);
To find items scheduled for archiving, query the index:
using OrchardCore.ArchiveLater.Indexes;
using YesSql;
var due = await _session
.QueryIndex<ArchiveLaterPartIndex>(x => x.Published && x.ScheduledArchiveDateTimeUtc != null)
.ListAsync();
ScheduledArchivingBackgroundTask runs every minute (* * * * *).IClock to read the current UTC time, then queries ArchiveLaterPartIndex for latest, published items whose ScheduledArchiveDateTimeUtc is due.ScheduledArchiveUtc, applies the part, and calls IContentManager.UnpublishAsync.OrchardCore.PublishLater when editors need both scheduled publish and scheduled archive on the same content type.ArchiveLaterPartDisplayDriver renders the scheduling editor; since Fluid 3 (Orchard Core 4.0) Liquid reads the public members of ArchiveLaterPartViewModel without any member-access registration.What SKILL.md sets; muted values are Claude Code's defaults
/orchardcore:orchardcore-archive-laterfrom orchardcore
npx claudepluginhub crestapps/crestapps.agentskills --plugin orchardcore140 skills in this plugin
/orchardcore-adminGuidance for the Orchard Core admin panel, including admin controllers and routes, admin menu registration with AdminNavigationProvider, ocat editor forms grouped in cards, admin pages rendering Model.Editor, the UI text casing standard, TheAdmin layout and menu colors, admin branding, the Navbar shape, the Ctrl+K quick navigation palette and QuickNavigationSource, AdminSettings such as MenuBehavior, ShowBreadcrumb, DisplayQuickNavigation, DisplayTitlesInTopbar and ActionsLayout, the AdminDashboard shape, settings pages, and admin filters and zones. Use this skill when requests mention the Orchard Core admin panel, TheAdmin, admin controllers, admin menu registration, an icon on an admin menu item, the AdminSettings recipe step, quick navigation, navigation menu behavior, the admin URL prefix, UI text casing. Strong matches include OrchardCore.Admin, AdminSettings, AdminPermissions, AdminOptions, AdminAttribute, SiteDisplayDriver, IDisplayManager./orchardcore-admin-dashboardSkill for creating admin dashboard widgets in Orchard Core. Covers the DashboardWidget stereotype, DashboardPart position and sizing, the built-in HtmlDashboardWidget, ContentsMetadata and ContentsTags widget types, custom widget content types via recipe or migration, arranging widgets in Manage Dashboard mode, widget template customization, provisioning widgets with recipes, dashboard permissions, the DashboardBreadcrumbProvider Dashboard ancestor, and the AdminDashboardContent shape used when the feature is disabled. Use this skill when requests mention Orchard Core Admin Dashboard, Create and Configure Dashboard Widgets, Enabling Admin Dashboard, Widget Configuration Properties, dashboard widget recipes, Dashboard breadcrumb, or related implementation, setup, or troubleshooting work. Strong matches include OrchardCore.AdminDashboard, DashboardPart, DashboardBreadcrumbProvider, AccessAdminDashboard, ManageAdminDashboard.Other plugins' skills for the same job