[{"data":1,"prerenderedAt":3892},["ShallowReactive",2],{"article-/topics/ai/ai-agent-compensation-saga-for-tool-side-effects":3,"related-ai":635,"content-query-WlSZd6yEV0":3402},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"date":10,"topic":5,"author":11,"tags":12,"image":17,"imageQuery":18,"pexelsPhotoId":19,"pexelsUrl":20,"featured":6,"readingTime":21,"body":22,"_type":629,"_id":630,"_source":631,"_file":632,"_stem":633,"_extension":634},"/topics/ai/ai-agent-compensation-saga-for-tool-side-effects","ai",false,"","AI agent Compensation Saga：工具副作用怎么补偿才不会越补越乱","工作流真正难点在副作用补偿。本文给出 AI agent 的 saga 设计方法，覆盖可逆动作、不可逆动作与人工兜底策略。","2026-05-30","HTMLPAGE 团队",[13,14,15,16],"AI agent","Saga","Compensation","Side Effects","/images/articles/ai-agent-compensation-saga-for-tool-side-effects-featured.jpg","risk management checklist business process review",35719571,"https://www.pexels.com/photo/hand-writing-on-notebook-with-checklist-35719571/",15,{"type":23,"children":24,"toc":615},"root",[25,33,38,45,132,137,143,148,158,163,168,203,208,214,219,232,237,243,248,253,271,276,281,341,346,351,374,379,384,389,401,406,411,416,514,519,525,579,584],{"type":26,"tag":27,"props":28,"children":29},"element","p",{},[30],{"type":31,"value":32},"text","DAG 能保证顺序，但不能天然保证正确撤销。只要流程里有外部副作用，比如发邮件、创建工单、扣费、改状态，就需要补偿设计。",{"type":26,"tag":27,"props":34,"children":35},{},[36],{"type":31,"value":37},"真正难点不在“写一个 undo 函数”，而在于你是否能证明补偿发生在正确时机、作用在正确对象、且不会二次伤害系统。",{"type":26,"tag":39,"props":40,"children":42},"h2",{"id":41},"先把动作分级再谈补偿",[43],{"type":31,"value":44},"先把动作分级，再谈补偿",{"type":26,"tag":46,"props":47,"children":48},"table",{},[49,73],{"type":26,"tag":50,"props":51,"children":52},"thead",{},[53],{"type":26,"tag":54,"props":55,"children":56},"tr",{},[57,63,68],{"type":26,"tag":58,"props":59,"children":60},"th",{},[61],{"type":31,"value":62},"动作类型",{"type":26,"tag":58,"props":64,"children":65},{},[66],{"type":31,"value":67},"示例",{"type":26,"tag":58,"props":69,"children":70},{},[71],{"type":31,"value":72},"处理策略",{"type":26,"tag":74,"props":75,"children":76},"tbody",{},[77,96,114],{"type":26,"tag":54,"props":78,"children":79},{},[80,86,91],{"type":26,"tag":81,"props":82,"children":83},"td",{},[84],{"type":31,"value":85},"可逆动作",{"type":26,"tag":81,"props":87,"children":88},{},[89],{"type":31,"value":90},"更新草稿状态",{"type":26,"tag":81,"props":92,"children":93},{},[94],{"type":31,"value":95},"自动补偿",{"type":26,"tag":54,"props":97,"children":98},{},[99,104,109],{"type":26,"tag":81,"props":100,"children":101},{},[102],{"type":31,"value":103},"条件可逆",{"type":26,"tag":81,"props":105,"children":106},{},[107],{"type":31,"value":108},"扣减额度",{"type":26,"tag":81,"props":110,"children":111},{},[112],{"type":31,"value":113},"先读状态再补偿",{"type":26,"tag":54,"props":115,"children":116},{},[117,122,127],{"type":26,"tag":81,"props":118,"children":119},{},[120],{"type":31,"value":121},"不可逆动作",{"type":26,"tag":81,"props":123,"children":124},{},[125],{"type":31,"value":126},"对外发送邮件",{"type":26,"tag":81,"props":128,"children":129},{},[130],{"type":31,"value":131},"人工兜底 + 证据包",{"type":26,"tag":27,"props":133,"children":134},{},[135],{"type":31,"value":136},"不先分级，会把不可逆动作也放进自动重试，风险极高。",{"type":26,"tag":39,"props":138,"children":140},{"id":139},"saga-在-agent-里的最小状态机",[141],{"type":31,"value":142},"Saga 在 agent 里的最小状态机",{"type":26,"tag":27,"props":144,"children":145},{},[146],{"type":31,"value":147},"建议至少定义以下状态：",{"type":26,"tag":27,"props":149,"children":150},{},[151],{"type":26,"tag":152,"props":153,"children":155},"code",{"className":154},[],[156],{"type":31,"value":157},"EXECUTED -> COMPENSATING -> COMPENSATED | COMPENSATION_FAILED",{"type":26,"tag":27,"props":159,"children":160},{},[161],{"type":31,"value":162},"不要只记录布尔值。布尔值无法表达“正在补偿”与“补偿失败待人工”的区别。",{"type":26,"tag":39,"props":164,"children":166},{"id":165},"补偿记录的最小字段",[167],{"type":31,"value":165},{"type":26,"tag":169,"props":170,"children":171},"ul",{},[172,178,183,188,193,198],{"type":26,"tag":173,"props":174,"children":175},"li",{},[176],{"type":31,"value":177},"原动作 ID（actionId）",{"type":26,"tag":173,"props":179,"children":180},{},[181],{"type":31,"value":182},"目标对象 ID（targetId）",{"type":26,"tag":173,"props":184,"children":185},{},[186],{"type":31,"value":187},"补偿动作 ID（compensationId）",{"type":26,"tag":173,"props":189,"children":190},{},[191],{"type":31,"value":192},"补偿函数版本（compensationVersion）",{"type":26,"tag":173,"props":194,"children":195},{},[196],{"type":31,"value":197},"执行时间、执行人/执行体",{"type":26,"tag":173,"props":199,"children":200},{},[201],{"type":31,"value":202},"残留风险说明",{"type":26,"tag":27,"props":204,"children":205},{},[206],{"type":31,"value":207},"这些字段必须进入 ledger，否则事故复盘会陷入“到底补偿没”的口水战。",{"type":26,"tag":39,"props":209,"children":211},{"id":210},"设计原则补偿不是反向重放",[212],{"type":31,"value":213},"设计原则：补偿不是反向重放",{"type":26,"tag":27,"props":215,"children":216},{},[217],{"type":31,"value":218},"补偿动作应显式声明，而不是“把原步骤反着跑”。例如：",{"type":26,"tag":169,"props":220,"children":221},{},[222,227],{"type":26,"tag":173,"props":223,"children":224},{},[225],{"type":31,"value":226},"原动作：创建工单",{"type":26,"tag":173,"props":228,"children":229},{},[230],{"type":31,"value":231},"补偿动作：关闭工单并标记原因",{"type":26,"tag":27,"props":233,"children":234},{},[235],{"type":31,"value":236},"两者语义不同，不能靠自动推导。",{"type":26,"tag":39,"props":238,"children":240},{"id":239},"失败案例重复补偿引发二次事故",[241],{"type":31,"value":242},"失败案例：重复补偿引发二次事故",{"type":26,"tag":27,"props":244,"children":245},{},[246],{"type":31,"value":247},"某团队在超时恢复时重复触发补偿，把已经回滚成功的订单再次撤销。根因是补偿链路没有幂等键，且重试策略把补偿当普通节点重跑。",{"type":26,"tag":27,"props":249,"children":250},{},[251],{"type":31,"value":252},"修复动作：",{"type":26,"tag":169,"props":254,"children":255},{},[256,261,266],{"type":26,"tag":173,"props":257,"children":258},{},[259],{"type":31,"value":260},"所有补偿请求强制携带 compensationId。",{"type":26,"tag":173,"props":262,"children":263},{},[264],{"type":31,"value":265},"补偿执行前读取目标状态并做“已补偿”判断。",{"type":26,"tag":173,"props":267,"children":268},{},[269],{"type":31,"value":270},"补偿失败进入人工队列，不再自动无限重试。",{"type":26,"tag":39,"props":272,"children":274},{"id":273},"如何与审批流协同",[275],{"type":31,"value":273},{"type":26,"tag":27,"props":277,"children":278},{},[279],{"type":31,"value":280},"高风险补偿建议引入审批节点：",{"type":26,"tag":46,"props":282,"children":283},{},[284,300],{"type":26,"tag":50,"props":285,"children":286},{},[287],{"type":26,"tag":54,"props":288,"children":289},{},[290,295],{"type":26,"tag":58,"props":291,"children":292},{},[293],{"type":31,"value":294},"场景",{"type":26,"tag":58,"props":296,"children":297},{},[298],{"type":31,"value":299},"是否审批",{"type":26,"tag":74,"props":301,"children":302},{},[303,316,329],{"type":26,"tag":54,"props":304,"children":305},{},[306,311],{"type":26,"tag":81,"props":307,"children":308},{},[309],{"type":31,"value":310},"内部状态回滚",{"type":26,"tag":81,"props":312,"children":313},{},[314],{"type":31,"value":315},"否",{"type":26,"tag":54,"props":317,"children":318},{},[319,324],{"type":26,"tag":81,"props":320,"children":321},{},[322],{"type":31,"value":323},"对外通知撤回",{"type":26,"tag":81,"props":325,"children":326},{},[327],{"type":31,"value":328},"是",{"type":26,"tag":54,"props":330,"children":331},{},[332,337],{"type":26,"tag":81,"props":333,"children":334},{},[335],{"type":31,"value":336},"资金/额度回滚",{"type":26,"tag":81,"props":338,"children":339},{},[340],{"type":31,"value":328},{"type":26,"tag":27,"props":342,"children":343},{},[344],{"type":31,"value":345},"审批并不是增加负担，而是避免补偿链路扩大事故面。",{"type":26,"tag":39,"props":347,"children":349},{"id":348},"关键指标",[350],{"type":31,"value":348},{"type":26,"tag":169,"props":352,"children":353},{},[354,359,364,369],{"type":26,"tag":173,"props":355,"children":356},{},[357],{"type":31,"value":358},"补偿成功率",{"type":26,"tag":173,"props":360,"children":361},{},[362],{"type":31,"value":363},"补偿幂等命中率",{"type":26,"tag":173,"props":365,"children":366},{},[367],{"type":31,"value":368},"补偿平均完成时长",{"type":26,"tag":173,"props":370,"children":371},{},[372],{"type":31,"value":373},"补偿后残留风险率",{"type":26,"tag":27,"props":375,"children":376},{},[377],{"type":31,"value":378},"补偿成功率高但残留风险率高，说明你的补偿只是“技术成功”，不是“业务成功”。",{"type":26,"tag":39,"props":380,"children":382},{"id":381},"补偿策略如何写进节点契约",[383],{"type":31,"value":381},{"type":26,"tag":27,"props":385,"children":386},{},[387],{"type":31,"value":388},"不要把补偿逻辑藏在业务代码里。建议直接写入节点契约：",{"type":26,"tag":390,"props":391,"children":396},"pre",{"className":392,"code":394,"language":395,"meta":7},[393],"language-json","{\n  \"nodeId\": \"publish_response.v3\",\n  \"sideEffects\": [\n    {\n      \"effectType\": \"external_message\",\n      \"target\": \"crm.contact_thread\",\n      \"idempotencyKey\": \"runId + nodeId + targetId\",\n      \"reversible\": false,\n      \"compensationPolicy\": \"manual_followup_with_audit_note\"\n    }\n  ]\n}\n","json",[397],{"type":26,"tag":152,"props":398,"children":399},{"__ignoreMap":7},[400],{"type":31,"value":394},{"type":26,"tag":27,"props":402,"children":403},{},[404],{"type":31,"value":405},"这段契约明确告诉 runtime：该节点不是简单可逆动作。失败后不能自动“撤回消息”，而应创建人工跟进任务，并附带审计说明。",{"type":26,"tag":39,"props":407,"children":409},{"id":408},"补偿优先级不是按失败时间排",[410],{"type":31,"value":408},{"type":26,"tag":27,"props":412,"children":413},{},[414],{"type":31,"value":415},"当多个补偿任务同时出现时，优先级应按业务风险排序：",{"type":26,"tag":46,"props":417,"children":418},{},[419,440],{"type":26,"tag":50,"props":420,"children":421},{},[422],{"type":26,"tag":54,"props":423,"children":424},{},[425,430,435],{"type":26,"tag":58,"props":426,"children":427},{},[428],{"type":31,"value":429},"优先级",{"type":26,"tag":58,"props":431,"children":432},{},[433],{"type":31,"value":434},"类型",{"type":26,"tag":58,"props":436,"children":437},{},[438],{"type":31,"value":439},"原因",{"type":26,"tag":74,"props":441,"children":442},{},[443,461,479,496],{"type":26,"tag":54,"props":444,"children":445},{},[446,451,456],{"type":26,"tag":81,"props":447,"children":448},{},[449],{"type":31,"value":450},"P0",{"type":26,"tag":81,"props":452,"children":453},{},[454],{"type":31,"value":455},"资金、权限、对外承诺",{"type":26,"tag":81,"props":457,"children":458},{},[459],{"type":31,"value":460},"影响不可控且扩散快",{"type":26,"tag":54,"props":462,"children":463},{},[464,469,474],{"type":26,"tag":81,"props":465,"children":466},{},[467],{"type":31,"value":468},"P1",{"type":26,"tag":81,"props":470,"children":471},{},[472],{"type":31,"value":473},"外部状态写入",{"type":26,"tag":81,"props":475,"children":476},{},[477],{"type":31,"value":478},"影响客户和协作系统",{"type":26,"tag":54,"props":480,"children":481},{},[482,487,491],{"type":26,"tag":81,"props":483,"children":484},{},[485],{"type":31,"value":486},"P2",{"type":26,"tag":81,"props":488,"children":489},{},[490],{"type":31,"value":310},{"type":26,"tag":81,"props":492,"children":493},{},[494],{"type":31,"value":495},"可控性较高",{"type":26,"tag":54,"props":497,"children":498},{},[499,504,509],{"type":26,"tag":81,"props":500,"children":501},{},[502],{"type":31,"value":503},"P3",{"type":26,"tag":81,"props":505,"children":506},{},[507],{"type":31,"value":508},"临时 artifact 清理",{"type":26,"tag":81,"props":510,"children":511},{},[512],{"type":31,"value":513},"可延后处理",{"type":26,"tag":27,"props":515,"children":516},{},[517],{"type":31,"value":518},"这能避免团队把时间花在“清理漂亮”，却放任高风险副作用继续扩散。",{"type":26,"tag":39,"props":520,"children":522},{"id":521},"checklist",[523],{"type":31,"value":524},"Checklist",{"type":26,"tag":169,"props":526,"children":529},{"className":527},[528],"contains-task-list",[530,543,552,561,570],{"type":26,"tag":173,"props":531,"children":534},{"className":532},[533],"task-list-item",[535,541],{"type":26,"tag":536,"props":537,"children":540},"input",{"disabled":538,"type":539},true,"checkbox",[],{"type":31,"value":542}," 每个副作用动作都有补偿声明",{"type":26,"tag":173,"props":544,"children":546},{"className":545},[533],[547,550],{"type":26,"tag":536,"props":548,"children":549},{"disabled":538,"type":539},[],{"type":31,"value":551}," 补偿状态机可观测而非布尔值",{"type":26,"tag":173,"props":553,"children":555},{"className":554},[533],[556,559],{"type":26,"tag":536,"props":557,"children":558},{"disabled":538,"type":539},[],{"type":31,"value":560}," 补偿流程支持幂等执行",{"type":26,"tag":173,"props":562,"children":564},{"className":563},[533],[565,568],{"type":26,"tag":536,"props":566,"children":567},{"disabled":538,"type":539},[],{"type":31,"value":569}," 不可逆动作有人工兜底和审批策略",{"type":26,"tag":173,"props":571,"children":573},{"className":572},[533],[574,577],{"type":26,"tag":536,"props":575,"children":576},{"disabled":538,"type":539},[],{"type":31,"value":578}," 补偿结果进入 run ledger 与复盘模板",{"type":26,"tag":27,"props":580,"children":581},{},[582],{"type":31,"value":583},"延伸阅读：",{"type":26,"tag":169,"props":585,"children":586},{},[587,597,606],{"type":26,"tag":173,"props":588,"children":589},{},[590],{"type":26,"tag":591,"props":592,"children":594},"a",{"href":593},"/topics/ai/ai-agent-pause-resume-undo",[595],{"type":31,"value":596},"AI agent Pause-Resume-Undo",{"type":26,"tag":173,"props":598,"children":599},{},[600],{"type":26,"tag":591,"props":601,"children":603},{"href":602},"/topics/ai/ai-agent-idempotency-deduplication-practice",[604],{"type":31,"value":605},"AI agent 幂等去重实践",{"type":26,"tag":173,"props":607,"children":608},{},[609],{"type":26,"tag":591,"props":610,"children":612},{"href":611},"/topics/ai/ai-agent-incident-response-runbook",[613],{"type":31,"value":614},"AI agent 事故响应手册",{"title":7,"searchDepth":616,"depth":616,"links":617},3,[618,620,621,622,623,624,625,626,627,628],{"id":41,"depth":619,"text":44},2,{"id":139,"depth":619,"text":142},{"id":165,"depth":619,"text":165},{"id":210,"depth":619,"text":213},{"id":239,"depth":619,"text":242},{"id":273,"depth":619,"text":273},{"id":348,"depth":619,"text":348},{"id":381,"depth":619,"text":381},{"id":408,"depth":619,"text":408},{"id":521,"depth":619,"text":524},"markdown","content:topics:ai:ai-agent-compensation-saga-for-tool-side-effects.md","content","topics/ai/ai-agent-compensation-saga-for-tool-side-effects.md","topics/ai/ai-agent-compensation-saga-for-tool-side-effects","md",[636,1791,2740],{"_path":637,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":638,"description":639,"date":640,"topic":5,"author":11,"tags":641,"image":647,"imageAlt":648,"pexelsPhotoId":649,"pexelsUrl":650,"readingTime":651,"body":652,"_type":629,"_id":1788,"_source":631,"_file":1789,"_stem":1790,"_extension":634},"/topics/ai/cursor-keyboard-shortcuts-cheatsheet","Cursor 快捷键速查表（macOS/Windows）：从“会用”到“能提效”的 10 个工作流","把 Cursor 常用快捷键按任务分组（查代码、改代码、多文件、对话、审查与回滚），给出可直接照抄的工作流与最小回归清单，避免“快捷键背了也没变快”。","2026-03-02",[642,643,644,645,646],"Cursor","快捷键","AI IDE","VS Code","开发效率","/images/topics/ai/cursor-keyboard-shortcuts-cheatsheet.jpg","彩色机械键盘与鼠标的工作台面",34563105,"https://www.pexels.com/photo/colorful-mechanical-keyboard-and-mouse-setup-34563105/",12,{"type":23,"children":653,"toc":1762},[654,659,677,682,711,716,752,756,762,767,800,805,828,831,837,842,1060,1069,1072,1078,1085,1104,1112,1133,1138,1144,1159,1190,1195,1208,1214,1233,1251,1259,1264,1270,1275,1296,1304,1310,1315,1338,1343,1349,1362,1368,1386,1404,1410,1421,1439,1445,1456,1462,1467,1510,1513,1519,1527,1580,1583,1589,1595,1600,1605,1628,1646,1651,1676,1679,1685,1691,1696,1702,1707,1713,1718,1721,1727],{"type":26,"tag":27,"props":655,"children":656},{},[657],{"type":31,"value":658},"如果你在搜“Cursor 快捷键”，你大概率不是想背一张表，而是想解决这类问题：",{"type":26,"tag":169,"props":660,"children":661},{},[662,667,672],{"type":26,"tag":173,"props":663,"children":664},{},[665],{"type":31,"value":666},"为什么我用了 AI，还是很慢？（对话来回太多、改动不可控）",{"type":26,"tag":173,"props":668,"children":669},{},[670],{"type":31,"value":671},"为什么它“看起来懂了”，却改错文件/改出回归？（上下文与范围没锁住）",{"type":26,"tag":173,"props":673,"children":674},{},[675],{"type":31,"value":676},"多文件改动怎么做得安全？（验收、回滚、最小回归集）",{"type":26,"tag":27,"props":678,"children":679},{},[680],{"type":31,"value":681},"这篇文章给你两份东西：",{"type":26,"tag":683,"props":684,"children":685},"ol",{},[686,699],{"type":26,"tag":173,"props":687,"children":688},{},[689,691,697],{"type":31,"value":690},"一张",{"type":26,"tag":692,"props":693,"children":694},"strong",{},[695],{"type":31,"value":696},"按任务分组",{"type":31,"value":698},"的快捷键表（不是按功能堆在一起）",{"type":26,"tag":173,"props":700,"children":701},{},[702,704,709],{"type":31,"value":703},"一套“从需求到落地”的",{"type":26,"tag":692,"props":705,"children":706},{},[707],{"type":31,"value":708},"最小闭环工作流",{"type":31,"value":710},"（每一步都有快捷键）",{"type":26,"tag":27,"props":712,"children":713},{},[714],{"type":31,"value":715},"想看系统玩法：",{"type":26,"tag":169,"props":717,"children":718},{},[719,730,741],{"type":26,"tag":173,"props":720,"children":721},{},[722,724],{"type":31,"value":723},"入门教程看：",{"type":26,"tag":591,"props":725,"children":727},{"href":726},"/topics/ai/cursor-tutorial",[728],{"type":31,"value":729},"Cursor 使用教程（2026）",{"type":26,"tag":173,"props":731,"children":732},{},[733,735],{"type":31,"value":734},"进阶玩法看：",{"type":26,"tag":591,"props":736,"children":738},{"href":737},"/topics/ai/cursor-editor-guide",[739],{"type":31,"value":740},"Cursor 编辑器深度玩法",{"type":26,"tag":173,"props":742,"children":743},{},[744,746],{"type":31,"value":745},"规则与忽略看：",{"type":26,"tag":591,"props":747,"children":749},{"href":748},"/topics/ai/cursor-rules-cursorrules",[750],{"type":31,"value":751},"Cursor Rules 与 .cursorrules",{"type":26,"tag":753,"props":754,"children":755},"hr",{},[],{"type":26,"tag":39,"props":757,"children":759},{"id":758},"先给结论提效不是按得快而是闭环更短",[760],{"type":31,"value":761},"先给结论：提效不是“按得快”，而是“闭环更短”",{"type":26,"tag":27,"props":763,"children":764},{},[765],{"type":31,"value":766},"你可以把 Cursor 的快捷键理解为 3 条流水线：",{"type":26,"tag":169,"props":768,"children":769},{},[770,780,790],{"type":26,"tag":173,"props":771,"children":772},{},[773,778],{"type":26,"tag":692,"props":774,"children":775},{},[776],{"type":31,"value":777},"改一小段",{"type":31,"value":779},"（内联编辑）：把改动限制在一个函数/一段样式",{"type":26,"tag":173,"props":781,"children":782},{},[783,788],{"type":26,"tag":692,"props":784,"children":785},{},[786],{"type":31,"value":787},"改一组文件",{"type":31,"value":789},"（Composer）：把改动限制在一组明确文件，并要求输出 diff + 验收点",{"type":26,"tag":173,"props":791,"children":792},{},[793,798],{"type":26,"tag":692,"props":794,"children":795},{},[796],{"type":31,"value":797},"聊清楚再动手",{"type":31,"value":799},"（侧边对话）：先对齐目标、范围、验收、回滚",{"type":26,"tag":27,"props":801,"children":802},{},[803],{"type":31,"value":804},"当你觉得“它乱改/改太大”时，往往不是快捷键没记住，而是缺了两件事：",{"type":26,"tag":169,"props":806,"children":807},{},[808,818],{"type":26,"tag":173,"props":809,"children":810},{},[811,813],{"type":31,"value":812},"没有在动手前锁定",{"type":26,"tag":692,"props":814,"children":815},{},[816],{"type":31,"value":817},"范围",{"type":26,"tag":173,"props":819,"children":820},{},[821,823],{"type":31,"value":822},"没有在接受改动前准备",{"type":26,"tag":692,"props":824,"children":825},{},[826],{"type":31,"value":827},"验收/回滚",{"type":26,"tag":753,"props":829,"children":830},{},[],{"type":26,"tag":39,"props":832,"children":834},{"id":833},"快捷键速查表按任务分组",[835],{"type":31,"value":836},"快捷键速查表（按任务分组）",{"type":26,"tag":27,"props":838,"children":839},{},[840],{"type":31,"value":841},"说明：下表按“你正在做什么”组织，而不是按“功能名字”组织。不同版本快捷键可能略有差异，但核心逻辑一致。",{"type":26,"tag":46,"props":843,"children":844},{},[845,871],{"type":26,"tag":50,"props":846,"children":847},{},[848],{"type":26,"tag":54,"props":849,"children":850},{},[851,856,861,866],{"type":26,"tag":58,"props":852,"children":853},{},[854],{"type":31,"value":855},"任务",{"type":26,"tag":58,"props":857,"children":858},{},[859],{"type":31,"value":860},"macOS",{"type":26,"tag":58,"props":862,"children":863},{},[864],{"type":31,"value":865},"Windows",{"type":26,"tag":58,"props":867,"children":868},{},[869],{"type":31,"value":870},"你该在什么时候用",{"type":26,"tag":74,"props":872,"children":873},{},[874,905,936,967,998,1029],{"type":26,"tag":54,"props":875,"children":876},{},[877,882,891,900],{"type":26,"tag":81,"props":878,"children":879},{},[880],{"type":31,"value":881},"改一小段（最安全）",{"type":26,"tag":81,"props":883,"children":884},{},[885],{"type":26,"tag":152,"props":886,"children":888},{"className":887},[],[889],{"type":31,"value":890},"Cmd + K",{"type":26,"tag":81,"props":892,"children":893},{},[894],{"type":26,"tag":152,"props":895,"children":897},{"className":896},[],[898],{"type":31,"value":899},"Ctrl + K",{"type":26,"tag":81,"props":901,"children":902},{},[903],{"type":31,"value":904},"只想改一个函数/一段 CSS，不想动别的",{"type":26,"tag":54,"props":906,"children":907},{},[908,913,922,931],{"type":26,"tag":81,"props":909,"children":910},{},[911],{"type":31,"value":912},"打开 AI 对话（先对齐再动手）",{"type":26,"tag":81,"props":914,"children":915},{},[916],{"type":26,"tag":152,"props":917,"children":919},{"className":918},[],[920],{"type":31,"value":921},"Cmd + L",{"type":26,"tag":81,"props":923,"children":924},{},[925],{"type":26,"tag":152,"props":926,"children":928},{"className":927},[],[929],{"type":31,"value":930},"Ctrl + L",{"type":26,"tag":81,"props":932,"children":933},{},[934],{"type":31,"value":935},"需要澄清目标、制定步骤、给验收点",{"type":26,"tag":54,"props":937,"children":938},{},[939,944,953,962],{"type":26,"tag":81,"props":940,"children":941},{},[942],{"type":31,"value":943},"多文件编辑（有组织地改一组文件）",{"type":26,"tag":81,"props":945,"children":946},{},[947],{"type":26,"tag":152,"props":948,"children":950},{"className":949},[],[951],{"type":31,"value":952},"Cmd + I",{"type":26,"tag":81,"props":954,"children":955},{},[956],{"type":26,"tag":152,"props":957,"children":959},{"className":958},[],[960],{"type":31,"value":961},"Ctrl + I",{"type":26,"tag":81,"props":963,"children":964},{},[965],{"type":31,"value":966},"改动涉及多个文件：组件+样式+测试",{"type":26,"tag":54,"props":968,"children":969},{},[970,975,984,993],{"type":26,"tag":81,"props":971,"children":972},{},[973],{"type":31,"value":974},"把选中代码加入对话上下文",{"type":26,"tag":81,"props":976,"children":977},{},[978],{"type":26,"tag":152,"props":979,"children":981},{"className":980},[],[982],{"type":31,"value":983},"Cmd + Shift + L",{"type":26,"tag":81,"props":985,"children":986},{},[987],{"type":26,"tag":152,"props":988,"children":990},{"className":989},[],[991],{"type":31,"value":992},"Ctrl + Shift + L",{"type":26,"tag":81,"props":994,"children":995},{},[996],{"type":31,"value":997},"让 AI 只看你选的片段（降低噪音）",{"type":26,"tag":54,"props":999,"children":1000},{},[1001,1006,1015,1024],{"type":26,"tag":81,"props":1002,"children":1003},{},[1004],{"type":31,"value":1005},"接受当前建议",{"type":26,"tag":81,"props":1007,"children":1008},{},[1009],{"type":26,"tag":152,"props":1010,"children":1012},{"className":1011},[],[1013],{"type":31,"value":1014},"Cmd + Y",{"type":26,"tag":81,"props":1016,"children":1017},{},[1018],{"type":26,"tag":152,"props":1019,"children":1021},{"className":1020},[],[1022],{"type":31,"value":1023},"Ctrl + Y",{"type":26,"tag":81,"props":1025,"children":1026},{},[1027],{"type":31,"value":1028},"你已经准备好验收/回滚，并确认改动范围",{"type":26,"tag":54,"props":1030,"children":1031},{},[1032,1037,1046,1055],{"type":26,"tag":81,"props":1033,"children":1034},{},[1035],{"type":31,"value":1036},"拒绝当前建议",{"type":26,"tag":81,"props":1038,"children":1039},{},[1040],{"type":26,"tag":152,"props":1041,"children":1043},{"className":1042},[],[1044],{"type":31,"value":1045},"Cmd + N",{"type":26,"tag":81,"props":1047,"children":1048},{},[1049],{"type":26,"tag":152,"props":1050,"children":1052},{"className":1051},[],[1053],{"type":31,"value":1054},"Ctrl + N",{"type":26,"tag":81,"props":1056,"children":1057},{},[1058],{"type":31,"value":1059},"改得太大、改错方向，立刻收手",{"type":26,"tag":1061,"props":1062,"children":1063},"blockquote",{},[1064],{"type":26,"tag":27,"props":1065,"children":1066},{},[1067],{"type":31,"value":1068},"小技巧：把“改一小段”当默认路径。只有当你能清晰写出“会改哪几类文件、怎么验收”时再进入多文件。",{"type":26,"tag":753,"props":1070,"children":1071},{},[],{"type":26,"tag":39,"props":1073,"children":1075},{"id":1074},"_10-个可直接照抄的提效工作流每个都能闭环",[1076],{"type":31,"value":1077},"10 个可直接照抄的提效工作流（每个都能闭环）",{"type":26,"tag":1079,"props":1080,"children":1082},"h3",{"id":1081},"工作流-1需求计划小步改新手最稳",[1083],{"type":31,"value":1084},"工作流 1：需求→计划→小步改（新手最稳）",{"type":26,"tag":683,"props":1086,"children":1087},{},[1088,1099],{"type":26,"tag":173,"props":1089,"children":1090},{},[1091,1097],{"type":26,"tag":152,"props":1092,"children":1094},{"className":1093},[],[1095],{"type":31,"value":1096},"Cmd/Ctrl + L",{"type":31,"value":1098}," 打开对话",{"type":26,"tag":173,"props":1100,"children":1101},{},[1102],{"type":31,"value":1103},"先发这段（可复制）：",{"type":26,"tag":1061,"props":1105,"children":1106},{},[1107],{"type":26,"tag":27,"props":1108,"children":1109},{},[1110],{"type":31,"value":1111},"目标：……\n范围：只修改以下文件/模块：……\n非目标：……（明确不做）\n验收：……（可测试/可手动检查）\n输出格式：先给计划，再逐步执行；每一步写出 diff 摘要。",{"type":26,"tag":683,"props":1113,"children":1114},{"start":616},[1115,1120],{"type":26,"tag":173,"props":1116,"children":1117},{},[1118],{"type":31,"value":1119},"让 AI 先给“计划（3~6 步）”，你确认后再执行",{"type":26,"tag":173,"props":1121,"children":1122},{},[1123,1125,1131],{"type":31,"value":1124},"任何一步涉及改代码：优先回到编辑区，选中片段用 ",{"type":26,"tag":152,"props":1126,"children":1128},{"className":1127},[],[1129],{"type":31,"value":1130},"Cmd/Ctrl + K",{"type":31,"value":1132}," 小步改",{"type":26,"tag":27,"props":1134,"children":1135},{},[1136],{"type":31,"value":1137},"为什么有效：你把“想法”变成了“可执行约束”，这就是 GEO（面向 AI/模型的可理解结构）。",{"type":26,"tag":1079,"props":1139,"children":1141},{"id":1140},"工作流-2只改一个函数高频低风险",[1142],{"type":31,"value":1143},"工作流 2：只改一个函数（高频、低风险）",{"type":26,"tag":169,"props":1145,"children":1146},{},[1147],{"type":26,"tag":173,"props":1148,"children":1149},{},[1150,1152,1157],{"type":31,"value":1151},"选中函数 → ",{"type":26,"tag":152,"props":1153,"children":1155},{"className":1154},[],[1156],{"type":31,"value":1130},{"type":31,"value":1158}," → 输入指令：",{"type":26,"tag":1061,"props":1160,"children":1161},{},[1162,1167],{"type":26,"tag":27,"props":1163,"children":1164},{},[1165],{"type":31,"value":1166},"把这段改成更可读：",{"type":26,"tag":169,"props":1168,"children":1169},{},[1170,1175,1180,1185],{"type":26,"tag":173,"props":1171,"children":1172},{},[1173],{"type":31,"value":1174},"用 async/await",{"type":26,"tag":173,"props":1176,"children":1177},{},[1178],{"type":31,"value":1179},"错误处理不要吞掉",{"type":26,"tag":173,"props":1181,"children":1182},{},[1183],{"type":31,"value":1184},"添加类型（若可推断）",{"type":26,"tag":173,"props":1186,"children":1187},{},[1188],{"type":31,"value":1189},"不要改函数签名",{"type":26,"tag":27,"props":1191,"children":1192},{},[1193],{"type":31,"value":1194},"验收方式（强制）：",{"type":26,"tag":169,"props":1196,"children":1197},{},[1198,1203],{"type":26,"tag":173,"props":1199,"children":1200},{},[1201],{"type":31,"value":1202},"输出前后函数行为一致（输入/输出）",{"type":26,"tag":173,"props":1204,"children":1205},{},[1206],{"type":31,"value":1207},"失败分支有可观测日志（不要悄悄 return null）",{"type":26,"tag":1079,"props":1209,"children":1211},{"id":1210},"工作流-3多文件改动先定文件清单",[1212],{"type":31,"value":1213},"工作流 3：多文件改动（先定“文件清单”）",{"type":26,"tag":683,"props":1215,"children":1216},{},[1217,1228],{"type":26,"tag":173,"props":1218,"children":1219},{},[1220,1226],{"type":26,"tag":152,"props":1221,"children":1223},{"className":1222},[],[1224],{"type":31,"value":1225},"Cmd/Ctrl + I",{"type":31,"value":1227}," 进入多文件",{"type":26,"tag":173,"props":1229,"children":1230},{},[1231],{"type":31,"value":1232},"先让 AI 输出：",{"type":26,"tag":169,"props":1234,"children":1235},{},[1236,1241,1246],{"type":26,"tag":173,"props":1237,"children":1238},{},[1239],{"type":31,"value":1240},"预计会改哪些文件（最多 5 个）",{"type":26,"tag":173,"props":1242,"children":1243},{},[1244],{"type":31,"value":1245},"每个文件改什么",{"type":26,"tag":173,"props":1247,"children":1248},{},[1249],{"type":31,"value":1250},"每一步怎么验收",{"type":26,"tag":683,"props":1252,"children":1253},{"start":616},[1254],{"type":26,"tag":173,"props":1255,"children":1256},{},[1257],{"type":31,"value":1258},"你确认文件清单后再开始生成改动",{"type":26,"tag":27,"props":1260,"children":1261},{},[1262],{"type":31,"value":1263},"关键点：多文件最容易翻车的是“它把你没想到的文件也改了”。所以文件清单是第一道闸门。",{"type":26,"tag":1079,"props":1265,"children":1267},{"id":1266},"工作流-4把上下文噪音砍掉防跑偏",[1268],{"type":31,"value":1269},"工作流 4：把“上下文噪音”砍掉（防跑偏）",{"type":26,"tag":27,"props":1271,"children":1272},{},[1273],{"type":31,"value":1274},"当你怀疑它在胡说/乱改时：",{"type":26,"tag":169,"props":1276,"children":1277},{},[1278,1291],{"type":26,"tag":173,"props":1279,"children":1280},{},[1281,1283,1289],{"type":31,"value":1282},"只选择关键代码片段 → ",{"type":26,"tag":152,"props":1284,"children":1286},{"className":1285},[],[1287],{"type":31,"value":1288},"Cmd/Ctrl + Shift + L",{"type":31,"value":1290}," 加入对话",{"type":26,"tag":173,"props":1292,"children":1293},{},[1294],{"type":31,"value":1295},"然后在对话里要求：",{"type":26,"tag":1061,"props":1297,"children":1298},{},[1299],{"type":26,"tag":27,"props":1300,"children":1301},{},[1302],{"type":31,"value":1303},"只基于我提供的代码片段回答，不要假设其它文件存在。",{"type":26,"tag":1079,"props":1305,"children":1307},{"id":1306},"工作流-5生成变更说明让-code-review-变快",[1308],{"type":31,"value":1309},"工作流 5：生成变更说明（让 code review 变快）",{"type":26,"tag":27,"props":1311,"children":1312},{},[1313],{"type":31,"value":1314},"改完后在对话里让它输出：",{"type":26,"tag":169,"props":1316,"children":1317},{},[1318,1323,1328,1333],{"type":26,"tag":173,"props":1319,"children":1320},{},[1321],{"type":31,"value":1322},"改动摘要（3~7 条）",{"type":26,"tag":173,"props":1324,"children":1325},{},[1326],{"type":31,"value":1327},"风险点（依赖/边界条件）",{"type":26,"tag":173,"props":1329,"children":1330},{},[1331],{"type":31,"value":1332},"回滚方式",{"type":26,"tag":173,"props":1334,"children":1335},{},[1336],{"type":31,"value":1337},"验收步骤",{"type":26,"tag":27,"props":1339,"children":1340},{},[1341],{"type":31,"value":1342},"这套结构能直接贴进 PR 描述。",{"type":26,"tag":1079,"props":1344,"children":1346},{"id":1345},"工作流-6写最小回归集不写回归-等事故",[1347],{"type":31,"value":1348},"工作流 6：写“最小回归集”（不写回归 = 等事故）",{"type":26,"tag":27,"props":1350,"children":1351},{},[1352,1354,1360],{"type":31,"value":1353},"每次改动都至少做 10 条最小回归（见下文清单）。你可以把它写在 ",{"type":26,"tag":152,"props":1355,"children":1357},{"className":1356},[],[1358],{"type":31,"value":1359},"README",{"type":31,"value":1361}," 或团队 wiki。",{"type":26,"tag":1079,"props":1363,"children":1365},{"id":1364},"工作流-7把接受建议变成最后一步",[1366],{"type":31,"value":1367},"工作流 7：把“接受建议”变成最后一步",{"type":26,"tag":27,"props":1369,"children":1370},{},[1371,1377,1379,1384],{"type":26,"tag":152,"props":1372,"children":1374},{"className":1373},[],[1375],{"type":31,"value":1376},"Cmd/Ctrl + Y",{"type":31,"value":1378}," 应该是",{"type":26,"tag":692,"props":1380,"children":1381},{},[1382],{"type":31,"value":1383},"最后一步",{"type":31,"value":1385},"：",{"type":26,"tag":169,"props":1387,"children":1388},{},[1389,1394,1399],{"type":26,"tag":173,"props":1390,"children":1391},{},[1392],{"type":31,"value":1393},"你已经看过 diff",{"type":26,"tag":173,"props":1395,"children":1396},{},[1397],{"type":31,"value":1398},"你能说清楚“怎么验收”",{"type":26,"tag":173,"props":1400,"children":1401},{},[1402],{"type":31,"value":1403},"你知道“怎么回滚”",{"type":26,"tag":1079,"props":1405,"children":1407},{"id":1406},"工作流-8拒绝建议不是失败是风控动作",[1408],{"type":31,"value":1409},"工作流 8：拒绝建议不是失败，是风控动作",{"type":26,"tag":27,"props":1411,"children":1412},{},[1413,1419],{"type":26,"tag":152,"props":1414,"children":1416},{"className":1415},[],[1417],{"type":31,"value":1418},"Cmd/Ctrl + N",{"type":31,"value":1420}," 的使用时机：",{"type":26,"tag":169,"props":1422,"children":1423},{},[1424,1429,1434],{"type":26,"tag":173,"props":1425,"children":1426},{},[1427],{"type":31,"value":1428},"它开始改你没提过的东西（范围漂移）",{"type":26,"tag":173,"props":1430,"children":1431},{},[1432],{"type":31,"value":1433},"它改了 10 个文件但你只想改 1 个",{"type":26,"tag":173,"props":1435,"children":1436},{},[1437],{"type":31,"value":1438},"它为了“更优雅”引入新依赖/新抽象",{"type":26,"tag":1079,"props":1440,"children":1442},{"id":1441},"工作流-9重复任务做成模板提示词不是一次性",[1443],{"type":31,"value":1444},"工作流 9：重复任务做成模板（提示词不是一次性）",{"type":26,"tag":27,"props":1446,"children":1447},{},[1448,1450,1454],{"type":31,"value":1449},"把高频任务（比如“写组件+样式+验收”）固化成模板，放进 Rules（见：",{"type":26,"tag":591,"props":1451,"children":1452},{"href":748},[1453],{"type":31,"value":751},{"type":31,"value":1455},"）。",{"type":26,"tag":1079,"props":1457,"children":1459},{"id":1458},"工作流-10把快捷键表做成你自己的任务表",[1460],{"type":31,"value":1461},"工作流 10：把“快捷键表”做成你自己的任务表",{"type":26,"tag":27,"props":1463,"children":1464},{},[1465],{"type":31,"value":1466},"你不需要记住所有快捷键，只需要记住：",{"type":26,"tag":169,"props":1468,"children":1469},{},[1470,1480,1490,1500],{"type":26,"tag":173,"props":1471,"children":1472},{},[1473,1475],{"type":31,"value":1474},"小步改：",{"type":26,"tag":152,"props":1476,"children":1478},{"className":1477},[],[1479],{"type":31,"value":1130},{"type":26,"tag":173,"props":1481,"children":1482},{},[1483,1485],{"type":31,"value":1484},"先对齐：",{"type":26,"tag":152,"props":1486,"children":1488},{"className":1487},[],[1489],{"type":31,"value":1096},{"type":26,"tag":173,"props":1491,"children":1492},{},[1493,1495],{"type":31,"value":1494},"多文件：",{"type":26,"tag":152,"props":1496,"children":1498},{"className":1497},[],[1499],{"type":31,"value":1225},{"type":26,"tag":173,"props":1501,"children":1502},{},[1503,1505],{"type":31,"value":1504},"上下文聚焦：",{"type":26,"tag":152,"props":1506,"children":1508},{"className":1507},[],[1509],{"type":31,"value":1288},{"type":26,"tag":753,"props":1511,"children":1512},{},[],{"type":26,"tag":39,"props":1514,"children":1516},{"id":1515},"必交付物-1最小回归任务清单10-条通用",[1517],{"type":31,"value":1518},"必交付物 1：最小回归任务清单（10 条，通用）",{"type":26,"tag":1061,"props":1520,"children":1521},{},[1522],{"type":26,"tag":27,"props":1523,"children":1524},{},[1525],{"type":31,"value":1526},"这份清单的意义：让每次 AI 改动都能“被验证”。否则你只是把不可控变成了更快的不可控。",{"type":26,"tag":683,"props":1528,"children":1529},{},[1530,1535,1540,1545,1550,1555,1560,1565,1570,1575],{"type":26,"tag":173,"props":1531,"children":1532},{},[1533],{"type":31,"value":1534},"关键路径能跑通（手动点击/请求一次）",{"type":26,"tag":173,"props":1536,"children":1537},{},[1538],{"type":31,"value":1539},"错误路径能触发（模拟一次失败输入）",{"type":26,"tag":173,"props":1541,"children":1542},{},[1543],{"type":31,"value":1544},"控制台无新增错误（至少关注 1 次真实操作）",{"type":26,"tag":173,"props":1546,"children":1547},{},[1548],{"type":31,"value":1549},"关键 UI 未错位（移动端/桌面端各看一眼）",{"type":26,"tag":173,"props":1551,"children":1552},{},[1553],{"type":31,"value":1554},"刷新后状态正确（尤其是表单/列表）",{"type":26,"tag":173,"props":1556,"children":1557},{},[1558],{"type":31,"value":1559},"路由跳转没断（从入口到目标页）",{"type":26,"tag":173,"props":1561,"children":1562},{},[1563],{"type":31,"value":1564},"相关接口未改变契约（字段名/类型）",{"type":26,"tag":173,"props":1566,"children":1567},{},[1568],{"type":31,"value":1569},"性能没有明显退化（首屏、交互卡顿）",{"type":26,"tag":173,"props":1571,"children":1572},{},[1573],{"type":31,"value":1574},"回滚方案可执行（知道回滚哪几个文件/commit）",{"type":26,"tag":173,"props":1576,"children":1577},{},[1578],{"type":31,"value":1579},"写下“这次改动解决了什么、风险是什么”（可贴 PR）",{"type":26,"tag":753,"props":1581,"children":1582},{},[],{"type":26,"tag":39,"props":1584,"children":1586},{"id":1585},"必交付物-2失败案例复盘真实会发生",[1587],{"type":31,"value":1588},"必交付物 2：失败案例复盘（真实会发生）",{"type":26,"tag":1079,"props":1590,"children":1592},{"id":1591},"现象快捷键用得很熟但交付还是慢",[1593],{"type":31,"value":1594},"现象：快捷键用得很熟，但交付还是慢",{"type":26,"tag":27,"props":1596,"children":1597},{},[1598],{"type":31,"value":1599},"典型原因：你把 Cursor 当成“更聪明的搜索框”，不断对话，直到它给出你想要的答案。",{"type":26,"tag":27,"props":1601,"children":1602},{},[1603],{"type":31,"value":1604},"复现路径：",{"type":26,"tag":169,"props":1606,"children":1607},{},[1608,1613,1618,1623],{"type":26,"tag":173,"props":1609,"children":1610},{},[1611],{"type":31,"value":1612},"你直接说“把页面做得更好看、更高级”",{"type":26,"tag":173,"props":1614,"children":1615},{},[1616],{"type":31,"value":1617},"AI 开始大改样式、抽象组件、甚至引入新依赖",{"type":26,"tag":173,"props":1619,"children":1620},{},[1621],{"type":31,"value":1622},"你为了省事按了“接受建议”",{"type":26,"tag":173,"props":1624,"children":1625},{},[1626],{"type":31,"value":1627},"最后发现：设计没统一、移动端崩、甚至埋了性能问题",{"type":26,"tag":27,"props":1629,"children":1630},{},[1631,1633,1637,1639,1644],{"type":31,"value":1632},"根因：缺少",{"type":26,"tag":692,"props":1634,"children":1635},{},[1636],{"type":31,"value":817},{"type":31,"value":1638},"与",{"type":26,"tag":692,"props":1640,"children":1641},{},[1642],{"type":31,"value":1643},"验收",{"type":31,"value":1645},"。",{"type":26,"tag":27,"props":1647,"children":1648},{},[1649],{"type":31,"value":1650},"修复方式（可照抄）：",{"type":26,"tag":169,"props":1652,"children":1653},{},[1654,1659,1671],{"type":26,"tag":173,"props":1655,"children":1656},{},[1657],{"type":31,"value":1658},"把需求拆成 3 个可验证目标：例如“按钮样式统一”“首屏 CTA 更明显”“移动端间距不挤”",{"type":26,"tag":173,"props":1660,"children":1661},{},[1662,1664,1669],{"type":31,"value":1663},"每个目标只用 ",{"type":26,"tag":152,"props":1665,"children":1667},{"className":1666},[],[1668],{"type":31,"value":1130},{"type":31,"value":1670}," 改一个局部",{"type":26,"tag":173,"props":1672,"children":1673},{},[1674],{"type":31,"value":1675},"每次接受建议前跑一遍“最小回归集”",{"type":26,"tag":753,"props":1677,"children":1678},{},[],{"type":26,"tag":39,"props":1680,"children":1682},{"id":1681},"faq高频问题",[1683],{"type":31,"value":1684},"FAQ（高频问题）",{"type":26,"tag":1079,"props":1686,"children":1688},{"id":1687},"q1我应该先记快捷键还是先学工作流",[1689],{"type":31,"value":1690},"Q1：我应该先记快捷键还是先学工作流？",{"type":26,"tag":27,"props":1692,"children":1693},{},[1694],{"type":31,"value":1695},"先学工作流。快捷键只是把工作流的步骤变短。",{"type":26,"tag":1079,"props":1697,"children":1699},{"id":1698},"q2为什么我一用多文件就容易翻车",[1700],{"type":31,"value":1701},"Q2：为什么我一用多文件就容易翻车？",{"type":26,"tag":27,"props":1703,"children":1704},{},[1705],{"type":31,"value":1706},"因为多文件意味着范围更大、依赖更多、验收更难。先锁定“文件清单 + 每步验收”，再让它动手。",{"type":26,"tag":1079,"props":1708,"children":1710},{"id":1709},"q3有没有万能提示词",[1711],{"type":31,"value":1712},"Q3：有没有“万能提示词”？",{"type":26,"tag":27,"props":1714,"children":1715},{},[1716],{"type":31,"value":1717},"没有，但有“万能结构”：目标、范围、非目标、验收、输出格式。",{"type":26,"tag":753,"props":1719,"children":1720},{},[],{"type":26,"tag":39,"props":1722,"children":1724},{"id":1723},"延伸阅读建议按顺序",[1725],{"type":31,"value":1726},"延伸阅读（建议按顺序）",{"type":26,"tag":169,"props":1728,"children":1729},{},[1730,1737,1744,1751],{"type":26,"tag":173,"props":1731,"children":1732},{},[1733],{"type":26,"tag":591,"props":1734,"children":1735},{"href":726},[1736],{"type":31,"value":729},{"type":26,"tag":173,"props":1738,"children":1739},{},[1740],{"type":26,"tag":591,"props":1741,"children":1742},{"href":737},[1743],{"type":31,"value":740},{"type":26,"tag":173,"props":1745,"children":1746},{},[1747],{"type":26,"tag":591,"props":1748,"children":1749},{"href":748},[1750],{"type":31,"value":751},{"type":26,"tag":173,"props":1752,"children":1753},{},[1754,1756],{"type":31,"value":1755},"如果你更关心“网页制作落地”：看这篇 ",{"type":26,"tag":591,"props":1757,"children":1759},{"href":1758},"/topics/practical-tips/htmlpage-quick-landing-page",[1760],{"type":31,"value":1761},"3 分钟用 HTMLPAGE 做落地页",{"title":7,"searchDepth":616,"depth":616,"links":1763},[1764,1765,1766,1778,1779,1782,1787],{"id":758,"depth":619,"text":761},{"id":833,"depth":619,"text":836},{"id":1074,"depth":619,"text":1077,"children":1767},[1768,1769,1770,1771,1772,1773,1774,1775,1776,1777],{"id":1081,"depth":616,"text":1084},{"id":1140,"depth":616,"text":1143},{"id":1210,"depth":616,"text":1213},{"id":1266,"depth":616,"text":1269},{"id":1306,"depth":616,"text":1309},{"id":1345,"depth":616,"text":1348},{"id":1364,"depth":616,"text":1367},{"id":1406,"depth":616,"text":1409},{"id":1441,"depth":616,"text":1444},{"id":1458,"depth":616,"text":1461},{"id":1515,"depth":619,"text":1518},{"id":1585,"depth":619,"text":1588,"children":1780},[1781],{"id":1591,"depth":616,"text":1594},{"id":1681,"depth":619,"text":1684,"children":1783},[1784,1785,1786],{"id":1687,"depth":616,"text":1690},{"id":1698,"depth":616,"text":1701},{"id":1709,"depth":616,"text":1712},{"id":1723,"depth":619,"text":1726},"content:topics:ai:cursor-keyboard-shortcuts-cheatsheet.md","topics/ai/cursor-keyboard-shortcuts-cheatsheet.md","topics/ai/cursor-keyboard-shortcuts-cheatsheet",{"_path":1792,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":1793,"description":1794,"date":1795,"topic":5,"author":11,"tags":1796,"image":1800,"imageAlt":1801,"pexelsPhotoId":1802,"pexelsUrl":1803,"readingTime":21,"body":1804,"_type":629,"_id":2737,"_source":631,"_file":2738,"_stem":2739,"_extension":634},"/topics/ai/cursor-vs-copilot-vscode-workflow","Cursor vs GitHub Copilot vs VS Code：怎么选、怎么搭配、怎么把风险关在笼子里","用“任务类型×风险×验收成本”的选择矩阵解释 Cursor/Copilot/VS Code 的差异，并给出一套可落地的协作工作流（范围闸门、最小回归集、回滚策略）。","2026-03-01",[642,1797,645,1798,1799],"GitHub Copilot","AI 编程","工作流","/images/topics/ai/cursor-vs-copilot-vscode-workflow.jpg","团队在电脑前进行协作讨论",1181371,"https://www.pexels.com/photo/man-wearing-blue-dress-shirt-1181371/",{"type":23,"children":1805,"toc":2715},[1806,1811,1816,1834,1839,1857,1860,1866,1871,1902,1907,1910,1916,1924,2128,2136,2149,2152,2158,2164,2177,2182,2195,2201,2206,2239,2245,2250,2268,2271,2277,2282,2288,2293,2326,2332,2345,2350,2363,2369,2381,2387,2392,2405,2410,2413,2419,2424,2545,2548,2554,2564,2573,2591,2600,2608,2617,2635,2638,2644,2650,2655,2661,2666,2669,2674],{"type":26,"tag":27,"props":1807,"children":1808},{},[1809],{"type":31,"value":1810},"“Cursor 和 Copilot 到底有什么区别？”",{"type":26,"tag":27,"props":1812,"children":1813},{},[1814],{"type":31,"value":1815},"这个问题问得越早越好，因为你一旦把工具选错，后面所有痛苦都不是“提示词不够好”，而是：",{"type":26,"tag":169,"props":1817,"children":1818},{},[1819,1824,1829],{"type":26,"tag":173,"props":1820,"children":1821},{},[1822],{"type":31,"value":1823},"改动不可控（范围漂移、改错文件）",{"type":26,"tag":173,"props":1825,"children":1826},{},[1827],{"type":31,"value":1828},"验收成本爆炸（不知道要测什么）",{"type":26,"tag":173,"props":1830,"children":1831},{},[1832],{"type":31,"value":1833},"团队协作崩盘（没有闸门、没有回滚）",{"type":26,"tag":27,"props":1835,"children":1836},{},[1837],{"type":31,"value":1838},"这篇文章用一张选择矩阵 + 一套可执行工作流，帮你做到两件事：",{"type":26,"tag":683,"props":1840,"children":1841},{},[1842,1847],{"type":26,"tag":173,"props":1843,"children":1844},{},[1845],{"type":31,"value":1846},"知道什么时候用 Cursor、什么时候用 Copilot、什么时候“纯 VS Code 更快”",{"type":26,"tag":173,"props":1848,"children":1849},{},[1850,1852],{"type":31,"value":1851},"就算用 AI，也能把风险关在笼子里：",{"type":26,"tag":692,"props":1853,"children":1854},{},[1855],{"type":31,"value":1856},"可审查、可验证、可回滚",{"type":26,"tag":753,"props":1858,"children":1859},{},[],{"type":26,"tag":39,"props":1861,"children":1863},{"id":1862},"结论先说三者不是互斥而是分工",[1864],{"type":31,"value":1865},"结论先说：三者不是互斥，而是分工",{"type":26,"tag":27,"props":1867,"children":1868},{},[1869],{"type":31,"value":1870},"你可以把它们看成三层能力：",{"type":26,"tag":169,"props":1872,"children":1873},{},[1874,1883,1893],{"type":26,"tag":173,"props":1875,"children":1876},{},[1877,1881],{"type":26,"tag":692,"props":1878,"children":1879},{},[1880],{"type":31,"value":645},{"type":31,"value":1882},"：编辑器与生态（调试、插件、任务、终端、语言服务）",{"type":26,"tag":173,"props":1884,"children":1885},{},[1886,1891],{"type":26,"tag":692,"props":1887,"children":1888},{},[1889],{"type":31,"value":1890},"Copilot",{"type":31,"value":1892},"：代码补全与局部建议（“我正在写这一行/这一段”）",{"type":26,"tag":173,"props":1894,"children":1895},{},[1896,1900],{"type":26,"tag":692,"props":1897,"children":1898},{},[1899],{"type":31,"value":642},{"type":31,"value":1901},"：以项目为单位的 AI 协作（对话、索引、多文件编辑、规则）",{"type":26,"tag":27,"props":1903,"children":1904},{},[1905],{"type":31,"value":1906},"最常见的误区是：把“局部补全能力”当作“能做架构与多文件落地”。",{"type":26,"tag":753,"props":1908,"children":1909},{},[],{"type":26,"tag":39,"props":1911,"children":1913},{"id":1912},"选择矩阵按任务类型选工具不是按偏好",[1914],{"type":31,"value":1915},"选择矩阵：按任务类型选工具（不是按偏好）",{"type":26,"tag":1061,"props":1917,"children":1918},{},[1919],{"type":26,"tag":27,"props":1920,"children":1921},{},[1922],{"type":31,"value":1923},"你只要把自己的任务放进表格，就能得到推荐路径。",{"type":26,"tag":46,"props":1925,"children":1926},{},[1927,1959],{"type":26,"tag":50,"props":1928,"children":1929},{},[1930],{"type":26,"tag":54,"props":1931,"children":1932},{},[1933,1938,1944,1949,1954],{"type":26,"tag":58,"props":1934,"children":1935},{},[1936],{"type":31,"value":1937},"任务类型",{"type":26,"tag":58,"props":1939,"children":1941},{"align":1940},"right",[1942],{"type":31,"value":1943},"风险",{"type":26,"tag":58,"props":1945,"children":1946},{"align":1940},[1947],{"type":31,"value":1948},"验收成本",{"type":26,"tag":58,"props":1950,"children":1951},{},[1952],{"type":31,"value":1953},"更推荐",{"type":26,"tag":58,"props":1955,"children":1956},{},[1957],{"type":31,"value":1958},"为什么",{"type":26,"tag":74,"props":1960,"children":1961},{},[1962,1989,2022,2048,2075,2102],{"type":26,"tag":54,"props":1963,"children":1964},{},[1965,1970,1975,1979,1984],{"type":26,"tag":81,"props":1966,"children":1967},{},[1968],{"type":31,"value":1969},"写一段代码/补一个 if",{"type":26,"tag":81,"props":1971,"children":1972},{"align":1940},[1973],{"type":31,"value":1974},"低",{"type":26,"tag":81,"props":1976,"children":1977},{"align":1940},[1978],{"type":31,"value":1974},{"type":26,"tag":81,"props":1980,"children":1981},{},[1982],{"type":31,"value":1983},"Copilot / Cursor 内联编辑",{"type":26,"tag":81,"props":1985,"children":1986},{},[1987],{"type":31,"value":1988},"局部建议足够，成本最低",{"type":26,"tag":54,"props":1990,"children":1991},{},[1992,1997,2002,2006,2017],{"type":26,"tag":81,"props":1993,"children":1994},{},[1995],{"type":31,"value":1996},"重构一个函数",{"type":26,"tag":81,"props":1998,"children":1999},{"align":1940},[2000],{"type":31,"value":2001},"中",{"type":26,"tag":81,"props":2003,"children":2004},{"align":1940},[2005],{"type":31,"value":2001},{"type":26,"tag":81,"props":2007,"children":2008},{},[2009,2011],{"type":31,"value":2010},"Cursor ",{"type":26,"tag":152,"props":2012,"children":2014},{"className":2013},[],[2015],{"type":31,"value":2016},"内联编辑",{"type":26,"tag":81,"props":2018,"children":2019},{},[2020],{"type":31,"value":2021},"需要解释、需要约束输出",{"type":26,"tag":54,"props":2023,"children":2024},{},[2025,2030,2034,2038,2043],{"type":26,"tag":81,"props":2026,"children":2027},{},[2028],{"type":31,"value":2029},"改一个组件 + 样式",{"type":26,"tag":81,"props":2031,"children":2032},{"align":1940},[2033],{"type":31,"value":2001},{"type":26,"tag":81,"props":2035,"children":2036},{"align":1940},[2037],{"type":31,"value":2001},{"type":26,"tag":81,"props":2039,"children":2040},{},[2041],{"type":31,"value":2042},"Cursor（小范围多文件）",{"type":26,"tag":81,"props":2044,"children":2045},{},[2046],{"type":31,"value":2047},"需要同时改模板与样式",{"type":26,"tag":54,"props":2049,"children":2050},{},[2051,2056,2061,2065,2070],{"type":26,"tag":81,"props":2052,"children":2053},{},[2054],{"type":31,"value":2055},"改 3~5 个文件（组件+api+测试）",{"type":26,"tag":81,"props":2057,"children":2058},{"align":1940},[2059],{"type":31,"value":2060},"高",{"type":26,"tag":81,"props":2062,"children":2063},{"align":1940},[2064],{"type":31,"value":2060},{"type":26,"tag":81,"props":2066,"children":2067},{},[2068],{"type":31,"value":2069},"Cursor Composer + 闸门",{"type":26,"tag":81,"props":2071,"children":2072},{},[2073],{"type":31,"value":2074},"需要计划、验收、回滚",{"type":26,"tag":54,"props":2076,"children":2077},{},[2078,2083,2088,2092,2097],{"type":26,"tag":81,"props":2079,"children":2080},{},[2081],{"type":31,"value":2082},"重写一段架构/引入新依赖",{"type":26,"tag":81,"props":2084,"children":2085},{"align":1940},[2086],{"type":31,"value":2087},"很高",{"type":26,"tag":81,"props":2089,"children":2090},{"align":1940},[2091],{"type":31,"value":2087},{"type":26,"tag":81,"props":2093,"children":2094},{},[2095],{"type":31,"value":2096},"先人脑设计 + VS Code 实现",{"type":26,"tag":81,"props":2098,"children":2099},{},[2100],{"type":31,"value":2101},"AI 易发散，最好先设计再执行",{"type":26,"tag":54,"props":2103,"children":2104},{},[2105,2110,2114,2118,2123],{"type":26,"tag":81,"props":2106,"children":2107},{},[2108],{"type":31,"value":2109},"排查线上问题/性能抖动",{"type":26,"tag":81,"props":2111,"children":2112},{"align":1940},[2113],{"type":31,"value":2060},{"type":26,"tag":81,"props":2115,"children":2116},{"align":1940},[2117],{"type":31,"value":2087},{"type":26,"tag":81,"props":2119,"children":2120},{},[2121],{"type":31,"value":2122},"VS Code + 工具链优先，AI 辅助归纳",{"type":26,"tag":81,"props":2124,"children":2125},{},[2126],{"type":31,"value":2127},"需要证据，不要“猜”",{"type":26,"tag":27,"props":2129,"children":2130},{},[2131],{"type":26,"tag":692,"props":2132,"children":2133},{},[2134],{"type":31,"value":2135},"一句话规则：",{"type":26,"tag":169,"props":2137,"children":2138},{},[2139,2144],{"type":26,"tag":173,"props":2140,"children":2141},{},[2142],{"type":31,"value":2143},"当你的改动可以用“10 条最小回归集”覆盖时，用 Cursor。",{"type":26,"tag":173,"props":2145,"children":2146},{},[2147],{"type":31,"value":2148},"当你的改动无法验证时，先别让 AI 动手。",{"type":26,"tag":753,"props":2150,"children":2151},{},[],{"type":26,"tag":39,"props":2153,"children":2155},{"id":2154},"差异拆解到底差在哪里",[2156],{"type":31,"value":2157},"差异拆解：到底差在哪里？",{"type":26,"tag":1079,"props":2159,"children":2161},{"id":2160},"_1-上下文来源补全-vs-项目索引",[2162],{"type":31,"value":2163},"1) 上下文来源：补全 vs 项目索引",{"type":26,"tag":169,"props":2165,"children":2166},{},[2167,2172],{"type":26,"tag":173,"props":2168,"children":2169},{},[2170],{"type":31,"value":2171},"Copilot 更擅长：你正在写的这几行、当前文件的局部上下文",{"type":26,"tag":173,"props":2173,"children":2174},{},[2175],{"type":31,"value":2176},"Cursor 更擅长：项目级索引 + 多文件关联理解",{"type":26,"tag":27,"props":2178,"children":2179},{},[2180],{"type":31,"value":2181},"因此：",{"type":26,"tag":169,"props":2183,"children":2184},{},[2185,2190],{"type":26,"tag":173,"props":2186,"children":2187},{},[2188],{"type":31,"value":2189},"写代码片段：Copilot 速度更快",{"type":26,"tag":173,"props":2191,"children":2192},{},[2193],{"type":31,"value":2194},"改一坨工程：Cursor 更有胜算（但更需要闸门）",{"type":26,"tag":1079,"props":2196,"children":2198},{"id":2197},"_2-交互方式你能不能控制范围",[2199],{"type":31,"value":2200},"2) 交互方式：你能不能控制范围",{"type":26,"tag":27,"props":2202,"children":2203},{},[2204],{"type":31,"value":2205},"范围控制的三个层级：",{"type":26,"tag":683,"props":2207,"children":2208},{},[2209,2219,2229],{"type":26,"tag":173,"props":2210,"children":2211},{},[2212,2214],{"type":31,"value":2213},"内联编辑（选中一段）→ ",{"type":26,"tag":692,"props":2215,"children":2216},{},[2217],{"type":31,"value":2218},"最强范围控制",{"type":26,"tag":173,"props":2220,"children":2221},{},[2222,2224],{"type":31,"value":2223},"Composer 多文件（先列文件清单）→ ",{"type":26,"tag":692,"props":2225,"children":2226},{},[2227],{"type":31,"value":2228},"可控但要闸门",{"type":26,"tag":173,"props":2230,"children":2231},{},[2232,2234],{"type":31,"value":2233},"大对话（泛目标）→ ",{"type":26,"tag":692,"props":2235,"children":2236},{},[2237],{"type":31,"value":2238},"最容易跑偏",{"type":26,"tag":1079,"props":2240,"children":2242},{"id":2241},"_3-输出形态建议-vs-可审查的变更",[2243],{"type":31,"value":2244},"3) 输出形态：建议 vs 可审查的变更",{"type":26,"tag":27,"props":2246,"children":2247},{},[2248],{"type":31,"value":2249},"最好的 AI 输出不是“给我一段代码”，而是：",{"type":26,"tag":169,"props":2251,"children":2252},{},[2253,2258,2263],{"type":26,"tag":173,"props":2254,"children":2255},{},[2256],{"type":31,"value":2257},"改动摘要（做了什么）",{"type":26,"tag":173,"props":2259,"children":2260},{},[2261],{"type":31,"value":2262},"diff 级别的可审查变更",{"type":26,"tag":173,"props":2264,"children":2265},{},[2266],{"type":31,"value":2267},"验收步骤与回滚方案",{"type":26,"tag":753,"props":2269,"children":2270},{},[],{"type":26,"tag":39,"props":2272,"children":2274},{"id":2273},"一套可落地的团队工作流把风险关住",[2275],{"type":31,"value":2276},"一套可落地的团队工作流（把风险关住）",{"type":26,"tag":27,"props":2278,"children":2279},{},[2280],{"type":31,"value":2281},"下面这套流程，你可以直接写进团队规范：",{"type":26,"tag":1079,"props":2283,"children":2285},{"id":2284},"step-1先写任务单geo-友好结构",[2286],{"type":31,"value":2287},"Step 1：先写任务单（GEO 友好结构）",{"type":26,"tag":27,"props":2289,"children":2290},{},[2291],{"type":31,"value":2292},"模板：",{"type":26,"tag":169,"props":2294,"children":2295},{},[2296,2301,2306,2311,2316,2321],{"type":26,"tag":173,"props":2297,"children":2298},{},[2299],{"type":31,"value":2300},"目标：……",{"type":26,"tag":173,"props":2302,"children":2303},{},[2304],{"type":31,"value":2305},"背景：……",{"type":26,"tag":173,"props":2307,"children":2308},{},[2309],{"type":31,"value":2310},"范围：只改这些文件/模块：……",{"type":26,"tag":173,"props":2312,"children":2313},{},[2314],{"type":31,"value":2315},"非目标：不做哪些事情：……",{"type":26,"tag":173,"props":2317,"children":2318},{},[2319],{"type":31,"value":2320},"验收：如何判断完成（可测试/可观察）：……",{"type":26,"tag":173,"props":2322,"children":2323},{},[2324],{"type":31,"value":2325},"回滚：如果失败怎么撤回：……",{"type":26,"tag":1079,"props":2327,"children":2329},{"id":2328},"step-2用范围闸门限制-ai",[2330],{"type":31,"value":2331},"Step 2：用“范围闸门”限制 AI",{"type":26,"tag":169,"props":2333,"children":2334},{},[2335,2340],{"type":26,"tag":173,"props":2336,"children":2337},{},[2338],{"type":31,"value":2339},"单文件改动：优先 Cursor 内联编辑",{"type":26,"tag":173,"props":2341,"children":2342},{},[2343],{"type":31,"value":2344},"多文件改动：必须先让 AI 输出“文件清单（≤5）+ 每步验收”",{"type":26,"tag":27,"props":2346,"children":2347},{},[2348],{"type":31,"value":2349},"如果 AI 输出的文件清单超过 5 个：",{"type":26,"tag":169,"props":2351,"children":2352},{},[2353,2358],{"type":26,"tag":173,"props":2354,"children":2355},{},[2356],{"type":31,"value":2357},"不是它太强，是任务太大",{"type":26,"tag":173,"props":2359,"children":2360},{},[2361],{"type":31,"value":2362},"你需要拆任务，而不是继续推进",{"type":26,"tag":1079,"props":2364,"children":2366},{"id":2365},"step-3最小回归集10-条",[2367],{"type":31,"value":2368},"Step 3：最小回归集（10 条）",{"type":26,"tag":27,"props":2370,"children":2371},{},[2372,2374,2379],{"type":31,"value":2373},"每次接受改动前必须跑（可参考：",{"type":26,"tag":591,"props":2375,"children":2376},{"href":637},[2377],{"type":31,"value":2378},"Cursor 快捷键速查表",{"type":31,"value":2380}," 里的清单）。",{"type":26,"tag":1079,"props":2382,"children":2384},{"id":2383},"step-4回滚策略不用等事故才想",[2385],{"type":31,"value":2386},"Step 4：回滚策略（不用等事故才想）",{"type":26,"tag":27,"props":2388,"children":2389},{},[2390],{"type":31,"value":2391},"回滚最常见的两条路：",{"type":26,"tag":169,"props":2393,"children":2394},{},[2395,2400],{"type":26,"tag":173,"props":2396,"children":2397},{},[2398],{"type":31,"value":2399},"git 回滚 commit",{"type":26,"tag":173,"props":2401,"children":2402},{},[2403],{"type":31,"value":2404},"对关键文件保留前版本（至少能快速恢复）",{"type":26,"tag":27,"props":2406,"children":2407},{},[2408],{"type":31,"value":2409},"你需要做到：任何一轮 AI 改动都能在 5 分钟内撤回。",{"type":26,"tag":753,"props":2411,"children":2412},{},[],{"type":26,"tag":39,"props":2414,"children":2416},{"id":2415},"必交付物对比矩阵可复制",[2417],{"type":31,"value":2418},"必交付物：对比矩阵（可复制）",{"type":26,"tag":27,"props":2420,"children":2421},{},[2422],{"type":31,"value":2423},"下面这张表可以直接贴到你的团队 wiki：",{"type":26,"tag":46,"props":2425,"children":2426},{},[2427,2450],{"type":26,"tag":50,"props":2428,"children":2429},{},[2430],{"type":26,"tag":54,"props":2431,"children":2432},{},[2433,2438,2442,2446],{"type":26,"tag":58,"props":2434,"children":2435},{},[2436],{"type":31,"value":2437},"维度",{"type":26,"tag":58,"props":2439,"children":2440},{},[2441],{"type":31,"value":645},{"type":26,"tag":58,"props":2443,"children":2444},{},[2445],{"type":31,"value":1890},{"type":26,"tag":58,"props":2447,"children":2448},{},[2449],{"type":31,"value":642},{"type":26,"tag":74,"props":2451,"children":2452},{},[2453,2476,2499,2522],{"type":26,"tag":54,"props":2454,"children":2455},{},[2456,2461,2466,2471],{"type":26,"tag":81,"props":2457,"children":2458},{},[2459],{"type":31,"value":2460},"强项",{"type":26,"tag":81,"props":2462,"children":2463},{},[2464],{"type":31,"value":2465},"工具链、调试、生态",{"type":26,"tag":81,"props":2467,"children":2468},{},[2469],{"type":31,"value":2470},"补全与局部建议",{"type":26,"tag":81,"props":2472,"children":2473},{},[2474],{"type":31,"value":2475},"项目上下文、多文件落地",{"type":26,"tag":54,"props":2477,"children":2478},{},[2479,2484,2489,2494],{"type":26,"tag":81,"props":2480,"children":2481},{},[2482],{"type":31,"value":2483},"适合任务",{"type":26,"tag":81,"props":2485,"children":2486},{},[2487],{"type":31,"value":2488},"排查、调试、验证",{"type":26,"tag":81,"props":2490,"children":2491},{},[2492],{"type":31,"value":2493},"写一段、补一段",{"type":26,"tag":81,"props":2495,"children":2496},{},[2497],{"type":31,"value":2498},"改一段、改一组文件",{"type":26,"tag":54,"props":2500,"children":2501},{},[2502,2507,2512,2517],{"type":26,"tag":81,"props":2503,"children":2504},{},[2505],{"type":31,"value":2506},"最大风险",{"type":26,"tag":81,"props":2508,"children":2509},{},[2510],{"type":31,"value":2511},"无",{"type":26,"tag":81,"props":2513,"children":2514},{},[2515],{"type":31,"value":2516},"过度依赖建议",{"type":26,"tag":81,"props":2518,"children":2519},{},[2520],{"type":31,"value":2521},"范围漂移、多文件回归",{"type":26,"tag":54,"props":2523,"children":2524},{},[2525,2530,2535,2540],{"type":26,"tag":81,"props":2526,"children":2527},{},[2528],{"type":31,"value":2529},"必须搭配",{"type":26,"tag":81,"props":2531,"children":2532},{},[2533],{"type":31,"value":2534},"规范与检查",{"type":26,"tag":81,"props":2536,"children":2537},{},[2538],{"type":31,"value":2539},"代码评审",{"type":26,"tag":81,"props":2541,"children":2542},{},[2543],{"type":31,"value":2544},"闸门 + 最小回归集",{"type":26,"tag":753,"props":2546,"children":2547},{},[],{"type":26,"tag":39,"props":2549,"children":2551},{"id":2550},"失败案例多文件看似成功实际埋雷",[2552],{"type":31,"value":2553},"失败案例：多文件“看似成功”，实际埋雷",{"type":26,"tag":27,"props":2555,"children":2556},{},[2557,2562],{"type":26,"tag":692,"props":2558,"children":2559},{},[2560],{"type":31,"value":2561},"现象",{"type":31,"value":2563},"：AI 说“我已经把所有地方都改了”，你也接受了，结果上线后 404 或样式错位。",{"type":26,"tag":27,"props":2565,"children":2566},{},[2567,2572],{"type":26,"tag":692,"props":2568,"children":2569},{},[2570],{"type":31,"value":2571},"复现条件",{"type":31,"value":1385},{"type":26,"tag":169,"props":2574,"children":2575},{},[2576,2581,2586],{"type":26,"tag":173,"props":2577,"children":2578},{},[2579],{"type":31,"value":2580},"你给了一个大目标（例如“把所有按钮统一成主题色”）",{"type":26,"tag":173,"props":2582,"children":2583},{},[2584],{"type":31,"value":2585},"它改了组件、样式、甚至主题配置",{"type":26,"tag":173,"props":2587,"children":2588},{},[2589],{"type":31,"value":2590},"你没有按页面模块走一遍，直接合并",{"type":26,"tag":27,"props":2592,"children":2593},{},[2594,2599],{"type":26,"tag":692,"props":2595,"children":2596},{},[2597],{"type":31,"value":2598},"根因",{"type":31,"value":1385},{"type":26,"tag":169,"props":2601,"children":2602},{},[2603],{"type":26,"tag":173,"props":2604,"children":2605},{},[2606],{"type":31,"value":2607},"改动范围大，但验收仍按“小改动”的方式做（只看一处）",{"type":26,"tag":27,"props":2609,"children":2610},{},[2611,2616],{"type":26,"tag":692,"props":2612,"children":2613},{},[2614],{"type":31,"value":2615},"修复",{"type":31,"value":1385},{"type":26,"tag":169,"props":2618,"children":2619},{},[2620,2625,2630],{"type":26,"tag":173,"props":2621,"children":2622},{},[2623],{"type":31,"value":2624},"强制把任务拆成“模块级目标”：Hero、Feature、Pricing、Form",{"type":26,"tag":173,"props":2626,"children":2627},{},[2628],{"type":31,"value":2629},"每个模块改完就验收一次",{"type":26,"tag":173,"props":2631,"children":2632},{},[2633],{"type":31,"value":2634},"验收通过再进入下一个模块",{"type":26,"tag":753,"props":2636,"children":2637},{},[],{"type":26,"tag":39,"props":2639,"children":2641},{"id":2640},"faq",[2642],{"type":31,"value":2643},"FAQ",{"type":26,"tag":1079,"props":2645,"children":2647},{"id":2646},"q1我已经用了-cursor为什么还要用-copilot",[2648],{"type":31,"value":2649},"Q1：我已经用了 Cursor，为什么还要用 Copilot？",{"type":26,"tag":27,"props":2651,"children":2652},{},[2653],{"type":31,"value":2654},"因为“补全”这种高频低风险任务，Copilot 的交互成本更低；Cursor 更适合需要解释与约束的改动。",{"type":26,"tag":1079,"props":2656,"children":2658},{"id":2657},"q2什么时候应该完全不用-ai",[2659],{"type":31,"value":2660},"Q2：什么时候应该完全不用 AI？",{"type":26,"tag":27,"props":2662,"children":2663},{},[2664],{"type":31,"value":2665},"当你无法定义验收标准时。比如“更高级”“更好看”这种目标，先做信息结构与设计规则，再让 AI 帮你落地局部。",{"type":26,"tag":753,"props":2667,"children":2668},{},[],{"type":26,"tag":39,"props":2670,"children":2672},{"id":2671},"延伸阅读",[2673],{"type":31,"value":2671},{"type":26,"tag":169,"props":2675,"children":2676},{},[2677,2686,2695,2704],{"type":26,"tag":173,"props":2678,"children":2679},{},[2680,2682],{"type":31,"value":2681},"Cursor 入门：",{"type":26,"tag":591,"props":2683,"children":2684},{"href":726},[2685],{"type":31,"value":729},{"type":26,"tag":173,"props":2687,"children":2688},{},[2689,2691],{"type":31,"value":2690},"Cursor 进阶：",{"type":26,"tag":591,"props":2692,"children":2693},{"href":737},[2694],{"type":31,"value":740},{"type":26,"tag":173,"props":2696,"children":2697},{},[2698,2700],{"type":31,"value":2699},"规则配置：",{"type":26,"tag":591,"props":2701,"children":2702},{"href":748},[2703],{"type":31,"value":751},{"type":26,"tag":173,"props":2705,"children":2706},{},[2707,2709],{"type":31,"value":2708},"Copilot 实战：",{"type":26,"tag":591,"props":2710,"children":2712},{"href":2711},"/topics/ai/github-copilot-tips",[2713],{"type":31,"value":2714},"GitHub Copilot 实用技巧",{"title":7,"searchDepth":616,"depth":616,"links":2716},[2717,2718,2719,2724,2730,2731,2732,2736],{"id":1862,"depth":619,"text":1865},{"id":1912,"depth":619,"text":1915},{"id":2154,"depth":619,"text":2157,"children":2720},[2721,2722,2723],{"id":2160,"depth":616,"text":2163},{"id":2197,"depth":616,"text":2200},{"id":2241,"depth":616,"text":2244},{"id":2273,"depth":619,"text":2276,"children":2725},[2726,2727,2728,2729],{"id":2284,"depth":616,"text":2287},{"id":2328,"depth":616,"text":2331},{"id":2365,"depth":616,"text":2368},{"id":2383,"depth":616,"text":2386},{"id":2415,"depth":619,"text":2418},{"id":2550,"depth":619,"text":2553},{"id":2640,"depth":619,"text":2643,"children":2733},[2734,2735],{"id":2646,"depth":616,"text":2649},{"id":2657,"depth":616,"text":2660},{"id":2671,"depth":619,"text":2671},"content:topics:ai:cursor-vs-copilot-vscode-workflow.md","topics/ai/cursor-vs-copilot-vscode-workflow.md","topics/ai/cursor-vs-copilot-vscode-workflow",{"_path":2741,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":2742,"description":2743,"date":2744,"topic":5,"author":11,"tags":2745,"image":2750,"featured":538,"readingTime":21,"body":2751,"_type":629,"_id":3399,"_source":631,"_file":3400,"_stem":3401,"_extension":634},"/topics/ai/ai-debugging-troubleshooting-guide","AI 辅助调试与问题排查：让 AI 成为你的调试搭档","深入探讨如何利用 AI 工具提升调试效率，包括错误信息分析、日志解读、性能问题定位、复杂 bug 排查等实战场景，构建 AI 驱动的调试工作流。","2026-01-18",[2746,2747,2748,646,2749],"AI 调试","问题排查","Debug","错误处理","/images/topics/ai/ai-debugging-guide.jpg",{"type":23,"children":2752,"toc":3370},[2753,2759,2765,2770,2775,2780,2786,2792,2797,2805,2833,2841,2864,2870,2880,2889,2897,2905,2938,2946,2976,2989,2997,3002,3010,3018,3029,3035,3043,3054,3062,3071,3077,3083,3088,3097,3103,3108,3117,3123,3129,3138,3144,3153,3159,3170,3176,3182,3191,3197,3206,3212,3218,3226,3232,3241,3249,3257,3260,3266,3271,3290,3302,3305,3311,3316,3325,3330,3333,3339,3344,3362],{"type":26,"tag":39,"props":2754,"children":2756},{"id":2755},"ai-辅助调试与问题排查",[2757],{"type":31,"value":2758},"AI 辅助调试与问题排查",{"type":26,"tag":39,"props":2760,"children":2762},{"id":2761},"引言调试的痛与-ai-的解药",[2763],{"type":31,"value":2764},"引言：调试的痛与 AI 的解药",{"type":26,"tag":27,"props":2766,"children":2767},{},[2768],{"type":31,"value":2769},"调试是每个程序员的日常，也是最消耗时间和精力的工作之一。我们都有过这样的经历：盯着一个莫名其妙的错误信息，翻遍 Stack Overflow，尝试各种方案，几个小时后才发现是一个愚蠢的拼写错误。",{"type":26,"tag":27,"props":2771,"children":2772},{},[2773],{"type":31,"value":2774},"AI 工具的出现，正在改变调试的方式。不是替代你的思考，而是加速你的分析过程——帮你快速理解错误、缩小排查范围、验证假设。",{"type":26,"tag":27,"props":2776,"children":2777},{},[2778],{"type":31,"value":2779},"这篇文章分享我在实际项目中使用 AI 辅助调试的经验和方法论。",{"type":26,"tag":39,"props":2781,"children":2783},{"id":2782},"第一部分建立-ai-调试的思维模型",[2784],{"type":31,"value":2785},"第一部分：建立 AI 调试的思维模型",{"type":26,"tag":1079,"props":2787,"children":2789},{"id":2788},"_11-ai-在调试中的角色",[2790],{"type":31,"value":2791},"1.1 AI 在调试中的角色",{"type":26,"tag":27,"props":2793,"children":2794},{},[2795],{"type":31,"value":2796},"把 AI 想象成一个经验丰富但不了解你项目的高级工程师。它：",{"type":26,"tag":27,"props":2798,"children":2799},{},[2800],{"type":26,"tag":692,"props":2801,"children":2802},{},[2803],{"type":31,"value":2804},"擅长的事情：",{"type":26,"tag":169,"props":2806,"children":2807},{},[2808,2813,2818,2823,2828],{"type":26,"tag":173,"props":2809,"children":2810},{},[2811],{"type":31,"value":2812},"解读错误信息的含义",{"type":26,"tag":173,"props":2814,"children":2815},{},[2816],{"type":31,"value":2817},"提供可能的原因列表",{"type":26,"tag":173,"props":2819,"children":2820},{},[2821],{"type":31,"value":2822},"给出排查方向建议",{"type":26,"tag":173,"props":2824,"children":2825},{},[2826],{"type":31,"value":2827},"解释复杂的技术概念",{"type":26,"tag":173,"props":2829,"children":2830},{},[2831],{"type":31,"value":2832},"生成调试代码片段",{"type":26,"tag":27,"props":2834,"children":2835},{},[2836],{"type":26,"tag":692,"props":2837,"children":2838},{},[2839],{"type":31,"value":2840},"不擅长的事情：",{"type":26,"tag":169,"props":2842,"children":2843},{},[2844,2849,2854,2859],{"type":26,"tag":173,"props":2845,"children":2846},{},[2847],{"type":31,"value":2848},"了解你的业务逻辑",{"type":26,"tag":173,"props":2850,"children":2851},{},[2852],{"type":31,"value":2853},"知道你的代码历史",{"type":26,"tag":173,"props":2855,"children":2856},{},[2857],{"type":31,"value":2858},"理解项目特定的约定",{"type":26,"tag":173,"props":2860,"children":2861},{},[2862],{"type":31,"value":2863},"做出架构级判断",{"type":26,"tag":1079,"props":2865,"children":2867},{"id":2866},"_12-有效提问的结构",[2868],{"type":31,"value":2869},"1.2 有效提问的结构",{"type":26,"tag":390,"props":2871,"children":2875},{"code":2872,"language":629,"meta":7,"className":2873},"## 高效的调试提问模板\n\n**问题描述**\n[简洁描述遇到的问题]\n\n**错误信息**\n",[2874],"language-markdown",[2876],{"type":26,"tag":152,"props":2877,"children":2878},{"__ignoreMap":7},[2879],{"type":31,"value":2872},{"type":26,"tag":27,"props":2881,"children":2882},{},[2883],{"type":26,"tag":2884,"props":2885,"children":2886},"span",{},[2887],{"type":31,"value":2888},"完整的错误信息，不要截断",{"type":26,"tag":390,"props":2890,"children":2892},{"code":2891},"\n**相关代码**\n```javascript\n[精简但完整的相关代码]\n",[2893],{"type":26,"tag":152,"props":2894,"children":2895},{"__ignoreMap":7},[2896],{"type":31,"value":2891},{"type":26,"tag":27,"props":2898,"children":2899},{},[2900],{"type":26,"tag":692,"props":2901,"children":2902},{},[2903],{"type":31,"value":2904},"环境信息",{"type":26,"tag":169,"props":2906,"children":2907},{},[2908,2918,2928],{"type":26,"tag":173,"props":2909,"children":2910},{},[2911,2913],{"type":31,"value":2912},"运行环境：",{"type":26,"tag":2884,"props":2914,"children":2915},{},[2916],{"type":31,"value":2917},"Node 版本/浏览器版本",{"type":26,"tag":173,"props":2919,"children":2920},{},[2921,2923],{"type":31,"value":2922},"框架版本：",{"type":26,"tag":2884,"props":2924,"children":2925},{},[2926],{"type":31,"value":2927},"相关框架版本",{"type":26,"tag":173,"props":2929,"children":2930},{},[2931,2933],{"type":31,"value":2932},"操作系统：",{"type":26,"tag":2884,"props":2934,"children":2935},{},[2936],{"type":31,"value":2937},"如果相关",{"type":26,"tag":27,"props":2939,"children":2940},{},[2941],{"type":26,"tag":692,"props":2942,"children":2943},{},[2944],{"type":31,"value":2945},"已尝试的方案",{"type":26,"tag":169,"props":2947,"children":2948},{},[2949,2963],{"type":26,"tag":173,"props":2950,"children":2951},{},[2952,2957,2958],{"type":26,"tag":2884,"props":2953,"children":2954},{},[2955],{"type":31,"value":2956},"方案1",{"type":31,"value":1385},{"type":26,"tag":2884,"props":2959,"children":2960},{},[2961],{"type":31,"value":2962},"结果",{"type":26,"tag":173,"props":2964,"children":2965},{},[2966,2971,2972],{"type":26,"tag":2884,"props":2967,"children":2968},{},[2969],{"type":31,"value":2970},"方案2",{"type":31,"value":1385},{"type":26,"tag":2884,"props":2973,"children":2974},{},[2975],{"type":31,"value":2962},{"type":26,"tag":27,"props":2977,"children":2978},{},[2979,2984],{"type":26,"tag":692,"props":2980,"children":2981},{},[2982],{"type":31,"value":2983},"期望的结果",{"type":26,"tag":2884,"props":2985,"children":2986},{},[2987],{"type":31,"value":2988},"描述期望的行为",{"type":26,"tag":390,"props":2990,"children":2992},{"code":2991},"\n### 1.3 分级调试策略\n\n",[2993],{"type":26,"tag":152,"props":2994,"children":2995},{"__ignoreMap":7},[2996],{"type":31,"value":2991},{"type":26,"tag":27,"props":2998,"children":2999},{},[3000],{"type":31,"value":3001},"┌───────────────────────────────────────────────────────────┐\n│                    AI 辅助调试决策树                        │\n├───────────────────────────────────────────────────────────┤\n│                                                           │\n│  Level 1：简单错误（5分钟内解决）                           │\n│  ├── 语法错误、拼写错误                                    │\n│  ├── 方法：直接复制错误信息给 AI                           │\n│  └── 工具：Copilot Chat / ChatGPT                        │\n│                                                           │\n│  Level 2：中等复杂度（30分钟内解决）                        │\n│  ├── 类型错误、逻辑错误、API 使用错误                      │\n│  ├── 方法：提供错误信息 + 相关代码 + 上下文                 │\n│  └── 工具：Cursor Chat / Claude                          │\n│                                                           │\n│  Level 3：复杂问题（需要深入分析）                          │\n│  ├── 竞态条件、内存泄漏、性能问题                          │\n│  ├── 方法：详细描述场景 + 提供多个文件 + 讨论               │\n│  └── 工具：Cursor Composer / 专门的 AI 会话                │\n│                                                           │\n│  Level 4：架构级问题                                       │\n│  ├── 设计缺陷、技术债务                                    │\n│  ├── 方法：AI 辅助分析 + 人工判断                          │\n│  └── 工具：与团队讨论 + AI 作为顾问                        │\n│                                                           │\n└───────────────────────────────────────────────────────────┘",{"type":26,"tag":390,"props":3003,"children":3005},{"code":3004},"\n## 第二部分：错误信息分析\n\n### 2.1 前端错误分析\n\n**场景 1：React 错误边界触发**\n\n```typescript\n// 错误信息：\n// Error: Hydration failed because the initial UI does not match \n// what was rendered on the server.\n\n// 提问方式：\n/**\n * 我在 Next.js 14 App Router 项目中遇到这个错误：\n * \n * Error: Hydration failed because the initial UI does not match \n * what was rendered on the server.\n * \n * 相关代码：\n */\nfunction UserStatus() {\n  const [isLoggedIn, setIsLoggedIn] = useState(false);\n  \n  useEffect(() => {\n    setIsLoggedIn(localStorage.getItem('token') !== null);\n  }, []);\n  \n  return \u003Cdiv>{isLoggedIn ? '已登录' : '未登录'}\u003C/div>;\n}\n\n// AI 会分析出：\n// 1. 服务端渲染时 localStorage 不可用，默认 false\n// 2. 客户端 hydration 时可能是 true\n// 3. 导致服务端和客户端渲染结果不一致\n\n// AI 建议的解决方案：\nfunction UserStatus() {\n  const [isLoggedIn, setIsLoggedIn] = useState\u003Cboolean | null>(null);\n  \n  useEffect(() => {\n    setIsLoggedIn(localStorage.getItem('token') !== null);\n  }, []);\n  \n  // 初始状态显示加载中，避免 hydration 不匹配\n  if (isLoggedIn === null) {\n    return \u003Cdiv>加载中...\u003C/div>;\n  }\n  \n  return \u003Cdiv>{isLoggedIn ? '已登录' : '未登录'}\u003C/div>;\n}\n",[3006],{"type":26,"tag":152,"props":3007,"children":3008},{"__ignoreMap":7},[3009],{"type":31,"value":3004},{"type":26,"tag":27,"props":3011,"children":3012},{},[3013],{"type":26,"tag":692,"props":3014,"children":3015},{},[3016],{"type":31,"value":3017},"场景 2：Vue 响应式警告",{"type":26,"tag":390,"props":3019,"children":3024},{"code":3020,"language":3021,"meta":7,"className":3022},"// 警告信息：\n// [Vue warn]: Property \"xxx\" was accessed during render but is not \n// defined on instance.\n\n// 提问方式：\n/**\n * Vue 3 项目中出现这个警告：\n * [Vue warn]: Property \"userInfo\" was accessed during render \n * but is not defined on instance.\n * \n * 组件代码：\n */\n\u003Ctemplate>\n  \u003Cdiv>{{ userInfo.name }}\u003C/div>\n\u003C/template>\n\n\u003Cscript setup>\nconst { data: userInfo } = await useFetch('/api/user');\n\u003C/script>\n\n// AI 分析：\n// 1. useFetch 是异步的，初始渲染时 userInfo 可能是 undefined\n// 2. 直接访问 userInfo.name 会报错\n\n// AI 建议：\n\u003Ctemplate>\n  \u003Cdiv v-if=\"userInfo\">{{ userInfo.name }}\u003C/div>\n  \u003Cdiv v-else>加载中...\u003C/div>\n\u003C/template>\n\n\u003Cscript setup>\nconst { data: userInfo, pending } = await useFetch('/api/user');\n\u003C/script>\n","typescript",[3023],"language-typescript",[3025],{"type":26,"tag":152,"props":3026,"children":3027},{"__ignoreMap":7},[3028],{"type":31,"value":3020},{"type":26,"tag":1079,"props":3030,"children":3032},{"id":3031},"_22-后端错误分析",[3033],{"type":31,"value":3034},"2.2 后端错误分析",{"type":26,"tag":27,"props":3036,"children":3037},{},[3038],{"type":26,"tag":692,"props":3039,"children":3040},{},[3041],{"type":31,"value":3042},"场景 1：Node.js 内存问题",{"type":26,"tag":390,"props":3044,"children":3049},{"code":3045,"language":3046,"meta":7,"className":3047},"// 错误信息：\n// FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - \n// JavaScript heap out of memory\n\n// 提问方式（包含上下文）：\n/**\n * Node.js 服务运行几小时后崩溃，错误信息：\n * FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - \n * JavaScript heap out of memory\n * \n * 服务功能：处理 CSV 文件上传，每次约 100MB\n * \n * 处理代码：\n */\nasync function processCSV(filePath) {\n  const content = fs.readFileSync(filePath, 'utf-8');\n  const rows = content.split('\\n');\n  const results = [];\n  \n  for (const row of rows) {\n    const processed = await processRow(row);\n    results.push(processed);\n  }\n  \n  return results;\n}\n\n// AI 分析会指出：\n// 1. 一次性读取整个文件到内存\n// 2. 所有处理结果累积在 results 数组\n// 3. 建议使用流式处理\n\n// AI 提供的优化方案：\nconst { createReadStream } = require('fs');\nconst { createInterface } = require('readline');\n\nasync function processCSVStream(filePath, onRow) {\n  const fileStream = createReadStream(filePath);\n  const rl = createInterface({\n    input: fileStream,\n    crlfDelay: Infinity\n  });\n  \n  let count = 0;\n  for await (const line of rl) {\n    await onRow(line);\n    count++;\n    \n    // 每处理 1000 行，给 GC 机会运行\n    if (count % 1000 === 0) {\n      await new Promise(r => setImmediate(r));\n    }\n  }\n}\n","javascript",[3048],"language-javascript",[3050],{"type":26,"tag":152,"props":3051,"children":3052},{"__ignoreMap":7},[3053],{"type":31,"value":3045},{"type":26,"tag":27,"props":3055,"children":3056},{},[3057],{"type":26,"tag":692,"props":3058,"children":3059},{},[3060],{"type":31,"value":3061},"场景 2：数据库连接问题",{"type":26,"tag":390,"props":3063,"children":3066},{"code":3064,"language":3021,"meta":7,"className":3065},"// 错误信息：\n// Error: Connection pool exhausted - \n// max connections (10) already in use\n\n// 提问方式：\n/**\n * PostgreSQL 连接池耗尽错误，高并发时出现：\n * Error: Connection pool exhausted\n * \n * 当前配置：\n * - max connections: 10\n * - 并发请求: 约 100/秒\n * \n * 数据库调用代码：\n */\nasync function getUserData(userId: string) {\n  const client = await pool.connect();\n  try {\n    const user = await client.query('SELECT * FROM users WHERE id = $1', [userId]);\n    const orders = await client.query('SELECT * FROM orders WHERE user_id = $1', [userId]);\n    const payments = await client.query('SELECT * FROM payments WHERE user_id = $1', [userId]);\n    return { user: user.rows[0], orders: orders.rows, payments: payments.rows };\n  } finally {\n    client.release();\n  }\n}\n\n// AI 会分析出多个可能原因并给出综合方案\n",[3023],[3067],{"type":26,"tag":152,"props":3068,"children":3069},{"__ignoreMap":7},[3070],{"type":31,"value":3064},{"type":26,"tag":39,"props":3072,"children":3074},{"id":3073},"第三部分日志分析与问题定位",[3075],{"type":31,"value":3076},"第三部分：日志分析与问题定位",{"type":26,"tag":1079,"props":3078,"children":3080},{"id":3079},"_31-结构化日志分析",[3081],{"type":31,"value":3082},"3.1 结构化日志分析",{"type":26,"tag":27,"props":3084,"children":3085},{},[3086],{"type":31,"value":3087},"当面对大量日志时，让 AI 帮你快速定位问题：",{"type":26,"tag":390,"props":3089,"children":3092},{"code":3090,"language":3046,"meta":7,"className":3091},"// 提问示例：\n/**\n * 分析以下日志，找出导致请求失败的原因：\n * \n * 日志片段：\n */\nconst logs = `\n2024-01-15 10:23:45.123 INFO  [req-abc123] 收到请求 POST /api/order\n2024-01-15 10:23:45.125 DEBUG [req-abc123] 用户认证通过 userId=u001\n2024-01-15 10:23:45.130 DEBUG [req-abc123] 开始库存检查 productId=p001\n2024-01-15 10:23:45.145 DEBUG [req-abc123] 库存检查通过 available=50\n2024-01-15 10:23:45.150 DEBUG [req-abc123] 开始创建订单\n2024-01-15 10:23:45.200 DEBUG [req-abc123] 数据库连接获取成功\n2024-01-15 10:23:45.250 ERROR [req-abc123] 订单创建失败 error=\"deadlock detected\"\n2024-01-15 10:23:45.251 WARN  [req-abc123] 事务回滚\n2024-01-15 10:23:45.255 INFO  [req-abc123] 响应 500 耗时 132ms\n`;\n\n// AI 分析结果会包括：\n// 1. 问题定位：数据库死锁\n// 2. 可能原因：并发订单创建导致锁竞争\n// 3. 排查建议：检查事务隔离级别、锁顺序\n",[3048],[3093],{"type":26,"tag":152,"props":3094,"children":3095},{"__ignoreMap":7},[3096],{"type":31,"value":3090},{"type":26,"tag":1079,"props":3098,"children":3100},{"id":3099},"_32-创建调试日志",[3101],{"type":31,"value":3102},"3.2 创建调试日志",{"type":26,"tag":27,"props":3104,"children":3105},{},[3106],{"type":31,"value":3107},"让 AI 帮你生成调试用的日志代码：",{"type":26,"tag":390,"props":3109,"children":3112},{"code":3110,"language":3021,"meta":7,"className":3111},"// 请求：\n// \"为这个函数添加详细的调试日志，包括入参、关键步骤、耗时和结果\"\n\n// 原代码：\nasync function processOrder(order: Order): Promise\u003COrderResult> {\n  const inventory = await checkInventory(order.items);\n  const payment = await processPayment(order.userId, order.total);\n  const result = await createOrder(order, payment.transactionId);\n  return result;\n}\n\n// AI 生成的带日志版本：\nasync function processOrder(order: Order): Promise\u003COrderResult> {\n  const requestId = generateRequestId();\n  const startTime = performance.now();\n  \n  logger.info({\n    requestId,\n    event: 'order_processing_start',\n    orderId: order.id,\n    userId: order.userId,\n    itemCount: order.items.length,\n    total: order.total\n  });\n  \n  try {\n    // 库存检查\n    const inventoryStart = performance.now();\n    const inventory = await checkInventory(order.items);\n    logger.debug({\n      requestId,\n      event: 'inventory_check_complete',\n      duration: performance.now() - inventoryStart,\n      available: inventory.allAvailable\n    });\n    \n    // 支付处理\n    const paymentStart = performance.now();\n    const payment = await processPayment(order.userId, order.total);\n    logger.debug({\n      requestId,\n      event: 'payment_complete',\n      duration: performance.now() - paymentStart,\n      transactionId: payment.transactionId\n    });\n    \n    // 创建订单\n    const createStart = performance.now();\n    const result = await createOrder(order, payment.transactionId);\n    logger.debug({\n      requestId,\n      event: 'order_created',\n      duration: performance.now() - createStart,\n      resultOrderId: result.orderId\n    });\n    \n    logger.info({\n      requestId,\n      event: 'order_processing_complete',\n      duration: performance.now() - startTime,\n      success: true\n    });\n    \n    return result;\n  } catch (error) {\n    logger.error({\n      requestId,\n      event: 'order_processing_failed',\n      duration: performance.now() - startTime,\n      error: error.message,\n      stack: error.stack\n    });\n    throw error;\n  }\n}\n",[3023],[3113],{"type":26,"tag":152,"props":3114,"children":3115},{"__ignoreMap":7},[3116],{"type":31,"value":3110},{"type":26,"tag":39,"props":3118,"children":3120},{"id":3119},"第四部分性能问题排查",[3121],{"type":31,"value":3122},"第四部分：性能问题排查",{"type":26,"tag":1079,"props":3124,"children":3126},{"id":3125},"_41-前端性能分析",[3127],{"type":31,"value":3128},"4.1 前端性能分析",{"type":26,"tag":390,"props":3130,"children":3133},{"code":3131,"language":3021,"meta":7,"className":3132},"// 场景：页面加载慢，需要分析原因\n\n// 提问方式：\n/**\n * 页面首屏加载需要 5 秒，以下是 Performance API 数据，\n * 请分析性能瓶颈：\n */\nconst performanceData = {\n  // Navigation Timing\n  dns: 50,           // DNS 查询\n  tcp: 100,          // TCP 连接\n  ttfb: 800,         // 首字节时间\n  download: 200,     // 文档下载\n  domParsing: 300,   // DOM 解析\n  domContentLoaded: 1500,\n  load: 5000,\n  \n  // Resource Timing (主要资源)\n  resources: [\n    { name: 'main.js', size: '2.5MB', duration: 1200 },\n    { name: 'vendor.js', size: '1.8MB', duration: 900 },\n    { name: 'styles.css', size: '500KB', duration: 300 },\n    { name: 'hero-image.jpg', size: '3MB', duration: 1500 },\n  ],\n  \n  // Long Tasks\n  longTasks: [\n    { startTime: 1600, duration: 800, name: 'script-evaluation' },\n    { startTime: 2500, duration: 400, name: 'layout' }\n  ]\n};\n\n// AI 会分析出：\n// 1. JS bundle 过大（4.3MB），需要代码分割\n// 2. 图片未优化（3MB 的 hero 图片）\n// 3. 存在长任务阻塞主线程\n// 并给出具体优化建议\n",[3023],[3134],{"type":26,"tag":152,"props":3135,"children":3136},{"__ignoreMap":7},[3137],{"type":31,"value":3131},{"type":26,"tag":1079,"props":3139,"children":3141},{"id":3140},"_42-内存泄漏排查",[3142],{"type":31,"value":3143},"4.2 内存泄漏排查",{"type":26,"tag":390,"props":3145,"children":3148},{"code":3146,"language":3021,"meta":7,"className":3147},"// 场景：应用运行一段时间后变卡\n\n// 提问方式：\n/**\n * React 应用运行一段时间后内存持续增长，以下是 Heap Snapshot 对比：\n * \n * 初始状态：50MB\n * 运行 1 小时后：150MB\n * 运行 2 小时后：280MB\n * \n * Retained objects 增长最快的：\n * - (closure) - 增长 50MB\n * - HTMLDivElement - 增长 30MB\n * - Array - 增长 20MB\n * \n * 可疑代码：\n */\nfunction DataDashboard() {\n  const [data, setData] = useState([]);\n  const chartRef = useRef(null);\n  \n  useEffect(() => {\n    // 每秒刷新数据\n    const interval = setInterval(async () => {\n      const newData = await fetchLatestData();\n      setData(prev => [...prev, ...newData]);  // 数据不断累积\n    }, 1000);\n    \n    // 初始化图表\n    const chart = new Chart(chartRef.current, {\n      // 配置...\n    });\n    \n    // 没有 cleanup！\n  }, []);\n  \n  return \u003Ccanvas ref={chartRef} />;\n}\n\n// AI 会指出：\n// 1. interval 没有清理\n// 2. Chart 实例没有销毁\n// 3. data 无限增长\n// 并提供修复代码\n",[3023],[3149],{"type":26,"tag":152,"props":3150,"children":3151},{"__ignoreMap":7},[3152],{"type":31,"value":3146},{"type":26,"tag":1079,"props":3154,"children":3156},{"id":3155},"_43-数据库查询优化",[3157],{"type":31,"value":3158},"4.3 数据库查询优化",{"type":26,"tag":390,"props":3160,"children":3165},{"code":3161,"language":3162,"meta":7,"className":3163},"-- 场景：查询很慢，让 AI 分析执行计划\n\n-- 提问方式：\n-- 以下查询在数据量大时很慢（orders 表 1000 万行），\n-- 执行计划如下，请分析并优化：\n\nEXPLAIN ANALYZE\nSELECT o.*, u.name, u.email\nFROM orders o\nJOIN users u ON o.user_id = u.id\nWHERE o.status = 'pending'\n  AND o.created_at > '2024-01-01'\nORDER BY o.created_at DESC\nLIMIT 20;\n\n-- 执行计划：\n/*\nSort  (cost=156847.23..157847.23 rows=400000 width=250)\n  Sort Key: o.created_at DESC\n  ->  Hash Join  (cost=1500.00..89847.23 rows=400000 width=250)\n        Hash Cond: (o.user_id = u.id)\n        ->  Seq Scan on orders o  (cost=0.00..85000.00 rows=400000)\n              Filter: ((status = 'pending') AND (created_at > '2024-01-01'))\n        ->  Hash  (cost=1000.00..1000.00 rows=50000 width=100)\n              ->  Seq Scan on users u  (cost=0.00..1000.00 rows=50000)\nPlanning Time: 0.5 ms\nExecution Time: 3500 ms\n*/\n\n-- AI 会分析出问题并建议：\n-- 1. orders 表全表扫描 - 需要复合索引\n-- 2. 建议创建索引：\nCREATE INDEX idx_orders_status_created ON orders(status, created_at DESC);\n\n-- 3. 如果 status 选择性不高，考虑部分索引：\nCREATE INDEX idx_orders_pending ON orders(created_at DESC) \nWHERE status = 'pending';\n","sql",[3164],"language-sql",[3166],{"type":26,"tag":152,"props":3167,"children":3168},{"__ignoreMap":7},[3169],{"type":31,"value":3161},{"type":26,"tag":39,"props":3171,"children":3173},{"id":3172},"第五部分复杂-bug-排查",[3174],{"type":31,"value":3175},"第五部分：复杂 Bug 排查",{"type":26,"tag":1079,"props":3177,"children":3179},{"id":3178},"_51-竞态条件",[3180],{"type":31,"value":3181},"5.1 竞态条件",{"type":26,"tag":390,"props":3183,"children":3186},{"code":3184,"language":3021,"meta":7,"className":3185},"// 场景：偶发的数据不一致问题\n\n// 提问方式：\n/**\n * 用户反馈偶尔看到错误的账户余额，但刷新后正常。\n * 怀疑是竞态条件，以下是相关代码：\n */\nasync function updateBalance(userId: string, amount: number) {\n  // 读取当前余额\n  const user = await db.users.findOne({ id: userId });\n  const newBalance = user.balance + amount;\n  \n  // 更新余额\n  await db.users.update({ id: userId }, { balance: newBalance });\n  \n  // 记录交易\n  await db.transactions.create({\n    userId,\n    amount,\n    balanceAfter: newBalance,\n    createdAt: new Date()\n  });\n  \n  return newBalance;\n}\n\n// 并发调用场景：\n// 用户同时发起两笔交易：+100 和 -50\n// 期望结果：原余额 1000 → 1050\n// 实际可能：原余额 1000 → 1100 或 950\n\n// AI 会分析竞态条件并提供解决方案：\nasync function updateBalanceAtomic(userId: string, amount: number) {\n  // 方案 1：使用数据库原子操作\n  const result = await db.users.findOneAndUpdate(\n    { id: userId },\n    { $inc: { balance: amount } },\n    { returnDocument: 'after' }\n  );\n  \n  await db.transactions.create({\n    userId,\n    amount,\n    balanceAfter: result.balance,\n    createdAt: new Date()\n  });\n  \n  return result.balance;\n}\n\n// 方案 2：使用乐观锁\nasync function updateBalanceOptimistic(userId: string, amount: number) {\n  const maxRetries = 3;\n  \n  for (let i = 0; i \u003C maxRetries; i++) {\n    const user = await db.users.findOne({ id: userId });\n    const newBalance = user.balance + amount;\n    \n    const updated = await db.users.updateOne(\n      { id: userId, version: user.version },\n      { balance: newBalance, version: user.version + 1 }\n    );\n    \n    if (updated.modifiedCount === 1) {\n      await db.transactions.create({...});\n      return newBalance;\n    }\n    \n    // 版本冲突，重试\n    await sleep(10 * (i + 1));\n  }\n  \n  throw new Error('Update failed after retries');\n}\n",[3023],[3187],{"type":26,"tag":152,"props":3188,"children":3189},{"__ignoreMap":7},[3190],{"type":31,"value":3184},{"type":26,"tag":1079,"props":3192,"children":3194},{"id":3193},"_52-分布式系统问题",[3195],{"type":31,"value":3196},"5.2 分布式系统问题",{"type":26,"tag":390,"props":3198,"children":3201},{"code":3199,"language":3021,"meta":7,"className":3200},"// 场景：微服务间的数据不一致\n\n// 提问方式：\n/**\n * 订单服务和库存服务偶尔出现数据不一致：\n * - 订单显示已创建\n * - 库存未扣减\n * \n * 当前流程：\n */\n// Order Service\nasync function createOrder(orderData) {\n  // 1. 调用库存服务扣减库存\n  await inventoryService.deduct(orderData.items);\n  \n  // 2. 创建订单\n  const order = await orderRepository.create(orderData);\n  \n  // 3. 发送订单创建事件\n  await eventBus.publish('order.created', order);\n  \n  return order;\n}\n\n// 问题分析：如果步骤 2 或 3 失败，库存已经扣减但订单未创建\n\n// AI 会建议使用 Saga 模式或事务发件箱模式\n",[3023],[3202],{"type":26,"tag":152,"props":3203,"children":3204},{"__ignoreMap":7},[3205],{"type":31,"value":3199},{"type":26,"tag":39,"props":3207,"children":3209},{"id":3208},"第六部分ai-调试工作流",[3210],{"type":31,"value":3211},"第六部分：AI 调试工作流",{"type":26,"tag":1079,"props":3213,"children":3215},{"id":3214},"_61-我的调试流程",[3216],{"type":31,"value":3217},"6.1 我的调试流程",{"type":26,"tag":390,"props":3219,"children":3221},{"code":3220},"┌────────────────────────────────────────────────────────────┐\n│                    AI 辅助调试工作流                         │\n├────────────────────────────────────────────────────────────┤\n│                                                            │\n│  Step 1: 问题收集                                          │\n│  ├── 复制完整错误信息                                       │\n│  ├── 截图相关日志                                          │\n│  └── 记录复现步骤                                          │\n│                                                            │\n│  Step 2: 快速分析                                          │\n│  ├── 将错误信息发给 AI                                      │\n│  ├── 获取可能原因列表                                       │\n│  └── 评估哪些最可能                                         │\n│                                                            │\n│  Step 3: 深入调查                                          │\n│  ├── 根据 AI 建议添加日志/断点                              │\n│  ├── 收集更多信息                                          │\n│  └── 再次询问 AI（带新信息）                                │\n│                                                            │\n│  Step 4: 验证修复                                          │\n│  ├── AI 生成修复代码                                        │\n│  ├── 人工审查确认                                          │\n│  └── 测试验证                                               │\n│                                                            │\n│  Step 5: 预防措施                                          │\n│  ├── AI 建议类似问题的预防方法                              │\n│  ├── 添加相关测试用例                                       │\n│  └── 更新文档/知识库                                        │\n│                                                            │\n└────────────────────────────────────────────────────────────┘\n",[3222],{"type":26,"tag":152,"props":3223,"children":3224},{"__ignoreMap":7},[3225],{"type":31,"value":3220},{"type":26,"tag":1079,"props":3227,"children":3229},{"id":3228},"_62-调试对话模板",[3230],{"type":31,"value":3231},"6.2 调试对话模板",{"type":26,"tag":390,"props":3233,"children":3236},{"code":3234,"language":629,"meta":7,"className":3235},"## 第一轮：问题描述\n\n我遇到了一个问题：[简述问题]\n\n错误信息：\n",[2874],[3237],{"type":26,"tag":152,"props":3238,"children":3239},{"__ignoreMap":7},[3240],{"type":31,"value":3234},{"type":26,"tag":27,"props":3242,"children":3243},{},[3244],{"type":26,"tag":2884,"props":3245,"children":3246},{},[3247],{"type":31,"value":3248},"粘贴完整错误",{"type":26,"tag":390,"props":3250,"children":3252},{"code":3251},"\n相关代码：\n```javascript\n[粘贴代码]\n",[3253],{"type":26,"tag":152,"props":3254,"children":3255},{"__ignoreMap":7},[3256],{"type":31,"value":3251},{"type":26,"tag":753,"props":3258,"children":3259},{},[],{"type":26,"tag":39,"props":3261,"children":3263},{"id":3262},"第二轮补充信息",[3264],{"type":31,"value":3265},"第二轮：补充信息",{"type":26,"tag":27,"props":3267,"children":3268},{},[3269],{"type":31,"value":3270},"根据你的建议，我添加了日志，发现：",{"type":26,"tag":169,"props":3272,"children":3273},{},[3274,3282],{"type":26,"tag":173,"props":3275,"children":3276},{},[3277],{"type":26,"tag":2884,"props":3278,"children":3279},{},[3280],{"type":31,"value":3281},"发现 1",{"type":26,"tag":173,"props":3283,"children":3284},{},[3285],{"type":26,"tag":2884,"props":3286,"children":3287},{},[3288],{"type":31,"value":3289},"发现 2",{"type":26,"tag":27,"props":3291,"children":3292},{},[3293,3295,3300],{"type":31,"value":3294},"这是否说明问题出在 ",{"type":26,"tag":2884,"props":3296,"children":3297},{},[3298],{"type":31,"value":3299},"你的猜测",{"type":31,"value":3301},"？",{"type":26,"tag":753,"props":3303,"children":3304},{},[],{"type":26,"tag":39,"props":3306,"children":3308},{"id":3307},"第三轮确认修复",[3309],{"type":31,"value":3310},"第三轮：确认修复",{"type":26,"tag":27,"props":3312,"children":3313},{},[3314],{"type":31,"value":3315},"我按照你的建议修改了代码：",{"type":26,"tag":390,"props":3317,"children":3320},{"code":3318,"language":3046,"meta":7,"className":3319},"[粘贴修改后的代码]\n",[3048],[3321],{"type":26,"tag":152,"props":3322,"children":3323},{"__ignoreMap":7},[3324],{"type":31,"value":3318},{"type":26,"tag":27,"props":3326,"children":3327},{},[3328],{"type":31,"value":3329},"请确认这个修复是否正确，以及是否有其他潜在问题。",{"type":26,"tag":753,"props":3331,"children":3332},{},[],{"type":26,"tag":39,"props":3334,"children":3336},{"id":3335},"第四轮预防",[3337],{"type":31,"value":3338},"第四轮：预防",{"type":26,"tag":27,"props":3340,"children":3341},{},[3342],{"type":31,"value":3343},"这个问题已解决。请建议：",{"type":26,"tag":683,"props":3345,"children":3346},{},[3347,3352,3357],{"type":26,"tag":173,"props":3348,"children":3349},{},[3350],{"type":31,"value":3351},"如何防止类似问题再次发生？",{"type":26,"tag":173,"props":3353,"children":3354},{},[3355],{"type":31,"value":3356},"应该添加什么测试用例？",{"type":26,"tag":173,"props":3358,"children":3359},{},[3360],{"type":31,"value":3361},"有什么最佳实践可以参考？",{"type":26,"tag":390,"props":3363,"children":3365},{"code":3364},"\n## 结语：AI 是放大器，不是替代品\n\nAI 调试工具能够显著加速问题排查过程，但它不能替代你的思考。最有价值的能力组合是：\n\n- **你的领域知识** + **AI 的广博见识**\n- **你对项目的理解** + **AI 的分析能力**\n- **你的判断力** + **AI 的执行速度**\n\n调试的本质是假设-验证的循环。AI 帮你更快地生成假设、更高效地验证假设，但做出最终判断的还是你。\n\n学会与 AI 高效协作调试，不是依赖 AI 给你答案，而是让 AI 帮你更快地找到自己的答案。\n\n---\n\n## 参考资源\n\n- [Chrome DevTools 官方文档](https://developer.chrome.com/docs/devtools)\n- [Node.js 调试指南](https://nodejs.org/en/docs/guides/debugging-getting-started)\n- [React DevTools 使用指南](https://react.dev/learn/react-developer-tools)\n",[3366],{"type":26,"tag":152,"props":3367,"children":3368},{"__ignoreMap":7},[3369],{"type":31,"value":3364},{"title":7,"searchDepth":616,"depth":616,"links":3371},[3372,3373,3374,3379,3383,3388,3392,3396,3397,3398],{"id":2755,"depth":619,"text":2758},{"id":2761,"depth":619,"text":2764},{"id":2782,"depth":619,"text":2785,"children":3375},[3376,3377,3378],{"id":2788,"depth":616,"text":2791},{"id":2866,"depth":616,"text":2869},{"id":3031,"depth":616,"text":3034},{"id":3073,"depth":619,"text":3076,"children":3380},[3381,3382],{"id":3079,"depth":616,"text":3082},{"id":3099,"depth":616,"text":3102},{"id":3119,"depth":619,"text":3122,"children":3384},[3385,3386,3387],{"id":3125,"depth":616,"text":3128},{"id":3140,"depth":616,"text":3143},{"id":3155,"depth":616,"text":3158},{"id":3172,"depth":619,"text":3175,"children":3389},[3390,3391],{"id":3178,"depth":616,"text":3181},{"id":3193,"depth":616,"text":3196},{"id":3208,"depth":619,"text":3211,"children":3393},[3394,3395],{"id":3214,"depth":616,"text":3217},{"id":3228,"depth":616,"text":3231},{"id":3262,"depth":619,"text":3265},{"id":3307,"depth":619,"text":3310},{"id":3335,"depth":619,"text":3338},"content:topics:ai:ai-debugging-troubleshooting-guide.md","topics/ai/ai-debugging-troubleshooting-guide.md","topics/ai/ai-debugging-troubleshooting-guide",{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"date":10,"topic":5,"author":11,"tags":3403,"image":17,"imageQuery":18,"pexelsPhotoId":19,"pexelsUrl":20,"featured":6,"readingTime":21,"body":3404,"_type":629,"_id":630,"_source":631,"_file":632,"_stem":633,"_extension":634},[13,14,15,16],{"type":23,"children":3405,"toc":3880},[3406,3410,3414,3418,3487,3491,3495,3499,3507,3511,3515,3542,3546,3550,3554,3565,3569,3573,3577,3581,3596,3600,3604,3657,3661,3665,3684,3688,3692,3696,3704,3708,3712,3716,3800,3804,3808,3852,3856],{"type":26,"tag":27,"props":3407,"children":3408},{},[3409],{"type":31,"value":32},{"type":26,"tag":27,"props":3411,"children":3412},{},[3413],{"type":31,"value":37},{"type":26,"tag":39,"props":3415,"children":3416},{"id":41},[3417],{"type":31,"value":44},{"type":26,"tag":46,"props":3419,"children":3420},{},[3421,3439],{"type":26,"tag":50,"props":3422,"children":3423},{},[3424],{"type":26,"tag":54,"props":3425,"children":3426},{},[3427,3431,3435],{"type":26,"tag":58,"props":3428,"children":3429},{},[3430],{"type":31,"value":62},{"type":26,"tag":58,"props":3432,"children":3433},{},[3434],{"type":31,"value":67},{"type":26,"tag":58,"props":3436,"children":3437},{},[3438],{"type":31,"value":72},{"type":26,"tag":74,"props":3440,"children":3441},{},[3442,3457,3472],{"type":26,"tag":54,"props":3443,"children":3444},{},[3445,3449,3453],{"type":26,"tag":81,"props":3446,"children":3447},{},[3448],{"type":31,"value":85},{"type":26,"tag":81,"props":3450,"children":3451},{},[3452],{"type":31,"value":90},{"type":26,"tag":81,"props":3454,"children":3455},{},[3456],{"type":31,"value":95},{"type":26,"tag":54,"props":3458,"children":3459},{},[3460,3464,3468],{"type":26,"tag":81,"props":3461,"children":3462},{},[3463],{"type":31,"value":103},{"type":26,"tag":81,"props":3465,"children":3466},{},[3467],{"type":31,"value":108},{"type":26,"tag":81,"props":3469,"children":3470},{},[3471],{"type":31,"value":113},{"type":26,"tag":54,"props":3473,"children":3474},{},[3475,3479,3483],{"type":26,"tag":81,"props":3476,"children":3477},{},[3478],{"type":31,"value":121},{"type":26,"tag":81,"props":3480,"children":3481},{},[3482],{"type":31,"value":126},{"type":26,"tag":81,"props":3484,"children":3485},{},[3486],{"type":31,"value":131},{"type":26,"tag":27,"props":3488,"children":3489},{},[3490],{"type":31,"value":136},{"type":26,"tag":39,"props":3492,"children":3493},{"id":139},[3494],{"type":31,"value":142},{"type":26,"tag":27,"props":3496,"children":3497},{},[3498],{"type":31,"value":147},{"type":26,"tag":27,"props":3500,"children":3501},{},[3502],{"type":26,"tag":152,"props":3503,"children":3505},{"className":3504},[],[3506],{"type":31,"value":157},{"type":26,"tag":27,"props":3508,"children":3509},{},[3510],{"type":31,"value":162},{"type":26,"tag":39,"props":3512,"children":3513},{"id":165},[3514],{"type":31,"value":165},{"type":26,"tag":169,"props":3516,"children":3517},{},[3518,3522,3526,3530,3534,3538],{"type":26,"tag":173,"props":3519,"children":3520},{},[3521],{"type":31,"value":177},{"type":26,"tag":173,"props":3523,"children":3524},{},[3525],{"type":31,"value":182},{"type":26,"tag":173,"props":3527,"children":3528},{},[3529],{"type":31,"value":187},{"type":26,"tag":173,"props":3531,"children":3532},{},[3533],{"type":31,"value":192},{"type":26,"tag":173,"props":3535,"children":3536},{},[3537],{"type":31,"value":197},{"type":26,"tag":173,"props":3539,"children":3540},{},[3541],{"type":31,"value":202},{"type":26,"tag":27,"props":3543,"children":3544},{},[3545],{"type":31,"value":207},{"type":26,"tag":39,"props":3547,"children":3548},{"id":210},[3549],{"type":31,"value":213},{"type":26,"tag":27,"props":3551,"children":3552},{},[3553],{"type":31,"value":218},{"type":26,"tag":169,"props":3555,"children":3556},{},[3557,3561],{"type":26,"tag":173,"props":3558,"children":3559},{},[3560],{"type":31,"value":226},{"type":26,"tag":173,"props":3562,"children":3563},{},[3564],{"type":31,"value":231},{"type":26,"tag":27,"props":3566,"children":3567},{},[3568],{"type":31,"value":236},{"type":26,"tag":39,"props":3570,"children":3571},{"id":239},[3572],{"type":31,"value":242},{"type":26,"tag":27,"props":3574,"children":3575},{},[3576],{"type":31,"value":247},{"type":26,"tag":27,"props":3578,"children":3579},{},[3580],{"type":31,"value":252},{"type":26,"tag":169,"props":3582,"children":3583},{},[3584,3588,3592],{"type":26,"tag":173,"props":3585,"children":3586},{},[3587],{"type":31,"value":260},{"type":26,"tag":173,"props":3589,"children":3590},{},[3591],{"type":31,"value":265},{"type":26,"tag":173,"props":3593,"children":3594},{},[3595],{"type":31,"value":270},{"type":26,"tag":39,"props":3597,"children":3598},{"id":273},[3599],{"type":31,"value":273},{"type":26,"tag":27,"props":3601,"children":3602},{},[3603],{"type":31,"value":280},{"type":26,"tag":46,"props":3605,"children":3606},{},[3607,3621],{"type":26,"tag":50,"props":3608,"children":3609},{},[3610],{"type":26,"tag":54,"props":3611,"children":3612},{},[3613,3617],{"type":26,"tag":58,"props":3614,"children":3615},{},[3616],{"type":31,"value":294},{"type":26,"tag":58,"props":3618,"children":3619},{},[3620],{"type":31,"value":299},{"type":26,"tag":74,"props":3622,"children":3623},{},[3624,3635,3646],{"type":26,"tag":54,"props":3625,"children":3626},{},[3627,3631],{"type":26,"tag":81,"props":3628,"children":3629},{},[3630],{"type":31,"value":310},{"type":26,"tag":81,"props":3632,"children":3633},{},[3634],{"type":31,"value":315},{"type":26,"tag":54,"props":3636,"children":3637},{},[3638,3642],{"type":26,"tag":81,"props":3639,"children":3640},{},[3641],{"type":31,"value":323},{"type":26,"tag":81,"props":3643,"children":3644},{},[3645],{"type":31,"value":328},{"type":26,"tag":54,"props":3647,"children":3648},{},[3649,3653],{"type":26,"tag":81,"props":3650,"children":3651},{},[3652],{"type":31,"value":336},{"type":26,"tag":81,"props":3654,"children":3655},{},[3656],{"type":31,"value":328},{"type":26,"tag":27,"props":3658,"children":3659},{},[3660],{"type":31,"value":345},{"type":26,"tag":39,"props":3662,"children":3663},{"id":348},[3664],{"type":31,"value":348},{"type":26,"tag":169,"props":3666,"children":3667},{},[3668,3672,3676,3680],{"type":26,"tag":173,"props":3669,"children":3670},{},[3671],{"type":31,"value":358},{"type":26,"tag":173,"props":3673,"children":3674},{},[3675],{"type":31,"value":363},{"type":26,"tag":173,"props":3677,"children":3678},{},[3679],{"type":31,"value":368},{"type":26,"tag":173,"props":3681,"children":3682},{},[3683],{"type":31,"value":373},{"type":26,"tag":27,"props":3685,"children":3686},{},[3687],{"type":31,"value":378},{"type":26,"tag":39,"props":3689,"children":3690},{"id":381},[3691],{"type":31,"value":381},{"type":26,"tag":27,"props":3693,"children":3694},{},[3695],{"type":31,"value":388},{"type":26,"tag":390,"props":3697,"children":3699},{"className":3698,"code":394,"language":395,"meta":7},[393],[3700],{"type":26,"tag":152,"props":3701,"children":3702},{"__ignoreMap":7},[3703],{"type":31,"value":394},{"type":26,"tag":27,"props":3705,"children":3706},{},[3707],{"type":31,"value":405},{"type":26,"tag":39,"props":3709,"children":3710},{"id":408},[3711],{"type":31,"value":408},{"type":26,"tag":27,"props":3713,"children":3714},{},[3715],{"type":31,"value":415},{"type":26,"tag":46,"props":3717,"children":3718},{},[3719,3737],{"type":26,"tag":50,"props":3720,"children":3721},{},[3722],{"type":26,"tag":54,"props":3723,"children":3724},{},[3725,3729,3733],{"type":26,"tag":58,"props":3726,"children":3727},{},[3728],{"type":31,"value":429},{"type":26,"tag":58,"props":3730,"children":3731},{},[3732],{"type":31,"value":434},{"type":26,"tag":58,"props":3734,"children":3735},{},[3736],{"type":31,"value":439},{"type":26,"tag":74,"props":3738,"children":3739},{},[3740,3755,3770,3785],{"type":26,"tag":54,"props":3741,"children":3742},{},[3743,3747,3751],{"type":26,"tag":81,"props":3744,"children":3745},{},[3746],{"type":31,"value":450},{"type":26,"tag":81,"props":3748,"children":3749},{},[3750],{"type":31,"value":455},{"type":26,"tag":81,"props":3752,"children":3753},{},[3754],{"type":31,"value":460},{"type":26,"tag":54,"props":3756,"children":3757},{},[3758,3762,3766],{"type":26,"tag":81,"props":3759,"children":3760},{},[3761],{"type":31,"value":468},{"type":26,"tag":81,"props":3763,"children":3764},{},[3765],{"type":31,"value":473},{"type":26,"tag":81,"props":3767,"children":3768},{},[3769],{"type":31,"value":478},{"type":26,"tag":54,"props":3771,"children":3772},{},[3773,3777,3781],{"type":26,"tag":81,"props":3774,"children":3775},{},[3776],{"type":31,"value":486},{"type":26,"tag":81,"props":3778,"children":3779},{},[3780],{"type":31,"value":310},{"type":26,"tag":81,"props":3782,"children":3783},{},[3784],{"type":31,"value":495},{"type":26,"tag":54,"props":3786,"children":3787},{},[3788,3792,3796],{"type":26,"tag":81,"props":3789,"children":3790},{},[3791],{"type":31,"value":503},{"type":26,"tag":81,"props":3793,"children":3794},{},[3795],{"type":31,"value":508},{"type":26,"tag":81,"props":3797,"children":3798},{},[3799],{"type":31,"value":513},{"type":26,"tag":27,"props":3801,"children":3802},{},[3803],{"type":31,"value":518},{"type":26,"tag":39,"props":3805,"children":3806},{"id":521},[3807],{"type":31,"value":524},{"type":26,"tag":169,"props":3809,"children":3811},{"className":3810},[528],[3812,3820,3828,3836,3844],{"type":26,"tag":173,"props":3813,"children":3815},{"className":3814},[533],[3816,3819],{"type":26,"tag":536,"props":3817,"children":3818},{"disabled":538,"type":539},[],{"type":31,"value":542},{"type":26,"tag":173,"props":3821,"children":3823},{"className":3822},[533],[3824,3827],{"type":26,"tag":536,"props":3825,"children":3826},{"disabled":538,"type":539},[],{"type":31,"value":551},{"type":26,"tag":173,"props":3829,"children":3831},{"className":3830},[533],[3832,3835],{"type":26,"tag":536,"props":3833,"children":3834},{"disabled":538,"type":539},[],{"type":31,"value":560},{"type":26,"tag":173,"props":3837,"children":3839},{"className":3838},[533],[3840,3843],{"type":26,"tag":536,"props":3841,"children":3842},{"disabled":538,"type":539},[],{"type":31,"value":569},{"type":26,"tag":173,"props":3845,"children":3847},{"className":3846},[533],[3848,3851],{"type":26,"tag":536,"props":3849,"children":3850},{"disabled":538,"type":539},[],{"type":31,"value":578},{"type":26,"tag":27,"props":3853,"children":3854},{},[3855],{"type":31,"value":583},{"type":26,"tag":169,"props":3857,"children":3858},{},[3859,3866,3873],{"type":26,"tag":173,"props":3860,"children":3861},{},[3862],{"type":26,"tag":591,"props":3863,"children":3864},{"href":593},[3865],{"type":31,"value":596},{"type":26,"tag":173,"props":3867,"children":3868},{},[3869],{"type":26,"tag":591,"props":3870,"children":3871},{"href":602},[3872],{"type":31,"value":605},{"type":26,"tag":173,"props":3874,"children":3875},{},[3876],{"type":26,"tag":591,"props":3877,"children":3878},{"href":611},[3879],{"type":31,"value":614},{"title":7,"searchDepth":616,"depth":616,"links":3881},[3882,3883,3884,3885,3886,3887,3888,3889,3890,3891],{"id":41,"depth":619,"text":44},{"id":139,"depth":619,"text":142},{"id":165,"depth":619,"text":165},{"id":210,"depth":619,"text":213},{"id":239,"depth":619,"text":242},{"id":273,"depth":619,"text":273},{"id":348,"depth":619,"text":348},{"id":381,"depth":619,"text":381},{"id":408,"depth":619,"text":408},{"id":521,"depth":619,"text":524},1780533120925]