ddflow_precommit
Generate a .pre-commit-config.yaml matched to your repository's stacks, with pinned hooks plus ddflow checks, so the pre-commit framework owns .git/hooks. Writes only if none exists.
Instructions
A .pre-commit-config.yaml proposed for THIS repository: the stacks it actually has (Python, shell, Docker, JS, Go, Rust; YAML/TOML/JSON files add their checks) mapped to pinned hooks, plus ddflow's own check-commit and check-msg as local hooks, so the pre-commit framework, not ddflow, owns .git/hooks/ (ddflow's own hooks, if installed, are named: remove them before pre-commit install, which would keep them as duplicates). Proposes; installs nothing. write creates the file and is REFUSED (exit 3) when one exists -- merge by hand. The body names programs the hooks need that this machine lacks (missing) and whether the hooks can reach ddflow (ddflow_cmd_found). Installing pre-commit itself is the operator's call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| write | No | Create the file; never replaces an existing one. | |
| as_agent | No | Subagent sharing the parent's connection: your own stable name, for this call only (see ddflow_identify). | |
| ddflow_cmd | No | How the local hooks reach ddflow (default `ddflow` on PATH). |