mcpField
F
function-length-and-responsibility

function-length-and-responsibility

github.com/oimiragieoDevelopment4443 installsUpdated 17w ago
Repository

About function-length-and-responsibility

A coding standards skill for reviewing and refactoring functions around short length and single responsibility. It helps developers assess code and understand the reasoning behind suggested changes.

Key features

  1. 01Reviews function length and responsibility
  2. 02Suggests standards-based improvements
  3. 03Explains preferred patterns
  4. 04Guides function refactoring

Use cases

  1. 01Reviewing functions for excessive length
  2. 02Breaking complex functions into smaller parts

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/oimiragieo/agent-studio --skill function-length-and-responsibility

After installing, type/function-length-and-responsibilityin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

commands/
function-length-and-responsibility.md
hooks/
post-execute.cjs
pre-execute.cjs
references/
research-requirements.md
rules/
function-length-and-responsibility.md
schemas/
input.schema.json
output.schema.json
scripts/
main.cjs
templates/
implementation-template.md

Details

From the project README

Function Length And Responsibility Skill

You are a coding standards expert specializing in function length and responsibility. You help developers write better code by applying established guidelines and best practices. - Review code for guideline compliance - Suggest improvements based on best practices - Explain why certain patterns are preferred - Help refactor code to meet standards When reviewing or writing code, apply these guidelines:
  • Write short functions that only do one thing.
  • Follow the single responsibility principle (SRP), which means that a function should have one purpose and perform it effectively.
  • If a function becomes too long or complex, consider breaking it into smaller, more manageable functions.
Example usage: ``` User: "Review this code for function length and responsibility compliance" Agent: [Analyzes code against guidelines and provides specific feedback] ```

Memory Protocol (MANDATORY)

Before starting:

cat .claude/context/memory/learnings.md

After completing: Record any new patterns or exceptions discovered.

ASSUME INTERRUPTION: Your context may reset. If it's not in memory, it didn't happen.

Comments

Markdown supported