refactor

Refactor Java and TypeScript code to enforce project conventions and fix security issues.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/ReubenFrimpong/past-care-spring --skill refactor-reubenfrimpong
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: refactor
Source: https://github.com/ReubenFrimpong/past-care-spring/tree/main/.claude/skills/refactor
Command: npx skills add https://github.com/ReubenFrimpong/past-care-spring --skill refactor-reubenfrimpong

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps improve code quality by identifying and fixing code smells, naming issues, security vulnerabilities, and performance bottlenecks according to established project conventions.

Core Features & Use Cases

  • Code Analysis: Identifies areas for improvement in backend Java and frontend TypeScript code.
  • Convention Enforcement: Ensures adherence to security patterns, date/time standards, and frontend styling.
  • Use Case: You can ask the AI to refactor a specific Java service class to ensure all database queries are properly transactional and tenant-scoped, or to update a React component to use CSS variables for theming.

Quick Start

Use the refactor skill to improve the code quality of the file 'MemberService.java'.

Frequently Asked Questions about refactor

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

FAQPage Schema
How do I refactor Java code to fix security vulnerabilities and performance issues?

Refactoring Java code for security and performance involves enforcing tenant isolation, adding missing @Transactional annotations, and resolving N+1 database queries to align with project conventions.

What are the best practices for refactoring frontend TypeScript components?

Refactoring frontend TypeScript components requires enforcing mobile-first CSS, applying BEM naming conventions, and utilizing specific color and spacing guidelines to ensure UI consistency.

How do I identify and fix code smells in a specific file?

Fixing code smells in a specific file requires analyzing the codebase for naming issues, security vulnerabilities, and performance bottlenecks, then applying established project conventions to resolve them.

Does this refactoring approach work for both backend and frontend codebases?

Yes, this refactoring approach supports both backend Java and frontend TypeScript codebases, enforcing security patterns, date/time standards, and frontend styling rules across the full stack.