backend-api
处理静态网站中的客户端API调用和数据获取,包括加载JSON数据文件和管理外部数据源。在处理数据获取、客户端HTTP请求和JSON数据处理时使用此技能。
📖 中文导读:处理静态网站中的客户端API调用和数据获取,包括加载JSON数据文件和管理外部数据源。在处理数据获取、客户端HTTP请求和JSON数据处理时使用此技能。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: Backend API description: Handle client-side API consumption and data fetching in this static website, including loading JSON data files and managing external data sources. Use this skill when working with data fetching, client-side HTTP requests, and JSON data handling.
Backend API
This Skill provides Claude Code with specific guidance on how to adhere to coding standards as they relate to how it should handle backend API interactions in the adigunners.github.io static website project.
When to use this skill
- Implementing fetch requests to load JSON data from the
data/directory on page load - Managing asynchronous data loading to populate content on
index.htmlandwinners.html - Handling HTTP headers and CORS considerations when fetching external data sources
- Implementing request/response patterns for loading data into JavaScript modules
- Creating utility functions to abstract API calls and data fetching logic
- Implementing data caching strategies to avoid redundant fetches and improve performance
- Adding request retry logic and timeout handling for reliable data loading in the static site
Instructions
For details, refer to the information provided in this file: backend API