code-clean-commentslisted
Install: claude install-skill rp1-run/rp1
# Comment Cleaner
Resolves a user scope into a durable change-manifest artifact, then spawns the comment-cleaner agent with only `CHANGE_MANIFEST` and `CODE_ROOT`.
The comment-cleaner agent remains manifest-only. Never pass `SCOPE`, `BASE_BRANCH`, branch, unstaged, or commit-range parameters to it.
## 1. Resolve Directories
Use generated Resolve Arguments directory values. Resolve `{resolved_code_root}` to `CODE_ROOT` when it is non-empty; otherwise use `{codeRoot}`. Use `{workRoot}` for the durable artifact directory.
Create the manifest directory if needed:
```bash
mkdir -p "{workRoot}/comment-clean-comments"
```
Choose the next numbered manifest/status path pair:
```text
{workRoot}/comment-clean-comments/change-manifest-001.json
{workRoot}/comment-clean-comments/change-manifest-status-001.json
```
Increment the number if either file already exists. Set `resolved_change_manifest_path` and `resolved_change_manifest_status_path` to the selected pair.
## 2. Generate Manifest
Delegate all scope resolution to the typed generator:
```bash
rp1 agent-tools change-manifest generate \
--code-root "{resolved_code_root}" \
--out "{resolved_change_manifest_path}" \
--status-out "{resolved_change_manifest_status_path}" \
--source code-clean-comments \
--scope "{SCOPE}"
```
Parse the `ToolResult` envelope into `cleanup_manifest_result`. The generator is responsible for existing manifest JSON, file, directory, git ref, and git range scopes. Do not inspect files, walk