Prompts Forms Resume Reports ★ Saved ★ Saved★ + Submit a tool

Legacy code: turn the comments into interface documentation

Read through the old module nobody dares to change and produce interface documentation that can be handed over. Trace the call chain and get clear on how the data actually flows before you start writing; do not guess business meaning from variable names, or the docs will mislead whoever takes over.

Template Software and engineering ✍️ Writing Time: 3-4 hours Cost: CNY 0-50 3 steps
1
Open the module directory in Cursor, select the entry file and have the AI list the function call chain and external dependencies layer by layer, outputting an inventory of call relationships.
Cost: Free to start
Alternatives: Github Copilot · Qwen Lingma
2
Paste in the call inventory and the key function bodies, and ask for four columns - inputs, outputs, exceptions and side effects - marking any missing column as to be confirmed.
Cost: Free
Alternatives: Kimi Moonshot AI · Qwen
3
Build the interface documentation in Yuque, one section per interface, writing a request example first and then the field descriptions, with field types matching the definitions in the code.
Cost: Free to start
Alternatives: Shimo Docs AI · Feishu
When you reuse a template Reading only function names and not the callers, so the documentation does not match actual behavior
Copying comments as fact when the old comments drifted away from the code long ago
Leaving out exception branches, so the next person falls into the hole only after going live

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