propose_commit
Validate and save code files by enforcing strict formatting rules, including header comments, nesting depth, and file length limits, while creating restore points for safety.
Instructions
The ONLY way to write code. Validates the code against strict rules before saving: 2-line header comments, no inline comments, max nesting depth, max file length. Creates a shadow restore point before writing. REJECTS code that violates formatting rules.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Where to save the file (relative to project root). | |
| new_content | Yes | The complete file content to save. |