@cogita/plugin-rss generates RSS 2.0, Atom, and JSON Feed from the shared ContentIndex, then injects feed-discovery links into HTML. It makes a blog consumable by readers, aggregators, and automation tools.
rel="alternate" feed links to generated pages.base path settings.feedPath, atomPath, and jsonPath default to rss.xml, atom.xml, and feed.json. Core passes the normalized configuration to the plugin; the plugin should not reread the config file.
The plugin uses the Core index first. A legacy or standalone integration may retain a frontmatter-scan fallback. Routes, titles, summaries, publication dates, and public URLs must come from the shared content data.
beforeBuild normalizes configuration and prepares feed metadata. addPages writes static feed files. addRuntimeModules can expose feed URLs, while the HTML hook adds discovery links. The plugin does not own post scanning, theme layout, or a client-side subscription UI.
The generator must escape XML and JSON fields correctly and use public URLs that respect the site base; assetPrefix is not a feed path. A site with no posts should still receive valid empty feeds.
Feed items should use stable guid values, absolute public links, and ISO or HTTP date formats. After a build, verify that all configured formats exist, XML parses successfully, links do not contain local filesystem paths, and discovery links work under a sub-path deployment.
See the content index design, plugin API specification, and Chinese version for the surrounding contracts.