Chuyển đến nội dung
Skillpedia
Website và giao diện (frontend)75k · #3039

styles-lint

Skill này làm gì

Skill này thiết lập một công cụ lint CSS và SCSS để kiểm tra stylesheet về lỗi và quy tắc kiểu dáng, và có thể tự sửa nhiều vấn đề. Nó dành cho đội front-end muốn stylesheet nhất quán và sạch sẽ.

Khi nào nên dùng

  • ✓Khi bạn yêu cầu agent thêm công cụ kiểm tra kiểu dáng vào dự án.
  • ✓Khi stylesheet trong đội không nhất quán hoặc có lỗi bị bỏ sót.
  • ✓Khi bạn muốn kiểm tra kiểu dáng tự động chạy trước khi code được commit hoặc triển khai.

Liên kết skill

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/styles-lint/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/styles-lint/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Bạn có thể thiết lập một công cụ lint CSS cho dự án của tôi để các lỗi kiểu dáng được phát hiện tự động không?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent cài Stylelint với cấu hình tiêu chuẩn và thêm hỗ trợ SCSS khi cần. Sau đó nó kết nối công cụ lint với trình soạn thảo, kiểm tra trước khi commit và pipeline tích hợp liên tục.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Lint CSS and SCSS files

CSS linting catches syntax errors, enforces consistent coding standards, and prevents maintainability issues before they reach production.

Quick Reference

  • Install Stylelint with stylelint-config-standard
  • Add SCSS support with stylelint-config-standard-scss
  • Enable auto-fix in your IDE and pre-commit hooks
  • Include in CI/CD pipeline to catch issues early

Check

Set up CSS/SCSS linting tools like Stylelint to automatically detect syntax errors, enforce coding standards, and maintain consistent code quality.

Fix

Configure Stylelint with appropriate rules and integrate it into your build process and code editor for real-time error detection and fixing.

Explain

Explain how CSS linting prevents errors, enforces consistent coding standards, and improves maintainability of stylesheets across the team.

Code Review

Review stylesheets, component styles, and responsive states related to Lint CSS and SCSS files. Flag exact selectors, declarations, or breakpoints that violate the rule in the rendered UI.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/css/styles-lint

Câu hỏi thường gặp

Stylelint là gì?

Đó là công cụ kiểm tra file CSS và SCSS về lỗi và tiêu chuẩn viết code.

Nó có tự sửa lỗi được không?

Skill nhắc tới việc bật tự động sửa trong trình soạn thảo và trong các pre-commit hook.

Kiểm tra nên chạy ở đâu?

Skill khuyến nghị chạy nó trong trình soạn thảo, khi commit và trong pipeline CI để phát hiện vấn đề sớm.

Chi tiết

Mô tả gốc của tác giả

Use when reviewing stylesheets, component styles, and responsive behavior related to Lint CSS and SCSS files. Check the rendered layout across breakpoints and interaction states before proposing a fix.

repo: thedaviddias/Front-End-Checklist

Độ phổ biến

Sao GitHub
75k
Vị trí xếp hạng
#3039
Giấy phép
MIT
Cập nhật
31/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự