backend-models
定义和验证静态网站中使用的所有数据结构,确保JavaScript模块和HTML模板与一致且定义良好的数据模型协同工作。在设计数据形状、创建类型定义或记录预期数据属性时使用此技能。
📖 中文导读:定义和验证静态网站中使用的所有数据结构,确保JavaScript模块和HTML模板与一致且定义良好的数据模型协同工作。在设计数据形状、创建类型定义或记录预期数据属性时使用此技能。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: Backend Models description: Define and validate data structures used throughout the static website, ensuring JavaScript modules and HTML templates work with consistent and well-defined data models. Use this skill when designing data shapes, creating type definitions, or documenting expected data properties.
Backend Models
This Skill provides Claude Code with specific guidance on how to adhere to coding standards as they relate to how it should handle backend models in the adigunners.github.io static website project.
When to use this skill
- Defining the structure of objects loaded from JSON data files (e.g., player objects, tournament objects)
- Creating JSDoc type annotations or TypeScript-like comments to describe expected data properties in JavaScript
- Documenting required vs. optional fields in data objects used by page rendering functions
- Establishing consistent naming conventions for data properties across all JSON files
- Creating validation schemas that enforce correct data structure when loading files
- Defining default values or fallback properties for missing data in loaded objects
- Documenting the relationship between different data models (e.g., how players relate to tournaments)
Instructions
For details, refer to the information provided in this file: backend models