From code-quality-plugin
Refactors code applying functional programming principles—pure functions, immutability, composition—for file or directory scope. Targets side effects, mutations, imperative loops.
npx claudepluginhub laurigates/claude-plugins --plugin code-quality-pluginThis skill is limited to using the following tools:
| Use this skill when... | Use something else when... |
Creates new Angular apps using Angular CLI with flags for routing, SSR, SCSS, prefixes, and AI config. Follows best practices for modern TypeScript/Angular development. Use when starting Angular projects.
Generates Angular code and provides architectural guidance for projects, components, services, reactivity with signals, forms, dependency injection, routing, SSR, ARIA accessibility, animations, Tailwind styling, testing, and CLI tooling.
Executes ctx7 CLI to fetch up-to-date library documentation, manage AI coding skills (install/search/generate/remove/suggest), and configure Context7 MCP. Useful for current API refs, skill handling, or agent setup.
| Use this skill when... | Use something else when... |
|---|---|
| A file or directory has mixed side effects and business logic | Deduplicating code across files → /code:dry-consolidation |
| Functions mutate state or parameters | Detecting code smells without fixing → /code:antipatterns |
| Business logic is tangled with I/O or logging | Reviewing overall quality and architecture → /code:review |
| Imperative loops can be replaced with map/filter/reduce | Large multi-phase refactor spanning 10+ files → /workflow:checkpoint-refactor |
| Deep nesting obscures intent |
echo "$1"$1: Required file path or directory to refactorDelegate this task to the code-refactoring agent.
Use the Agent tool with subagent_type: code-refactoring to refactor the specified code. Pass all the context gathered above to the agent.
The code-refactoring agent should:
Identify refactoring opportunities — look for these FP code smells:
for, while) that could be map, filter, reduce, or flatMapApply functional programming principles:
spread, map, Object.assign, structural copies)map, filter, reduce, flatMap, findPreserve functionality:
Output the refactored code with clear structure
Provide the agent with:
The agent has expertise in: