agentsclimarketplace

Changelog

Skill claude-world/director-mode-lite/skills/changelog

View and manage the runtime changelog for observabilityFrom its SKILL.md

Install
npx -y skills add claude-world/director-mode-lite --skill changelog

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • runs commandsInstructs the agent to run 8 commands, including `tail -n 5 .director-mode/changelog.jsonl | jq '.'` and 7 more.

SKILL.md

6.2 KB, ~1.6k tokens by cl100k_base, as published. Nobody here has run it

Changelog Skill

Status: Experimental — uses Claude Code PostToolUse hooks; the hook interface may change in future versions. If hooks don't fire, events can still be logged manually via auto-loop prompts.

Runtime observability changelog that records every change during a development session, so subagents can understand prior context and sessions can be recovered or debugged.


Overview

Automatically, via PostToolUse hooks, the changelog:

  • Records file changes (Write / Edit)
  • Logs test results when tests run (Bash)
  • Records git commits (Bash)
  • Rotates itself when it exceeds 500 lines

Events are stored as append-only JSONL at .director-mode/changelog.jsonl.


Usage

Via /changelog command

/changelog                  # Recent 10 events
/changelog --summary        # Statistics
/changelog --type test      # Filter by event type
/changelog --list-archives  # Show rotated changelogs
/changelog --export log.json
/changelog --archive        # Manually archive current changelog
/changelog --clear          # Clear current changelog

Via Bash

# Last 5 events
tail -n 5 .director-mode/changelog.jsonl | jq '.'

# All file changes
grep '"event_type":"file_' .director-mode/changelog.jsonl

# Count by type
jq -r '.event_type' .director-mode/changelog.jsonl | sort | uniq -c

Event Schema

{
  "id": "evt_1705142400_12345",
  "timestamp": "2025-01-13T10:30:00.000Z",
  "event_type": "file_edit",
  "agent": "hook",
  "iteration": 3,
  "summary": "file_edit: Login.tsx",
  "files": ["src/components/Login.tsx"]
}

Event Types

TypeSourceDescription
file_writeHook (Write)File written via the Write tool
file_editHook (Edit)File edited via the Edit tool
test_passHook (Bash)Tests passing
test_failHook (Bash)Tests failing
test_runHook (Bash)Tests ran, result undetermined
commitHook (Bash)Git commit made
session_startauto-loopSession begins
session_endauto-loopSession completes
changelog_rotatedSystemChangelog was rotated

Automatic Logging via Hooks

Configured in .claude/settings.local.json (the shipped template is hooks/settings-hooks.json):

{
  "hooks": {
    "PostToolUse": [
      { "matcher": "Write", "hooks": [{ "type": "command", "command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/log-file-change.sh" }] },
      { "matcher": "Edit",  "hooks": [{ "type": "command", "command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/log-file-change.sh" }] },
      { "matcher": "Bash",  "hooks": [{ "type": "command", "command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/log-bash-event.sh" }] }
    ]
  }
}

$CLAUDE_PROJECT_DIR keeps paths portable (resolved at runtime by Claude Code).

ScriptTriggerEvents Logged
log-file-change.shWrite, Editfile_write, file_edit
log-bash-event.shBashtest_pass, test_fail, test_run, commit

Core helpers live in _lib-changelog.sh:

log_event "file_write" "Wrote Login.tsx" "hook" '["src/Login.tsx"]'
archive_changelog   # move current changelog to a timestamped archive
clear_changelog     # empty the current changelog
list_archives       # list rotated changelogs

Rotation & Archiving

Two independent thresholds keep the changelog bounded. They are complementary, not contradictory:

TriggerThresholdWho does itWhen
Session-start archive> 100 lines/auto-loop initAt the start of each auto-loop session, so the new session begins with a fresh log
Runtime auto-rotation> 500 lines (MAX_LINES)_lib-changelog.sh (rotate_if_needed)Continuously, as events are appended within a session

On rotation the current file is moved to changelog.YYYYMMDD_HHMMSS.jsonl, a fresh changelog.jsonl is started, and a changelog_rotated event is logged:

.director-mode/
├── changelog.jsonl                    ← Current
├── changelog.20250113_103000.jsonl    ← Archived
└── changelog.20250112_150000.jsonl    ← Archived

Checkpoint vs Changelog

AspectCheckpointChangelog
Location.auto-loop/checkpoint.json.director-mode/changelog.jsonl
PurposeCurrent state snapshot ("where am I now?")Historical event stream ("how did I get here?")
Used byStop hook (continue/stop decision)Subagents (context)
FormatSingle JSON objectJSONL (append-only)
PersistenceOverwritten each iterationAccumulated, then rotated

Only one auto-loop session runs per project. Starting /auto-loop while a session is in_progress blocks with a prompt to use --resume (continue with the existing checkpoint + changelog) or --force (archive the old session, start fresh).


Subagent Integration

  • code-reviewer — before reviewing, checks recent file changes, the current iteration, and recent test results.
  • debugger — before debugging, checks when errors first appeared, which files changed just before them, and the pattern of test failures.

Installation

These legacy observability hooks ship as an explicit automation option. They are absent from the default zero-hook install. After intentionally running ./install.sh --hooks automation, verify:

ls .claude/hooks/
# _lib-changelog.sh  auto-loop-stop.sh  log-bash-event.sh  log-file-change.sh  pre-tool-validator.sh

cat .claude/settings.local.json | jq '.hooks'

Troubleshooting

Events not logged

  1. Check hooks exist: ls .claude/hooks/*.sh
  2. Check the live hook config: cat .claude/settings.local.json | jq '.hooks' (the shipped template is hooks/settings-hooks.json)
  3. Check scripts are executable: chmod +x .claude/hooks/*.sh

Stale session blocking

cat .auto-loop/checkpoint.json | jq '.status'
/auto-loop --force "New task"

Changelog too large

/changelog --archive   # manual archive
/changelog --clear     # or clear

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Gives 0 of the 12 instructions most readme changelog skills give in ~1.6k tokens

Counted across 446 of the 460 authors here whose files we hold, read 2026-09-06

  • Follow Keep a Changelog formatin 24 of 446
  • Collect commits since the last git tagin 15 of 446, across 13 files
  • Omit empty sectionsin 14 of 446
  • Put breaking changes first with migration stepsin 14 of 446
  • Include migration guidance for breaking changesin 11 of 446, across 10 files
  • Categorize commits by conventional commit prefixin 11 of 446
  • Mark breaking changes prominentlyin 10 of 446
  • Prepend the new entry to CHANGELOG.mdin 9 of 446
  • Highlight breaking changes with migration notesin 8 of 446, across 7 files
  • Classify changes into Keep a Changelog categoriesin 8 of 446, across 7 files
  • Group related commits into single entriesin 8 of 446
  • Write the changelog from commitsin 8 of 446

Said here and by no other author read

  • Record file changes from Write and Edit tools
  • Record test results and git commits from Bash
  • Append changelog events without rewriting existing entries
  • Rotate the changelog when it exceeds 500 lines
  • Archive at session start when over 100 lines
  • Log a changelog_rotated event on rotation

Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.