xiaohongshu
xiaohongshu
enforce-file-limits
Enforce 500-line file size limits. Warn at 400 lines. Guide splitting large files into focused modules. Apply when writing or editing code.
Full skill instructions
CRITICAL: All files MUST stay under 500 lines. This is NON-NEGOTIABLE.
Large files are:
Use this skill when:
Count EVERYTHING:
The only exception: File header comments (first 1-5 lines describing the file).
Before editing, check line count:
wc -l path/to/file.ts
If output shows > 400 lines, plan to split BEFORE adding more code.
// ❌ BEFORE: UserService.ts (550 lines)
class UserService {
validateEmail() { /* 50 lines */ }
hashPassword() { /* 50 lines */ }
generateToken() { /* 50 lines */ }
createUser() { /* 400 lines */ }
}
// ✅ AFTER: Split utilities
// utils/userValidation.ts (50 lines)
export function validateEmail() {}
// utils/passwordUtils.ts (50 lines)
export function hashPassword() {}
// utils/tokenGenerator.ts (50 lines)
export function generateToken() {}
// UserService.ts (400 lines)
class UserService {
createUser() { /* uses imported utilities */ }
}
// ❌ BEFORE: UserService.ts (600 lines)
class UserService {
// User CRUD (200 lines)
// Password management (200 lines)
// Profile management (200 lines)
}
// ✅ AFTER: Split by domain
// UserService.ts (200 lines)
// UserPasswordService.ts (200 lines)
// UserProfileService.ts (200 lines)
// ❌ BEFORE: Dashboard.tsx (550 lines)
export function Dashboard() {
// State management (100 lines)
// Data fetching logic (100 lines)
// Event handlers (100 lines)
// Render multiple sections (250 lines)
}
// ✅ AFTER: Split into focused components
// Dashboard.tsx (200 lines) - main component
// hooks/useDashboardData.ts (100 lines) - data fetching
// components/DashboardStats.tsx (150 lines)
// components/DashboardCharts.tsx (150 lines)
STOP and plan extraction BEFORE adding more code:
If you encounter a file > 500 lines:
src/features/auth/
├── services/
│ ├── AuthService.ts (280 lines) ✅
│ ├── TokenService.ts (180 lines) ✅
│ └── PasswordResetService.ts (220 lines) ✅
src/features/auth/
└── services/
└── AuthService.ts (850 lines) ❌ MUST SPLIT!
// BEFORE: AuthService.ts (850 lines) ❌
class AuthService {
// Login logic (200 lines)
// Registration logic (200 lines)
// Password reset logic (200 lines)
// Token management (150 lines)
// Email verification (100 lines)
}
// AFTER: Split into focused services ✅
// AuthService.ts (200 lines)
class AuthService {
login() {}
logout() {}
}
// RegistrationService.ts (200 lines)
class RegistrationService {
register() {}
verifyEmail() {}
}
// PasswordService.ts (200 lines)
class PasswordService {
resetPassword() {}
changePassword() {}
}
// TokenService.ts (150 lines)
class TokenService {
generateToken() {}
validateToken() {}
refreshToken() {}
}
The code-quality-auditor will:
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience