Skip to content

chore(claude): refactor CLAUDE.md into .claude/ structure#6

Merged
s3bc40 merged 6 commits intomainfrom
worktree-chore+claude-config-refactor
Mar 30, 2026
Merged

chore(claude): refactor CLAUDE.md into .claude/ structure#6
s3bc40 merged 6 commits intomainfrom
worktree-chore+claude-config-refactor

Conversation

@s3bc40
Copy link
Copy Markdown
Owner

@s3bc40 s3bc40 commented Mar 30, 2026

Summary

  • Split the 168-line CLAUDE.md into a proper .claude/ directory structure following Claude Code conventions
  • New slim CLAUDE.md (78 lines) keeps only: build/test/lint commands, architecture decisions, subcommand status, sprint state, and what-not-to-touch
  • Extracted conventions into four scoped rules files, each under 50 lines:
    • .claude/rules/python.md — Python conventions, async/httpx, typing, Rich, model resolution
    • .claude/rules/rust.md — PyO3/maturin, clippy, cargo test with PYO3_BUILD_EXTENSION_MODULE=1
    • .claude/rules/testing.md — pytest structure, cargo test, credential mocking
    • .claude/rules/git.md — branch naming, conventional commits, PR workflow, hard stops
  • Added .claude/settings.json with project-specific allow list (uv, cargo, maturin, pytest, ruff, git, gh)

Test plan

  • No instruction from original CLAUDE.md was lost
  • CLAUDE.md is 78 lines (under 100)
  • All rules files are under 50 lines
  • settings.json validates as valid JSON
  • Lint: ruff check + ruff format --check passed
  • Tests: 122 Python tests passed

🤖 Generated with Claude Code

s3bc40 and others added 6 commits March 30, 2026 16:04
Python conventions extracted from CLAUDE.md: runtime, async/httpx,
typing, ruff, Rich output, model resolution, credentials, Rust fallback.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Rust conventions extracted from CLAUDE.md: clippy, crate-type,
PYO3_BUILD_EXTENSION_MODULE, cargo test, versioning, scope.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Testing conventions extracted from CLAUDE.md: pytest structure,
credential mocking, cargo test setup, CI integration.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Git discipline extracted from CLAUDE.md: branch naming, conventional
commits, PR workflow, versioning, hard stops / BLOCKED.md protocol.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Permit uv, cargo, maturin, pytest, ruff, git, gh commands.
Includes \$schema for validation. Deny list is empty (global rules apply).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Remove coding/git/testing conventions (moved to .claude/rules/).
Keep: build commands, architecture decisions, subcommand status,
sprint state, and what-not-to-touch. Adds pointer to rules/ files.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@s3bc40 s3bc40 self-assigned this Mar 30, 2026
@s3bc40 s3bc40 added documentation Improvements or additions to documentation enhancement New feature or request labels Mar 30, 2026
@s3bc40 s3bc40 merged commit 53b995a into main Mar 30, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant