Add Chinese Comments to a Legacy Project
Add Chinese comments to a legacy project you have taken over, focusing on explaining why the code was changed. Only annotate non-obvious branches and magic numbers; do not add noise to every line.
1
Open the target file and have the model explain the responsibility of each function. First output a draft Chinese explanation, then decide manually which parts are worth keeping.
Cost: Subscription
Alternatives: Github Copilot · MonkeyCode AI Kaifa Platform
2
Paste in suspicious branches and magic numbers, ask for possible business reasons, and mark uncertain points for manual confirmation.
Cost: Free
Alternatives: Kimi Moonshot AI · Qwen Lingma
3
Generate Chinese comment blocks by function in the editor, specifying the type and value range for parameters and return values.
Cost: Free to start
Alternatives: Github Copilot · Cursor
4
Create a module guide that records past pitfalls and reasons for changes, and cross-reference it with the code comments.
Cost: Free to start
When you reuse a template
Commenting every line creates more noise than information
Writing the model's guessed business reasons into the code as facts
Comments that say what the code does but not why are as good as no comments
Changing logic without updating comments misleads the next person
Writing the model's guessed business reasons into the code as facts
Comments that say what the code does but not why are as good as no comments
Changing logic without updating comments misleads the next person
More playbooks
All playbooks
Checklist Time: About 1 day
On a price schedule, do I submit as soon as it's calculated or check it three times before stamping?
The line items, tax rate, freight and total must all add up. First check whether tax-inclusive and tax-exclusive prices are mixed in the sheet, then cross-check, and deliver a price schedule you can stamp and submit. Manufacturing and export
Decision guide Time: About 1 day
On a technical deviation table, should I mark everything as no deviation or state each item honestly?
If acceptance fails after you win, it's usually because the deviation table promised too much. Compare the tender's technical parameters with your product line by line, mark positive deviation, negative deviation or no deviation honestly, and first define which negative deviations are acceptable. Manufacturing and export
Checklist Time: About half a day
For a qualification compliance table, do I fill in the evidence first or check the commitment letters first?
Fill in your own evidence and page numbers after each row so gaps are obvious at a glance. First check which clauses allow a commitment letter in place of supporting documents, then finalize the evidence list. Deliverable: one qualification compliance table you can hand straight to the bid team. Manufacturing and export
Step-by-step flow Time: About 2 days
For a new warehouse SOP, should I make a flowchart or a screenshot-based course?
The SOP is only really done when a new hire can go through the course and start working. Cover the five steps - receiving, putaway, picking, checking and shipping - each with screenshots, and state in each step what counts as done right. Deliverable: one training course you can teach straight from. Logistics and supply chain