.agents/skills/changelog/SKILL.md
Generate a .changelog/<PR_NUMBER>.txt entry from a GitHub Pull Request URL, commit it on the current branch, and push only after explicit user confirmation.
Authoritative reference: docs/changelog-process.md. When this skill and that document disagree, the document wins.
Trigger this skill when the user:
https://github.com/hashicorp/terraform-provider-aws/pull/<N> URL and asks for a changelog.Do not trigger for:
CHANGELOG.md directly (that file is generated — never modify it by hand).Do not generate a changelog file if the PR changes do not affect the terraform practitioners in the end.
Do not look at pre-existing changelog files when given the PR, not even if it is present in the diff.
Required:
<PR_NUMBER> with the regex /pull/(\d+).If the user provides only a PR number, ask for the full URL (or confirm the repo is hashicorp/terraform-provider-aws).
Print the generated file contents back to the user.
Run:
git add .changelog/<PR_NUMBER>.txt
git commit -m "Add CHANGELOG for #<PR_NUMBER>"
Stop and ask: "Ready to push to the current branch?" Only run git push after the user confirms.
Never run git push --force, --force-with-lease, or --no-verify. Never switch or create branches.