F
function-length-and-responsibility
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
- 01Reviews function length and responsibility
- 02Suggests standards-based improvements
- 03Explains preferred patterns
- 04Guides function refactoring
Use cases
- 01Reviewing functions for excessive length
- 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-responsibilityAfter 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.mdhooks/post-execute.cjspre-execute.cjsreferences/research-requirements.mdrules/function-length-and-responsibility.mdschemas/input.schema.jsonoutput.schema.jsonscripts/main.cjstemplates/implementation-template.mdDetails
From the project READMEFunction 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.
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