.claude/skills/merge-and-doc/SKILL.md
Merge a PR and update documentation in one workflow. Use when: (1) Ready to merge a PR and want to update roadmap/changelog, (2) Need to verify merge success before documenting, (3) Want atomic merge + doc commits. Handles gh pr merge, verification, kanban updates, and session notes in sequence.
npx skillsauth add Dbochman/dotfiles merge-and-docInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Merging PRs and updating documentation are separate steps that often get interrupted mid-way, leaving docs out of sync with merged code. Sessions end after the merge but before the roadmap or changelog gets updated.
gh pr view <PR_NUMBER> --json state,mergeable,reviews,title,body
Check that:
gh pr merge <PR_NUMBER> --squash --delete-branch
Use --squash by default (per project conventions). Add --admin if user has rights and wants to bypass checks.
git fetch origin main
git log --oneline -1 origin/main
Confirm the merge commit appears and matches the PR title.
git checkout main
git pull origin main
Based on the PR content, update relevant docs:
For feature PRs:
# Move kanban card to changelog
npm run kanban:move -- --board=roadmap --card=<card-id> --to=changelog
npm run precompile-kanban
For bug fixes:
For all PRs:
git add .
git commit -m "docs: update roadmap after PR #<NUMBER> merge
Moved <card-name> to changelog.
Co-Authored-By: Claude Opus 4.5 <[email protected]>"
git push origin main
| Argument | Required | Description |
|----------|----------|-------------|
| PR number | Yes | The PR to merge (e.g., 123 or #123) |
| --admin | No | Bypass branch protection (requires admin rights) |
| --no-doc | No | Skip documentation updates |
/merge-and-doc 215
/merge-and-doc #215 --admin
/merge-and-doc 215 --no-doc
After completion:
npm run precompile-kanban passes validationPR not mergeable:
--admin or fix issues firstMerge fails:
gh pr view to diagnoseDoc update fails:
--squash merge per project conventionsdevelopment
Search the web for current information, news, facts, and answers. Use when asked questions about current events, needing to look something up, finding websites, researching topics, or when you need up-to-date information beyond your training data.
development
Summarize any URL, YouTube video, podcast, PDF, or file into concise text. Use when asked to read an article, summarize a link, get the gist of a video or podcast, extract content from a URL, or when you need to understand what a web page or document contains.
development
Play music via Spotify and control Google Home speakers. Use when asked to play music, songs, artists, playlists, podcasts, or control speakers/volume/audio.
testing
Create new OpenClaw skills, modify and improve existing skills, and measure skill performance with evals. Use when users want to create a skill from scratch, update 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. Also use when asked to "make a skill", "turn this into a skill", "improve this skill", or "test this skill".