skills/refactoring_strategies/SKILL.md
--- name: refactoring_strategies router_kit: FullStackKit description: Safe refactoring süreci - test-first, incremental changes ve güvenlik ağı. metadata: skillport: category: quality tags: [architecture, automation, best practices, clean code, coding, collaboration, compliance, debugging, design patterns, development, documentation, efficiency, git, optimization, productivity, programming, project management, quality assurance, refactoring, refactoring strategies, software engineerin
npx skillsauth add vuralserhat86/antigravity-agentic-skills skills/refactoring_strategiesInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Safe refactoring süreci ve incremental değişiklikler.
| Sinyal | Aksiyon | |--------|---------| | Code Smell | Refactor et | | Before feature | Zemin hazırla | | After bug fix | Kodu iyileştir |
// Önce mevcut davranışı test et
describe('calculateTotal', () => {
test('single item', () => {
expect(calculateTotal([{ price: 100, qty: 1 }])).toBe(100);
});
test('multiple items', () => {
expect(calculateTotal([
{ price: 100, qty: 2 },
{ price: 50, qty: 1 }
])).toBe(250);
});
test('empty array', () => {
expect(calculateTotal([])).toBe(0);
});
});
Refactoring Strategies v1.1 - Enhanced
Kaynak: Working Effectively with Legacy Code & Refactoring to Patterns
@deprecated olarak işaretle ve loglara uyarı bas.| Aşama | Doğrulama | |-------|-----------| | 1 | Test paketi 2 dakikanın altında çalışıyor mu? (Hızlı feedback). | | 2 | Veritabanı şeması değişiyor mu? (Migration planı var mı?). | | 3 | Rollback planı test edildi mi? |
tools
Production-tested setup for Zustand state management in React. Includes patterns for persistence, devtools, and TypeScript patterns. Prevents hydration mismatches and render loops.
development
Comprehensive spreadsheet creation, editing, and analysis with support for formulas, formatting, data analysis, and visualization. When Claude needs to work with spreadsheets (.xlsx, .xlsm, .csv, .tsv, etc) for: (1) Creating new spreadsheets with formulas and formatting, (2) Reading or analyzing data, (3) Modify existing spreadsheets while preserving formulas, (4) Data analysis and visualization in spreadsheets, or (5) Recalculating formulas
development
--- name: websocket_engineer router_kit: FullStackKit description: WebSocket specialist for real-time communication systems. Invoke for Socket.IO, WebSocket servers, bidirectional messaging, presence systems. Keywords: WebSocket, Socket.IO, real-time, pub/sub, Redis. triggers: - WebSocket - Socket.IO - real-time communication - bidirectional messaging - pub/sub - server push - live updates - chat systems - presence tracking role: specialist scope: implementation output-format:
tools
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.