This repository normally lands work by committing and pushing directly to main.
- Do not create a branch or PR by default.
- Use a branch and PR only when the user explicitly asks for one or when an external review flow requires it.
- Keep each change small, scoped, and easy to review from the final commit diff.
-
Run the relevant checks from
TESTING.md. -
Review the exact diff you plan to ship:
git status git diff
-
Stage only the intended files:
git add <path>
-
Create a focused commit:
git commit -m "docs: refresh change workflow guidance" -
Rebase onto the latest remote state:
git pull --rebase
-
Push the finished commit:
git push
- If the working tree contains unrelated local edits, do not mix them into the same commit.
- If
git pull --rebasereports conflicts, resolve them beforegit push.
Use this path only when a branch is explicitly required.
Start from main and create a short descriptive branch:
git switch -c docs/change-workflow<type>/<short-description>
| Type | When to use | Example |
|---|---|---|
feature/ |
New functionality | feature/skill-routing-audit |
fix/ |
Bug fixes | fix/stealth-mode-detection |
chore/ |
Maintenance, deps, CI | chore/update-bun-lock |
docs/ |
Documentation only | docs/change-workflow |
refactor/ |
Code restructuring | refactor/service-layer |
Rules:
- lowercase, hyphens only
- keep it short — 3-5 words max
- include an issue ID when it helps:
fix/123-null-pointer-in-config
-
Run the relevant checks from
TESTING.md. -
Push the branch:
git push -u origin <branch-name>
-
Open the PR with GitHub CLI:
gh pr create --title "docs: refresh change workflow guidance" --body-file - <<'EOF'
- explain what changed and why
- list the commands you ran from docs/TESTING.md
EOF
- Use a conventional-commit-style PR title such as
docs: refresh change workflow guidance. - Explain the why in the PR summary, not just the file list.
- Keep PRs small enough to review from the final diff.
- Review your own diff before requesting review.
Suggested PR body shape:
## Summary
<1-3 bullet points explaining what changed and why>
## Testing
<commands from docs/TESTING.md that were run>Focus on, in order:
- correctness
- edge cases
- architecture consistency with
CODING.md - naming clarity
- meaningful verification from
TESTING.md
- respond to every review comment
- push follow-up fixes as new commits
- do not force-push during review unless the reviewer explicitly asks for it
- default path for this repo: direct commits to
main - if a PR is used, squash and merge to
main - delete the branch after merge