Avoid Repeated Params
This skill prevents duplicate parameter values from being passed to APIs, streamlining requests and reducing potential errors.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add avoid-repeated-params npx -- -y @trustedskills/avoid-repeated-params
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"avoid-repeated-params": {
"command": "npx",
"args": [
"-y",
"@trustedskills/avoid-repeated-params"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill helps AI agents avoid repeating parameters in TypeScript code. It identifies instances where the same parameter is declared multiple times, potentially indicating an error or inefficiency, and suggests refactoring to eliminate redundancy. This improves code clarity and reduces the risk of unintended side effects from duplicated logic.
When to use it
- Code review: Use this skill when reviewing TypeScript codebases to proactively identify potential issues related to parameter repetition.
- Refactoring existing code: Apply this skill during refactoring efforts to simplify complex functions or classes with repeated parameters.
- Learning and education: New TypeScript developers can use it to understand best practices for function and class design.
- Automated analysis: Integrate the skill into CI/CD pipelines to automatically flag potential parameter repetition issues.
Key capabilities
- Identifies duplicate parameter declarations in functions.
- Highlights repeated parameters within classes.
- Suggests refactoring strategies to eliminate redundancy.
Example prompts
- "Analyze this TypeScript code for repeated parameters: [code snippet]"
- "Find any instances of duplicated function parameters in this file."
- "Can you suggest a better way to structure this class, given these repeated parameter declarations?"
Tips & gotchas
The skill's effectiveness depends on the clarity and complexity of the TypeScript code being analyzed. It is best used with well-formatted and documented code for optimal results.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.