← スキル一覧に戻る

code-standards
by devon-n
A NextJS portfolio displaying some projects
⭐ 0🍴 1📅 2026年1月22日
SKILL.md
name: code_standards description: Project-specific coding standards and optimization rules for the Portfolio codebase.
Code Standards
This skill defines the technical requirements and best practices for the Devon Nathan Portfolio project. Follow these rules for all code modifications and reviews.
1. Type Safety & Categories
- Mandatory Typing: Every variable declaration must include an explicit type. Avoid
any. - Enums for Display: Use String Enums for categories where the key and value are identical display-ready strings (e.g.,
JavaScript = "JavaScript"). This ensures a single source of truth for both logic and UI titles. - Single Source of Truth: Derive arrays for looping using
Object.values(EnumName)rather than hardcoding.
2. Performance & Optimization
- Loop Minimization: Avoid multiple
.filter()calls on the same dataset. - Preprocessing: Group or map data into appropriate structures (e.g.,
Record<Enum, Item[]>) before thereturnstatement in components using.reduce(). - Dry Sections: Render repeating visual sections (like skill categories) using a single
.map()over the Enum values. - Unused Imports: Always remove unused imports and dead code before finalizing a file.
- Centralized Constants: Shared configuration objects (like
IDENTITIESorTITLES) must be defined in a single location within thedata/directory and imported where needed. Never duplicate shared data across multiple components.
3. Visual & Aesthetic Consistency
- Motion Orchestration: Ensure
AnimatePresenceandlayoutprops are used correctly to prevent layout shifts. - Theme Awareness: Always use theme-aware color variables (e.g.,
text-primary,text-text-muted) rather than hardcoded colors.
4. Audit Findings
- Responsive Grids: Always check grid layouts on small screens to ensure
md:andlg:breakpoints are balanced. - Service Categories: Supported categories:
Infrastructure,Web,Blockchain,AI. - Skill Categories: Supported categories:
JavaScript,Python,Databases,Blockchain. - Project Categories: Supported categories:
Blockchain,AI,Full Stack.
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です