# Nightly docs and changelog

> Nightly docs and changelog is an open-source agent skill for developer tools. Runs a nightly sweep that updates docs and CHANGELOG.md from the day's diff and opens a PR. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/ivy00johns/Skill-Madness/tree/main/skills/loops/nightly-docs-and-changelog
- **Repository:** https://github.com/ivy00johns/skill-madness
- **GitHub stars:** 12
- **License:** MIT
- **Skill name:** nightly-docs-and-changelog
- **Collection:** https://github.com/ivy00johns/Skill-Madness
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill sets up a recurring routine that keeps an existing repository's documentation and CHANGELOG.md aligned with its code. Each night it reads the last-run marker, diffs the repository from that point to HEAD, and rewrites the docs covering the changed areas. Changes are sorted into user-relevant and internal; only user-relevant ones are logged in the changelog, and a quiet night gets an explicit no-change record.

The sweep ends by committing the edits and opening a single pull request through the git-pr skill. It never merges, and it advances the marker only as part of that handoff so changes are not silently skipped. Because the schedule lives in a cloud routine rather than a session, it keeps running when the laptop is closed, and a missed night simply widens the next diff.

The skill is meant for Claude Code and expects a repository with an existing docs folder and CHANGELOG.md, plus Git and the GitHub CLI available to the agent. It is a Markdown-only configuration with reference files for scheduling and the changelog rubric, and it runs no bundled scripts.

## When your agent uses it

> A nightly cloud routine that keeps an existing repo's docs and CHANGELOG.md in step with the code: diff since the last run, fix docs for what changed, log user-relevant changes, open one PR for review, never merge. Survives laptop-off. Use when docs keep drifting or the changelog is stale. Trigger on "keep the docs current", "nightly docs sweep", "update the changelog nightly".

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/ivy00johns/Skill-Madness/tree/HEAD/skills/loops/nightly-docs-and-changelog)
- [Asks for: Read, Write, Edit, Bash, Grep, Glob](https://github.com/ivy00johns/Skill-Madness/blob/HEAD/skills/loops/nightly-docs-and-changelog/SKILL.md)
- [License: MIT](https://github.com/ivy00johns/Skill-Madness/tree/HEAD/skills/loops/nightly-docs-and-changelog)

## Features

- **Diff-scoped nightly sweep:** Limits each run to changes since the last recorded marker, so the work covers only what moved.
- **User-relevant changelog entries:** Sorts changes into user-facing and internal and logs only the user-facing ones in CHANGELOG.md.
- **Docs updates for changed code:** Rewrites documentation for the surfaces that changed, following the repository's existing conventions.
- **Single reviewable pull request:** Bundles each night's edits into one PR for human review and never merges it.
- **Pass and drift caps:** Stops after a set number of iterations or three nights of drift on the same surface and flags it for a person.
- **Cloud routine scheduling:** Uses a scheduled cloud routine so the sweep still runs when the laptop is off.

## Good for

- Keep the README and API docs current after a week of code changes
- Add user-facing changes from the last day to CHANGELOG.md
- Run a nightly docs sweep and open a PR for review
- Catch up on stale documentation after a stretch of unlogged commits

## Install

### Claude Code

This skill ships in the `skill-madness` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add ivy00johns/Skill-Madness
/plugin install skill-madness@skill-madness
```

Or copy only this skill to `~/.claude/skills/nightly-docs-and-changelog`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/nightly-docs-and-changelog &&
cp -R "$tmp/skills/loops/nightly-docs-and-changelog" ~/.claude/skills/nightly-docs-and-changelog &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/nightly-docs-and-changelog` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/nightly-docs-and-changelog` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/nightly-docs-and-changelog &&
cp -R "$tmp/skills/loops/nightly-docs-and-changelog" ~/.agents/skills/nightly-docs-and-changelog &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/nightly-docs-and-changelog` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/nightly-docs-and-changelog` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/nightly-docs-and-changelog &&
cp -R "$tmp/skills/loops/nightly-docs-and-changelog" ~/.cursor/skills/nightly-docs-and-changelog &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/nightly-docs-and-changelog` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/ivy00johns/Skill-Madness.git --path skills/loops/nightly-docs-and-changelog
```

Or copy the folder to `~/.gemini/skills/nightly-docs-and-changelog` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/nightly-docs-and-changelog`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/nightly-docs-and-changelog &&
cp -R "$tmp/skills/loops/nightly-docs-and-changelog" ~/.copilot/skills/nightly-docs-and-changelog &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/nightly-docs-and-changelog` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.git
```

Then copy `Skill-Madness/skills/loops/nightly-docs-and-changelog` into your agent's skills folder as `nightly-docs-and-changelog`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does Nightly docs and changelog need to run?

It requires Claude Code, an existing repository with docs and a CHANGELOG.md, and Git and the GitHub CLI for opening the pull request. It is configured to use the git-pr skill for the PR step.

### Does Nightly docs and changelog merge its own changes?

No. It opens one pull request per night and stops there; merging is left to a human reviewer.

### What happens on a night with no changes?

It records a no-change night instead of opening a PR, so a skipped night can be told apart from a missed one.

### Why not use /loop for scheduling?

The skill states that /loop is session-scoped, expires after about three days, and does not catch up on missed fires, so it uses a scheduled cloud routine instead.

### How do I install Nightly docs and changelog in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/nightly-docs-and-changelog to use it in all your projects, or to .claude/skills/nightly-docs-and-changelog in one project. Or install the skill-madness plugin, which includes it: /plugin marketplace add ivy00johns/Skill-Madness, then /plugin install skill-madness@skill-madness.

### Does Nightly docs and changelog run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Nightly docs and changelog?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Nightly docs and changelog?

The closest alternatives to Nightly docs and changelog are Document, Update docs and commit, Docs sync audit, Sync CLI skill and Refresh docs.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Document](https://ai-powered.com/skills/document-awrshift): Document is an open-source agent skill for developer tools.
- [Update docs and commit](https://ai-powered.com/skills/update-docs-and-commit): Update docs and commit is an open-source agent skill for developer tools.
- [Docs sync audit](https://ai-powered.com/skills/docs-sync-audit): Docs sync audit is an open-source agent skill for developer tools.
- [Sync CLI skill](https://ai-powered.com/skills/sync-cli-skill): Sync CLI skill is an open-source agent skill for developer tools.
- [Refresh docs](https://ai-powered.com/skills/refresh-docs-ajyadav013): Refresh docs is an open-source agent skill for developer tools.
- [Code review](https://ai-powered.com/skills/code-review-aws-solutions): Code review is an open-source agent skill for developer tools.
- [Make PR easy to review](https://ai-powered.com/skills/make-pr-easy-to-review): Make PR easy to review is an open-source agent skill for developer tools.
- [Sync docs](https://ai-powered.com/skills/sync-docs): Sync docs is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/nightly-docs-and-changelog
