Skip to content
Back to skills

Clarity Refactor

ASecurity

Simplify proven behavior when control flow, duplication, or indirection increases understanding cost.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 13, 2026
ai-agents

Security analysis

A100/100

Scanned October 13, 2026

npx -y skills add sujith011/agentic-pro-skills --skill clarity-refactor --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Clarity Refactor?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Clarity Refactor
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sujith011-clarity-refactor/badge)](https://www.skillsdirectory.com/skills/sujith011-clarity-refactor)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: clarity-refactor
description: "Simplify proven behavior when control flow, duplication, or indirection increases understanding cost."
---

# Clarity Refactor
Remove concepts the reader must hold, rather than merely relocating code.

## Process
1. Establish the observable behavior and relevant passing baseline.
2. Identify one source of understanding cost: repeated branching, hidden state, misleading types, or pass-through abstraction.
3. Choose the smallest structural remedy and keep feature behavior unchanged.
4. Run relevant checks and review the diff for altered error, ordering, or state semantics.
5. Stop when further cleanup has no clear benefit.

## Example
Replace repeated branches on the same state with an explicit state model when it removes invalid combinations. Extracting each branch into another file may only move complexity.

## Stop conditions
Do not mix a feature change into cleanup or delete apparently unused public code without checking callers and compatibility.

## Evidence
- [ ] Baseline behavior is established.
- [ ] The change reduces concrete understanding cost.
- [ ] Observable behavior and compatibility remain unchanged.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.