Skip to content

docs: initialize CLAUDE.md with project overview and commands#3

Merged
ameynert merged 1 commit intomainfrom
am_02_claude_md
Apr 13, 2026
Merged

docs: initialize CLAUDE.md with project overview and commands#3
ameynert merged 1 commit intomainfrom
am_02_claude_md

Conversation

@ameynert
Copy link
Copy Markdown
Collaborator

@ameynert ameynert commented Apr 10, 2026

Summary

  • Replaces the template setup placeholder in CLAUDE.md with actual project guidance
  • Documents the dual package-manager setup (uv for the Python toolkit, pixi for the full workspace)
  • Covers common commands, repository layout, CLI registration pattern, tool pipeline execution order, and git/coding conventions

Test plan

  • Review CLAUDE.md content for accuracy

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Updated repository documentation with comprehensive setup guides and contribution guidelines, including environment configuration instructions, repository structure overview, command-line interface patterns, end-to-end tool execution workflows, and module documentation to support developers and contributors.

@ameynert ameynert had a problem deploying to github-actions-snakemake-linting April 10, 2026 22:58 — with GitHub Actions Failure
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 10, 2026

📝 Walkthrough

Walkthrough

The CLAUDE.md file was updated from a basic template setup guide to a comprehensive repository documentation. The new content covers project purpose, environment setup, repository structure, CLI patterns with defopt, tool execution pipelines, and module/data model notes without any code logic changes.

Changes

Cohort / File(s) Summary
Documentation Update
CLAUDE.md
Replaced template setup guidance with full repository-oriented documentation including project purpose, environment commands (uv, pixi), repository layout, CLI/contributor patterns using defopt, tool execution pipeline, and notes on haplotype.py and remap_divref.py modules.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~4 minutes

Poem

🐰 Hop along, dear readers, through docs so bright,
No code was changed, just guidance made right!
From templates plain to wisdom profound,
The path to contribution is crystal-sound.

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: replacing template guidance with a complete project overview and command documentation in CLAUDE.md.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch am_02_claude_md

Comment @coderabbitai help to get the list of available commands and usage tips.

@ameynert ameynert temporarily deployed to github-actions-snakemake-linting April 10, 2026 23:16 — with GitHub Actions Inactive
Base automatically changed from am_01_deps to main April 13, 2026 18:13
Replaces the template setup placeholder with actual project guidance:
environment setup (uv + pixi), common commands, architecture overview,
CLI registration pattern, and tool pipeline execution order.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ameynert ameynert temporarily deployed to github-actions-snakemake-linting April 13, 2026 18:15 — with GitHub Actions Inactive
Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
CLAUDE.md (1)

119-119: ⚠️ Potential issue | 🟠 Major

Fix inconsistent pre-commit command in commit rules.

This line conflicts with Line 19 and will likely fail from repo root without --directory divref. Use the same required command in both places.

Proposed doc fix
-- Run `uv run poe fix-and-check-all` before each commit; all checks must pass
+- Run `uv run --directory divref poe fix-and-check-all` before each commit; all checks must pass
Based on learnings: "Run `uv run --directory divref poe fix-and-check-all` before each commit; all checks must pass".
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@CLAUDE.md` at line 119, Update the inconsistent pre-commit command in
CLAUDE.md so both occurrences match: replace the string "Run `uv run poe
fix-and-check-all` before each commit; all checks must pass" with "Run `uv run
--directory divref poe fix-and-check-all` before each commit; all checks must
pass" to match the command used on Line 19 and ensure running from the repo root
works consistently.
🧹 Nitpick comments (1)
CLAUDE.md (1)

155-158: Consider linking README sync explicitly in this docs PR or a follow-up PR.

You added/changed usage guidance here; adding a short README alignment task/link will keep contributor docs consistent.

Based on learnings: "Update README.md when usage patterns change".

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@CLAUDE.md` around lines 155 - 158, Add an explicit README sync task/link to
the documentation checklist you modified: update the checklist entry "README.md
(if usage patterns changed)" in CLAUDE.md to include either a direct link to the
README update instructions or a TODO that references a follow-up PR/issue for
aligning README usage guidance; ensure the checklist text clearly instructs
contributors to update README when usage patterns change and, if appropriate,
add a short example or link to the README section to be updated so reviewers can
verify README alignment during docs PRs.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@CLAUDE.md`:
- Around line 39-51: The fenced code block showing the repository tree in
CLAUDE.md is missing a language tag and triggers MD040; update the opening fence
for that block from ``` to ```text so the repo tree is treated as plain text
(leave the block content unchanged and keep the closing ``` intact).

---

Outside diff comments:
In `@CLAUDE.md`:
- Line 119: Update the inconsistent pre-commit command in CLAUDE.md so both
occurrences match: replace the string "Run `uv run poe fix-and-check-all` before
each commit; all checks must pass" with "Run `uv run --directory divref poe
fix-and-check-all` before each commit; all checks must pass" to match the
command used on Line 19 and ensure running from the repo root works
consistently.

---

Nitpick comments:
In `@CLAUDE.md`:
- Around line 155-158: Add an explicit README sync task/link to the
documentation checklist you modified: update the checklist entry "README.md (if
usage patterns changed)" in CLAUDE.md to include either a direct link to the
README update instructions or a TODO that references a follow-up PR/issue for
aligning README usage guidance; ensure the checklist text clearly instructs
contributors to update README when usage patterns change and, if appropriate,
add a short example or link to the README section to be updated so reviewers can
verify README alignment during docs PRs.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 80b07fb2-a390-4a42-856f-e38c196d02e5

📥 Commits

Reviewing files that changed from the base of the PR and between ffffd2f and 8b16ab6.

📒 Files selected for processing (1)
  • CLAUDE.md

Comment on lines +39 to +51
```
divref/ # Python package (uv-managed)
divref/
main.py # CLI entry point; registers tools in _tools list
haplotype.py # Shared Hail utilities (HailPath alias, haplotype helpers)
tools/ # One module per CLI subcommand
tests/ # pytest tests
pyproject.toml # Package deps, ruff/mypy/pytest config
workflows/ # Snakemake workflows
download.smk # Template download workflow
config/config.yml # Workflow configuration
pixi.toml # Workspace config (snakemake + hail environments)
```
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Add a language tag to the fenced code block.

This triggers markdownlint MD040 (fenced-code-language). Add text for the repository tree block.

Proposed doc fix
-```
+```text
 divref/                    # Python package (uv-managed)
   divref/
     main.py                # CLI entry point; registers tools in _tools list
@@
 pixi.toml                  # Workspace config (snakemake + hail environments)
</details>

<!-- suggestion_start -->

<details>
<summary>📝 Committable suggestion</summary>

> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

```suggestion

🧰 Tools
🪛 markdownlint-cli2 (0.22.0)

[warning] 39-39: Fenced code blocks should have a language specified

(MD040, fenced-code-language)

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@CLAUDE.md` around lines 39 - 51, The fenced code block showing the repository
tree in CLAUDE.md is missing a language tag and triggers MD040; update the
opening fence for that block from ``` to ```text so the repo tree is treated as
plain text (leave the block content unchanged and keep the closing ``` intact).

@ameynert ameynert merged commit 8d82aa3 into main Apr 13, 2026
4 checks passed
@ameynert ameynert deleted the am_02_claude_md branch April 13, 2026 18:18
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.

1 participant