changelog
它能做什么
这项技能涵盖 Agent-Native 应用可选的更新日志。它说明何时为用户能够注意到的改动添加条目,以及顶层更新日志文件与带日期的条目文件夹如何协同工作。适合希望设有“新功能”页面的应用团队。
适用场景
- ✓当你发布了用户会注意到的功能、可见的改进或错误修复的时候。
- ✓当你要在应用模板中添加“新功能”界面的时候。
- ✓当你为某个应用发布待处理的更新日志条目的时候。
技能链接
https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/changelog/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“你能为我们刚发布的导出按钮添加一条更新日志条目,让用户可以在“新功能”中看到吗?”
每周 5 个新技能,1 分钟读完。
工作原理
智能体在带日期的文件中为该改动撰写一条简短的、面向用户的条目。只有开启了更新日志选项的应用才会使用这一流程。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Changelog — optional user-facing "What's new"
Changelog generation is off by default. Read this skill only when the app's
agent-native.config.ts enables changelog.enabled; otherwise do not create
pending entries for ordinary app changes.
Every template app keeps a CHANGELOG.md of the 100 most recent
user-facing release sections and a changelog/ folder of dated entry files
for the complete history. The top-level file links to that folder for older
updates at the end of the file. The in-app command menu (Cmd+K → "What's new")
and settings page read both surfaces together, so folder-backed history remains
visible without making the top-level file grow forever.
Package release histories follow the same compact shape: the 100 newest
package release sections stay in the root CHANGELOG.md, while older sections
live in changelog/archive/CHANGELOG.md. The package archive is nested so it
cannot be mistaken for a new app entry by the Vite changelog loader.
When to add an entry
Add an entry whenever you ship something a user of that app would notice:
- a new capability or surface,
- a visible improvement (speed, layout, copy, defaults),
- a bug fix that affects behavior they'd see.
Do not add entries for refactors, internal tooling, tests, dependency bumps, or anything invisible to the end user. The changelog is product notes, not a commit log — write it the way you'd describe the change to a customer.
How to add an entry
From the app directory (the template you changed):
agent-native changelog add "Recordings can be trimmed before sharing" --type added
agent-native changelog add "Faster transcript search" --type improved
agent-native changelog add "Fixed a crash when opening an empty folder" --type fixed
--type is one of added, improved, fixed, changed, removed,
security (aliases like feature, bugfix, enhancement are accepted). This
writes changelog/<date>-<slug>.md — one file per change, so parallel work
never conflicts. You can also hand-write that file; the frontmatter is just:
---
type: added
date: 2026-06-23
---
Recordings can be trimmed before sharing.
Writing good entries
- One user-facing sentence, present tense, no internal jargon or file names.
- Lead with the benefit ("Recordings can be trimmed…"), not the mechanism.
- Markdown is allowed (bold, links) but keep it short — it renders as a bullet.
Releasing
release refreshes the recent 100-section window in CHANGELOG.md from every
dated entry in changelog/. It deliberately keeps the folder files as the
canonical history, so rerunning the command is safe and older updates remain
available to the app and to repository readers:
agent-native changelog release # refreshes today's recent window
agent-native changelog list # preview pending + released
Releasing is usually done at deploy/merge time to keep the top-level summary
current. The in-app surface imports CHANGELOG.md?raw, and the core Vite
plugin merges adjacent changelog/*.md entries into that raw markdown at
dev/build time, so new app notes appear in What's new automatically. Refreshing
the committed app-facing 100-entry window still happens when
agent-native changelog release or pnpm changelog:compact runs. Package Changesets are
wired to run pnpm changelog:compact automatically in the Version Packages
workflow, which also moves older package releases into
changelog/archive/CHANGELOG.md.
Wiring the in-app surface (once per template)
Templates already get the rendering for free from @agent-native/core. To
expose it in an app:
Command menu — pass the app's own changelog to
CommandMenu:import changelog from "../CHANGELOG.md?raw"; // ... <CommandMenu open={cmdkOpen} onOpenChange={setCmdkOpen} changelog={changelog}> {/* existing groups */} </CommandMenu>This adds a "What's new" entry with an unseen-release dot and an in-app dialog — no other wiring needed.
Settings (optional) — drop the card on the settings page:
import { ChangelogSettingsCard } from "@agent-native/core/client/changelog"; import changelog from "../CHANGELOG.md?raw"; // ... <ChangelogSettingsCard markdown={changelog} />
CHANGELOG.md?raw is inlined by Vite at build time, so this works on every
host with no server route or runtime file access.
Checklist
-
changelog.enabledis true and the change i
常见问题
内部重构需要添加条目吗?
不需要。技能说明更新日志用于产品说明,而不是提交日志。
更新日志默认开启吗?
不开启。应用必须先在其配置中启用,才会使用这些条目。
较早的条目放在哪里?
较早的条目会移入带日期的文件夹,顶层文件则链接到它们。
详情
作者的原始描述
How to keep each app's user-facing changelog. Use when you ship a change a user would notice (a new feature, a visible improvement, a bug fix), when wiring the in-app "What's new" surface into a template, or when releasing pending changelog entries. Apps opt in with `changelog.enabled: true` in `agent-native.config.ts`.
repo: BuilderIO/agent-native
热度
- GitHub 星标
- 7.6k
- 排名
- #13144
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …