ask-refactoring-readability

<critical_constraints> ❌ NO behavior changes → refactoring only ❌ NO applying without approval ❌ NO generic names (data, temp, obj, x) ✅ MUST show before/after diffs ✅ MUST explain why each change improves code ✅ MUST verify tests pass after each change </critical_constraints>

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "ask-refactoring-readability" with this command: npx skills add navanithans/agent-skill-kit/navanithans-agent-skill-kit-ask-refactoring-readability

<critical_constraints> ❌ NO behavior changes → refactoring only ❌ NO applying without approval ❌ NO generic names (data, temp, obj, x) ✅ MUST show before/after diffs ✅ MUST explain why each change improves code ✅ MUST verify tests pass after each change </critical_constraints>

After: guard clauses

if not user: return False if not user.is_active: return False if not user.has_permission('edit'): return False

logic

Extract Function

// Before: all-in-one
function handleOrder(order) { /* validate, calc, discount */ }

// After: composed
function handleOrder(order) {
    validateOrder(order);
    const subtotal = calculateSubtotal(order.items);
    return applyDiscount(subtotal, order.discountCode);
}

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

ask-python-refactor

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

ask-explaining-code

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

ask-effective-llm-coder

No summary provided by upstream source.

Repository SourceNeeds Review