functions

Analyze and refactor code functions for design issues across PHP and TypeScript.

Updated Jun 19, 2023
One-click install
npx skills add https://github.com/JeroenJochems/modelwise --skill functions-jeroenjochems
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: functions
Source: https://github.com/JeroenJochems/modelwise/tree/main/.claude/skills/functions
Command: npx skills add https://github.com/JeroenJochems/modelwise --skill functions-jeroenjochems

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps developers write and refactor code to ensure functions are clean, maintainable, and adhere to best practices, preventing inherited mess from poorly organized code.

Core Features & Use Cases

  • Function Analysis: Identifies issues like excessive length, multiple responsibilities, mixed abstraction levels, and problematic arguments.
  • Refactoring Guidance: Provides specific refactoring patterns (e.g., Extract Method, Parameter Object) tailored to the detected programming language.
  • Use Case: When writing a new complex function or reviewing existing code, activate this Skill to receive actionable feedback on function design, ensuring adherence to principles like Single Responsibility and minimizing side effects.

Quick Start

Use the functions skill to analyze the provided PHP code snippet for design issues.

Frequently Asked Questions about functions

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

FAQPage Schema
How do I refactor a function that has too many arguments and mixed abstraction levels?

How do I identify hidden side effects when reviewing function design?

How do I identify hidden side effects when reviewing function design?

Does this clean code refactoring approach work with PHP and TypeScript?

Does this clean code refactoring approach work with PHP and TypeScript?

What is the best way to ensure a function follows the Single Responsibility principle?

What is the best way to ensure a function follows the Single Responsibility principle?

When should I use the Parameter Object pattern to fix excessive function arguments?

When should I use the Parameter Object pattern to fix excessive function arguments?

What are the limitations of analyzing code for Command-Query Separation violations?

What are the limitations of analyzing code for Command-Query Separation violations?

A limitation of analyzing code for Command-Query Separation is that it focuses strictly on function design mechanics like side effects and arguments. It may not detect higher-level architectural flaws or domain logic issues that exist outside the immediate function structure.