Skip to content

chore: add Claude Code standards, skills, and hooks - #401

Merged
itsarbit merged 3 commits into
mainfrom
feat/claude-code-standards
Mar 24, 2026
Merged

itsarbit merged 3 commits into
mainfrom
feat/claude-code-standards

Conversation

@itsarbit

@itsarbit itsarbit commented Mar 24, 2026 •

Copy link
Copy Markdown
Contributor

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

  • CLAUDE.md loads correctly (77 lines, starts with heading)
  • Skills appear in autocomplete (review-pr, pre-review, draft-pr)
  • All skill frontmatter valid (name, description, disable-model-invocation, allowed-tools, context fork, agent Explore)
  • No internal references in any file (Linear, Slack, private repos)
  • Gitignore tracks skills, rules, settings.json correctly
  • CI title validation job added to pr-check.yml

Reviewers

@arklexai/agent-leads

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 itsarbit changed the title chore: add Claude Code standards, skills, hooks, and CI title validation chore: add Claude Code standards, skills, and hooks Mar 24, 2026
- 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)
Comment thread .claude/skills/draft-pr/SKILL.md Outdated

### 5. Remind about test labels

The contributor must attach one of these labels after creating the PR:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those tests labels are not mandatory, and some are outdated. Shall we remove them?

Similar for other skills mentioning those labels

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed test label references from draft-pr, review-pr, and CLAUDE.md. Tests run automatically on PRs now.

@itsarbit
itsarbit merged commit ea22ff3 into main Mar 24, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants