Clavue Ability · Capability catalog
Skill · Engineering

Code Refactor & Smell Removal

Spot code smells and propose safe, incremental refactors with behavior preserved.

Executive Summary

Short answer: Spot code smells and propose safe, incremental refactors with behavior preserved.. Input is Code snippet or file, language, test coverage; output is Smell list, refactor plan, refactored code.

Capabilities on this page come from Clavue Bot's built-in catalog; no 1:1 alignment with any third-party product is claimed.

Commercial ROI & Use Cases

Business value:

Code Refactor & Smell Removal reduces repeated manual work and gets a reviewable result faster.

  • Demand topics: Coding & DevOps

Input/Output Contract

InputOutputTools / Connectors
Code snippet or file, language, test coverageSmell list, refactor plan, refactored codeCode · Files · GitHub

Connect tools first · Actions like sending mail or making payments always ask for your confirmation first.

Workflow & Instructions

1

Scan for long functions, duplication and deep nesting.

2

Rank smells by risk and payoff.

3

Propose small behavior-preserving transformations.

4

Ensure tests exist before changing code.

5

Present the refactored version with a short rationale.

Actions like sending mail or making payments always ask for your confirmation first.

SKILL.md

# Code Refactor & Smell Removal

> Spot code smells and propose safe, incremental refactors with behavior preserved.

## Input/Output Contract

- **Input:** Code snippet or file, language, test coverage
- **Output:** Smell list, refactor plan, refactored code

## Workflow & Instructions

2. Scan for long functions, duplication and deep nesting.
4. Rank smells by risk and payoff.
6. Propose small behavior-preserving transformations.
8. Ensure tests exist before changing code.
10. Present the refactored version with a short rationale.

## Starter Prompt

```text
Find code smells in this module and refactor them safely.
```

Starter Prompt

Find code smells in this module and refactor them safely.

FAQ

Is this a real capability in Clavue Bot?

Yes. This page is generated from the product's built-in catalog; names, inputs/outputs and steps correspond to real scenarios, skills, MCP tools or digital employees.

Do I need to configure extra tools or connectors?

Entries marked 'Ready to use' need no extra tools. 'Needs tools' entries list the required connectors — just authorize them on first run.

Will it send emails or make payments without confirmation?

No. Outbound actions such as sending mail, making payments or submitting forms pause for your confirmation and continue only after you approve.

View Markdown source