Inspect the repository and interactively create or update ralph.toml so Ralph has canonical test, build, lint, and format commands without depending on a package manager
Arguments: $ARGUMENTS
Create or update ralph.toml as the canonical Ralph command registry for the current repository.
The registry should map Ralph command roles to the repository's existing commands. Keep the registry stack-agnostic: Ralph standardizes the role names, while each repository keeps its own task runner.
Use these keys:
test_primarytest_integrationbuild_checklint_checkformat_fixUse the literal string "N/A" when a role does not apply.
Read these first:
ralph.toml if it already existsCLAUDE.mddocs/architecture.mdThen inspect common task-runner files only as needed, such as:
package.jsonMakefilejustfilepyproject.tomlCargo.tomlgo.modcomposer.jsonFind the best existing command for each Ralph role.
Selection rules:
ralph.toml if it already contains a valid mappingAsk the user only when a role is missing or multiple commands are plausible.
If $ARGUMENTS contains constraints such as "do not use npm as canonical", honor them by keeping the registry as the source of truth and treating npm, make, just, cargo, pytest, and similar tools as underlying implementations only.
Update ralph.toml with the final mappings.
Rules:
"N/A" explicitly instead of leaving keys blankAfter updating the registry, make sure these files point to it as the source of truth:
CLAUDE.mddocs/architecture.mdIf those docs already list concrete commands, rewrite them in terms of the registry roles and note the current underlying commands only as implementation details.
Summarize:
ralph.toml mappings"N/A"ralph.toml