deslop
Clean only the current Enterprise diff before autoreview, preserving behavior, security boundaries, required TODOs, and useful test-intent comments.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 469
- Forks
- 117
01 前言 Front Matter
- name
- deslop
- description
- Clean only the current Enterprise diff before autoreview, preserving behavior, security boundaries, required TODOs, and useful test-intent comments.
03 SKILL.md 正文
Deslop
Keep cleanup confined to the current diff and strictly behavior-neutral. Use it before requested autoreview; cleanup does not replace correctness or safety review.
For readability choices in the current diff, consult the relevant sections of Readable code on functions, values, composition, and state ownership. Apply those examples within this skill's behavior-neutral scope.
Scope and checklist
Establish the intended branch base from the PR or repository metadata. Inspect committed changes from its merge base to HEAD, plus staged, unstaged, and relevant untracked changes. Preserve unrelated work; never sweep the repository or change the base to make the cleanup larger. Read surrounding code to judge each hunk.
Look for:
- Comments that narrate syntax or repeat code without explaining intent.
- Unnecessary intermediate variables or one-use helpers that add no meaning.
- Type assertions such as
as anyoras unknown as Tthat hide a type problem. - Defensive checks, catch blocks, retries, aliases, or fallbacks that appear inconsistent with the supported contract.
- Naming, imports, formatting, or control flow inconsistent with nearby code and Enterprise style.
These patterns require judgment. Apply only trivial, demonstrably behavior-neutral edits. Removing a guard, catch, retry, fallback, or type cast can change behavior or expose a real type-contract defect: leave uncertain or functional changes in place and report them for separate review. Do not hide errors with wider types or replace security checks with assumptions.
Preserve required intent
Keep real fail-closed checks, authorization and credential boundaries, configuration rejection, and attributable audit behavior. Redundancy alone is not evidence that a security check is removable.
Preserve deferred-work TODOs while the capability remains unimplemented. Preserve integration-test comments that explain scenarios, non-obvious setup, expected outcomes, or security invariants; remove only narration that contributes no such information. Do not label permanent security boundaries as temporary work.
Use enterprise-testing for proportional
verification of edits and run git diff --check. If behavior neutrality cannot
be established, report the candidate instead of applying it as style work.
Summarize in one to three sentences what changed and any non-trivial candidates
left for the author.
Provenance
Adapted from OpenClaw; see source and intentional adaptations.
04 同仓库更多 Skills
oce-google
Use the managed Google Workspace CLI on the dedicated worker.
test-audit
Gate new or changed Enterprise tests and audit existing tests for observable behavior, credible regressions, duplicate coverage, and test-only production seams.
technical-writing
Write, organize, name, edit, or review Enterprise developer documentation, specifications, and technical instructions; ground claims in current source and finish with a plain-language cleanup.
spec
Draft or update OpenClaw Enterprise RFCs and implementation plans with repository numbering and lifecycle rules.
pr-walkthrough
Record a readable Console walkthrough for a pull request. Use when reviewers need to see an interaction, transition, recovery, or keyboard flow.
oceinteg
Run named OpenClaw Enterprise end-to-end integration scenarios against real supported installations. Use only when explicitly invoked.