Back to skills
SKILL.md
Collection
ASecurityModular refactoring guidelines and best practices for Smart TV Signage project. Use for refactoring large components, adding features, debugging, and maintaining code quality.
- 24 stars
- 0 votes
- 0 copies
- 3 views
- Added September 8, 2026
Works with
Security analysis
100/100Pro scans all 21 files and shows the line behind each finding
npx -y skills add mattnigh/skills_collection --skill collection --agent claude-codeAre you the author of Collection?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/mattnigh-collection-64b71611)---
name: signage-refactor
description: Modular refactoring guidelines and best practices for Smart TV Signage project. Use for refactoring large components, adding features, debugging, and maintaining code quality.
type: guideline
version: 1.0.0
tags:
- refactoring
- react
- modular-architecture
- code-quality
- web-admin
---
# Smart TV Signage - Modular Refactoring Skill
## When to Activate This Skill
Invoke this skill when you need to:
1. **Refactor monolithic components** (>500 lines)
2. **Add new features** following project standards
3. **Debug systematically** using project guidelines
4. **Review code quality** against standards
5. **Maintain consistency** across the codebase
## Quick Start Commands
```
Use signage-refactor skill to refactor [ComponentName]
Use signage-refactor skill to add [feature] following standards
Use signage-refactor skill debugging checklist for [issue]
```
## What This Skill Provides
### π Architecture Standards
- Directory structure for web-admin
- Component organization patterns
- File size limits and guidelines
- Naming conventions
### π§ Design Principles
- Single Responsibility Principle
- Component Composition patterns
- Separation of Concerns
- DRY principles
### π Refactoring Workflow
- Step-by-step extraction process
- Component templates
- Hook templates
- Modal templates
### β
Quality Checklist
- Pre-commit checklist
- Component quality standards
- Hook quality standards
- Testing guidelines
### π Debugging Guidelines
- API troubleshooting
- Component debugging
- State management issues
- Common pitfalls to avoid
### π¦ Component Templates
- Page container template
- UI component template
- Modal component template
- Custom hook template
## Implementation Phases
1. **Infrastructure** (2h) - Setup folders, base components
2. **Common Logic** (2h) - Extract hooks, API layer
3. **Refactor Content** (6h) - Break down 2142-line component
4. **Refactor Devices** (4h) - Modularize device management
5. **Testing & Polish** (2h) - Integration testing, cleanup
**Total: 16 hours (2-3 days)**
## Key Metrics
### Before Refactoring
- Content.jsx: 2,142 lines β
- Devices.jsx: 725 lines β οΈ
- Maintainability: Low
- Testability: Difficult
### After Refactoring
- All files: <250 lines β
- Maintainability: High β¬οΈ 500%
- Reusability: High β¬οΈ 300%
- Testability: Excellent β¬οΈ 400%
## Quick Reference
### File Size Limits
- Pages: 150-250 lines
- Components: 100-200 lines
- Modals: 150-300 lines
- Hooks: 100-250 lines
### Component Hierarchy
```
Page Container (data coordination)
βββ Grid/List Component (layout)
β βββ Card Component (item display)
βββ Filter Component (user input)
βββ Modal Components (actions)
```
### Import Order
1. React imports
2. Third-party libraries
3. Internal (absolute paths)
4. Relative (same directory)
## Full Documentation
See complete guidelines in: `.claude/skills/signage-refactor.md`
---
**Version:** 1.0.0
**Last Updated:** 2025-10-23
**Project:** Smart TV Digital Signage System
Files in this skill
- 0Chan-smc__claude-code-workflow-lab__claude__skills__frontend-dev-guidelines__SKILL.md
- 17hz__nextjs-template__claude__skills__example-skill__SKILL.md
- 1ambda__dataops-platform__claude__skills__context-synthesis__SKILL.md
- 1natsu172__dotfiles__claude__skills__git-analysis__SKILL.md
- 1natsu172__dotfiles__claude__skills__github-pr-best-practices__SKILL.md
- 23Maestro__prospect-pipeline__claude__skills__npid-fastapi-skill.md
- 360AYA25__ClaudeN8N__claude__skills__n8n-code-javascript__SKILL.md
- 360AYA25__ClaudeN8N__claude__skills__n8n-code-python__SKILL.md
- 360AYA25__ClaudeN8N__claude__skills__n8n-expression-syntax__SKILL.md
- 360AYA25__ClaudeN8N__claude__skills__n8n-mcp-tools-expert__SKILL.md
- 360AYA25__ClaudeN8N__claude__skills__n8n-node-configuration__SKILL.md
- 360AYA25__ClaudeN8N__claude__skills__n8n-workflow-patterns__SKILL.md
- 3x-Projetos__claude-memory-framework__claude__skills__scientist__SKILL.md
- 5MinFutures__futures-arena__claude__skills__migration-tracker__SKILL.md
- 5MinFutures__futures-arena__claude__skills__planning-guidelines__SKILL.md
- 92Bilal26__TaskPilotAI__claude__skills__assessment-builder__SKILL.md
- 92Bilal26__TaskPilotAI__claude__skills__book-scaffolding__SKILL.md
- 92Bilal26__TaskPilotAI__claude__skills__code-validation-sandbox__SKILL.md
- 92Bilal26__TaskPilotAI__claude__skills__exercise-designer__SKILL.md
- 92Bilal26__TaskPilotAI__claude__skills__learning-objectives__SKILL.md
Attribution
Comments
Loading commentsβ¦