Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
claude: Move the self-review checklist into a skill.
Evy Kassirer96d64a8291b4
diff --git a/.claude/CLAUDE.md b/.claude/CLAUDE.mdindex 3e1a363d7b8..493323fd299 100644--- a/.claude/CLAUDE.md+++ b/.claude/CLAUDE.md@@ -143,6 +143,9 @@ specific test collections, not the entire test suite:./tools/test-backend zerver.tests.test_relevant_module```+Run through the `/self-review` skill's checklist before suggesting opening+a PR (`.claude/skills/self-review/SKILL.md`).+## Before You Start### Read the Relevant Documentation@@ -262,30 +265,6 @@ If a PR makes frontend changes, manually verify the affected UIusing the checklist in `.claude/rules/ui-testing.md` (loadedautomatically when you work on frontend files).-## Self-Review Checklist--Before finalizing, verify:--- [ ] The PR addresses all points described in the issue-- [ ] All relevant tests pass locally-- [ ] Code follows existing patterns in the codebase-- [ ] Names (functions, variables, tests) are clear and greppable-- [ ] Commit messages, comments, and PR description are well done.-- [ ] Each commit is a minimal coherent idea-- [ ] No debugging code or unnecessary comments remain-- [ ] Type annotations are complete and correct-- [ ] User-facing strings are tagged for translation-- [ ] User-facing error messages are clear and actionable-- [ ] No secrets or credentials are hardcoded-- [ ] Documentation is updated if behavior changes-- [ ] Refactoring is complete (`git grep` for remaining occurrences)-- [ ] Security audit of changes. Always check for XSS in UI changes- and for incorrect access control in server changes.--Always output a recommend pull request summary+description that-follow's Zulip's guidelines once you finish preparing a series of-commits.-## Common Pitfalls### Treating Known Issues as Acceptablediff --git a/.claude/skills/self-review/SKILL.md b/.claude/skills/self-review/SKILL.mdnew file mode 100644index 00000000000..5dc98033d2e--- /dev/null+++ b/.claude/skills/self-review/SKILL.md@@ -0,0 +1,28 @@+---+name: self-review+description: "Zulip's self-review checklist. Use when you believe a branch is complete, before presenting the work or opening a PR."+---++# Self-Review Checklist++Before finalizing, verify:++- [ ] The PR addresses all points described in the issue+- [ ] All relevant tests pass locally+- [ ] Code follows existing patterns in the codebase+- [ ] Names (functions, variables, tests) are clear and greppable+- [ ] Commit messages, comments, and PR description are well done.+- [ ] Each commit is a minimal coherent idea+- [ ] No debugging code or unnecessary comments remain+- [ ] Type annotations are complete and correct+- [ ] User-facing strings are tagged for translation+- [ ] User-facing error messages are clear and actionable+- [ ] No secrets or credentials are hardcoded+- [ ] Documentation is updated if behavior changes+- [ ] Refactoring is complete (`git grep` for remaining occurrences)+- [ ] Security audit of changes. Always check for XSS in UI changes+ and for incorrect access control in server changes.++Always output a recommend pull request summary+description that+follow's Zulip's guidelines once you finish preparing a series of+commits.