changelog-manager
Reviews git history and updates CHANGELOG.md with entries for [Unreleased] section (converted from agent)
What this skill does
# Changelog Manager
When invoked, perform the following changelog management tasks: analyze git history and update CHANGELOG.md with well-written entries for the `[Unreleased]` section following the Keep a Changelog format.
## Prerequisites
No external skills are required. This skill operates independently.
## Workflow
Execute these steps in order:
### Step 1: Find and Read CHANGELOG.md
1. Look for `CHANGELOG.md` in the repository root:
```bash
ls -la CHANGELOG.md
```
2. If not found, check common locations or prompt the user:
- `docs/CHANGELOG.md`
- `CHANGES.md`
3. Read the changelog and identify:
- The last released version (e.g., `## [0.2.0]`)
- Existing entries under `## [Unreleased]`
- The changelog format and style used
If no CHANGELOG.md exists, ask the user if they want one created.
### Step 2: Get Git History Since Last Release (Enhanced)
**Path filter note:** If a path filter is provided in the prompt (e.g., `-- agent-alchemy/sdd/`), append it to all `git log` commands in this step to scope results to that sub-project.
1. Find the tag for the last release:
```bash
git tag --list 'v*' --sort=-version:refname | head -5
```
2. Get commits with extended format including body (for breaking change notices):
```bash
git log v{version}..HEAD --format="%H|%s|%b" --no-merges [path_filter]
```
If no tags exist, get recent commits with warning:
```bash
git log --format="%H|%s|%b" --no-merges -50 [path_filter]
```
3. Extract PR/issue references for later enrichment:
```bash
git log v{version}..HEAD --no-merges --oneline [path_filter] | grep -oE '#[0-9]+' | sort -u
```
4. For more context on specific commits, use:
```bash
git show --stat {commit_sha}
```
### Step 3: Analyze File Changes
**Purpose:** Understand scope and impact of changes.
1. Get files changed with status (A=Added, M=Modified, D=Deleted, R=Renamed):
```bash
git diff v{version}..HEAD --name-status [path_filter]
```
2. Get summary by directory:
```bash
git diff v{version}..HEAD --dirstat [path_filter]
```
3. Categorize files by area:
| Path Pattern | Category | Changelog Relevance |
|--------------|----------|---------------------|
| `src/`, `lib/` | Core code | High |
| `tests/`, `__tests__/` | Tests | Low (skip) |
| `docs/`, `*.md` | Documentation | Medium |
| Root configs (`*.json`, `*.toml`) | Configuration | High |
| `.github/`, CI files | CI/CD | Low (skip) |
4. Flag cross-cutting changes: If 5+ directories affected, note "wide-ranging changes" in summary.
### Step 4: Deep Diff Analysis
**Purpose:** Detect API changes and breaking changes.
1. Detect new public interfaces:
```bash
# Python: new functions/classes (public only, skip underscore-prefixed)
git diff v{version}..HEAD -- "*.py" | grep -E "^\+\s*(def |class )" | grep -v "_"
# JS/TS: new exports
git diff v{version}..HEAD -- "*.ts" "*.js" | grep -E "^\+.*export"
```
2. Detect removed interfaces (**BREAKING**):
```bash
# Python
git diff v{version}..HEAD -- "*.py" | grep -E "^-\s*(def |class )" | grep -v "_"
# JS/TS
git diff v{version}..HEAD -- "*.ts" "*.js" | grep -E "^-.*export"
```
3. Detect dependency changes:
```bash
git diff v{version}..HEAD -- pyproject.toml package.json requirements*.txt
```
4. Track findings internally:
- `new_apis[]` - new public functions/classes
- `removed_apis[]` - **BREAKING**
- `modified_apis[]` - potentially breaking
- `dependency_changes[]`
### Step 5: PR/Issue Context Enrichment
**Purpose:** Get richer context from PRs and issues.
1. Check gh CLI availability:
```bash
which gh && gh auth status 2>/dev/null
```
2. If gh is available, fetch PR context for each PR number found:
```bash
gh pr view {number} --json title,body,labels,files
```
3. **Fallback:** If gh unavailable, continue with git data only (log this to user).
4. Extract from PR data:
- PR title (often better than commit subject)
- Labels (`breaking-change`, `bug`, `feature`, `security`)
- PR body for migration notes
### Step 6: Categorize Changes (Enhanced)
**Primary:** Use conventional commit prefixes:
| Prefix | Category | Include in Changelog |
|--------|----------|---------------------|
| `feat:` | Added | Yes |
| `fix:` | Fixed | Yes |
| `refactor:` | Changed | Yes (if user-facing) |
| `change:` | Changed | Yes |
| `perf:` | Changed | Yes |
| `security:` | Security | Yes |
| `deprecate:` | Deprecated | Yes |
| `remove:` | Removed | Yes |
| `docs:` | - | No (internal) |
| `chore:` | - | No (internal) |
| `test:` | - | No (internal) |
| `ci:` | - | No (internal) |
| `style:` | - | No (internal) |
| `build:` | - | No (internal) |
**Secondary signals** (override/augment when detected):
| Signal | Category | Priority |
|--------|----------|----------|
| Removed export detected | Removed + BREAKING | High |
| PR label `breaking-change` | Add BREAKING flag | High |
| PR label `security` | Security | High |
| New export detected | Added | Medium |
For commits without conventional prefixes, use diff analysis results to determine the appropriate category.
### Step 7: Synthesize Entries (Enhanced)
**Entry sources (priority order):**
1. PR title (if more descriptive than commit subject)
2. Commit subject
3. Code analysis (for accuracy)
**Entry Format:**
- Start with imperative verb (Add, Fix, Change, Remove, etc.)
- Focus on user impact, not implementation details
- Keep entries concise (one line preferred)
- Include scope in parentheses if helpful: `Add support for (authentication)`
**Breaking change format:**
```markdown
### Removed
- **BREAKING**: Remove deprecated `oldFunction` (use `newFunction` instead)
```
**Group related changes** when multiple commits touch same feature (>50% file overlap).
### Step 8: Present Draft for Review (Enhanced)
**Show summary stats:**
```
Analyzed N commits since vX.Y.Z:
- Files changed: X (Y core, Z tests)
- New APIs detected: X
- Removed APIs detected: X (BREAKING)
- PR context enriched: X of Y
```
**Prominent breaking changes section** (if any detected):
```
BREAKING CHANGES DETECTED:
- Removed `oldFunction` from module.py
- Changed signature of `processData()`
```
**Show the user:**
1. **Existing [Unreleased] entries** (if any)
2. **Suggested new entries** organized by category
3. **Commits analyzed** with brief summary
**Prompt the user:**
```
Based on {N} commits since v{version}, I suggest these changelog entries:
### Added
- Entry 1
- Entry 2
### Fixed
- Entry 3
### Changed
- Entry 4
Would you like to:
```
Options:
- **"Approve all entries"**
- **"Edit entries (tell me what to change)"**
- **"See detailed analysis"**
- **"See code diffs"**
- **"Skip certain entries"**
### Step 9: Update CHANGELOG.md
Once approved, update CHANGELOG.md:
1. Add new entries under the appropriate categories in `[Unreleased]`
2. Create category headings if they don't exist
3. Preserve existing unreleased entries
4. Maintain consistent formatting
**Category Order** (per Keep a Changelog):
1. Added
2. Changed
3. Deprecated
4. Removed
5. Fixed
6. Security
**Sub-project headings:** When a scope is provided in the prompt, place entries under a sub-project heading within `[Unreleased]`:
```markdown
## [Unreleased]
### sdd
#### Added
- New entry scoped to sdd
### agent-alchemy-tools
#### Fixed
- Fix scoped to agent-alchemy-tools
```
Use `###` for sub-project names and `####` for categories within them. If no scope is provided (default behavior), use `###` for categories directly as usual.
## Edge Case Handling
| Scenario | Handling |
|----------|----------|
| No commits since release | Report "No new commits found since {version}" and exit gracefully |
| No tags exist | Use last 50 commits with warning to user |
| gh CLI unavailable | Skip PR enrichment, proceed with git data only |
| PR not found | Continue without that PR's context |
| Massive refactor (100+ fileRelated in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.