dev-refactor

Refactor source code across multiple programming languages with test validation.

1|Updated May 21, 2026
One-click install
npx skills add https://github.com/hiddink-ai/hiddink-harness --skill dev-refactor-hiddink-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dev-refactor
Source: https://github.com/hiddink-ai/hiddink-harness/tree/main/templates/skills/dev-refactor
Command: npx skills add https://github.com/hiddink-ai/hiddink-harness --skill dev-refactor-hiddink-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill addresses the risks of manual code refactoring by providing a structured, language-aware workflow that enforces test coverage and architectural integrity before applying changes.

Core Features & Use Cases

  • Language-Specific Expertise: Leverages specialized agents for Go, Python, Rust, TypeScript, and more to ensure idiomatic code improvements.
  • Pre-flight Safety Guards: Automatically validates test coverage and detects intent to prevent regressions or redundant operations.
  • Spec-Driven Refactoring: Uses the --spec flag to ensure refactoring adheres to declared invariants and architectural contracts.

Quick Start

Run the dev-refactor skill on the src/utils.ts file to improve its structure and naming conventions.

Frequently Asked Questions about dev-refactor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I safely refactor source code without breaking existing tests?

Safe refactoring requires validating changes against existing test suites before applying them. This skill enforces pre-flight safety guards to detect test coverage and prevent regressions, ensuring system stability during structural improvements and complexity reduction.

What is the best way to reduce code complexity and improve naming conventions in TypeScript?

The best way to reduce code complexity is using language-specific expert agents to apply idiomatic design patterns. This skill refactors TypeScript files to improve structural integrity, naming conventions, and architectural alignment through targeted code cleanup.

Can I use automated refactoring for multiple programming languages like Go, Python, and Rust?

Yes, you can use automated refactoring for Go, Python, and Rust. This skill leverages specialized agents for multiple programming languages to ensure idiomatic code improvements and architectural alignment across different tech stacks.

How do I ensure refactoring adheres to declared invariants and architectural contracts?

To ensure refactoring adheres to declared invariants, use a spec-driven approach. This skill uses a --spec flag to validate modifications against declared invariants and architectural contracts, maintaining strict design pattern compliance during code cleanup.

Does language-aware refactoring prevent redundant operations during code cleanup?

Language-aware refactoring prevents redundant operations by detecting intent before executing changes. This structured workflow enforces architectural integrity and test coverage, validating that complexity reduction operations do not introduce redundant code modifications.