xiaohongshu
xiaohongshu
lint
Run linting and fix code quality issues in the codebase
Full skill instructions
Run linting and fix code quality issues in the codebase.
$ARGUMENTS
# ESLint (JavaScript/TypeScript)
npm run lint
npx eslint . --fix
# TypeScript Compiler
npx tsc --noEmit
# Prettier (formatting)
npx prettier --write .
# All together
npm run lint && npx tsc --noEmit && npx prettier --write .
TypeScript Errors
any types usedReact/Next.js Issues
Code Quality
Best Practices
Safe Auto-Fixes
# Fix formatting
prettier --write .
# Fix ESLint auto-fixable rules
eslint --fix .
# Fix import order
eslint --fix --rule 'import/order: error' .
Manual Fixes Needed
ESLint Config (.eslintrc.json)
{
"extends": [
"next/core-web-vitals",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-unused-vars": "error",
"no-console": "warn"
}
}
Prettier Config (.prettierrc)
{
"semi": false,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5"
}
High Priority (fix immediately)
Medium Priority (fix before commit)
Low Priority (fix when convenient)
Install Husky + lint-staged
npm install -D husky lint-staged
npx husky init
Configure (.husky/pre-commit)
npx lint-staged
lint-staged config (package.json)
{
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"eslint --fix",
"prettier --write"
]
}
}
Settings (.vscode/settings.json)
{
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"typescript.tsdk": "node_modules/typescript/lib"
}
Remove Unused Imports
// Before
import { A, B, C } from 'lib'
// After
import { A, C } from 'lib' // B was unused
Add Type Annotations
// Before
function process(data) {
return data.map(x => x.value)
}
// After
function process(data: DataItem[]): number[] {
return data.map(x => x.value)
}
Fix Missing Keys
// Before
{items.map(item => <div>{item.name}</div>)}
// After
{items.map(item => <div key={item.id}>{item.name}</div>)}
Focus on fixes that improve code quality and prevent bugs. Run linting before every commit.
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