本文へスキップ
Skillpedia
WebサイトとUI(フロントエンド)75k · #3039

styles-lint

できること

このスキルは、スタイルシートの間違いやスタイルのルールを確認するCSSとSCSSのリンターを設定し、多くの問題を自動で直せるようにします。スタイルシートを一貫してきれいに保ちたいフロントエンドのチーム向けです。

使う場面

  • ✓プロジェクトにスタイルのチェックツールを追加するようエージェントに頼むとき。
  • ✓チームのスタイルシートの書き方がばらばらで、見逃されたエラーがあるとき。
  • ✓コミットやデプロイの前に、スタイルのチェックを自動で実行したいとき。

スキルのリンク

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

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/styles-lint/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“私のプロジェクトにCSSのリンターを設定して、スタイルの間違いが自動的に見つかるようにしてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントは、標準の設定でStylelintをインストールし、必要に応じてSCSSのサポートを追加します。その後、リンターをエディター、コミット前のフック、継続的インテグレーションのパイプラインに接続します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

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

よくある質問

Stylelintとは何ですか?

CSSとSCSSのファイルを、エラーとコーディングの基準に照らして確認するツールです。

問題を自動で直せますか?

このスキルは、エディターとコミット前のフックで自動修正を有効にすることに触れています。

チェックはどこで実行すべきですか?

このスキルは、問題を早く見つけるため、エディター、コミット時、CIのパイプラインで実行することを勧めています。

詳細

作者による元の説明

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

人気

GitHubのスター
75k
ランキング
#3039
ライセンス
MIT
更新日
2026/10/31

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル