# fastapi-annotate-code > 为 FastAPI 文档中的代码添加中文注释 - Author: Claude Code - Repository: zhang-dalong1988/learn-fast-api - Version: 20251226142518 - Stars: 0 - Forks: 0 - Last Updated: 2026-02-06 - Source: https://github.com/zhang-dalong1988/learn-fast-api - Web: https://mule.run/skillshub/@@zhang-dalong1988/learn-fast-api~fastapi-annotate-code:20251226142518 --- --- name: fastapi-annotate-code description: 为 FastAPI 文档中的代码添加中文注释 allowed-tools: Read, Write, Edit --- # FastAPI 代码注释 Skill ## 功能 为文档中的代码块添加详细的中文注释,解释代码的意图和上下文。 ## 使用方法 在对话中说 "注释章节X" 或 "annotate chapter X" ## 注释规则 1. 为每一行关键代码添加中文注释 2. 解释代码的意图,而不仅仅是描述代码做了什么 3. 解释为什么这样写,提供上下文信息 4. 使用清晰、自然的中文表达 5. 保持代码可读性,注释不要太密集