building-static-site-rss-feeds
Skill2 starsChanged 8 months agoMITView on GitHub
Creates static websites with RSS/Atom/JSON Feed support for content syndication. Use when building static sites with feeds, implementing RSS in Hugo/Jekyll/custom generators, adding feed autodiscovery, or when user mentions RSS, Atom, feeds, or content syndication.
In this repository29 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- building-lit-componentsSkill
- building-templ-componentsSkill
- checking-wsh-vrtSkill
- committing-codeSkill
- creating-agent-skillsSkill
- creating-test-casesSkill
- deploying-with-isucon-ansibleSkill
- designing-isucon-architectureSkill
- frontend-designSkill
- operating-isucon-servers-via-sshSkill
- planning-wsh-improvementsSkill
- porting-isucon-rust-to-goSkill
- releasing-zig-with-goreleaserSkill
- running-isucon-as-an-agentSkill
- sharing-sockets-with-so-reuseport-in-zigSkill
- tuning-isucon-linux-and-nginxSkill
- using-go-tool-directiveSkill
- using-grafana-mcpSkill
- using-unocss-with-templSkill
- winning-isuconSkill
- winning-web-speed-hackathonSkill
- writing-feature-specSkill
- writing-implementation-tasksSkill
- writing-isucon-arch-subagent-tasksSkill
- writing-project-constitutionSkill
- writing-technical-designSkill
- writing-zig-cli-toolsSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 6 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Create static websites that support RSS/Atom feeds for content syndication, allowing readers to subscribe via feed readers.
- Distinctive: line 16
Add feed support to a static site:
- Distinctive: line 21
Validate: Use W3C Feed Validator
- Distinctive: line 31
Recommendation: Use RSS 2.0 for broad compatibility.
- Very specific: line 57
Add to <head> of every page:
- Very specific: line 103
Absolute URLs: All links must be absolute (https://...)
- Distinctive: line 104
Unique GUIDs: Use permalink URLs as identifiers
- Very specific: line 123
Add autodiscovery in layouts/partials/head.html:
- Distinctive: line 132
Always validate feeds before deployment:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Building Static Sites with RSS Feeds
Create static websites that support RSS/Atom feeds for content syndication, allowing readers to subscribe via feed readers.
Use this skill when implementing RSS feeds in static sites, choosing feed formats, setting up autodiscovery, or generating feeds from content.
Supporting files: SPECIFICATION.md for feed format details, IMPLEMENTATION.md for code examples.
Quick Start
Add feed support to a static site:
- Choose format: RSS 2.0 (most compatible) or Atom 1.0 (more features)
- Generate feed XML: From content metadata (title, date, description)
- Add autodiscovery: Link tag in HTML head
- Validate: Use W3C Feed Validator
Feed Format Selection
| Format | Best For | Notes |
| RSS 2.0 | Maximum compatibility, podcasts | Frozen spec, simpler |
| Atom 1.0 | International content, strict validation | RFC 4287, better date handling |
| JSON Feed | Modern APIs, developer preference | Simpler parsing, less support |
Recommendation: Use RSS 2.0 for broad compatibility. Add Atom if you need internationalization.
Minimal RSS 2.0 Structure
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title>Site Title</title>
<link>https://example.com</link>
<description>Site description</description>
<lastBuildDate>Sat, 01 Feb 2026 12:00:00 +0000</lastBuildDate>
<item>
<title>Article Title</title>
<link>https://example.com/article</link>
<description>Article summary or full content</description>
<guid isPermaLink="true">https://example.com/article</guid>
<pubDate>Fri, 31 Jan 2026 10:00:00 +0000</pubDate>
</item>
</channel>
</rss>HTML Autodiscovery
Add to <head> of every page:
<link rel="alternate" type="application/rss+xml"
title="RSS Feed" href="https://example.com/feed.xml">For Atom:
<link rel="alternate" type="application/atom+xml"
title="Atom Feed" href="https://example.com/atom.xml">Go Implementation
Using gorilla/feeds library:
import "github.com/gorilla/feeds"
feed := &feeds.Feed{
Title: "Site Title",
Link: &feeds.Link{Href: "https://example.com"},
Description: "Site description",
Updated: time.Now(),
}
feed.Items = []*feeds.Item{
{
Title: "Article Title",
Link: &feeds.Link{Href: "https://example.com/article"},
Description: "Article content",
Id: "https://example.com/article",
Created: time.Now(),
},
}
rss, _ := feed.ToRss() // RSS 2.0
atom, _ := feed.ToAtom() // Atom 1.0
json, _ := feed.ToJSON() // JSON FeedBest Practices
Content
- Full content: Include complete articles, not just excerpts
- Absolute URLs: All links must be absolute (
https://...) - Unique GUIDs: Use permalink URLs as identifiers
Performance
- Keep under 150KB: Some readers have size limits
- Limit items: 10-20 recent items is typical
- Support caching: Return
ETagandLast-Modifiedheaders
Dates
- RSS 2.0: RFC 822 format (
Sat, 01 Feb 2026 12:00:00 +0000) - Atom: RFC 3339 format (
2026-02-01T12:00:00Z)
Hugo Integration
Hugo generates RSS automatically at /index.xml. Customize:
layouts/_default/rss.xmlAdd autodiscovery in layouts/partials/head.html:
{{ with .OutputFormats.Get "RSS" }}
<link rel="alternate" type="{{ .MediaType }}" href="{{ .Permalink }}" title="{{ $.Site.Title }}">
{{ end }}Validation
Always validate feeds before deployment:
- W3C Validator: https://validator.w3.org/feed/
- Feed Validator: https://www.feedvalidator.org/
Common errors:
- Relative URLs (must be absolute)
- Invalid date formats
- Missing required elements
- Encoding issues with special characters
Checklist
- Feed generates valid XML/JSON
- All URLs are absolute
- Dates use correct format (RFC 822 for RSS, RFC 3339 for Atom)
- GUIDs are unique and stable
- Autodiscovery link in HTML head
- Feed validates with W3C validator
- Content encoding is UTF-8
Resources
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

