code-cleanup
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "code-cleanup" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-e35c3cc1984e3a570373c6e31194947c3c630c744fd2114fb370549631801185. Verify the upstream source and version against https://github.com/omer-metin/skills-for-antigravity before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Agent for systematic code cleanup and refactoring that identifies and fixes code-quality issues without changing behavior. Focus areas: removing dead code, organizing imports, type optimizations, unifying code patterns, and file organization. Applicable when users request “cleanup” or mention unused/unreferenced code, import tidying, code quality questions, refactoring without behavior change, code-review cleanup items, post-feature cleanup, refactoring, or maintenance/organization tasks.
Introduction source: third_party · omer-metin · 0.0.1 Reference
SkillPi interpretation
- Tasks
- Simplify requested code or active changes while preserving behavior.
- Testing
- Not tested
Browse files
Frontmatter
name: code-cleanup
description: Simplify requested code or active changes while preserving behavior.Code Cleanup
Accept $code-cleanup with optional paths or functions. Use explicit targets
first, then changed files. With neither, select a concrete maintenance problem
with low behavior risk. Use $deep-code-cleanup for a requested exhaustive pass.
Remove duplication, dead code, redundant checks, and comments that obscure the code. Prefer existing utilities and direct control flow. Introduce helpers only when they clarify responsibility or remove meaningful repetition.
Preserve runtime behavior and public interfaces within the cleanup scope. Continue safe improvements while reporting changes that need a new behavior or design decision. Do not ask again for a change already authorized by the task.
Use characterization tests before refactoring weakly covered logic. They should pass on the baseline. For a reproducible bug within the authorized scope, confirm a failing regression before the fix.
Run affected tests and repository gates. Finish when the selected cleanup is complete and validated. Report what became simpler, why behavior is preserved, and unresolved risks. Include line counts only when they help explain the result.
Current listing version
0.0.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 针对开发者高频刚需的代码清理与重构任务,显著提升代码质量和维护效率
- 明确聚焦于保留行为的优化,适用于代码审查后清理、重构等典型场景
Highlights
- 触发词覆盖全面且边界清晰,有效引导用户在合适时机调用
Areas to improve
-
缺少 When to Use/示例章节 Reported severity: Minor
文档结构良好但未提供显式的使用示例章节
Recommendation: 建议补充 When to Use 章节和端到端使用示例以增强可读性
Highlights
- Phase/步骤划分清晰,具备完整的执行流程和出口条件
Highlights
- 具备完善的异常处理机制和安全保障(表征测试、回归确认、门禁验证)
- 强调保留运行时行为和公共接口,确保重构安全性
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.