# Init Changelog

> Create the foundational structure for changelog management via script.

- Skill: `majiayu000/init-changelog` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add majiayu000/init-changelog`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/init-changelog/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/init-changelog

---


# Initialize changelog

**`GOAL`**: create `CHANGELOG.md` and initialize commit pointer.

**`WHEN`**: the agent needs to start changelog management.

**`NOTE`**: exits gracefully if `CHANGELOG.md` already exists.

## Efficiency directives

- Optimize all operations for token and context efficiency
- Batch operations on file groups, avoid individual file processing
- Target only relevant files
- Reduce token usage

## Workflow

- Run `scripts/init-changelog.sh`
- Capture status from first line of output
- Handle the status:
  - If `ERROR`: Stop and report to user
  - If `WARN`: Report already exists
  - If `SUCCESS`: Report success
- **`DONE`**

## Output

**Files created:**

- `CHANGELOG.md` - Main changelog file
- `.last-aggregated-commit` - Pointer file

**Status communication:**

First line of output indicates status:

- `SUCCESS: [message]` - Operation completed
- `WARN: [message]` - No changes made
- `ERROR: [message]` - Operation failed


