A continuously updated Chinese-language tutorial collection for Claude Code, covering usage tips, best practices, and real-world examples to help Chinese-speaking developers work more effectively with AI coding tools.
git clone https://github.com/Jxuanrui/ClaudeCode_Skill_CN.gitClaudeCode_Skill_CN is an open-source, continuously updated repository of Chinese-language tutorials focused on Claude Code skills and best practices. The project includes structured tutorials covering documentation techniques and multi-repository team workflows, each with quick-start sections and practical, reusable examples. It is designed for a range of users—from Claude Code beginners to professional developers and development teams looking to build AI-assisted workflows. The tutorials are organized from foundational to advanced topics, with a dual quick-start and full-tutorial structure for efficient learning. The goal is to help Chinese-speaking developers shift their focus from routine coding tasks toward higher-level architectural thinking, a practice the project associates with Vibe Coding.
[{"step":"准备工作:启用 Sortd API 并获取凭证","action":"1. 登录 Sortd 账户,进入 'API 设置' 启用 API 访问\n2. 创建一个销售线索看板,并记录其 ID\n3. 在 Gmail 中启用 IMAP 访问,并生成应用密码(非账户密码)","tip":"Sortd 的 API 访问需要付费计划。建议先在测试环境中验证功能。"},{"step":"配置 Claude Code 环境","action":"1. 在 Claude Code 中安装所需 Python 包:`pip install imaplib2 requests python-dotenv`\n2. 创建 `.env` 文件存储敏感信息(API 密钥、邮箱密码等)\n3. 配置 Claude Code 的中文 NLP 模型权限","tip":"使用环境变量避免硬编码敏感信息。Claude Code 的 NLP 功能需要明确启用中文支持。"},{"step":"部署自动化脚本","action":"1. 将上述代码保存为 `sortd_leads_sync.py`\n2. 在云端服务(如 Vercel、AWS Lambda)或本地设备上部署\n3. 设置定时任务(如每 15 分钟运行一次)监听新邮件","tip":"对于本地部署,建议使用 `cron`(Linux/macOS)或 '任务计划程序'(Windows)定期执行脚本。"},{"step":"验证和优化","action":"1. 发送测试邮件验证同步功能\n2. 在 Sortd 看板中检查卡片是否正确创建\n3. 根据实际使用情况调整 AI 紧急程度检测的阈值和标记规则","tip":"建议先处理 10-20 封测试邮件,确保 AI 判断准确性。可通过人工审核调整算法。"},{"step":"扩展功能","action":"1. 添加客户分配规则(如按发件人域名自动分配给特定销售代表)\n2. 集成 Sortd 的 AI 功能(如状态追踪、客户满意度检测)\n3. 连接 CRM 系统(如 Salesforce、HubSpot)实现双向同步","tip":"Sortd 的新 AI 功能(如紧急程度检测)可通过 API 直接调用,无需额外开发。"}]
Learning Claude Code documentation techniques to improve coding efficiency
Setting up multi-repository GitHub workflows for full-stack development teams using AI
Onboarding Chinese-speaking developers to AI-assisted coding with structured tutorials
Building team AI collaboration workflows with reusable configuration templates
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/Jxuanrui/ClaudeCode_Skill_CNCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
使用 Claude Code 和 Sortd(Gmail 的可视化任务管理工具)完成以下任务:[TASK_DESCRIPTION]。请参考 Sortd 的最新功能(如 AI 状态追踪、紧急程度检测等),并在 Claude Code 中编写可执行的脚本或代码片段。确保代码符合中文开发者的最佳实践,并包含详细的注释。示例任务:'自动将销售线索邮件从 Gmail 同步到 Sortd 看板,并为高优先级客户添加 AI 标记'。
### 使用 Claude Code + Sortd 自动化销售线索管理 **场景**:一家 SaaS 公司希望自动将 Gmail 中的销售线索邮件同步到 Sortd 看板,并为高优先级客户(如包含 "urgent" 或 "immediate" 关键词的邮件)添加 AI 紧急标记。 **实现步骤**: 1. **配置 Sortd API**: ```python # 使用 Sortd 的官方 API(需先在 Sortd 中启用 API 访问) SORTD_API_KEY = "your_sortd_api_key_here" SORTD_BOARD_ID = "sales_leads_board_id" # 从 Sortd 看板设置中获取 ``` 2. **Gmail 邮件监听脚本**: ```python import imaplib import email import requests import re # Gmail IMAP 配置 GMAIL_USER = "[email protected]" GMAIL_PASSWORD = "your_app_password" # 使用应用密码而非账户密码 IMAP_SERVER = "imap.gmail.com" def fetch_unread_emails(): mail = imaplib.IMAP4_SSL(IMAP_SERVER) mail.login(GMAIL_USER, GMAIL_PASSWORD) mail.select("inbox") # 搜索未读邮件 status, messages = mail.search(None, "UNSEEN") if status != "OK": print("无法获取邮件") return [] email_ids = messages[0].split() emails = [] for email_id in email_ids: status, msg_data = mail.fetch(email_id, "(RFC822)") if status != "OK": continue raw_email = msg_data[0][1] email_message = email.message_from_bytes(raw_email) # 提取邮件详情 subject = email_message["Subject"] sender = email_message["From"] body = "" if email_message.is_multipart(): for part in email_message.walk(): content_type = part.get_content_type() if content_type == "text/plain": body = part.get_payload(decode=True).decode() else: body = email_message.get_payload(decode=True).decode() emails.append({ "subject": subject, "sender": sender, "body": body, "email_id": email_id.decode() }) return emails ``` 3. **AI 紧急程度检测**: ```python def detect_urgency(email_data): # 使用 Claude Code 的中文 NLP 能力检测紧急程度 prompt = f""" 请分析以下销售线索邮件的紧急程度,并返回一个 0-10 的分数(10 为最紧急)。 仅基于邮件内容判断,无需考虑其他因素。 邮件主题:{email_data['subject']} 发件人:{email_data['sender']} 正文:{email_data['body'][:500]}... 返回格式:仅输出数字分数,无其他内容。 """ response = client.messages.create( model="claude-3-opus-20240229", messages=[{"role": "user", "content": prompt}], max_tokens=50 ) urgency_score = int(response.content[0].text.strip()) return urgency_score ``` 4. **同步到 Sortd 看板**: ```python def sync_to_sortd(email_data, urgency_score): # 准备 Sortd 卡片数据 card_data = { "title": email_data["subject"], "description": f"发件人: {email_data['sender']}\n\n{email_data['body'][:1000]}", "tags": [] } # 添加 AI 标记 if urgency_score >= 7: card_data["tags"].append("🚨 紧急") elif urgency_score >= 4: card_data["tags"].append("⚠️ 重要") # 添加客户来源标记 if "客户" in email_data["subject"] or "customer" in email_data["body"].lower(): card_data["tags"].append("💼 客户") # 发送到 Sortd API headers = { "Authorization": f"Bearer {SORTD_API_KEY}", "Content-Type": "application/json" } payload = { "board_id": SORTD_BOARD_ID, "title": card_data["title"], "description": card_data["description"], "tags": card_data["tags"] } response = requests.post( "https://api.sortd.com/v1/cards", headers=headers, json=payload n ) if response.status_code == 200: print(f"成功同步到 Sortd: {email_data['subject']}") return True else: print(f"同步失败: {response.text}") return False ``` 5. **完整执行流程**: ```python def main(): print("开始监听 Gmail 邮件...") emails = fetch_unread_emails() for email in emails: print(f"处理邮件: {email['subject']}") urgency = detect_urgency(email) print(f"紧急程度评分: {urgency}/10") sync_to_sortd(email, urgency) # 标记邮件为已读 mark_as_read(email["email_id"]) print(f"处理完成,共同步 {len(emails)} 封邮件") if __name__ == "__main__": main() ``` **使用指南**: 1. 在 Sortd 中创建销售线索看板并获取 `BOARD_ID` 2. 在 Gmail 中启用 IMAP 并生成应用密码 3. 将脚本部署到云端(如 Vercel、AWS Lambda)或本地定时运行 4. 监控 Sortd 看板中的新卡片,并设置通知规则 **预期效果**: - 销售团队无需手动复制粘贴邮件内容 - 高优先级客户会自动获得 AI 标记 - 所有线索在 Sortd 中实时更新,支持团队协作 - 可扩展添加其他自动化规则(如客户分配、状态追踪等)
AI assistant built for thoughtful, nuanced conversation
Get more done every day with Microsoft Teams – powered by AI
Automate security compliance and monitor real-time security posture seamlessly.
Automate your spreadsheet tasks with AI power
Agentic AI Workflow platform
Connected workspace for docs, wikis, and projects
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan