name: safe-pr description: Use this skill whenever Claude needs to create a feature branch, commit a batch of repo changes, push it, and open a GitHub PR while preventing financial statements, transaction exports, verification artifacts, or local trading profile files from being staged.
Safe PR
This workflow publishes harness changes without leaking financial data.
Steps
- Inspect branch and repo state:
git status --short --branchgit remote -v- detect the base branch, preferring
origin/main.
- Confirm there are changes to publish. Stop if the only changes are ignored financial data.
- Create or switch to a feature branch:
- If on
mainormaster, createagent/<short-summary>-YYYYMMDD-HHMM. - If already on a feature branch, continue only after confirming it is the intended branch.
- If on
- Stage only harness files:
.claude/**CLAUDE.mdREADME.md.gitignore.gitattributes.gitkeepplaceholders
- Before committing, run:
git diff --cached --name-onlygit diff --cached --checkgit status --ignored --short
- Refuse to proceed if any staged path is inside
statements/,work/, orexports/other than.gitkeep, or if any staged path istrading.MD. - Commit with a concise message, push the feature branch, and open a PR against
mainusinggh pr create.
Notes
- Never use force push unless the user explicitly asks.
- Never add ignored files with
git add -f. - Include a PR summary of harness changes and a data-safety note.