mirror of
https://github.com/ultraworkers/claw-code.git
synced 2026-05-01 01:20:17 +08:00
Make scripts/fmt.sh robust to caller cwd and document it as the supported repo-root formatting entrypoint for the Rust workspace.
1016 B
1016 B
CLAUDE.md
This file provides guidance to Claw Code (clawcode.dev) when working with code in this repository.
Detected stack
- Languages: Rust.
- Frameworks: none detected from the supported starter markers.
Verification
- From the repository root, run Rust formatting with
scripts/fmt.sh(orscripts/fmt.sh --checkfor CI-style checks). From thisrust/directory, the equivalent command is../scripts/fmt.sh. Root-levelcargo fmt --manifest-path rust/Cargo.tomlis not the supported formatting command. - From this
rust/directory, run Rust verification withcargo clippy --workspace --all-targets -- -D warningsandcargo test --workspace.
Working agreement
- Prefer small, reviewable changes and keep generated bootstrap files aligned with actual repo workflows.
- Keep shared defaults in
.claw.json; reserve.claw/settings.local.jsonfor machine-local overrides. - Do not overwrite existing
CLAUDE.mdcontent automatically; update it intentionally when repo workflows change.