- Added priority markers (e.g., "Priority: X of 12") to existing queued TODOs like audit, changelog, profile, scaffold. - Introduced new detailed TODO markdowns for agent integrations: cnotes, git-chglog, gotools, make, pprof, rg, tea. - Enhances planning for grokkit agent tooling ecosystem.
1.6 KiB
1.6 KiB
grokkit agent git-chglog integration
Priority: 11 of 12
Description: Wrapper for git-chglog CLI: generates CHANGELOG.md from conventional commits/tags. AI-enhanced parsing/validation.
Problem It Solves
changelog.md is AI-from-git-log; git-chglog is standard tool—wrapper adds agent control/previews.
Benefits
- Standard: git-chglog config + AI tweaks.
- Validate: Check changelog before release.
- Safe: Dry-run, output preview.
- Integrate: "Generate changelog v0.2.0, commit".
Agent Tool Examples
grokkit agent "Generate changelog for next release from commits"
# Grok: git-chglog --next-tag v0.2.0 → preview → append to CHANGELOG.md
High-Level Implementation
- Detect:
git-chglog --version. - Tool schemas:
generate(tag: string) → changelog_mdvalidate() → issues
- Wrappers in
internal/tools/git-chglog.go:func Generate(ctx context.Context, args map[string]any) (string, error) - Agent integration: Release workflows.
- Safety:
- --dry-run flag.
- Config file respect.
- Config:
[tools.git-chglog.enabled].
Flags / Config
| Key | Description |
|---|---|
tools.git-chglog.enabled |
Enable git-chglog |
Implementation Notes
- Commands:
git-chglog --output CHANGELOG.md --next-tag vX.Y.Z. - Parsing: Markdown output.
- Errors: ChglogError.
- Tests: Mock exec.
- Effort: Low (~110 LOC). Complements changelog.md.
- Prereq: git-chglog installed.
ROI
Medium-High. Release polish:
| Stage | Covered |
|---|---|
| Changelog | git-chglog ← new |
| Release | changelog.md ✓ |