chinese-development-guide

hhhh124hhhh's avatarfrom hhhh124hhhh

为中文开发者提供完整的项目本地化、环境配置和开发工作流指导,确保中英文双语环境下的最佳开发体验

⭐6stars🔀0forks📁View on GitHub🕐Updated Nov 15, 2025

When & Why to Use This Skill

The Chinese Development Guide skill is a comprehensive utility designed to optimize the local development environment for Chinese-speaking developers. It provides automated guidance for system localization, UTF-8 encoding standards, and specific configurations for Git and VS Code to ensure a seamless bilingual coding experience and prevent common character encoding issues.

Use Cases

  • Environment Localization: Automatically configuring system environment variables (LANG, LC_ALL) to ensure full support for Chinese character sets in terminal and shell environments.
  • Git Compatibility Setup: Resolving 'mojibake' or garbled text issues in Git commit messages and file paths by optimizing global i18n and core configurations.
  • IDE Customization: Providing tailored VS Code settings for font rendering (e.g., Microsoft YaHei) and default file encoding to improve readability and cross-platform compatibility.
  • Localized Workflow Standardization: Implementing best practices for Chinese comments, documentation, and test case descriptions within technical projects to maintain high-quality code standards.
nameChinese Development Guide
description为中文开发者提供完整的项目本地化、环境配置和开发工作流指导,确保中英文双语环境下的最佳开发体验
version1.0.0

中文开发指南技能

指令

当用户是中文开发者或需要中文环境支持时,自动提供本地化配置和开发指导。

触发条件

  • 用户使用中文进行交流
  • 询问中文相关的配置问题
  • 需要中文化支持或本地化设置

核心配置

1. 系统环境配置

export LANG=zh_CN.UTF-8
export LC_ALL=zh_CN.UTF-8

2. Git中文配置

git config --global i18n.commitencoding utf-8
git config --global core.quotepath false

3. VS Code中文化

{
  "files.encoding": "utf8",
  "editor.fontFamily": "'Microsoft YaHei', monospace"
}

中文开发规范

  • 文件使用UTF-8编码
  • 变量和函数使用中文命名
  • 注释使用中文说明
  • 测试用例中文描述

常见问题解决

  • 字符编码问题
  • 中文字体显示
  • 输入法支持