changelog-page

Scaffold a public changelog page that displays releases.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "changelog-page" with this command: npx skills add phrazzld/claude-config/phrazzld-claude-config-changelog-page

Changelog Page

Scaffold a public changelog page that displays releases.

Branching

Assumes you start on master /main . Before scaffolding:

git checkout -b feat/changelog-page-$(date +%Y%m%d)

Objective

Create a public /changelog route that:

  • Fetches releases from GitHub Releases API

  • Groups releases by minor version

  • Provides RSS feed

  • Requires no authentication

  • Matches app's design

Components

  1. GitHub API Client

Create lib/github-releases.ts :

// See references/github-releases-client.md for full implementation

export interface Release { id: number; tagName: string; name: string; body: string; publishedAt: string; htmlUrl: string; }

export interface GroupedReleases { [minorVersion: string]: Release[]; }

export async function getReleases(): Promise<Release[]> { const res = await fetch( https://api.github.com/repos/${process.env.GITHUB_REPO}/releases, { headers: { Accept: 'application/vnd.github.v3+json', // Optional: add token for higher rate limits ...(process.env.GITHUB_TOKEN && { Authorization: Bearer ${process.env.GITHUB_TOKEN}, }), }, next: { revalidate: 300 }, // Cache for 5 minutes } );

if (!res.ok) throw new Error('Failed to fetch releases'); return res.json(); }

export function groupReleasesByMinor(releases: Release[]): GroupedReleases { return releases.reduce((acc, release) => { // Extract minor version: v1.2.3 -> v1.2 const match = release.tagName.match(/^v?(\d+.\d+)/); const minorVersion = match ? v${match[1]} : 'other';

if (!acc[minorVersion]) acc[minorVersion] = [];
acc[minorVersion].push(release);
return acc;

}, {} as GroupedReleases); }

  1. Changelog Page

Create app/changelog/page.tsx :

// See references/changelog-page-component.md for full implementation

import { getReleases, groupReleasesByMinor } from '@/lib/github-releases'; import { Metadata } from 'next';

export const metadata: Metadata = { title: 'Changelog', description: 'Latest updates and improvements', };

export default async function ChangelogPage() { const releases = await getReleases(); const grouped = groupReleasesByMinor(releases);

return ( <div className="max-w-3xl mx-auto py-12 px-4"> <header className="mb-12"> <h1 className="text-3xl font-bold mb-2">Changelog</h1> <p className="text-muted-foreground"> Latest updates and improvements to {process.env.NEXT_PUBLIC_APP_NAME} </p> <a href="/changelog.xml" className="text-sm text-primary hover:underline" > RSS Feed </a> </header>

  {Object.entries(grouped)
    .sort(([a], [b]) => b.localeCompare(a, undefined, { numeric: true }))
    .map(([minorVersion, versionReleases]) => (
      &#x3C;section key={minorVersion} className="mb-12">
        &#x3C;h2 className="text-xl font-semibold mb-4 sticky top-0 bg-background py-2">
          {minorVersion}
        &#x3C;/h2>

        {versionReleases.map((release) => (
          &#x3C;article key={release.id} className="mb-8 pl-4 border-l-2 border-border">
            &#x3C;header className="mb-2">
              &#x3C;h3 className="font-medium">
                {release.name || release.tagName}
              &#x3C;/h3>
              &#x3C;time className="text-sm text-muted-foreground">
                {new Date(release.publishedAt).toLocaleDateString('en-US', {
                  year: 'numeric',
                  month: 'long',
                  day: 'numeric',
                })}
              &#x3C;/time>
            &#x3C;/header>

            &#x3C;div
              className="prose prose-sm dark:prose-invert"
              dangerouslySetInnerHTML={{ __html: parseMarkdown(release.body) }}
            />
          &#x3C;/article>
        ))}
      &#x3C;/section>
    ))}
&#x3C;/div>

); }

  1. RSS Feed

Create app/changelog.xml/route.ts :

// See references/rss-feed-route.md for full implementation

import { getReleases } from '@/lib/github-releases';

export async function GET() { const releases = await getReleases(); const appName = process.env.NEXT_PUBLIC_APP_NAME || 'App'; const siteUrl = process.env.NEXT_PUBLIC_SITE_URL || 'https://example.com';

const rss = &#x3C;?xml version="1.0" encoding="UTF-8"?> &#x3C;rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> &#x3C;channel> &#x3C;title>${appName} Changelog&#x3C;/title> &#x3C;link>${siteUrl}/changelog&#x3C;/link> &#x3C;description>Latest updates and improvements&#x3C;/description> &#x3C;language>en&#x3C;/language> &#x3C;atom:link href="${siteUrl}/changelog.xml" rel="self" type="application/rss+xml"/> ${releases.slice(0, 20).map(release => <item> <title>${escapeXml(release.name || release.tagName)}</title> <link>${release.htmlUrl}</link> <guid isPermaLink="true">${release.htmlUrl}</guid> <pubDate>${new Date(release.publishedAt).toUTCString()}</pubDate> <description><![CDATA[${release.body}]]></description> </item>).join('')} &#x3C;/channel> &#x3C;/rss>;

return new Response(rss, { headers: { 'Content-Type': 'application/xml', 'Cache-Control': 'public, max-age=300', }, }); }

function escapeXml(str: string): string { return str .replace(/&/g, '&amp;') .replace(/</g, '&lt;') .replace(/>/g, '&gt;') .replace(/"/g, '&quot;') .replace(/'/g, '&apos;'); }

  1. Environment Variables

Add to .env.local and deployment:

Required

GITHUB_REPO=owner/repo # e.g., "acme/myapp"

Optional (for higher API rate limits)

GITHUB_TOKEN=ghp_xxx

For page metadata

NEXT_PUBLIC_APP_NAME=MyApp NEXT_PUBLIC_SITE_URL=https://myapp.com

Styling

The page should match the app's design. Key considerations:

  • Use existing design tokens - Colors, spacing, typography from the app

  • Prose styling - Use Tailwind Typography or similar for release notes markdown

  • Responsive - Mobile-friendly layout

  • Dark mode - Support both themes if app does

  • Minimal - Focus on content, not decoration

No Auth

Important: This page must be public. Do not wrap in:

  • Clerk's <SignedIn>

  • Middleware auth checks

  • Any session requirements

Users should be able to view changelog without signing in.

Delegation

For complex styling or app-specific customization:

  • Research the app's existing design patterns

  • Delegate implementation to Codex with clear design requirements

  • Reference aesthetic-system and design-tokens skills

Output

After running this skill:

  • /app/changelog/page.tsx

  • Main page

  • /app/changelog.xml/route.ts

  • RSS feed

  • /lib/github-releases.ts

  • API client

  • Environment variables documented

Verify by:

  • Running dev server

  • Visiting /changelog

  • Checking RSS at /changelog.xml

  • Confirming releases display correctly

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

pencil-renderer

No summary provided by upstream source.

Repository SourceNeeds Review
General

ui-skills

No summary provided by upstream source.

Repository SourceNeeds Review
General

llm-gateway-routing

No summary provided by upstream source.

Repository SourceNeeds Review