Repository navigation
chore: add Claude Code standards, skills, and hooks - #401
Merged
Merged
Conversation
Add CLAUDE.md (77 lines) with project conventions, PR format, testing (45% coverage, test labels), and CI checks. Add 3 Claude Code skills for contributors: - /review-pr: review PRs against project standards (type hints, test labels, 45% coverage threshold) - /pre-review: self-check before opening a PR (lint, tests, title) - /draft-pr: generate PR title and description from branch changes Add .claude/settings.json with hooks: SessionStart (branch/PR context), PreToolUse (block .env edits), PostToolUse (auto ruff format on .py). Add .claude/rules/python-style.md with path-scoped Python rules. Add Conventional Commits title validation to pr-check.yml with anti-pattern examples from real PR history. Update .gitignore to track .claude/skills/, rules/, settings.json.
itsarbit
requested review from
luyunan0404 and
xinyang-articulate
as code owners
March 24, 2026 14:26
- Allow single-level relative imports (from .module), disallow multi-level - Add "in raw markdown format" to draft-pr output - Refocus review-pr on functional changes (logic, security, scope, tests) instead of formatting (CI handles ruff/pre-commit)
xinyang-articulate
approved these changes
Mar 24, 2026
|
|
||
| ### 5. Remind about test labels | ||
|
|
||
| The contributor must attach one of these labels after creating the PR: |
Collaborator
There was a problem hiding this comment.
Those tests labels are not mandatory, and some are outdated. Shall we remove them?
Similar for other skills mentioning those labels
Contributor
Author
There was a problem hiding this comment.
Removed test label references from draft-pr, review-pr, and CLAUDE.md. Tests run automatically on PRs now.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add Claude Code standards for contributors with CLAUDE.md, skills, hooks, rules, and CI title validation.
Description
Adds CLAUDE.md (77 lines) with project conventions including PR format, testing with 45 percent coverage and test labels, and CI checks. Adds three Claude Code skills for contributors: review-pr for reviewing PRs against standards, pre-review for self-checking before opening a PR, and draft-pr for generating PR title and description. Adds hooks for auto-format with ruff and env file protection. Adds Conventional Commits title validation to pr-check.yml with anti-pattern examples. Updates gitignore to track claude shared files.
Tests
Reviewers
@arklexai/agent-leads