### After: Concise Comment Example Source: https://github.com/alex-kopylov/commentwall/blob/main/README.md Shows the same code with a concise comment that avoids the wall. This is the desired style that commentwall enforces. ```python # Avoids retry synchronization # that would spike load. delay = base_delay * (2 ** attempt) delay += random.uniform(0, delay * retry_jitter) ``` -------------------------------- ### commentwall CLI Usage Example Source: https://github.com/alex-kopylov/commentwall/blob/main/README.md Example command to run commentwall on a Python file. It fails files with comment walls exceeding the specified max-lines limit. The output shows the reported issue with code CW001 and the exit code is 1 when anything is reported, 0 otherwise. ```console $ commentwall --max-lines 5 src/app.py src/app.py:12:1: CW001 Standalone comment block of 9 lines exceeds max-lines 5 ``` -------------------------------- ### Install with mise: ubi:Alex-Kopylov/commentwall Source: https://github.com/alex-kopylov/commentwall/blob/main/README.md Adds the commentwall tool to a mise project configuration. Requires mise to be installed. The version is set to 'latest'. ```TOML [tools] "ubi:Alex-Kopylov/commentwall" = "latest" ``` -------------------------------- ### Before: Comment Wall Example Source: https://github.com/alex-kopylov/commentwall/blob/main/README.md Shows a wall of standalone comments that commentwall would flag. The comments explain the retry logic in detail, which is the kind of verbose narration the tool aims to prevent. ```python # Retry window correction — see # NET-RETRY-017. # # The retry scheduler uses exponential # backoff, which is mathematically # correct but can cause many workers # that failed at roughly the same time # to retry together. In practice this # creates short request spikes and can # make an already overloaded service # worse. # # Add a small random offset to each # delay so retries are spread across # the window instead of clustering # around the same timestamps. # # Revisit this if the backoff strategy, # worker count, timeout policy, or # upstream rate limits change. delay = base_delay * (2 ** attempt) delay += random.uniform(0, delay * retry_jitter) ``` -------------------------------- ### Example commentwall violation report and agent instruction Source: https://github.com/alex-kopylov/commentwall/blob/main/README.md Shows the output when a commit hook fails due to a comment block exceeding the limit. The report includes the file, line, column, code CW001, and a message instructing the agent to run the format-comments skill. The sentence has no '/' or '$' so it works with both Claude Code and Codex. ```text src/app.py:12:1: CW001 Standalone comment block of 9 lines exceeds max-lines 5 Run the `format-comments` skill with the report above as its scope. The flagged blocks are the whole scope. Leave every other comment alone. ``` -------------------------------- ### commentwall CLI usage syntax Source: https://github.com/alex-kopylov/commentwall/blob/main/README.md Shows the command-line usage for commentwall. Options include --max-lines N, --format, and --remove. The default max-lines is 5, or 0 with --remove. ```text commentwall [--max-lines N] [--format | --remove] ... ``` -------------------------------- ### prek/pre-commit hook configuration for commentwall Source: https://github.com/alex-kopylov/commentwall/blob/main/README.md Configures commentwall as a local pre-commit hook with the --format flag. The hook runs on Python files and uses the system language. Without a flag, it acts as a plain linter that fails the commit without modifying code. ```YAML repos: - repo: local hooks: - id: commentwall name: commentwall (comment blocks) entry: commentwall --format language: system types: [python] ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.