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