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.
17 lines
1016 B
Markdown
17 lines
1016 B
Markdown
# 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` (or `scripts/fmt.sh --check` for CI-style checks). From this `rust/` directory, the equivalent command is `../scripts/fmt.sh`. Root-level `cargo fmt --manifest-path rust/Cargo.toml` is not the supported formatting command.
|
|
- From this `rust/` directory, run Rust verification with `cargo clippy --workspace --all-targets -- -D warnings` and `cargo 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.json` for machine-local overrides.
|
|
- Do not overwrite existing `CLAUDE.md` content automatically; update it intentionally when repo workflows change.
|