このスキルはTypeScript、JavaScript、React、Node.js開発のための包括的なコーディング標準とベストプラクティスを提供し、開発者がクリーンで保守しやすいコードを書くのを支援します。
Télécharger le ZIP du skill
Importer dans Claude
Allez dans Paramètres → Capacités → Skills → Importer un skill
Activez et commencez à utiliser
Tester
Utilisation de "coding-standards". Show me how to properly handle async errors
Résultat attendu:
適切なエラーloggingと共にtry-catchブロックを使用してください。常に暗黙的に失敗するのではなく、意味のあるエラーをスローしてください。fetch呼び出しでは、response.okを確認し、HTTPエラーを明示的に処理してください。
Utilisation de "coding-standards". What are the naming conventions for functions?
Résultat attendu:
'fetchUserData'や'calculateTotal'のような動詞-名詞パターンを使用してください。'data'や'handler'のような名詞 alone は避けてください。ブール関数には'is'、'has'、'can'プレフィックスを使用してください。
Utilisation de "coding-standards". How should I structure my React components?
Résultat attendu:
PropsにTypeScriptインターフェースを使用した関数コンポーネントを使用してください。any型を使用するのではなく、明示的にコンポーネントPropsを定義してください。コンポーネントを単一の責任に集中させてください。
Audit de sécurité
SûrThis skill is a documentation resource containing coding standards and best practices in markdown format. The static analyzer flagged 72 potential issues, but all are false positives: JavaScript template literals in code examples were misidentified as shell execution, lazy loading patterns as dynamic imports, fetch examples as network calls, and generic error message text as cryptographic/system issues. No actual security risks exist - the skill provides educational content about code quality.
Problèmes à risque élevé (2)
Problèmes à risque moyen (2)
Problèmes à risque faible (1)
Score de qualité
Ce que vous pouvez construire
モダンJavaScriptパターンを学ぶ
初心者の開発者は、不変性、async/awaitのベストプラクティス、型安全性など、適切なTypeScriptとJavaScriptコーディングパターンを学ぶことができます。
チーム全体のコードスタイルを標準化する
開発チームは、命名、フォーマット、構造のための文書化された規約を一貫したコーディング標準としてプロジェクトに採用できます。
コードレビュープロセスを改善する
これらの標準をコードレビュー中使用して、マージ前に一貫性と一般的なコード品質の問題ことを確認します。
Essayez ces prompts
Using the coding-standards skill, show me the best practices for writing TypeScript interfaces and types.
Using the coding-standards skill, what is the recommended structure for a React functional component with props?
Using the coding-standards skill, document the REST API conventions and response format standards.
Using the coding-standards skill, show me the best practices for handling errors in async functions.
Bonnes pratiques
- コメントに大きく依存する代わりに、明確な変数名と関数名で自己文書化コードを書いてください
- 常に不変性パターンを使用してください - 직접的な変更よりもスプレッド演算子を使用してください
- any'を使用せず、適切なTypeScript型を定義して型安全性を維持してください
Éviter
- TypeScriptで'any'型を使用しないでください。なぜなら型チェックの意味を失うからです
- 状態を直接変更しないでください - setCount(prev => prev + 1)のような関数型更新を常に使用してください
- 深くネストされた条件を避けてください - コードを平坦で読みやすくするためにアーリーリターンを使用してください