Exposes Orchard Core content through extensible XML feeds. Covers RSS/Atom feed setup, IFeedQueryProvider, IFeedItemBuilder, FeedContext, custom feed routes, and format builders.
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 feed configuration and provider code using the Orchard Core feeds abstractions.
OrchardCore.Feeds feature. The module has no declared feature dependencies and exposes no feed on its own; other modules (most commonly Lists) describe what to syndicate.services.AddFeeds() (in OrchardCore.Feeds.Core) registers the RSS 2.0 builder for the rss format. There is no built-in Atom provider.IFeedQueryProvider to match a request and IFeedQuery to add source items and channel metadata to FeedContext.FeedController resolves a single IFeedItemBuilder (the last registered one). OrchardCore.Contents registers CommonFeedItemBuilder for ContentItem feed items; registering your own IFeedItemBuilder replaces it, so only do that deliberately.-5). If either is missing, the controller returns 404.FeedController.Index(string format) is in the OrchardCore.Feeds area; the format comes from the route or the format query value. The response is text/xml.OrchardCore.Lists integrates when both Lists and Feeds are enabled. ListFeedQuery supplies list items, and lists are served at /Contents/Lists/{contentItemId}/rss.FeedMetadata.DisableRssFeed and FeedMetadata.FeedProxyUrl are supplied by the Lists feed handler for list content.IFeedBuilderProvider and IFeedBuilder to add Atom or another format rather than modifying the built-in RSS provider.{ "steps": [...] } format.sealed modifier, except View Models.{
"steps": [
{
"name": "Feature",
"enable": [
"OrchardCore.Feeds",
"OrchardCore.Lists"
],
"disable": []
}
]
}
Enable OrchardCore.Lists only when list content should produce feeds. OrchardCore.Feeds alone provides the controller and RSS format infrastructure.
The RSS provider matches only format=rss. It constructs:
<rss version="2.0">
<channel>
<!-- channel metadata and item elements -->
</channel>
</rss>
For a ContentItem, CommonFeedItemBuilder supplies title, link, CDATA description (from BodyAspect), pubDate, and a permanent-link guid. Links are generated in contextualizers so they use the current scheme and host. The author is intentionally left empty.
/Contents/Lists/{contentItemId}/rss (route ListFeed, area OrchardCore.Feeds, default format = rss).ListPartFeed shape registers <link rel="alternate" type="application/rss+xml"> for auto-discovery, pointing at the proxy URL when one is set.ListPart:| Field | Effect |
|---|---|
DisableRssFeed | Prevents ListFeedQuery from matching and removes the auto-discovery link. |
FeedProxyUrl | Used as the auto-discovery link instead of the local feed URL (e.g., a FeedBurner proxy). |
FeedItemsCount | Number of published list items in the feed, newest first. Default 20; 0 yields no items. |
Configure them from the list feed editor rather than duplicating feed logic in a display driver.
Map a route to the feed controller with format = rss so the built-in RSS builder matches, then match your query on a route value.
using Microsoft.AspNetCore.Http;
using OrchardCore.ContentManagement;
using OrchardCore.ContentManagement.Records;
using OrchardCore.Feeds;
using OrchardCore.Feeds.Models;
using YesSql;
namespace MyModule.Feeds;
public sealed class FeaturedFeedQuery : IFeedQueryProvider, IFeedQuery
{
private readonly IHttpContextAccessor _httpContextAccessor;
private readonly ISession _session;
public FeaturedFeedQuery(IHttpContextAccessor httpContextAccessor, ISession session)
{
_httpContextAccessor = httpContextAccessor;
_session = session;
}
public Task<FeedQueryMatch> MatchAsync(FeedContext context)
{
var feed = _httpContextAccessor.HttpContext?.GetRouteValue("feed") as string;
if (!string.Equals(feed, "featured", StringComparison.OrdinalIgnoreCase))
{
return Task.FromResult<FeedQueryMatch>(null);
}
return Task.FromResult(new FeedQueryMatch
{
Priority = 10,
FeedQuery = this,
});
}
public async Task ExecuteAsync(FeedContext context)
{
context.Builder.AddProperty(context, null, "title", "Featured products");
context.Builder.AddProperty(context, null, "description", "Current featured products.");
var items = await _session.Query<ContentItem, ContentItemIndex>(x =>
x.ContentType == "Product" && x.Published)
.OrderByDescending(x => x.PublishedUtc)
.Take(20)
.ListAsync();
foreach (var item in items)
{
// CommonFeedItemBuilder fills title, link, description, pubDate, and guid.
context.Builder.AddItem(context, item);
}
}
}
The query must add feed items with context.Builder.AddItem(context, item); the item builder populates them afterwards.
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Routing;
using Microsoft.Extensions.DependencyInjection;
using OrchardCore.Feeds;
using OrchardCore.Modules;
namespace MyModule;
[RequireFeatures("OrchardCore.Feeds")]
public sealed class FeedsStartup : StartupBase
{
public override void ConfigureServices(IServiceCollection services)
{
services.AddScoped<IFeedQueryProvider, FeaturedFeedQuery>();
}
public override void Configure(IApplicationBuilder app, IEndpointRouteBuilder routes, IServiceProvider serviceProvider)
{
routes.MapAreaControllerRoute(
name: "FeaturedFeed",
areaName: "OrchardCore.Feeds",
pattern: "featured/rss",
defaults: new { controller = "Feed", action = "Index", format = "rss", feed = "featured" });
}
}
The built-in provider is RSS-only. An Atom implementation provides an IFeedBuilderProvider that matches a distinct format, then an IFeedBuilder that creates the Atom document and its entries.
using OrchardCore.Feeds;
using OrchardCore.Feeds.Models;
namespace MyModule.Feeds;
public sealed class AtomFeedBuilderProvider : IFeedBuilderProvider
{
public FeedBuilderMatch Match(FeedContext context)
{
if (!string.Equals(context.Format, "atom", StringComparison.OrdinalIgnoreCase))
{
return null;
}
return new FeedBuilderMatch
{
FeedBuilder = new AtomFeedBuilder(),
Priority = 10,
};
}
}
Register the provider as a singleton because builder providers are stateless:
services.AddSingleton<IFeedBuilderProvider, AtomFeedBuilderProvider>();
IFeedBuilder members:
Task<XDocument> ProcessAsync(FeedContext context, Func<Task> populate) owns the root XML document and must call populate.FeedItem<TItem> AddItem<TItem>(FeedContext context, TItem item) creates an entry.void AddProperty(FeedContext context, FeedItem feedItem, XElement element) appends a feed-level property when feedItem is null, or an item-level one otherwise. The AddProperty(context, feedItem, name, value) extension builds the XElement for you.Built-in item builders and list queries special-case context.Format == "rss"; for other formats they fall back to AddProperty calls, so make your builder handle title, link, description, and pubDate properties.
FeedController creates a FeedContext (with the request IUpdateModel and format).IFeedBuilderProvider, or returns 404.IFeedQueryProvider, or returns 404.ProcessAsync runs the selected query (channel data and items), then the IFeedItemBuilder.context.Response.Contextualize(...)) resolve request-dependent URLs with the MVC Url helper.XDocument is returned as text/xml.Avoid building absolute URLs before contextualization. Add a FeedResponse.Contextualize callback when the URL depends on the current request scheme or host.
| Symptom | Check |
|---|---|
Feed returns 404 | Verify a builder matches the format (route default or query string) and a query provider matches the request. |
| Atom is not available | Atom is not built in; register a custom builder provider. |
| RSS has no items | Ensure the query calls AddItem with ContentItem items and that OrchardCore.Contents is enabled for CommonFeedItemBuilder. |
| Items lost titles and links | A custom IFeedItemBuilder registration replaced CommonFeedItemBuilder. |
| Links are empty or incorrect | Generate them in a response contextualizer using the request-aware URL helper. |
| List feed missing | Check DisableRssFeed on the list and that both Lists and Feeds are enabled. |
Official Orchard Core videos shown on the documentation page:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/orchardcore:orchardcore-feedsfrom 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