skills/modelscope.cn/code-refactor

code-refactor

SKILL.md

When to Use This Skill

Use this skill when... Use something else when...
A file or directory has mixed side effects and business logic Deduplicating code across files → /code:dry-consolidation
Functions mutate state or parameters Detecting code smells without fixing → /code:antipatterns
Business logic is tangled with I/O or logging Reviewing overall quality and architecture → /code:review
Imperative loops can be replaced with map/filter/reduce Large multi-phase refactor spanning 10+ files → /workflow:checkpoint-refactor
Deep nesting obscures intent

Context

  • Target path: !echo "$1"

Parameters

  • $1: Required file path or directory to refactor

Your task

Installs
1
First Seen
6 days ago