一键导入
hk-changelog
Generate changelog entries from git diffs, prepend to CHANGELOG.md, and optionally commit + PR. Use when the user wants to update the changelog.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate changelog entries from git diffs, prepend to CHANGELOG.md, and optionally commit + PR. Use when the user wants to update the changelog.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Audit the fable roadmap (docs/fable_roadmap/) — verify claimed progress with proof, write a short report, update RESUME state + BACKLOG rank. Use at wave close or whenever the user asks how roadmap development is going. Triggers on - 'fable audit', 'roadmap audit', 'how is the roadmap going', 'audit progress', or /fable-audit.
Run a scout wave over outside sources (links, blogs, trending repos) into a progressive-disclosure research wiki in the current project, then distill findings into the project's ideas/backlog file. Generic across projects. Use when the user shares links/blogs to research, asks to "scout", "build a wiki from these", or wants outside ideas funneled into planning. Triggers on - 'scout wave', 'wiki scout', 'research these links', 'update the wiki', or /hk-scout-wiki.
Create and maintain a shift-handover HTML changelog artifact — a page the returning human reads in two minutes to know everything that happened while they were away. Generic across projects. Use when working autonomously for an away user, when asked for a changelog/progress page/catch-up artifact, or at every meaningful transition once one exists. Triggers on - 'changelog artifact', 'progress page', 'what happened while I was away', 'keep me posted in html', or /hk-shift-changelog.
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. Triggers on: 'create a skill', 'new skill', 'make a skill for', 'improve this skill', 'test this skill', 'skill eval', 'optimize skill description', or /hk-skill-creator.
Run comprehensive agent-native architecture review with scored principles. Audits a codebase against 8 agent-native architecture principles (Action Parity, Tools as Primitives, Context Injection, Shared Workspace, CRUD Completeness, UI Integration, Capability Discovery, Prompt-Native Features) by launching parallel sub-agents and producing a scored report. Use when the user wants to evaluate how agent-friendly their architecture is, or audit specific principles. Triggers on: 'agent native audit', 'architecture review', 'how agent-friendly is this', or /hk-arch-audit.
Audit whether an AI agent can autonomously close the loop on problems in a given area — from discovering a symptom to verifying a fix — without human intervention. Evaluates documentation, diagnostic tools, commands, logs, and flows for completeness and actionability. Generates a gap-focused report with ratings. Use this skill whenever someone wants to assess debugging readiness, check if docs are agent-sufficient, audit a workflow for autonomous solvability, evaluate operational tooling coverage, or wants to know 'could an agent fix this on its own?' Triggers on: 'loop audit', 'audit this flow', 'is this debuggable', 'agent readiness', 'can an agent solve this', 'autonomous debugging check', or /hk-autonomy-audit.
| name | hk-changelog |
| description | Generate changelog entries from git diffs, prepend to CHANGELOG.md, and optionally commit + PR. Use when the user wants to update the changelog. |
| argument-hint | ["--dry-run | --commit"] |
| allowed-tools | Bash, Read, Edit, Write, Task |
Generate a changelog entry from git changes, prepend it to CHANGELOG.md, and optionally commit + raise a PR.
/hk-changelog → full flow: write + commit + PR
/hk-changelog --dry-run → print the entry only (no file changes)
/hk-changelog --commit → write + commit (no PR)
Arguments are passed via $ARGUMENTS.
Check $ARGUMENTS for --dry-run or --commit. Default behavior (no args) is the full flow: write, commit, and open a PR.
Run these commands to collect the raw material. This is mechanical — just capture the output:
# What branch are we on?
git rev-parse --abbrev-ref HEAD
# Commits on this branch that aren't on main
git log main..HEAD --oneline --no-merges 2>/dev/null
# File-level summary
git diff --stat main...HEAD 2>/dev/null
git diff main...HEAD --name-status 2>/dev/null
# Unstaged/untracked
git diff --stat HEAD
git diff --name-status HEAD
git status --short | grep "^??"
If there are no commits diverging from main AND no staged/unstaged changes, tell the user there's nothing to changelog and stop.
If on main with no diverging commits, fall back to diffing against the previous commit:
git log -1 --oneline
git diff HEAD~1 --stat
git diff HEAD~1 --name-status
Also read the existing CHANGELOG.md so the subagent can match the format.
Use the Task tool with subagent_type: "general-purpose" and model: "haiku" to do the heavy lifting. The subagent reads diffs, understands the changes, and generates the changelog entry.
Pass the subagent a prompt containing:
CHANGELOG.md content (for format reference)The subagent prompt must include these instructions:
Read actual diffs by subsystem. File names alone are not enough — read the actual diffs to understand what changed. Group by subsystem:
# Backend / orchestrator / CLI
git diff HEAD -- odin/src/ taskit/taskit-backend/
# Frontend — read separately, easy to miss
git diff HEAD -- taskit/taskit-frontend/src/
# Types, models, migrations
git diff HEAD -- taskit/taskit-frontend/src/types/ taskit/taskit-backend/tasks/models.py taskit/taskit-backend/tasks/migrations/
# Docs and config
git diff HEAD -- odin/docs/ odin/AGENTS.md odin/claude.md odin/README.md docs/
# Tests
git diff HEAD -- odin/tests/ taskit/taskit-backend/tests/
For new untracked files, read them to understand what they add. If a diff group is very large (>500 lines), skim the first 300 lines and the --stat for that group.
Generate a changelog entry in this format:
## YYYY-MM-DD — [Short Human-Friendly Title]
**`<short-hash>`** — [plain-English summary of the theme]
### Added
- [what's new, described in terms of capability]
### Changed
- [what works differently now — user/developer impact]
### Deleted
- [what's gone]
---
Rules:
executingTimeMs field to Task type in types/index.ts"Return ONLY the markdown entry (from ## to ---), nothing else.
Take the entry returned by the subagent.
If --dry-run: Print the generated entry to the user and stop. Do not modify any files.
Otherwise: Prepend the new entry to CHANGELOG.md immediately after the # Changelog — harness-kit title line (line 1) and its following blank line. Use the Edit tool to insert the new content.
--dry-run)# Create a changelog branch if not already on one
git checkout -b changelog/$(date +%Y-%m-%d) 2>/dev/null || true
# Stage and commit
git add CHANGELOG.md
git commit -m "docs: update CHANGELOG.md"
Only if running in default mode (no --dry-run, no --commit):
git push -u origin HEAD
gh pr create \
--title "docs: update CHANGELOG.md" \
--body "$(cat <<'EOF'
## Summary
- Auto-generated changelog entry from recent changes
## Content
[Paste the generated changelog entry here]
🤖 Generated with [Claude Code](https://claude.com/claude-code)
EOF
)"
Return the PR URL to the user.
Tell the user what was done:
/hk-changelog to write and PR it."changelog/YYYY-MM-DD."