When to Use
- Create new technical guide documents
- Edit existing documents to comply with writing standards
- Review document format and structure
Implementation Process
Basic Requirements
- Write in Simplified Chinese
- Keep code examples concise, focusing on core concepts
- Organize content with clear headings and subheadings
- Include practical examples of real-world application scenarios
Document Structure
Title Naming
Use the format "Topic + Complete Guide/Usage Guide":
markdown
# Git Hooks 完全指南
# TypeScript 使用指南
Chapter Numbering
| Level | Format | Example |
|---|
| Level 1 Chapter | Numeric numbering | |
| Level 2 Chapter | Dot-separated | |
| Level 3 Chapter | Dot-separated | |
Conclusion Section
- Summary Chapter: Recap key points, may include a cheat sheet
- Reference Resources Chapter: Provide links to official documentation and related resources
Elements to Avoid
- Do not use a table of contents
- Do not use section dividers ()
Content Format
Tables
Use markdown tables extensively for comparative explanations, parameter descriptions, and quick-reference summaries.
Diagrams
- Simple diagrams: Prefer ASCII art (Git branch diagrams, flowcharts)
- Complex graphics: Use Mermaid syntax (class diagrams, sequence diagrams, flowcharts)
Code Blocks
javascript
// ✅ 好的实践:简洁、有中文注释
function greet(name) {
return `Hello, ${name}`;
}
// ❌ 坏的实践:冗长、无注释
Key points:
- Specify the language type (bash, json, javascript, etc.)
- If JSON comments are needed, use
- Only include necessary key code
- Use Chinese comments to explain key steps
- Mark good/bad practices with and
Nested Code Blocks
When displaying Markdown examples that contain code blocks in the document, use 4 backticks for the outer layer and 3 backticks for the inner layer:
markdown
````markdown
## 示例标题
```bash
python scripts/example.py
```
````
Note: The number of backticks at the start and end of nested code blocks must be the same, otherwise rendering errors will occur.
Tip Messages
Use blockquote format:
markdown
> **注意**:重要警告或注意事项
> **提示**:有用的建议
> 说明:补充说明信息
Comparative Explanations
Use ✅ and ❌ to mark good/bad practices, which can be used in the main text or code comments.
FAQ (Optional, Q&A can deepen technical understanding)
markdown
**Q1: 问题内容?**
解答段落或代码示例...
Questions should focus on technical implementation, common error troubleshooting, configuration issues, and other technical content (related to the current technical topic).
Cheat Sheet
Provide a table-formatted quick reference in the summary chapter.
Example Specifications
- Provide complete, runnable code examples
- Include multiple real-world application scenarios (Scenario 1, Scenario 2...)
- Use Chinese comments in code examples to explain key steps
- Provide step-by-step instructions (1. 2. 3.) for complex operations