feat(functions): add claude-docs and claude-pr helper functions #10

Merged
rootiest merged 1 commits from feat/claude-helper-functions into main 2026-05-08 17:39:41 +00:00
Owner

Summary

  • Add claude-docs function: triggers Claude Code to analyze recent session changes and sync README.md to match
  • Add claude-pr function: triggers Claude Code to create a branch, commit with a Conventional Commit message, self-verify, push, and open a PR
  • Add .claude to .gitignore to prevent Claude Code project files from being tracked
  • Document both new functions in README.md under the Claude AI section

Manual Verification

  • Source the fish config (source ~/.config/fish/config.fish) or open a new terminal
  • Run type claude-docs — confirm it shows the function definition
  • Run type claude-pr — confirm it shows the function definition
  • In a git repo with staged or unstaged changes, run claude-pr and verify Claude creates a branch, commits, pushes, and opens a PR
  • In a git repo after making changes, run claude-docs and verify Claude updates README.md to reflect current features
  • Confirm .claude appears in .gitignore and that git status does not track .claude/ files
  • Open README.md and verify claude-docs and claude-pr appear in the Claude AI functions table with correct descriptions
## Summary - Add `claude-docs` function: triggers Claude Code to analyze recent session changes and sync `README.md` to match - Add `claude-pr` function: triggers Claude Code to create a branch, commit with a Conventional Commit message, self-verify, push, and open a PR - Add `.claude` to `.gitignore` to prevent Claude Code project files from being tracked - Document both new functions in `README.md` under the Claude AI section ## Manual Verification - [x] Source the fish config (`source ~/.config/fish/config.fish`) or open a new terminal - [x] Run `type claude-docs` — confirm it shows the function definition - [x] Run `type claude-pr` — confirm it shows the function definition - [x] In a git repo with staged or unstaged changes, run `claude-pr` and verify Claude creates a branch, commits, pushes, and opens a PR - [x] In a git repo after making changes, run `claude-docs` and verify Claude updates `README.md` to reflect current features - [x] Confirm `.claude` appears in `.gitignore` and that `git status` does not track `.claude/` files - [x] Open `README.md` and verify `claude-docs` and `claude-pr` appear in the Claude AI functions table with correct descriptions
rootiest added 1 commit 2026-05-08 17:38:16 +00:00
Add two Claude Code helper functions to streamline common dev workflows:
- `claude-docs`: triggers Claude to sync README.md with recent session changes
- `claude-pr`: triggers Claude to create a branch, commit, push, and open a PR

Also add `.claude` to .gitignore and document both functions in README.md.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
rootiest merged commit 9f524694cb into main 2026-05-08 17:39:41 +00:00
rootiest deleted branch feat/claude-helper-functions 2026-05-08 17:39:41 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: rootiest/fish-config#10