zeikar/hyperclaude / .claude/skills/cc-changelog
cc-changelog
VerifiedThis skill should be used when the user asks to check for new Claude Code releases, "what changed in Claude Code", "any Claude Code updates", "check the changelog", "diff the Claude Code version", or wants the Claude Code changelog reviewed for changes relevant to THIS repo (the hyperclaude plugin). Reads a locally-stored last-checked version, fetches the official changelog, reports plugin-relevant changes grouped by actionability, and offers to advance the stored version.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 6.3 KB |
| get-changelog.mjs | script | 3.2 KB |
| get-changelog.test.mjs | script | 3.5 KB |
get-changelog.mjs
View on GitHub#!/usr/bin/env node
// get-changelog — fetch the Claude Code CHANGELOG and print only the entries
// strictly newer than a baseline version. Repo-local dev tool for the cc-changelog
// skill; no Codex, stdlib only (Node 18+ global fetch — no temp file, no curl/awk).
//
// Usage: node get-changelog.mjs [BASELINE]
// BASELINE optional X.Y.Z. If omitted, reads `.last-checked-version` next to this
// script (the maintainer's diff baseline).
//
// Output (stdout):
// line 1 LATEST=<x.y.z> (topmost changelog version)
// then the sliced markdown (entries strictly newer than BASELINE,
// verbatim, newest first)
// or (up to date — nothing newer than <baseline>) when nothing is newer.
// Exit: 0 on success (new or not); 1 on fetch failure; 2 on bad/missing baseline.
import { readFileSync } from 'node:fs';
import { fileURLToPath, pathToFileURL } from 'node:url';
import { dirname, join } from 'node:path';
const CHANGELOG_URL =
'https://raw.githubusercontent.com/anthropics/claude-code/main/CHANGELOG.md';
const STATE_FILE = join(dirname(fileURLToPath(import.meta.url)), '.last-checked-version');
const SEMVER = /^\d+\.\d+\.\d+$/;
const HEADER = /^## (\d+\.\d+\.\d+)\b/;
// Compare X.Y.Z triples numerically. The changelog skips numbers (e.g. 2.1.191→2.1.193),
// so we must order by version, never stop at the literal baseline header (it may not exist).
export function cmp(a, b) {
const x = a.split('.').map(Number);
const y = b.split('.').map(Number);
for (let i = 0; i < 3; i++) {
if (x[i] > y[i]) return 1;
if (x[i] < y[i]) return -1;
}
return 0;
}
// Pure core: from full changelog text, return the latest version and the slice of
// entries strictly newer than `baseline` (verbatim, newest first; '' if none).
export function sliceChangelog(text, baseline) {
let latest = null;
let keep = false;
const kept = [];
for (const line of text.split('\n')) {
const m = line.match(HEADER);
if (m) {
if (!latest) latest = m[1];
keep = cmp(m[1], baseline) > 0;
}
if (keep) kept.push(line);
}
return { latest, slice: kept.join('\n').trim() };
}
function resolveBaseline() {
const arg = process.argv[2]?.trim();
if (arg) return arg;
try {
return readFileSync(STATE_FILE, 'utf8').trim();
} catch {
console.error(`No baseline given and ${STATE_FILE} is missing/unreadable.`);
process.exit(2);
}
}
async function main() {
const baseline = resolveBaseline();
if (!SEMVER.test(baseline)) {
console.error(`Baseline must be X.Y.Z, got: "${baseline}"`);
process.exit(2);
}
let text;
try {
const res = await fetch(CHANGELOG_URL);
if (!res.ok) throw new Error(`HTTP ${res.status}`);
text = await res.text();
} catch (err) {
console.error(`Failed to fetch changelog: ${err.message}`);
process.exit(1);
}
const { latest, slice } = sliceChangelog(text, baseline);
console.log(`LATEST=${latest ?? 'unknown'}`);
console.log(slice || `(up to date — nothing newer than ${baseline})`);
}
// Run main() only when executed directly, not when imported by tests.
if (process.argv[1] && import.meta.url === pathToFileURL(process.argv[1]).href) main();
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-changelog-updatemorluto/reaPrepare or rewrite REA release changelogs and GitHub release notes from pinned Git history, with verified contributor thanks and Release Please synchronization. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| academy-guideanthropics/skillsStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials, and use cases from Claude Academy (academy.claude.com), Anthropic's learning hub. Trigger on: "how do I", "how can I", "getting started with", "what can Claude do", "teach me", "learn to use"; questions about artifacts, projects, skills, plugins, connectors, MCP; requests about rolling Claude out to a team, class, or organization; and any ask for training materials, onboarding content, or learning resources. Use it when the user is learning how to use a feature or product — not when they are mid-task and just want the task done. This skill composes with other skills: after consulting product documentation to answer how a Claude feature works, also check here for a matching course or tutorial — a docs-grounded answer and an Academy recommendation belong together. Only recommend on a strong match; never invent Academy content. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| claude-apianthropics/skillsReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER — read BEFORE opening the target file; don't skip because it "looks like a one-liner" — whenever: the prompt names Claude/Anthropic in any form (Claude, Anthropic, Fable, Opus, Sonnet, Haiku, `anthropic`, `@anthropic-ai`, `claude-*`, `us.anthropic.*`, `[1m]`); the user asks about an LLM (pricing/model choice/limits/caching) — never answer from memory; OR the task is LLM-shaped with provider unstated (agent/MCP/tool-definition/multi-agent/RAG/LLM-judge/computer-use; generate/summarize/extract/classify/rewrite/converse over NL; debugging refusals/cutoffs/streaming/tool-calls/tokens). SKIP only when another provider is being worked on (overrides all triggers): OpenAI/GPT/Gemini/Llama/Mistral/Cohere/Ollama named in the query; OR `grep -rE 'openai|langchain_openai|google.generativeai|genai|mistralai|cohere|ollama'` over the project hits (run this grep FIRST if no provider named — don't Read the file). | Stars: 198k | Updated | Claude CodeCodex | Unverified | Install |
| doc-coauthoringanthropics/skillsGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers. Trigger when user mentions writing docs, creating proposals, drafting specs, or similar documentation tasks. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |