avoid-repeated-params

Community

Prevent argument mix-ups with named parameters.

Authorluyi985
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Functions with multiple parameters of the same type are easy to mix up, leading to bugs and confusing code.

Core Features & Use Cases

  • Encourage using a single options object to group related parameters.
  • Simplify function calls and improve readability through named fields.
  • Use destructuring to access parameters clearly in the function body.

Quick Start

Refactor a function with multiple string parameters into a version that accepts a single options object and then call it with named fields.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: avoid-repeated-params
Download link: https://github.com/luyi985/lyi-bash/archive/main.zip#avoid-repeated-params

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.