What problem does it solve? When kernel/AOSP enhancement code under code/rpi5 changes, the corresponding design documents (01-打点增强, 02-IO增强) drift out of sync. This Skill generates a structured change report from git diff and converts code changes into precise, chapter-level documentation updates without rewriting whole documents. ## Core Features & Use Cases - Change Report Generation: Groups git diff output by directory (kernel/modified, kernel/new, aosp/modified, aosp/new, others) with A/M/D/R status and line statistics, supporting workspace-vs-HEAD or branch-vs-main comparisons. - Mapping-Driven Doc Location: Routes changes to the correct design documents via doc-sync-mapping.yaml, resolves full source context through manifest.yaml, and locates affected sections using symbol names, line anchors, and filename searches across five reference forms. - Plan-First Incremental Updates: Produces an action-list plan (UPDATE-anchor, UPDATE-table, REMOVE-DOC, DOC-CONFLICT, etc.) requiring user confirmation before chapter-level edits, followed by automated consistency checks for dead indexes, broken links, orphan docs, and out-of-bounds line anchors. - Use Case: After editing LcView kernel code and before committing, run the script to get a diff report, confirm the proposed documentation action list, and let the docs update mechanically with refreshed #L line anchors. ## Quick Start Run python3 harness/skills/sync-code-to-doc/sync_code_to_doc.py --full-diff after modifying code/rpi5 and ask the AI to generate the documentation update plan from the report.