[{"data":1,"prerenderedAt":4964},["ShallowReactive",2],{"article-/topics/ai/ai-agent-artifact-design-intermediate-output":3,"related-ai":1212,"content-query-XP2qcTLCFb":3980},{"_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":1206,"_id":1207,"_source":1208,"_file":1209,"_stem":1210,"_extension":1211},"/topics/ai/ai-agent-artifact-design-intermediate-output","ai",false,"","AI agent Artifact 设计：把计划、证据、草稿和最终输出做成可审中间产物","AI agent 不该只有最终答案。本文讲清计划、证据、草稿、决策记录等 artifact 的类型、状态、引用关系和审查价值。","2026-05-07","HTMLPAGE 团队",[13,14,15,16],"AI agent","Artifact","中间产物","工程实践","/images/articles/ai-agent-artifact-design-intermediate-output-featured.jpg","team document workflow review laptop",7653571,"https://www.pexels.com/photo/people-working-with-graphs-in-office-7653571/",20,{"type":23,"children":24,"toc":1190},"root",[25,33,38,58,63,100,107,193,198,204,209,283,288,293,340,345,351,356,369,410,415,501,506,512,517,522,533,538,544,549,567,572,581,586,591,630,635,641,654,672,677,682,695,700,713,719,724,737,742,814,819,825,830,904,909,915,920,925,931,936,1023,1028,1034,1142,1147,1152,1157],{"type":26,"tag":27,"props":28,"children":29},"element","p",{},[30],{"type":31,"value":32},"text","很多 AI agent 系统最大的问题，不是最后一段回答不够聪明，而是中间过程什么都没留下。模型检索了什么、计划了什么、引用了什么证据、生成过哪些草稿、为什么决定调用某个工具，最后全被压扁成一条最终输出。",{"type":26,"tag":27,"props":34,"children":35},{},[36],{"type":31,"value":37},"这会带来三个直接问题：",{"type":26,"tag":39,"props":40,"children":41},"ul",{},[42,48,53],{"type":26,"tag":43,"props":44,"children":45},"li",{},[46],{"type":31,"value":47},"审查时只能看结果，无法判断过程是否可靠",{"type":26,"tag":43,"props":49,"children":50},{},[51],{"type":31,"value":52},"失败后难以复用已有中间成果",{"type":26,"tag":43,"props":54,"children":55},{},[56],{"type":31,"value":57},"人机协作只能在最终答案上打补丁，不能在过程节点接管",{"type":26,"tag":27,"props":59,"children":60},{},[61],{"type":31,"value":62},"Artifact 设计的目的，就是把中间过程变成系统可见、可引用、可审的对象。",{"type":26,"tag":27,"props":64,"children":65},{},[66,68,75,77,83,84,90,92,98],{"type":31,"value":67},"建议先配合 ",{"type":26,"tag":69,"props":70,"children":72},"a",{"href":71},"/topics/ai/ai-agent-observability-tracing-playbook",[73],{"type":31,"value":74},"AI Agent 可观测性设计",{"type":31,"value":76},"、",{"type":26,"tag":69,"props":78,"children":80},{"href":79},"/topics/ai/ai-agent-human-feedback-annotation-loop",[81],{"type":31,"value":82},"AI agent 人工反馈闭环",{"type":31,"value":76},{"type":26,"tag":69,"props":85,"children":87},{"href":86},"/topics/ai/ai-agent-prompt-contract-interface-spec",[88],{"type":31,"value":89},"AI agent Prompt Contract 设计",{"type":31,"value":91}," 和 ",{"type":26,"tag":69,"props":93,"children":95},{"href":94},"/topics/ai/ai-agent-human-review-console-design",[96],{"type":31,"value":97},"AI agent 人工审批控制台设计",{"type":31,"value":99}," 一起看。",{"type":26,"tag":101,"props":102,"children":104},"h2",{"id":103},"先给结论artifact-不是日志也不是最终内容",[105],{"type":31,"value":106},"先给结论：Artifact 不是日志，也不是最终内容",{"type":26,"tag":108,"props":109,"children":110},"table",{},[111,135],{"type":26,"tag":112,"props":113,"children":114},"thead",{},[115],{"type":26,"tag":116,"props":117,"children":118},"tr",{},[119,125,130],{"type":26,"tag":120,"props":121,"children":122},"th",{},[123],{"type":31,"value":124},"对象",{"type":26,"tag":120,"props":126,"children":127},{},[128],{"type":31,"value":129},"解决什么问题",{"type":26,"tag":120,"props":131,"children":132},{},[133],{"type":31,"value":134},"不能替代什么",{"type":26,"tag":136,"props":137,"children":138},"tbody",{},[139,158,176],{"type":26,"tag":116,"props":140,"children":141},{},[142,148,153],{"type":26,"tag":143,"props":144,"children":145},"td",{},[146],{"type":31,"value":147},"日志",{"type":26,"tag":143,"props":149,"children":150},{},[151],{"type":31,"value":152},"记录事件和耗时",{"type":26,"tag":143,"props":154,"children":155},{},[156],{"type":31,"value":157},"不能作为业务过程产物",{"type":26,"tag":116,"props":159,"children":160},{},[161,166,171],{"type":26,"tag":143,"props":162,"children":163},{},[164],{"type":31,"value":165},"最终输出",{"type":26,"tag":143,"props":167,"children":168},{},[169],{"type":31,"value":170},"给用户结果",{"type":26,"tag":143,"props":172,"children":173},{},[174],{"type":31,"value":175},"无法表达中间决策",{"type":26,"tag":116,"props":177,"children":178},{},[179,183,188],{"type":26,"tag":143,"props":180,"children":181},{},[182],{"type":31,"value":14},{"type":26,"tag":143,"props":184,"children":185},{},[186],{"type":31,"value":187},"沉淀中间成果和依据",{"type":26,"tag":143,"props":189,"children":190},{},[191],{"type":31,"value":192},"不替代 trace",{"type":26,"tag":27,"props":194,"children":195},{},[196],{"type":31,"value":197},"Artifact 的核心作用是“过程可见”，而不是“多存一份文本”。",{"type":26,"tag":101,"props":199,"children":201},{"id":200},"一至少定义-4-类基础-artifact",[202],{"type":31,"value":203},"一、至少定义 4 类基础 artifact",{"type":26,"tag":27,"props":205,"children":206},{},[207],{"type":31,"value":208},"大多数任务型 agent，至少需要这些类型：",{"type":26,"tag":108,"props":210,"children":211},{},[212,228],{"type":26,"tag":112,"props":213,"children":214},{},[215],{"type":26,"tag":116,"props":216,"children":217},{},[218,223],{"type":26,"tag":120,"props":219,"children":220},{},[221],{"type":31,"value":222},"类型",{"type":26,"tag":120,"props":224,"children":225},{},[226],{"type":31,"value":227},"作用",{"type":26,"tag":136,"props":229,"children":230},{},[231,244,257,270],{"type":26,"tag":116,"props":232,"children":233},{},[234,239],{"type":26,"tag":143,"props":235,"children":236},{},[237],{"type":31,"value":238},"plan",{"type":26,"tag":143,"props":240,"children":241},{},[242],{"type":31,"value":243},"任务拆解、步骤列表、风险预估",{"type":26,"tag":116,"props":245,"children":246},{},[247,252],{"type":26,"tag":143,"props":248,"children":249},{},[250],{"type":31,"value":251},"evidence",{"type":26,"tag":143,"props":253,"children":254},{},[255],{"type":31,"value":256},"检索片段、引用来源、工具结果摘要",{"type":26,"tag":116,"props":258,"children":259},{},[260,265],{"type":26,"tag":143,"props":261,"children":262},{},[263],{"type":31,"value":264},"draft",{"type":26,"tag":143,"props":266,"children":267},{},[268],{"type":31,"value":269},"中间草稿、候选方案、结构化输出",{"type":26,"tag":116,"props":271,"children":272},{},[273,278],{"type":26,"tag":143,"props":274,"children":275},{},[276],{"type":31,"value":277},"decision",{"type":26,"tag":143,"props":279,"children":280},{},[281],{"type":31,"value":282},"人工确认、策略判定、关键选择",{"type":26,"tag":27,"props":284,"children":285},{},[286],{"type":31,"value":287},"如果所有中间结果都混在一份“notes”里，后面很难复用。",{"type":26,"tag":27,"props":289,"children":290},{},[291],{"type":31,"value":292},"实际落地时，很多团队还会再补两类：",{"type":26,"tag":108,"props":294,"children":295},{},[296,311],{"type":26,"tag":112,"props":297,"children":298},{},[299],{"type":26,"tag":116,"props":300,"children":301},{},[302,306],{"type":26,"tag":120,"props":303,"children":304},{},[305],{"type":31,"value":222},{"type":26,"tag":120,"props":307,"children":308},{},[309],{"type":31,"value":310},"适用场景",{"type":26,"tag":136,"props":312,"children":313},{},[314,327],{"type":26,"tag":116,"props":315,"children":316},{},[317,322],{"type":26,"tag":143,"props":318,"children":319},{},[320],{"type":31,"value":321},"review_packet",{"type":26,"tag":143,"props":323,"children":324},{},[325],{"type":31,"value":326},"给人工审批或质检的组合视图",{"type":26,"tag":116,"props":328,"children":329},{},[330,335],{"type":26,"tag":143,"props":331,"children":332},{},[333],{"type":31,"value":334},"final_output",{"type":26,"tag":143,"props":336,"children":337},{},[338],{"type":31,"value":339},"真正对用户或外部系统生效的最终版本",{"type":26,"tag":27,"props":341,"children":342},{},[343],{"type":31,"value":344},"不是所有系统都必须拆到这么细，但一旦有人机协作、审计或多次回写，类型边界就值得更明确。",{"type":26,"tag":101,"props":346,"children":348},{"id":347},"二artifact-要有状态而不是只存内容",[349],{"type":31,"value":350},"二、Artifact 要有状态，而不是只存内容",{"type":26,"tag":27,"props":352,"children":353},{},[354],{"type":31,"value":355},"同一份草稿在不同阶段意义完全不同。建议至少保存：",{"type":26,"tag":357,"props":358,"children":363},"pre",{"className":359,"code":361,"language":362,"meta":7},[360],"language-json","{\n  \"artifactId\": \"draft_001\",\n  \"type\": \"draft\",\n  \"status\": \"generated\",\n  \"runId\": \"run_123\",\n  \"version\": 1,\n  \"content\": { \"summary\": \"...\" },\n  \"sourceRefs\": [\"evidence_01\", \"plan_01\"],\n  \"createdBy\": \"agent\",\n  \"createdAt\": \"2026-05-07T10:00:00Z\"\n}\n","json",[364],{"type":26,"tag":365,"props":366,"children":367},"code",{"__ignoreMap":7},[368],{"type":31,"value":361},{"type":26,"tag":27,"props":370,"children":371},{},[372,374,380,381,387,388,394,395,401,402,408],{"type":31,"value":373},"常见状态可以是：",{"type":26,"tag":365,"props":375,"children":377},{"className":376},[],[378],{"type":31,"value":379},"generated",{"type":31,"value":76},{"type":26,"tag":365,"props":382,"children":384},{"className":383},[],[385],{"type":31,"value":386},"reviewed",{"type":31,"value":76},{"type":26,"tag":365,"props":389,"children":391},{"className":390},[],[392],{"type":31,"value":393},"approved",{"type":31,"value":76},{"type":26,"tag":365,"props":396,"children":398},{"className":397},[],[399],{"type":31,"value":400},"rejected",{"type":31,"value":76},{"type":26,"tag":365,"props":403,"children":405},{"className":404},[],[406],{"type":31,"value":407},"superseded",{"type":31,"value":409},"。没有状态，中间产物和废弃产物会混在一起。",{"type":26,"tag":27,"props":411,"children":412},{},[413],{"type":31,"value":414},"更稳的做法是把状态流转提前定义出来，而不是由不同页面和脚本各自改字符串：",{"type":26,"tag":108,"props":416,"children":417},{},[418,434],{"type":26,"tag":112,"props":419,"children":420},{},[421],{"type":26,"tag":116,"props":422,"children":423},{},[424,429],{"type":26,"tag":120,"props":425,"children":426},{},[427],{"type":31,"value":428},"artifact 类型",{"type":26,"tag":120,"props":430,"children":431},{},[432],{"type":31,"value":433},"常见状态流",{"type":26,"tag":136,"props":435,"children":436},{},[437,453,469,485],{"type":26,"tag":116,"props":438,"children":439},{},[440,444],{"type":26,"tag":143,"props":441,"children":442},{},[443],{"type":31,"value":238},{"type":26,"tag":143,"props":445,"children":446},{},[447],{"type":26,"tag":365,"props":448,"children":450},{"className":449},[],[451],{"type":31,"value":452},"generated -> reviewed -> approved/superseded",{"type":26,"tag":116,"props":454,"children":455},{},[456,460],{"type":26,"tag":143,"props":457,"children":458},{},[459],{"type":31,"value":251},{"type":26,"tag":143,"props":461,"children":462},{},[463],{"type":26,"tag":365,"props":464,"children":466},{"className":465},[],[467],{"type":31,"value":468},"collected -> verified -> expired/superseded",{"type":26,"tag":116,"props":470,"children":471},{},[472,476],{"type":26,"tag":143,"props":473,"children":474},{},[475],{"type":31,"value":264},{"type":26,"tag":143,"props":477,"children":478},{},[479],{"type":26,"tag":365,"props":480,"children":482},{"className":481},[],[483],{"type":31,"value":484},"generated -> edited -> approved/rejected -> superseded",{"type":26,"tag":116,"props":486,"children":487},{},[488,492],{"type":26,"tag":143,"props":489,"children":490},{},[491],{"type":31,"value":277},{"type":26,"tag":143,"props":493,"children":494},{},[495],{"type":26,"tag":365,"props":496,"children":498},{"className":497},[],[499],{"type":31,"value":500},"proposed -> confirmed -> revoked",{"type":26,"tag":27,"props":502,"children":503},{},[504],{"type":31,"value":505},"一旦状态机明确，审批台、恢复系统和报表统计才能围绕同一套语义工作。",{"type":26,"tag":101,"props":507,"children":509},{"id":508},"三artifact-最好有统一骨架避免后续字段越长越乱",[510],{"type":31,"value":511},"三、Artifact 最好有统一骨架，避免后续字段越长越乱",{"type":26,"tag":27,"props":513,"children":514},{},[515],{"type":31,"value":516},"一个常见问题是：每种 artifact 都按当下需求自由长字段，最后 plan、evidence、draft 完全没有共享元信息，检索和治理都很难做。",{"type":26,"tag":27,"props":518,"children":519},{},[520],{"type":31,"value":521},"更稳的方式是先约定一个公共骨架：",{"type":26,"tag":357,"props":523,"children":528},{"className":524,"code":526,"language":527,"meta":7},[525],"language-ts","interface ArtifactEnvelope\u003CTContent = unknown> {\n  artifactId: string\n  type: 'plan' | 'evidence' | 'draft' | 'decision' | 'review_packet' | 'final_output'\n  status: string\n  runId: string\n  version: number\n  contentHash: string\n  visibility: 'system' | 'reviewer' | 'user'\n  retentionClass: 'short' | 'standard' | 'audit'\n  lineage: {\n    dependsOn: string[]\n    replaces: string[]\n  }\n  content: TContent\n}\n","ts",[529],{"type":26,"tag":365,"props":530,"children":531},{"__ignoreMap":7},[532],{"type":31,"value":526},{"type":26,"tag":27,"props":534,"children":535},{},[536],{"type":31,"value":537},"这份骨架的价值不在于“字段写得全”，而在于后续索引、权限、去重、归档都能围绕统一元信息展开。",{"type":26,"tag":101,"props":539,"children":541},{"id":540},"四artifact-之间要能引用而不是靠人脑记忆关系",[542],{"type":31,"value":543},"四、Artifact 之间要能引用，而不是靠人脑记忆关系",{"type":26,"tag":27,"props":545,"children":546},{},[547],{"type":31,"value":548},"例如：",{"type":26,"tag":39,"props":550,"children":551},{},[552,557,562],{"type":26,"tag":43,"props":553,"children":554},{},[555],{"type":31,"value":556},"一个 draft 引用哪些 evidence",{"type":26,"tag":43,"props":558,"children":559},{},[560],{"type":31,"value":561},"一个 decision 是基于哪份 plan 做出的",{"type":26,"tag":43,"props":563,"children":564},{},[565],{"type":31,"value":566},"一个 final output 替换了哪份 draft",{"type":26,"tag":27,"props":568,"children":569},{},[570],{"type":31,"value":571},"引用关系最好显式存储：",{"type":26,"tag":357,"props":573,"children":576},{"className":574,"code":575,"language":362,"meta":7},[360],"{\n  \"artifactId\": \"final_003\",\n  \"replaces\": [\"draft_001\"],\n  \"dependsOn\": [\"decision_002\", \"evidence_05\"]\n}\n",[577],{"type":26,"tag":365,"props":578,"children":579},{"__ignoreMap":7},[580],{"type":31,"value":575},{"type":26,"tag":27,"props":582,"children":583},{},[584],{"type":31,"value":585},"这样人机协作时，审核人员能顺着证据链回看；系统恢复时，也知道该复用哪些中间产物。",{"type":26,"tag":27,"props":587,"children":588},{},[589],{"type":31,"value":590},"如果系统需要支持“基于某条 evidence 找到所有受影响 draft”和“基于某个 decision 找到最终生效版本”，那么 lineage 最好不仅可读，还可查询。也就是说，artifact 存储层最好支持按：",{"type":26,"tag":39,"props":592,"children":593},{},[594,603,612,621],{"type":26,"tag":43,"props":595,"children":596},{},[597],{"type":26,"tag":365,"props":598,"children":600},{"className":599},[],[601],{"type":31,"value":602},"runId + type",{"type":26,"tag":43,"props":604,"children":605},{},[606],{"type":26,"tag":365,"props":607,"children":609},{"className":608},[],[610],{"type":31,"value":611},"dependsOn artifactId",{"type":26,"tag":43,"props":613,"children":614},{},[615],{"type":26,"tag":365,"props":616,"children":618},{"className":617},[],[619],{"type":31,"value":620},"replaces artifactId",{"type":26,"tag":43,"props":622,"children":623},{},[624],{"type":26,"tag":365,"props":625,"children":627},{"className":626},[],[628],{"type":31,"value":629},"status + updatedAt",{"type":26,"tag":27,"props":631,"children":632},{},[633],{"type":31,"value":634},"做索引或二级查询。否则对象虽然存在，系统却很难把它真正用起来。",{"type":26,"tag":101,"props":636,"children":638},{"id":637},"五不要把-artifact-做成无限增长的工作笔记",[639],{"type":31,"value":640},"五、不要把 artifact 做成“无限增长的工作笔记”",{"type":26,"tag":27,"props":642,"children":643},{},[644,646,652],{"type":31,"value":645},"Artifact 设计常见反模式是一个 ",{"type":26,"tag":365,"props":647,"children":649},{"className":648},[],[650],{"type":31,"value":651},"working_notes",{"type":31,"value":653}," 字段，什么都往里塞。短期省事，长期会出问题：",{"type":26,"tag":39,"props":655,"children":656},{},[657,662,667],{"type":26,"tag":43,"props":658,"children":659},{},[660],{"type":31,"value":661},"无法区分哪段是证据、哪段是草稿、哪段是评论",{"type":26,"tag":43,"props":663,"children":664},{},[665],{"type":31,"value":666},"无法做权限隔离",{"type":26,"tag":43,"props":668,"children":669},{},[670],{"type":31,"value":671},"无法做增量审查",{"type":26,"tag":27,"props":673,"children":674},{},[675],{"type":31,"value":676},"更稳的做法是对象化。即便底层最后仍然存成 JSON，也应该在概念上先分类型和边界。",{"type":26,"tag":27,"props":678,"children":679},{},[680],{"type":31,"value":681},"再进一步，如果 evidence 或 draft 可能特别大，建议把正文内容和元信息拆开保存：",{"type":26,"tag":39,"props":683,"children":684},{},[685,690],{"type":26,"tag":43,"props":686,"children":687},{},[688],{"type":31,"value":689},"元信息层：类型、状态、来源、引用、权限、hash",{"type":26,"tag":43,"props":691,"children":692},{},[693],{"type":31,"value":694},"内容层：大文本、截图、附件、结构化片段",{"type":26,"tag":27,"props":696,"children":697},{},[698],{"type":31,"value":699},"这样做有两个直接收益：",{"type":26,"tag":39,"props":701,"children":702},{},[703,708],{"type":26,"tag":43,"props":704,"children":705},{},[706],{"type":31,"value":707},"审批台可以先加载元信息，再按需展开内容",{"type":26,"tag":43,"props":709,"children":710},{},[711],{"type":31,"value":712},"恢复和审计可以只拉取必要 artifact，而不是一次读全量大对象",{"type":26,"tag":101,"props":714,"children":716},{"id":715},"六人机协作最需要-artifact而不是更长-prompt",[717],{"type":31,"value":718},"六、人机协作最需要 artifact，而不是更长 prompt",{"type":26,"tag":27,"props":720,"children":721},{},[722],{"type":31,"value":723},"很多团队觉得人工 review 效率低，就给 agent 加更长的 prompt，试图让它一次输出最终正确答案。问题在于：",{"type":26,"tag":39,"props":725,"children":726},{},[727,732],{"type":26,"tag":43,"props":728,"children":729},{},[730],{"type":31,"value":731},"人工最想看的不是最终结果，而是“你依据了什么”",{"type":26,"tag":43,"props":733,"children":734},{},[735],{"type":31,"value":736},"最容易修改的不是整段结果，而是某个候选步骤或某条证据",{"type":26,"tag":27,"props":738,"children":739},{},[740],{"type":31,"value":741},"一个好的审批界面，通常是围绕 artifact 展示：",{"type":26,"tag":108,"props":743,"children":744},{},[745,761],{"type":26,"tag":112,"props":746,"children":747},{},[748],{"type":26,"tag":116,"props":749,"children":750},{},[751,756],{"type":26,"tag":120,"props":752,"children":753},{},[754],{"type":31,"value":755},"审查目标",{"type":26,"tag":120,"props":757,"children":758},{},[759],{"type":31,"value":760},"最适合看的 artifact",{"type":26,"tag":136,"props":762,"children":763},{},[764,777,789,801],{"type":26,"tag":116,"props":765,"children":766},{},[767,772],{"type":26,"tag":143,"props":768,"children":769},{},[770],{"type":31,"value":771},"这一步为什么这么做",{"type":26,"tag":143,"props":773,"children":774},{},[775],{"type":31,"value":776},"plan / decision",{"type":26,"tag":116,"props":778,"children":779},{},[780,785],{"type":26,"tag":143,"props":781,"children":782},{},[783],{"type":31,"value":784},"这个结论依据什么",{"type":26,"tag":143,"props":786,"children":787},{},[788],{"type":31,"value":251},{"type":26,"tag":116,"props":790,"children":791},{},[792,797],{"type":26,"tag":143,"props":793,"children":794},{},[795],{"type":31,"value":796},"结果哪里需要改",{"type":26,"tag":143,"props":798,"children":799},{},[800],{"type":31,"value":264},{"type":26,"tag":116,"props":802,"children":803},{},[804,809],{"type":26,"tag":143,"props":805,"children":806},{},[807],{"type":31,"value":808},"哪个版本最终生效",{"type":26,"tag":143,"props":810,"children":811},{},[812],{"type":31,"value":813},"final output + decision",{"type":26,"tag":27,"props":815,"children":816},{},[817],{"type":31,"value":818},"一个成熟的 review console 往往不是直接展示“最新文本”，而是按 artifact lineage 渲染：先给决策摘要，再给证据，再给候选 draft，再给最终生效版本。没有 artifact 结构，这种界面就只能硬拼数据。",{"type":26,"tag":101,"props":820,"children":822},{"id":821},"七artifact-也需要质量门禁不是什么中间结果都值得保留",[823],{"type":31,"value":824},"七、Artifact 也需要质量门禁，不是什么中间结果都值得保留",{"type":26,"tag":27,"props":826,"children":827},{},[828],{"type":31,"value":829},"如果 artifact 设计得太随意，系统会走向另一个极端：什么都存，最后没人知道哪份可信。建议至少定义几条保留门槛：",{"type":26,"tag":108,"props":831,"children":832},{},[833,849],{"type":26,"tag":112,"props":834,"children":835},{},[836],{"type":26,"tag":116,"props":837,"children":838},{},[839,844],{"type":26,"tag":120,"props":840,"children":841},{},[842],{"type":31,"value":843},"门槛",{"type":26,"tag":120,"props":845,"children":846},{},[847],{"type":31,"value":848},"示例",{"type":26,"tag":136,"props":850,"children":851},{},[852,865,878,891],{"type":26,"tag":116,"props":853,"children":854},{},[855,860],{"type":26,"tag":143,"props":856,"children":857},{},[858],{"type":31,"value":859},"可解释性",{"type":26,"tag":143,"props":861,"children":862},{},[863],{"type":31,"value":864},"evidence 必须带来源引用",{"type":26,"tag":116,"props":866,"children":867},{},[868,873],{"type":26,"tag":143,"props":869,"children":870},{},[871],{"type":31,"value":872},"可恢复性",{"type":26,"tag":143,"props":874,"children":875},{},[876],{"type":31,"value":877},"draft 必须能关联到 plan 或 evidence",{"type":26,"tag":116,"props":879,"children":880},{},[881,886],{"type":26,"tag":143,"props":882,"children":883},{},[884],{"type":31,"value":885},"可审计性",{"type":26,"tag":143,"props":887,"children":888},{},[889],{"type":31,"value":890},"decision 必须带操作者和时间",{"type":26,"tag":116,"props":892,"children":893},{},[894,899],{"type":26,"tag":143,"props":895,"children":896},{},[897],{"type":31,"value":898},"可去重性",{"type":26,"tag":143,"props":900,"children":901},{},[902],{"type":31,"value":903},"artifact 必须可计算内容 hash",{"type":26,"tag":27,"props":905,"children":906},{},[907],{"type":31,"value":908},"一份没有来源、没有 lineage、没有状态的文本，就算存下来，也更像噪声而不是 artifact。",{"type":26,"tag":101,"props":910,"children":912},{"id":911},"八失败案例只有最终回答导致审计时无法证明依据来源",[913],{"type":31,"value":914},"八、失败案例：只有最终回答，导致审计时无法证明依据来源",{"type":26,"tag":27,"props":916,"children":917},{},[918],{"type":31,"value":919},"一个企业内部 Agent 给出了一份供应商建议，但最终输出里只保留结论，没有保留引用来源和候选方案。后来业务方质疑推荐依据，团队只能回看日志猜当时看了什么。",{"type":26,"tag":27,"props":921,"children":922},{},[923],{"type":31,"value":924},"修复后，他们把检索片段单独保存为 evidence artifact，把模型初稿保存为 draft artifact，把审批结果保存为 decision artifact。后来再遇到争议，只需要打开 artifact 链，不用重新猜过程。",{"type":26,"tag":101,"props":926,"children":928},{"id":927},"九上线后要看-artifact-治理指标",[929],{"type":31,"value":930},"九、上线后要看 artifact 治理指标",{"type":26,"tag":27,"props":932,"children":933},{},[934],{"type":31,"value":935},"要判断 artifact 体系是不是健康，建议持续看几类指标：",{"type":26,"tag":108,"props":937,"children":938},{},[939,955],{"type":26,"tag":112,"props":940,"children":941},{},[942],{"type":26,"tag":116,"props":943,"children":944},{},[945,950],{"type":26,"tag":120,"props":946,"children":947},{},[948],{"type":31,"value":949},"指标",{"type":26,"tag":120,"props":951,"children":952},{},[953],{"type":31,"value":954},"用途",{"type":26,"tag":136,"props":956,"children":957},{},[958,971,984,997,1010],{"type":26,"tag":116,"props":959,"children":960},{},[961,966],{"type":26,"tag":143,"props":962,"children":963},{},[964],{"type":31,"value":965},"每个 Run 的 artifact 数量分布",{"type":26,"tag":143,"props":967,"children":968},{},[969],{"type":31,"value":970},"防止过程沉淀过少或过多",{"type":26,"tag":116,"props":972,"children":973},{},[974,979],{"type":26,"tag":143,"props":975,"children":976},{},[977],{"type":31,"value":978},"orphan artifact 比例",{"type":26,"tag":143,"props":980,"children":981},{},[982],{"type":31,"value":983},"发现没有 lineage 的孤儿对象",{"type":26,"tag":116,"props":985,"children":986},{},[987,992],{"type":26,"tag":143,"props":988,"children":989},{},[990],{"type":31,"value":991},"superseded 未归档比例",{"type":26,"tag":143,"props":993,"children":994},{},[995],{"type":31,"value":996},"发现废弃草稿堆积",{"type":26,"tag":116,"props":998,"children":999},{},[1000,1005],{"type":26,"tag":143,"props":1001,"children":1002},{},[1003],{"type":31,"value":1004},"review packet 生成成功率",{"type":26,"tag":143,"props":1006,"children":1007},{},[1008],{"type":31,"value":1009},"发现人机协作链路断点",{"type":26,"tag":116,"props":1011,"children":1012},{},[1013,1018],{"type":26,"tag":143,"props":1014,"children":1015},{},[1016],{"type":31,"value":1017},"artifact 命中复用率",{"type":26,"tag":143,"props":1019,"children":1020},{},[1021],{"type":31,"value":1022},"判断中间产物是否真的被复用",{"type":26,"tag":27,"props":1024,"children":1025},{},[1026],{"type":31,"value":1027},"如果 artifact 数量很多但复用率几乎为零，说明系统只是在“保存过程”，还没有真正“利用过程”。",{"type":26,"tag":101,"props":1029,"children":1031},{"id":1030},"十artifact-checklist",[1032],{"type":31,"value":1033},"十、Artifact Checklist",{"type":26,"tag":39,"props":1035,"children":1038},{"className":1036},[1037],"contains-task-list",[1039,1052,1061,1070,1079,1088,1097,1106,1115,1124,1133],{"type":26,"tag":43,"props":1040,"children":1043},{"className":1041},[1042],"task-list-item",[1044,1050],{"type":26,"tag":1045,"props":1046,"children":1049},"input",{"disabled":1047,"type":1048},true,"checkbox",[],{"type":31,"value":1051}," 是否至少区分 plan、evidence、draft、decision 四类",{"type":26,"tag":43,"props":1053,"children":1055},{"className":1054},[1042],[1056,1059],{"type":26,"tag":1045,"props":1057,"children":1058},{"disabled":1047,"type":1048},[],{"type":31,"value":1060}," 每类 artifact 是否有状态和版本",{"type":26,"tag":43,"props":1062,"children":1064},{"className":1063},[1042],[1065,1068],{"type":26,"tag":1045,"props":1066,"children":1067},{"disabled":1047,"type":1048},[],{"type":31,"value":1069}," 是否存在统一的 artifact envelope 和共享元信息",{"type":26,"tag":43,"props":1071,"children":1073},{"className":1072},[1042],[1074,1077],{"type":26,"tag":1045,"props":1075,"children":1076},{"disabled":1047,"type":1048},[],{"type":31,"value":1078}," artifact 之间是否可引用",{"type":26,"tag":43,"props":1080,"children":1082},{"className":1081},[1042],[1083,1086],{"type":26,"tag":1045,"props":1084,"children":1085},{"disabled":1047,"type":1048},[],{"type":31,"value":1087}," lineage 是否支持按 dependsOn / replaces 查询",{"type":26,"tag":43,"props":1089,"children":1091},{"className":1090},[1042],[1092,1095],{"type":26,"tag":1045,"props":1093,"children":1094},{"disabled":1047,"type":1048},[],{"type":31,"value":1096}," 被废弃的 artifact 是否能显式标记",{"type":26,"tag":43,"props":1098,"children":1100},{"className":1099},[1042],[1101,1104],{"type":26,"tag":1045,"props":1102,"children":1103},{"disabled":1047,"type":1048},[],{"type":31,"value":1105}," 大对象内容和元信息是否按需拆分",{"type":26,"tag":43,"props":1107,"children":1109},{"className":1108},[1042],[1110,1113],{"type":26,"tag":1045,"props":1111,"children":1112},{"disabled":1047,"type":1048},[],{"type":31,"value":1114}," 权限模型是否能按 artifact 类型区分",{"type":26,"tag":43,"props":1116,"children":1118},{"className":1117},[1042],[1119,1122],{"type":26,"tag":1045,"props":1120,"children":1121},{"disabled":1047,"type":1048},[],{"type":31,"value":1123}," 是否定义了 artifact 保留门槛和治理指标",{"type":26,"tag":43,"props":1125,"children":1127},{"className":1126},[1042],[1128,1131],{"type":26,"tag":1045,"props":1129,"children":1130},{"disabled":1047,"type":1048},[],{"type":31,"value":1132}," 审批与恢复是否复用 artifact，而不是重算全部过程",{"type":26,"tag":43,"props":1134,"children":1136},{"className":1135},[1042],[1137,1140],{"type":26,"tag":1045,"props":1138,"children":1139},{"disabled":1047,"type":1048},[],{"type":31,"value":1141}," 最终输出是否能追溯到关键 evidence 和 decision",{"type":26,"tag":101,"props":1143,"children":1145},{"id":1144},"结语",[1146],{"type":31,"value":1144},{"type":26,"tag":27,"props":1148,"children":1149},{},[1150],{"type":31,"value":1151},"AI agent 真正可审、可恢复、可协作的前提，不是更长的日志，而是更清楚的中间产物。把 plan、evidence、draft、decision 做成 artifact，系统才真正拥有“过程”。",{"type":26,"tag":27,"props":1153,"children":1154},{},[1155],{"type":31,"value":1156},"延伸阅读：",{"type":26,"tag":39,"props":1158,"children":1159},{},[1160,1167,1174,1183],{"type":26,"tag":43,"props":1161,"children":1162},{},[1163],{"type":26,"tag":69,"props":1164,"children":1165},{"href":71},[1166],{"type":31,"value":74},{"type":26,"tag":43,"props":1168,"children":1169},{},[1170],{"type":26,"tag":69,"props":1171,"children":1172},{"href":94},[1173],{"type":31,"value":97},{"type":26,"tag":43,"props":1175,"children":1176},{},[1177],{"type":26,"tag":69,"props":1178,"children":1180},{"href":1179},"/topics/ai/ai-agent-workspace-state-layout-guide",[1181],{"type":31,"value":1182},"AI agent Workspace 状态分层",{"type":26,"tag":43,"props":1184,"children":1185},{},[1186],{"type":26,"tag":69,"props":1187,"children":1188},{"href":79},[1189],{"type":31,"value":82},{"title":7,"searchDepth":1191,"depth":1191,"links":1192},3,[1193,1195,1196,1197,1198,1199,1200,1201,1202,1203,1204,1205],{"id":103,"depth":1194,"text":106},2,{"id":200,"depth":1194,"text":203},{"id":347,"depth":1194,"text":350},{"id":508,"depth":1194,"text":511},{"id":540,"depth":1194,"text":543},{"id":637,"depth":1194,"text":640},{"id":715,"depth":1194,"text":718},{"id":821,"depth":1194,"text":824},{"id":911,"depth":1194,"text":914},{"id":927,"depth":1194,"text":930},{"id":1030,"depth":1194,"text":1033},{"id":1144,"depth":1194,"text":1144},"markdown","content:topics:ai:ai-agent-artifact-design-intermediate-output.md","content","topics/ai/ai-agent-artifact-design-intermediate-output.md","topics/ai/ai-agent-artifact-design-intermediate-output","md",[1213,2368,3318],{"_path":1214,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":1215,"description":1216,"date":1217,"topic":5,"author":11,"tags":1218,"image":1224,"imageAlt":1225,"pexelsPhotoId":1226,"pexelsUrl":1227,"readingTime":1228,"body":1229,"_type":1206,"_id":2365,"_source":1208,"_file":2366,"_stem":2367,"_extension":1211},"/topics/ai/cursor-keyboard-shortcuts-cheatsheet","Cursor 快捷键速查表（macOS/Windows）：从“会用”到“能提效”的 10 个工作流","把 Cursor 常用快捷键按任务分组（查代码、改代码、多文件、对话、审查与回滚），给出可直接照抄的工作流与最小回归清单，避免“快捷键背了也没变快”。","2026-03-02",[1219,1220,1221,1222,1223],"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":1230,"toc":2339},[1231,1236,1254,1259,1288,1293,1329,1333,1339,1344,1377,1382,1405,1408,1414,1419,1637,1646,1649,1655,1662,1681,1689,1710,1715,1721,1736,1767,1772,1785,1791,1810,1828,1836,1841,1847,1852,1873,1881,1887,1892,1915,1920,1926,1939,1945,1963,1981,1987,1998,2016,2022,2033,2039,2044,2087,2090,2096,2104,2157,2160,2166,2172,2177,2182,2205,2223,2228,2253,2256,2262,2268,2273,2279,2284,2290,2295,2298,2304],{"type":26,"tag":27,"props":1232,"children":1233},{},[1234],{"type":31,"value":1235},"如果你在搜“Cursor 快捷键”，你大概率不是想背一张表，而是想解决这类问题：",{"type":26,"tag":39,"props":1237,"children":1238},{},[1239,1244,1249],{"type":26,"tag":43,"props":1240,"children":1241},{},[1242],{"type":31,"value":1243},"为什么我用了 AI，还是很慢？（对话来回太多、改动不可控）",{"type":26,"tag":43,"props":1245,"children":1246},{},[1247],{"type":31,"value":1248},"为什么它“看起来懂了”，却改错文件/改出回归？（上下文与范围没锁住）",{"type":26,"tag":43,"props":1250,"children":1251},{},[1252],{"type":31,"value":1253},"多文件改动怎么做得安全？（验收、回滚、最小回归集）",{"type":26,"tag":27,"props":1255,"children":1256},{},[1257],{"type":31,"value":1258},"这篇文章给你两份东西：",{"type":26,"tag":1260,"props":1261,"children":1262},"ol",{},[1263,1276],{"type":26,"tag":43,"props":1264,"children":1265},{},[1266,1268,1274],{"type":31,"value":1267},"一张",{"type":26,"tag":1269,"props":1270,"children":1271},"strong",{},[1272],{"type":31,"value":1273},"按任务分组",{"type":31,"value":1275},"的快捷键表（不是按功能堆在一起）",{"type":26,"tag":43,"props":1277,"children":1278},{},[1279,1281,1286],{"type":31,"value":1280},"一套“从需求到落地”的",{"type":26,"tag":1269,"props":1282,"children":1283},{},[1284],{"type":31,"value":1285},"最小闭环工作流",{"type":31,"value":1287},"（每一步都有快捷键）",{"type":26,"tag":27,"props":1289,"children":1290},{},[1291],{"type":31,"value":1292},"想看系统玩法：",{"type":26,"tag":39,"props":1294,"children":1295},{},[1296,1307,1318],{"type":26,"tag":43,"props":1297,"children":1298},{},[1299,1301],{"type":31,"value":1300},"入门教程看：",{"type":26,"tag":69,"props":1302,"children":1304},{"href":1303},"/topics/ai/cursor-tutorial",[1305],{"type":31,"value":1306},"Cursor 使用教程（2026）",{"type":26,"tag":43,"props":1308,"children":1309},{},[1310,1312],{"type":31,"value":1311},"进阶玩法看：",{"type":26,"tag":69,"props":1313,"children":1315},{"href":1314},"/topics/ai/cursor-editor-guide",[1316],{"type":31,"value":1317},"Cursor 编辑器深度玩法",{"type":26,"tag":43,"props":1319,"children":1320},{},[1321,1323],{"type":31,"value":1322},"规则与忽略看：",{"type":26,"tag":69,"props":1324,"children":1326},{"href":1325},"/topics/ai/cursor-rules-cursorrules",[1327],{"type":31,"value":1328},"Cursor Rules 与 .cursorrules",{"type":26,"tag":1330,"props":1331,"children":1332},"hr",{},[],{"type":26,"tag":101,"props":1334,"children":1336},{"id":1335},"先给结论提效不是按得快而是闭环更短",[1337],{"type":31,"value":1338},"先给结论：提效不是“按得快”，而是“闭环更短”",{"type":26,"tag":27,"props":1340,"children":1341},{},[1342],{"type":31,"value":1343},"你可以把 Cursor 的快捷键理解为 3 条流水线：",{"type":26,"tag":39,"props":1345,"children":1346},{},[1347,1357,1367],{"type":26,"tag":43,"props":1348,"children":1349},{},[1350,1355],{"type":26,"tag":1269,"props":1351,"children":1352},{},[1353],{"type":31,"value":1354},"改一小段",{"type":31,"value":1356},"（内联编辑）：把改动限制在一个函数/一段样式",{"type":26,"tag":43,"props":1358,"children":1359},{},[1360,1365],{"type":26,"tag":1269,"props":1361,"children":1362},{},[1363],{"type":31,"value":1364},"改一组文件",{"type":31,"value":1366},"（Composer）：把改动限制在一组明确文件，并要求输出 diff + 验收点",{"type":26,"tag":43,"props":1368,"children":1369},{},[1370,1375],{"type":26,"tag":1269,"props":1371,"children":1372},{},[1373],{"type":31,"value":1374},"聊清楚再动手",{"type":31,"value":1376},"（侧边对话）：先对齐目标、范围、验收、回滚",{"type":26,"tag":27,"props":1378,"children":1379},{},[1380],{"type":31,"value":1381},"当你觉得“它乱改/改太大”时，往往不是快捷键没记住，而是缺了两件事：",{"type":26,"tag":39,"props":1383,"children":1384},{},[1385,1395],{"type":26,"tag":43,"props":1386,"children":1387},{},[1388,1390],{"type":31,"value":1389},"没有在动手前锁定",{"type":26,"tag":1269,"props":1391,"children":1392},{},[1393],{"type":31,"value":1394},"范围",{"type":26,"tag":43,"props":1396,"children":1397},{},[1398,1400],{"type":31,"value":1399},"没有在接受改动前准备",{"type":26,"tag":1269,"props":1401,"children":1402},{},[1403],{"type":31,"value":1404},"验收/回滚",{"type":26,"tag":1330,"props":1406,"children":1407},{},[],{"type":26,"tag":101,"props":1409,"children":1411},{"id":1410},"快捷键速查表按任务分组",[1412],{"type":31,"value":1413},"快捷键速查表（按任务分组）",{"type":26,"tag":27,"props":1415,"children":1416},{},[1417],{"type":31,"value":1418},"说明：下表按“你正在做什么”组织，而不是按“功能名字”组织。不同版本快捷键可能略有差异，但核心逻辑一致。",{"type":26,"tag":108,"props":1420,"children":1421},{},[1422,1448],{"type":26,"tag":112,"props":1423,"children":1424},{},[1425],{"type":26,"tag":116,"props":1426,"children":1427},{},[1428,1433,1438,1443],{"type":26,"tag":120,"props":1429,"children":1430},{},[1431],{"type":31,"value":1432},"任务",{"type":26,"tag":120,"props":1434,"children":1435},{},[1436],{"type":31,"value":1437},"macOS",{"type":26,"tag":120,"props":1439,"children":1440},{},[1441],{"type":31,"value":1442},"Windows",{"type":26,"tag":120,"props":1444,"children":1445},{},[1446],{"type":31,"value":1447},"你该在什么时候用",{"type":26,"tag":136,"props":1449,"children":1450},{},[1451,1482,1513,1544,1575,1606],{"type":26,"tag":116,"props":1452,"children":1453},{},[1454,1459,1468,1477],{"type":26,"tag":143,"props":1455,"children":1456},{},[1457],{"type":31,"value":1458},"改一小段（最安全）",{"type":26,"tag":143,"props":1460,"children":1461},{},[1462],{"type":26,"tag":365,"props":1463,"children":1465},{"className":1464},[],[1466],{"type":31,"value":1467},"Cmd + K",{"type":26,"tag":143,"props":1469,"children":1470},{},[1471],{"type":26,"tag":365,"props":1472,"children":1474},{"className":1473},[],[1475],{"type":31,"value":1476},"Ctrl + K",{"type":26,"tag":143,"props":1478,"children":1479},{},[1480],{"type":31,"value":1481},"只想改一个函数/一段 CSS，不想动别的",{"type":26,"tag":116,"props":1483,"children":1484},{},[1485,1490,1499,1508],{"type":26,"tag":143,"props":1486,"children":1487},{},[1488],{"type":31,"value":1489},"打开 AI 对话（先对齐再动手）",{"type":26,"tag":143,"props":1491,"children":1492},{},[1493],{"type":26,"tag":365,"props":1494,"children":1496},{"className":1495},[],[1497],{"type":31,"value":1498},"Cmd + L",{"type":26,"tag":143,"props":1500,"children":1501},{},[1502],{"type":26,"tag":365,"props":1503,"children":1505},{"className":1504},[],[1506],{"type":31,"value":1507},"Ctrl + L",{"type":26,"tag":143,"props":1509,"children":1510},{},[1511],{"type":31,"value":1512},"需要澄清目标、制定步骤、给验收点",{"type":26,"tag":116,"props":1514,"children":1515},{},[1516,1521,1530,1539],{"type":26,"tag":143,"props":1517,"children":1518},{},[1519],{"type":31,"value":1520},"多文件编辑（有组织地改一组文件）",{"type":26,"tag":143,"props":1522,"children":1523},{},[1524],{"type":26,"tag":365,"props":1525,"children":1527},{"className":1526},[],[1528],{"type":31,"value":1529},"Cmd + I",{"type":26,"tag":143,"props":1531,"children":1532},{},[1533],{"type":26,"tag":365,"props":1534,"children":1536},{"className":1535},[],[1537],{"type":31,"value":1538},"Ctrl + I",{"type":26,"tag":143,"props":1540,"children":1541},{},[1542],{"type":31,"value":1543},"改动涉及多个文件：组件+样式+测试",{"type":26,"tag":116,"props":1545,"children":1546},{},[1547,1552,1561,1570],{"type":26,"tag":143,"props":1548,"children":1549},{},[1550],{"type":31,"value":1551},"把选中代码加入对话上下文",{"type":26,"tag":143,"props":1553,"children":1554},{},[1555],{"type":26,"tag":365,"props":1556,"children":1558},{"className":1557},[],[1559],{"type":31,"value":1560},"Cmd + Shift + L",{"type":26,"tag":143,"props":1562,"children":1563},{},[1564],{"type":26,"tag":365,"props":1565,"children":1567},{"className":1566},[],[1568],{"type":31,"value":1569},"Ctrl + Shift + L",{"type":26,"tag":143,"props":1571,"children":1572},{},[1573],{"type":31,"value":1574},"让 AI 只看你选的片段（降低噪音）",{"type":26,"tag":116,"props":1576,"children":1577},{},[1578,1583,1592,1601],{"type":26,"tag":143,"props":1579,"children":1580},{},[1581],{"type":31,"value":1582},"接受当前建议",{"type":26,"tag":143,"props":1584,"children":1585},{},[1586],{"type":26,"tag":365,"props":1587,"children":1589},{"className":1588},[],[1590],{"type":31,"value":1591},"Cmd + Y",{"type":26,"tag":143,"props":1593,"children":1594},{},[1595],{"type":26,"tag":365,"props":1596,"children":1598},{"className":1597},[],[1599],{"type":31,"value":1600},"Ctrl + Y",{"type":26,"tag":143,"props":1602,"children":1603},{},[1604],{"type":31,"value":1605},"你已经准备好验收/回滚，并确认改动范围",{"type":26,"tag":116,"props":1607,"children":1608},{},[1609,1614,1623,1632],{"type":26,"tag":143,"props":1610,"children":1611},{},[1612],{"type":31,"value":1613},"拒绝当前建议",{"type":26,"tag":143,"props":1615,"children":1616},{},[1617],{"type":26,"tag":365,"props":1618,"children":1620},{"className":1619},[],[1621],{"type":31,"value":1622},"Cmd + N",{"type":26,"tag":143,"props":1624,"children":1625},{},[1626],{"type":26,"tag":365,"props":1627,"children":1629},{"className":1628},[],[1630],{"type":31,"value":1631},"Ctrl + N",{"type":26,"tag":143,"props":1633,"children":1634},{},[1635],{"type":31,"value":1636},"改得太大、改错方向，立刻收手",{"type":26,"tag":1638,"props":1639,"children":1640},"blockquote",{},[1641],{"type":26,"tag":27,"props":1642,"children":1643},{},[1644],{"type":31,"value":1645},"小技巧：把“改一小段”当默认路径。只有当你能清晰写出“会改哪几类文件、怎么验收”时再进入多文件。",{"type":26,"tag":1330,"props":1647,"children":1648},{},[],{"type":26,"tag":101,"props":1650,"children":1652},{"id":1651},"_10-个可直接照抄的提效工作流每个都能闭环",[1653],{"type":31,"value":1654},"10 个可直接照抄的提效工作流（每个都能闭环）",{"type":26,"tag":1656,"props":1657,"children":1659},"h3",{"id":1658},"工作流-1需求计划小步改新手最稳",[1660],{"type":31,"value":1661},"工作流 1：需求→计划→小步改（新手最稳）",{"type":26,"tag":1260,"props":1663,"children":1664},{},[1665,1676],{"type":26,"tag":43,"props":1666,"children":1667},{},[1668,1674],{"type":26,"tag":365,"props":1669,"children":1671},{"className":1670},[],[1672],{"type":31,"value":1673},"Cmd/Ctrl + L",{"type":31,"value":1675}," 打开对话",{"type":26,"tag":43,"props":1677,"children":1678},{},[1679],{"type":31,"value":1680},"先发这段（可复制）：",{"type":26,"tag":1638,"props":1682,"children":1683},{},[1684],{"type":26,"tag":27,"props":1685,"children":1686},{},[1687],{"type":31,"value":1688},"目标：……\n范围：只修改以下文件/模块：……\n非目标：……（明确不做）\n验收：……（可测试/可手动检查）\n输出格式：先给计划，再逐步执行；每一步写出 diff 摘要。",{"type":26,"tag":1260,"props":1690,"children":1691},{"start":1191},[1692,1697],{"type":26,"tag":43,"props":1693,"children":1694},{},[1695],{"type":31,"value":1696},"让 AI 先给“计划（3~6 步）”，你确认后再执行",{"type":26,"tag":43,"props":1698,"children":1699},{},[1700,1702,1708],{"type":31,"value":1701},"任何一步涉及改代码：优先回到编辑区，选中片段用 ",{"type":26,"tag":365,"props":1703,"children":1705},{"className":1704},[],[1706],{"type":31,"value":1707},"Cmd/Ctrl + K",{"type":31,"value":1709}," 小步改",{"type":26,"tag":27,"props":1711,"children":1712},{},[1713],{"type":31,"value":1714},"为什么有效：你把“想法”变成了“可执行约束”，这就是 GEO（面向 AI/模型的可理解结构）。",{"type":26,"tag":1656,"props":1716,"children":1718},{"id":1717},"工作流-2只改一个函数高频低风险",[1719],{"type":31,"value":1720},"工作流 2：只改一个函数（高频、低风险）",{"type":26,"tag":39,"props":1722,"children":1723},{},[1724],{"type":26,"tag":43,"props":1725,"children":1726},{},[1727,1729,1734],{"type":31,"value":1728},"选中函数 → ",{"type":26,"tag":365,"props":1730,"children":1732},{"className":1731},[],[1733],{"type":31,"value":1707},{"type":31,"value":1735}," → 输入指令：",{"type":26,"tag":1638,"props":1737,"children":1738},{},[1739,1744],{"type":26,"tag":27,"props":1740,"children":1741},{},[1742],{"type":31,"value":1743},"把这段改成更可读：",{"type":26,"tag":39,"props":1745,"children":1746},{},[1747,1752,1757,1762],{"type":26,"tag":43,"props":1748,"children":1749},{},[1750],{"type":31,"value":1751},"用 async/await",{"type":26,"tag":43,"props":1753,"children":1754},{},[1755],{"type":31,"value":1756},"错误处理不要吞掉",{"type":26,"tag":43,"props":1758,"children":1759},{},[1760],{"type":31,"value":1761},"添加类型（若可推断）",{"type":26,"tag":43,"props":1763,"children":1764},{},[1765],{"type":31,"value":1766},"不要改函数签名",{"type":26,"tag":27,"props":1768,"children":1769},{},[1770],{"type":31,"value":1771},"验收方式（强制）：",{"type":26,"tag":39,"props":1773,"children":1774},{},[1775,1780],{"type":26,"tag":43,"props":1776,"children":1777},{},[1778],{"type":31,"value":1779},"输出前后函数行为一致（输入/输出）",{"type":26,"tag":43,"props":1781,"children":1782},{},[1783],{"type":31,"value":1784},"失败分支有可观测日志（不要悄悄 return null）",{"type":26,"tag":1656,"props":1786,"children":1788},{"id":1787},"工作流-3多文件改动先定文件清单",[1789],{"type":31,"value":1790},"工作流 3：多文件改动（先定“文件清单”）",{"type":26,"tag":1260,"props":1792,"children":1793},{},[1794,1805],{"type":26,"tag":43,"props":1795,"children":1796},{},[1797,1803],{"type":26,"tag":365,"props":1798,"children":1800},{"className":1799},[],[1801],{"type":31,"value":1802},"Cmd/Ctrl + I",{"type":31,"value":1804}," 进入多文件",{"type":26,"tag":43,"props":1806,"children":1807},{},[1808],{"type":31,"value":1809},"先让 AI 输出：",{"type":26,"tag":39,"props":1811,"children":1812},{},[1813,1818,1823],{"type":26,"tag":43,"props":1814,"children":1815},{},[1816],{"type":31,"value":1817},"预计会改哪些文件（最多 5 个）",{"type":26,"tag":43,"props":1819,"children":1820},{},[1821],{"type":31,"value":1822},"每个文件改什么",{"type":26,"tag":43,"props":1824,"children":1825},{},[1826],{"type":31,"value":1827},"每一步怎么验收",{"type":26,"tag":1260,"props":1829,"children":1830},{"start":1191},[1831],{"type":26,"tag":43,"props":1832,"children":1833},{},[1834],{"type":31,"value":1835},"你确认文件清单后再开始生成改动",{"type":26,"tag":27,"props":1837,"children":1838},{},[1839],{"type":31,"value":1840},"关键点：多文件最容易翻车的是“它把你没想到的文件也改了”。所以文件清单是第一道闸门。",{"type":26,"tag":1656,"props":1842,"children":1844},{"id":1843},"工作流-4把上下文噪音砍掉防跑偏",[1845],{"type":31,"value":1846},"工作流 4：把“上下文噪音”砍掉（防跑偏）",{"type":26,"tag":27,"props":1848,"children":1849},{},[1850],{"type":31,"value":1851},"当你怀疑它在胡说/乱改时：",{"type":26,"tag":39,"props":1853,"children":1854},{},[1855,1868],{"type":26,"tag":43,"props":1856,"children":1857},{},[1858,1860,1866],{"type":31,"value":1859},"只选择关键代码片段 → ",{"type":26,"tag":365,"props":1861,"children":1863},{"className":1862},[],[1864],{"type":31,"value":1865},"Cmd/Ctrl + Shift + L",{"type":31,"value":1867}," 加入对话",{"type":26,"tag":43,"props":1869,"children":1870},{},[1871],{"type":31,"value":1872},"然后在对话里要求：",{"type":26,"tag":1638,"props":1874,"children":1875},{},[1876],{"type":26,"tag":27,"props":1877,"children":1878},{},[1879],{"type":31,"value":1880},"只基于我提供的代码片段回答，不要假设其它文件存在。",{"type":26,"tag":1656,"props":1882,"children":1884},{"id":1883},"工作流-5生成变更说明让-code-review-变快",[1885],{"type":31,"value":1886},"工作流 5：生成变更说明（让 code review 变快）",{"type":26,"tag":27,"props":1888,"children":1889},{},[1890],{"type":31,"value":1891},"改完后在对话里让它输出：",{"type":26,"tag":39,"props":1893,"children":1894},{},[1895,1900,1905,1910],{"type":26,"tag":43,"props":1896,"children":1897},{},[1898],{"type":31,"value":1899},"改动摘要（3~7 条）",{"type":26,"tag":43,"props":1901,"children":1902},{},[1903],{"type":31,"value":1904},"风险点（依赖/边界条件）",{"type":26,"tag":43,"props":1906,"children":1907},{},[1908],{"type":31,"value":1909},"回滚方式",{"type":26,"tag":43,"props":1911,"children":1912},{},[1913],{"type":31,"value":1914},"验收步骤",{"type":26,"tag":27,"props":1916,"children":1917},{},[1918],{"type":31,"value":1919},"这套结构能直接贴进 PR 描述。",{"type":26,"tag":1656,"props":1921,"children":1923},{"id":1922},"工作流-6写最小回归集不写回归-等事故",[1924],{"type":31,"value":1925},"工作流 6：写“最小回归集”（不写回归 = 等事故）",{"type":26,"tag":27,"props":1927,"children":1928},{},[1929,1931,1937],{"type":31,"value":1930},"每次改动都至少做 10 条最小回归（见下文清单）。你可以把它写在 ",{"type":26,"tag":365,"props":1932,"children":1934},{"className":1933},[],[1935],{"type":31,"value":1936},"README",{"type":31,"value":1938}," 或团队 wiki。",{"type":26,"tag":1656,"props":1940,"children":1942},{"id":1941},"工作流-7把接受建议变成最后一步",[1943],{"type":31,"value":1944},"工作流 7：把“接受建议”变成最后一步",{"type":26,"tag":27,"props":1946,"children":1947},{},[1948,1954,1956,1961],{"type":26,"tag":365,"props":1949,"children":1951},{"className":1950},[],[1952],{"type":31,"value":1953},"Cmd/Ctrl + Y",{"type":31,"value":1955}," 应该是",{"type":26,"tag":1269,"props":1957,"children":1958},{},[1959],{"type":31,"value":1960},"最后一步",{"type":31,"value":1962},"：",{"type":26,"tag":39,"props":1964,"children":1965},{},[1966,1971,1976],{"type":26,"tag":43,"props":1967,"children":1968},{},[1969],{"type":31,"value":1970},"你已经看过 diff",{"type":26,"tag":43,"props":1972,"children":1973},{},[1974],{"type":31,"value":1975},"你能说清楚“怎么验收”",{"type":26,"tag":43,"props":1977,"children":1978},{},[1979],{"type":31,"value":1980},"你知道“怎么回滚”",{"type":26,"tag":1656,"props":1982,"children":1984},{"id":1983},"工作流-8拒绝建议不是失败是风控动作",[1985],{"type":31,"value":1986},"工作流 8：拒绝建议不是失败，是风控动作",{"type":26,"tag":27,"props":1988,"children":1989},{},[1990,1996],{"type":26,"tag":365,"props":1991,"children":1993},{"className":1992},[],[1994],{"type":31,"value":1995},"Cmd/Ctrl + N",{"type":31,"value":1997}," 的使用时机：",{"type":26,"tag":39,"props":1999,"children":2000},{},[2001,2006,2011],{"type":26,"tag":43,"props":2002,"children":2003},{},[2004],{"type":31,"value":2005},"它开始改你没提过的东西（范围漂移）",{"type":26,"tag":43,"props":2007,"children":2008},{},[2009],{"type":31,"value":2010},"它改了 10 个文件但你只想改 1 个",{"type":26,"tag":43,"props":2012,"children":2013},{},[2014],{"type":31,"value":2015},"它为了“更优雅”引入新依赖/新抽象",{"type":26,"tag":1656,"props":2017,"children":2019},{"id":2018},"工作流-9重复任务做成模板提示词不是一次性",[2020],{"type":31,"value":2021},"工作流 9：重复任务做成模板（提示词不是一次性）",{"type":26,"tag":27,"props":2023,"children":2024},{},[2025,2027,2031],{"type":31,"value":2026},"把高频任务（比如“写组件+样式+验收”）固化成模板，放进 Rules（见：",{"type":26,"tag":69,"props":2028,"children":2029},{"href":1325},[2030],{"type":31,"value":1328},{"type":31,"value":2032},"）。",{"type":26,"tag":1656,"props":2034,"children":2036},{"id":2035},"工作流-10把快捷键表做成你自己的任务表",[2037],{"type":31,"value":2038},"工作流 10：把“快捷键表”做成你自己的任务表",{"type":26,"tag":27,"props":2040,"children":2041},{},[2042],{"type":31,"value":2043},"你不需要记住所有快捷键，只需要记住：",{"type":26,"tag":39,"props":2045,"children":2046},{},[2047,2057,2067,2077],{"type":26,"tag":43,"props":2048,"children":2049},{},[2050,2052],{"type":31,"value":2051},"小步改：",{"type":26,"tag":365,"props":2053,"children":2055},{"className":2054},[],[2056],{"type":31,"value":1707},{"type":26,"tag":43,"props":2058,"children":2059},{},[2060,2062],{"type":31,"value":2061},"先对齐：",{"type":26,"tag":365,"props":2063,"children":2065},{"className":2064},[],[2066],{"type":31,"value":1673},{"type":26,"tag":43,"props":2068,"children":2069},{},[2070,2072],{"type":31,"value":2071},"多文件：",{"type":26,"tag":365,"props":2073,"children":2075},{"className":2074},[],[2076],{"type":31,"value":1802},{"type":26,"tag":43,"props":2078,"children":2079},{},[2080,2082],{"type":31,"value":2081},"上下文聚焦：",{"type":26,"tag":365,"props":2083,"children":2085},{"className":2084},[],[2086],{"type":31,"value":1865},{"type":26,"tag":1330,"props":2088,"children":2089},{},[],{"type":26,"tag":101,"props":2091,"children":2093},{"id":2092},"必交付物-1最小回归任务清单10-条通用",[2094],{"type":31,"value":2095},"必交付物 1：最小回归任务清单（10 条，通用）",{"type":26,"tag":1638,"props":2097,"children":2098},{},[2099],{"type":26,"tag":27,"props":2100,"children":2101},{},[2102],{"type":31,"value":2103},"这份清单的意义：让每次 AI 改动都能“被验证”。否则你只是把不可控变成了更快的不可控。",{"type":26,"tag":1260,"props":2105,"children":2106},{},[2107,2112,2117,2122,2127,2132,2137,2142,2147,2152],{"type":26,"tag":43,"props":2108,"children":2109},{},[2110],{"type":31,"value":2111},"关键路径能跑通（手动点击/请求一次）",{"type":26,"tag":43,"props":2113,"children":2114},{},[2115],{"type":31,"value":2116},"错误路径能触发（模拟一次失败输入）",{"type":26,"tag":43,"props":2118,"children":2119},{},[2120],{"type":31,"value":2121},"控制台无新增错误（至少关注 1 次真实操作）",{"type":26,"tag":43,"props":2123,"children":2124},{},[2125],{"type":31,"value":2126},"关键 UI 未错位（移动端/桌面端各看一眼）",{"type":26,"tag":43,"props":2128,"children":2129},{},[2130],{"type":31,"value":2131},"刷新后状态正确（尤其是表单/列表）",{"type":26,"tag":43,"props":2133,"children":2134},{},[2135],{"type":31,"value":2136},"路由跳转没断（从入口到目标页）",{"type":26,"tag":43,"props":2138,"children":2139},{},[2140],{"type":31,"value":2141},"相关接口未改变契约（字段名/类型）",{"type":26,"tag":43,"props":2143,"children":2144},{},[2145],{"type":31,"value":2146},"性能没有明显退化（首屏、交互卡顿）",{"type":26,"tag":43,"props":2148,"children":2149},{},[2150],{"type":31,"value":2151},"回滚方案可执行（知道回滚哪几个文件/commit）",{"type":26,"tag":43,"props":2153,"children":2154},{},[2155],{"type":31,"value":2156},"写下“这次改动解决了什么、风险是什么”（可贴 PR）",{"type":26,"tag":1330,"props":2158,"children":2159},{},[],{"type":26,"tag":101,"props":2161,"children":2163},{"id":2162},"必交付物-2失败案例复盘真实会发生",[2164],{"type":31,"value":2165},"必交付物 2：失败案例复盘（真实会发生）",{"type":26,"tag":1656,"props":2167,"children":2169},{"id":2168},"现象快捷键用得很熟但交付还是慢",[2170],{"type":31,"value":2171},"现象：快捷键用得很熟，但交付还是慢",{"type":26,"tag":27,"props":2173,"children":2174},{},[2175],{"type":31,"value":2176},"典型原因：你把 Cursor 当成“更聪明的搜索框”，不断对话，直到它给出你想要的答案。",{"type":26,"tag":27,"props":2178,"children":2179},{},[2180],{"type":31,"value":2181},"复现路径：",{"type":26,"tag":39,"props":2183,"children":2184},{},[2185,2190,2195,2200],{"type":26,"tag":43,"props":2186,"children":2187},{},[2188],{"type":31,"value":2189},"你直接说“把页面做得更好看、更高级”",{"type":26,"tag":43,"props":2191,"children":2192},{},[2193],{"type":31,"value":2194},"AI 开始大改样式、抽象组件、甚至引入新依赖",{"type":26,"tag":43,"props":2196,"children":2197},{},[2198],{"type":31,"value":2199},"你为了省事按了“接受建议”",{"type":26,"tag":43,"props":2201,"children":2202},{},[2203],{"type":31,"value":2204},"最后发现：设计没统一、移动端崩、甚至埋了性能问题",{"type":26,"tag":27,"props":2206,"children":2207},{},[2208,2210,2214,2216,2221],{"type":31,"value":2209},"根因：缺少",{"type":26,"tag":1269,"props":2211,"children":2212},{},[2213],{"type":31,"value":1394},{"type":31,"value":2215},"与",{"type":26,"tag":1269,"props":2217,"children":2218},{},[2219],{"type":31,"value":2220},"验收",{"type":31,"value":2222},"。",{"type":26,"tag":27,"props":2224,"children":2225},{},[2226],{"type":31,"value":2227},"修复方式（可照抄）：",{"type":26,"tag":39,"props":2229,"children":2230},{},[2231,2236,2248],{"type":26,"tag":43,"props":2232,"children":2233},{},[2234],{"type":31,"value":2235},"把需求拆成 3 个可验证目标：例如“按钮样式统一”“首屏 CTA 更明显”“移动端间距不挤”",{"type":26,"tag":43,"props":2237,"children":2238},{},[2239,2241,2246],{"type":31,"value":2240},"每个目标只用 ",{"type":26,"tag":365,"props":2242,"children":2244},{"className":2243},[],[2245],{"type":31,"value":1707},{"type":31,"value":2247}," 改一个局部",{"type":26,"tag":43,"props":2249,"children":2250},{},[2251],{"type":31,"value":2252},"每次接受建议前跑一遍“最小回归集”",{"type":26,"tag":1330,"props":2254,"children":2255},{},[],{"type":26,"tag":101,"props":2257,"children":2259},{"id":2258},"faq高频问题",[2260],{"type":31,"value":2261},"FAQ（高频问题）",{"type":26,"tag":1656,"props":2263,"children":2265},{"id":2264},"q1我应该先记快捷键还是先学工作流",[2266],{"type":31,"value":2267},"Q1：我应该先记快捷键还是先学工作流？",{"type":26,"tag":27,"props":2269,"children":2270},{},[2271],{"type":31,"value":2272},"先学工作流。快捷键只是把工作流的步骤变短。",{"type":26,"tag":1656,"props":2274,"children":2276},{"id":2275},"q2为什么我一用多文件就容易翻车",[2277],{"type":31,"value":2278},"Q2：为什么我一用多文件就容易翻车？",{"type":26,"tag":27,"props":2280,"children":2281},{},[2282],{"type":31,"value":2283},"因为多文件意味着范围更大、依赖更多、验收更难。先锁定“文件清单 + 每步验收”，再让它动手。",{"type":26,"tag":1656,"props":2285,"children":2287},{"id":2286},"q3有没有万能提示词",[2288],{"type":31,"value":2289},"Q3：有没有“万能提示词”？",{"type":26,"tag":27,"props":2291,"children":2292},{},[2293],{"type":31,"value":2294},"没有，但有“万能结构”：目标、范围、非目标、验收、输出格式。",{"type":26,"tag":1330,"props":2296,"children":2297},{},[],{"type":26,"tag":101,"props":2299,"children":2301},{"id":2300},"延伸阅读建议按顺序",[2302],{"type":31,"value":2303},"延伸阅读（建议按顺序）",{"type":26,"tag":39,"props":2305,"children":2306},{},[2307,2314,2321,2328],{"type":26,"tag":43,"props":2308,"children":2309},{},[2310],{"type":26,"tag":69,"props":2311,"children":2312},{"href":1303},[2313],{"type":31,"value":1306},{"type":26,"tag":43,"props":2315,"children":2316},{},[2317],{"type":26,"tag":69,"props":2318,"children":2319},{"href":1314},[2320],{"type":31,"value":1317},{"type":26,"tag":43,"props":2322,"children":2323},{},[2324],{"type":26,"tag":69,"props":2325,"children":2326},{"href":1325},[2327],{"type":31,"value":1328},{"type":26,"tag":43,"props":2329,"children":2330},{},[2331,2333],{"type":31,"value":2332},"如果你更关心“网页制作落地”：看这篇 ",{"type":26,"tag":69,"props":2334,"children":2336},{"href":2335},"/topics/practical-tips/htmlpage-quick-landing-page",[2337],{"type":31,"value":2338},"3 分钟用 HTMLPAGE 做落地页",{"title":7,"searchDepth":1191,"depth":1191,"links":2340},[2341,2342,2343,2355,2356,2359,2364],{"id":1335,"depth":1194,"text":1338},{"id":1410,"depth":1194,"text":1413},{"id":1651,"depth":1194,"text":1654,"children":2344},[2345,2346,2347,2348,2349,2350,2351,2352,2353,2354],{"id":1658,"depth":1191,"text":1661},{"id":1717,"depth":1191,"text":1720},{"id":1787,"depth":1191,"text":1790},{"id":1843,"depth":1191,"text":1846},{"id":1883,"depth":1191,"text":1886},{"id":1922,"depth":1191,"text":1925},{"id":1941,"depth":1191,"text":1944},{"id":1983,"depth":1191,"text":1986},{"id":2018,"depth":1191,"text":2021},{"id":2035,"depth":1191,"text":2038},{"id":2092,"depth":1194,"text":2095},{"id":2162,"depth":1194,"text":2165,"children":2357},[2358],{"id":2168,"depth":1191,"text":2171},{"id":2258,"depth":1194,"text":2261,"children":2360},[2361,2362,2363],{"id":2264,"depth":1191,"text":2267},{"id":2275,"depth":1191,"text":2278},{"id":2286,"depth":1191,"text":2289},{"id":2300,"depth":1194,"text":2303},"content:topics:ai:cursor-keyboard-shortcuts-cheatsheet.md","topics/ai/cursor-keyboard-shortcuts-cheatsheet.md","topics/ai/cursor-keyboard-shortcuts-cheatsheet",{"_path":2369,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":2370,"description":2371,"date":2372,"topic":5,"author":11,"tags":2373,"image":2377,"imageAlt":2378,"pexelsPhotoId":2379,"pexelsUrl":2380,"readingTime":2381,"body":2382,"_type":1206,"_id":3315,"_source":1208,"_file":3316,"_stem":3317,"_extension":1211},"/topics/ai/cursor-vs-copilot-vscode-workflow","Cursor vs GitHub Copilot vs VS Code：怎么选、怎么搭配、怎么把风险关在笼子里","用“任务类型×风险×验收成本”的选择矩阵解释 Cursor/Copilot/VS Code 的差异，并给出一套可落地的协作工作流（范围闸门、最小回归集、回滚策略）。","2026-03-01",[1219,2374,1222,2375,2376],"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":2383,"toc":3293},[2384,2389,2394,2412,2417,2435,2438,2444,2449,2480,2485,2488,2494,2502,2706,2714,2727,2730,2736,2742,2755,2760,2773,2779,2784,2817,2823,2828,2846,2849,2855,2860,2866,2871,2904,2910,2923,2928,2941,2947,2959,2965,2970,2983,2988,2991,2997,3002,3123,3126,3132,3142,3151,3169,3178,3186,3195,3213,3216,3222,3228,3233,3239,3244,3247,3252],{"type":26,"tag":27,"props":2385,"children":2386},{},[2387],{"type":31,"value":2388},"“Cursor 和 Copilot 到底有什么区别？”",{"type":26,"tag":27,"props":2390,"children":2391},{},[2392],{"type":31,"value":2393},"这个问题问得越早越好，因为你一旦把工具选错，后面所有痛苦都不是“提示词不够好”，而是：",{"type":26,"tag":39,"props":2395,"children":2396},{},[2397,2402,2407],{"type":26,"tag":43,"props":2398,"children":2399},{},[2400],{"type":31,"value":2401},"改动不可控（范围漂移、改错文件）",{"type":26,"tag":43,"props":2403,"children":2404},{},[2405],{"type":31,"value":2406},"验收成本爆炸（不知道要测什么）",{"type":26,"tag":43,"props":2408,"children":2409},{},[2410],{"type":31,"value":2411},"团队协作崩盘（没有闸门、没有回滚）",{"type":26,"tag":27,"props":2413,"children":2414},{},[2415],{"type":31,"value":2416},"这篇文章用一张选择矩阵 + 一套可执行工作流，帮你做到两件事：",{"type":26,"tag":1260,"props":2418,"children":2419},{},[2420,2425],{"type":26,"tag":43,"props":2421,"children":2422},{},[2423],{"type":31,"value":2424},"知道什么时候用 Cursor、什么时候用 Copilot、什么时候“纯 VS Code 更快”",{"type":26,"tag":43,"props":2426,"children":2427},{},[2428,2430],{"type":31,"value":2429},"就算用 AI，也能把风险关在笼子里：",{"type":26,"tag":1269,"props":2431,"children":2432},{},[2433],{"type":31,"value":2434},"可审查、可验证、可回滚",{"type":26,"tag":1330,"props":2436,"children":2437},{},[],{"type":26,"tag":101,"props":2439,"children":2441},{"id":2440},"结论先说三者不是互斥而是分工",[2442],{"type":31,"value":2443},"结论先说：三者不是互斥，而是分工",{"type":26,"tag":27,"props":2445,"children":2446},{},[2447],{"type":31,"value":2448},"你可以把它们看成三层能力：",{"type":26,"tag":39,"props":2450,"children":2451},{},[2452,2461,2471],{"type":26,"tag":43,"props":2453,"children":2454},{},[2455,2459],{"type":26,"tag":1269,"props":2456,"children":2457},{},[2458],{"type":31,"value":1222},{"type":31,"value":2460},"：编辑器与生态（调试、插件、任务、终端、语言服务）",{"type":26,"tag":43,"props":2462,"children":2463},{},[2464,2469],{"type":26,"tag":1269,"props":2465,"children":2466},{},[2467],{"type":31,"value":2468},"Copilot",{"type":31,"value":2470},"：代码补全与局部建议（“我正在写这一行/这一段”）",{"type":26,"tag":43,"props":2472,"children":2473},{},[2474,2478],{"type":26,"tag":1269,"props":2475,"children":2476},{},[2477],{"type":31,"value":1219},{"type":31,"value":2479},"：以项目为单位的 AI 协作（对话、索引、多文件编辑、规则）",{"type":26,"tag":27,"props":2481,"children":2482},{},[2483],{"type":31,"value":2484},"最常见的误区是：把“局部补全能力”当作“能做架构与多文件落地”。",{"type":26,"tag":1330,"props":2486,"children":2487},{},[],{"type":26,"tag":101,"props":2489,"children":2491},{"id":2490},"选择矩阵按任务类型选工具不是按偏好",[2492],{"type":31,"value":2493},"选择矩阵：按任务类型选工具（不是按偏好）",{"type":26,"tag":1638,"props":2495,"children":2496},{},[2497],{"type":26,"tag":27,"props":2498,"children":2499},{},[2500],{"type":31,"value":2501},"你只要把自己的任务放进表格，就能得到推荐路径。",{"type":26,"tag":108,"props":2503,"children":2504},{},[2505,2537],{"type":26,"tag":112,"props":2506,"children":2507},{},[2508],{"type":26,"tag":116,"props":2509,"children":2510},{},[2511,2516,2522,2527,2532],{"type":26,"tag":120,"props":2512,"children":2513},{},[2514],{"type":31,"value":2515},"任务类型",{"type":26,"tag":120,"props":2517,"children":2519},{"align":2518},"right",[2520],{"type":31,"value":2521},"风险",{"type":26,"tag":120,"props":2523,"children":2524},{"align":2518},[2525],{"type":31,"value":2526},"验收成本",{"type":26,"tag":120,"props":2528,"children":2529},{},[2530],{"type":31,"value":2531},"更推荐",{"type":26,"tag":120,"props":2533,"children":2534},{},[2535],{"type":31,"value":2536},"为什么",{"type":26,"tag":136,"props":2538,"children":2539},{},[2540,2567,2600,2626,2653,2680],{"type":26,"tag":116,"props":2541,"children":2542},{},[2543,2548,2553,2557,2562],{"type":26,"tag":143,"props":2544,"children":2545},{},[2546],{"type":31,"value":2547},"写一段代码/补一个 if",{"type":26,"tag":143,"props":2549,"children":2550},{"align":2518},[2551],{"type":31,"value":2552},"低",{"type":26,"tag":143,"props":2554,"children":2555},{"align":2518},[2556],{"type":31,"value":2552},{"type":26,"tag":143,"props":2558,"children":2559},{},[2560],{"type":31,"value":2561},"Copilot / Cursor 内联编辑",{"type":26,"tag":143,"props":2563,"children":2564},{},[2565],{"type":31,"value":2566},"局部建议足够，成本最低",{"type":26,"tag":116,"props":2568,"children":2569},{},[2570,2575,2580,2584,2595],{"type":26,"tag":143,"props":2571,"children":2572},{},[2573],{"type":31,"value":2574},"重构一个函数",{"type":26,"tag":143,"props":2576,"children":2577},{"align":2518},[2578],{"type":31,"value":2579},"中",{"type":26,"tag":143,"props":2581,"children":2582},{"align":2518},[2583],{"type":31,"value":2579},{"type":26,"tag":143,"props":2585,"children":2586},{},[2587,2589],{"type":31,"value":2588},"Cursor ",{"type":26,"tag":365,"props":2590,"children":2592},{"className":2591},[],[2593],{"type":31,"value":2594},"内联编辑",{"type":26,"tag":143,"props":2596,"children":2597},{},[2598],{"type":31,"value":2599},"需要解释、需要约束输出",{"type":26,"tag":116,"props":2601,"children":2602},{},[2603,2608,2612,2616,2621],{"type":26,"tag":143,"props":2604,"children":2605},{},[2606],{"type":31,"value":2607},"改一个组件 + 样式",{"type":26,"tag":143,"props":2609,"children":2610},{"align":2518},[2611],{"type":31,"value":2579},{"type":26,"tag":143,"props":2613,"children":2614},{"align":2518},[2615],{"type":31,"value":2579},{"type":26,"tag":143,"props":2617,"children":2618},{},[2619],{"type":31,"value":2620},"Cursor（小范围多文件）",{"type":26,"tag":143,"props":2622,"children":2623},{},[2624],{"type":31,"value":2625},"需要同时改模板与样式",{"type":26,"tag":116,"props":2627,"children":2628},{},[2629,2634,2639,2643,2648],{"type":26,"tag":143,"props":2630,"children":2631},{},[2632],{"type":31,"value":2633},"改 3~5 个文件（组件+api+测试）",{"type":26,"tag":143,"props":2635,"children":2636},{"align":2518},[2637],{"type":31,"value":2638},"高",{"type":26,"tag":143,"props":2640,"children":2641},{"align":2518},[2642],{"type":31,"value":2638},{"type":26,"tag":143,"props":2644,"children":2645},{},[2646],{"type":31,"value":2647},"Cursor Composer + 闸门",{"type":26,"tag":143,"props":2649,"children":2650},{},[2651],{"type":31,"value":2652},"需要计划、验收、回滚",{"type":26,"tag":116,"props":2654,"children":2655},{},[2656,2661,2666,2670,2675],{"type":26,"tag":143,"props":2657,"children":2658},{},[2659],{"type":31,"value":2660},"重写一段架构/引入新依赖",{"type":26,"tag":143,"props":2662,"children":2663},{"align":2518},[2664],{"type":31,"value":2665},"很高",{"type":26,"tag":143,"props":2667,"children":2668},{"align":2518},[2669],{"type":31,"value":2665},{"type":26,"tag":143,"props":2671,"children":2672},{},[2673],{"type":31,"value":2674},"先人脑设计 + VS Code 实现",{"type":26,"tag":143,"props":2676,"children":2677},{},[2678],{"type":31,"value":2679},"AI 易发散，最好先设计再执行",{"type":26,"tag":116,"props":2681,"children":2682},{},[2683,2688,2692,2696,2701],{"type":26,"tag":143,"props":2684,"children":2685},{},[2686],{"type":31,"value":2687},"排查线上问题/性能抖动",{"type":26,"tag":143,"props":2689,"children":2690},{"align":2518},[2691],{"type":31,"value":2638},{"type":26,"tag":143,"props":2693,"children":2694},{"align":2518},[2695],{"type":31,"value":2665},{"type":26,"tag":143,"props":2697,"children":2698},{},[2699],{"type":31,"value":2700},"VS Code + 工具链优先，AI 辅助归纳",{"type":26,"tag":143,"props":2702,"children":2703},{},[2704],{"type":31,"value":2705},"需要证据，不要“猜”",{"type":26,"tag":27,"props":2707,"children":2708},{},[2709],{"type":26,"tag":1269,"props":2710,"children":2711},{},[2712],{"type":31,"value":2713},"一句话规则：",{"type":26,"tag":39,"props":2715,"children":2716},{},[2717,2722],{"type":26,"tag":43,"props":2718,"children":2719},{},[2720],{"type":31,"value":2721},"当你的改动可以用“10 条最小回归集”覆盖时，用 Cursor。",{"type":26,"tag":43,"props":2723,"children":2724},{},[2725],{"type":31,"value":2726},"当你的改动无法验证时，先别让 AI 动手。",{"type":26,"tag":1330,"props":2728,"children":2729},{},[],{"type":26,"tag":101,"props":2731,"children":2733},{"id":2732},"差异拆解到底差在哪里",[2734],{"type":31,"value":2735},"差异拆解：到底差在哪里？",{"type":26,"tag":1656,"props":2737,"children":2739},{"id":2738},"_1-上下文来源补全-vs-项目索引",[2740],{"type":31,"value":2741},"1) 上下文来源：补全 vs 项目索引",{"type":26,"tag":39,"props":2743,"children":2744},{},[2745,2750],{"type":26,"tag":43,"props":2746,"children":2747},{},[2748],{"type":31,"value":2749},"Copilot 更擅长：你正在写的这几行、当前文件的局部上下文",{"type":26,"tag":43,"props":2751,"children":2752},{},[2753],{"type":31,"value":2754},"Cursor 更擅长：项目级索引 + 多文件关联理解",{"type":26,"tag":27,"props":2756,"children":2757},{},[2758],{"type":31,"value":2759},"因此：",{"type":26,"tag":39,"props":2761,"children":2762},{},[2763,2768],{"type":26,"tag":43,"props":2764,"children":2765},{},[2766],{"type":31,"value":2767},"写代码片段：Copilot 速度更快",{"type":26,"tag":43,"props":2769,"children":2770},{},[2771],{"type":31,"value":2772},"改一坨工程：Cursor 更有胜算（但更需要闸门）",{"type":26,"tag":1656,"props":2774,"children":2776},{"id":2775},"_2-交互方式你能不能控制范围",[2777],{"type":31,"value":2778},"2) 交互方式：你能不能控制范围",{"type":26,"tag":27,"props":2780,"children":2781},{},[2782],{"type":31,"value":2783},"范围控制的三个层级：",{"type":26,"tag":1260,"props":2785,"children":2786},{},[2787,2797,2807],{"type":26,"tag":43,"props":2788,"children":2789},{},[2790,2792],{"type":31,"value":2791},"内联编辑（选中一段）→ ",{"type":26,"tag":1269,"props":2793,"children":2794},{},[2795],{"type":31,"value":2796},"最强范围控制",{"type":26,"tag":43,"props":2798,"children":2799},{},[2800,2802],{"type":31,"value":2801},"Composer 多文件（先列文件清单）→ ",{"type":26,"tag":1269,"props":2803,"children":2804},{},[2805],{"type":31,"value":2806},"可控但要闸门",{"type":26,"tag":43,"props":2808,"children":2809},{},[2810,2812],{"type":31,"value":2811},"大对话（泛目标）→ ",{"type":26,"tag":1269,"props":2813,"children":2814},{},[2815],{"type":31,"value":2816},"最容易跑偏",{"type":26,"tag":1656,"props":2818,"children":2820},{"id":2819},"_3-输出形态建议-vs-可审查的变更",[2821],{"type":31,"value":2822},"3) 输出形态：建议 vs 可审查的变更",{"type":26,"tag":27,"props":2824,"children":2825},{},[2826],{"type":31,"value":2827},"最好的 AI 输出不是“给我一段代码”，而是：",{"type":26,"tag":39,"props":2829,"children":2830},{},[2831,2836,2841],{"type":26,"tag":43,"props":2832,"children":2833},{},[2834],{"type":31,"value":2835},"改动摘要（做了什么）",{"type":26,"tag":43,"props":2837,"children":2838},{},[2839],{"type":31,"value":2840},"diff 级别的可审查变更",{"type":26,"tag":43,"props":2842,"children":2843},{},[2844],{"type":31,"value":2845},"验收步骤与回滚方案",{"type":26,"tag":1330,"props":2847,"children":2848},{},[],{"type":26,"tag":101,"props":2850,"children":2852},{"id":2851},"一套可落地的团队工作流把风险关住",[2853],{"type":31,"value":2854},"一套可落地的团队工作流（把风险关住）",{"type":26,"tag":27,"props":2856,"children":2857},{},[2858],{"type":31,"value":2859},"下面这套流程，你可以直接写进团队规范：",{"type":26,"tag":1656,"props":2861,"children":2863},{"id":2862},"step-1先写任务单geo-友好结构",[2864],{"type":31,"value":2865},"Step 1：先写任务单（GEO 友好结构）",{"type":26,"tag":27,"props":2867,"children":2868},{},[2869],{"type":31,"value":2870},"模板：",{"type":26,"tag":39,"props":2872,"children":2873},{},[2874,2879,2884,2889,2894,2899],{"type":26,"tag":43,"props":2875,"children":2876},{},[2877],{"type":31,"value":2878},"目标：……",{"type":26,"tag":43,"props":2880,"children":2881},{},[2882],{"type":31,"value":2883},"背景：……",{"type":26,"tag":43,"props":2885,"children":2886},{},[2887],{"type":31,"value":2888},"范围：只改这些文件/模块：……",{"type":26,"tag":43,"props":2890,"children":2891},{},[2892],{"type":31,"value":2893},"非目标：不做哪些事情：……",{"type":26,"tag":43,"props":2895,"children":2896},{},[2897],{"type":31,"value":2898},"验收：如何判断完成（可测试/可观察）：……",{"type":26,"tag":43,"props":2900,"children":2901},{},[2902],{"type":31,"value":2903},"回滚：如果失败怎么撤回：……",{"type":26,"tag":1656,"props":2905,"children":2907},{"id":2906},"step-2用范围闸门限制-ai",[2908],{"type":31,"value":2909},"Step 2：用“范围闸门”限制 AI",{"type":26,"tag":39,"props":2911,"children":2912},{},[2913,2918],{"type":26,"tag":43,"props":2914,"children":2915},{},[2916],{"type":31,"value":2917},"单文件改动：优先 Cursor 内联编辑",{"type":26,"tag":43,"props":2919,"children":2920},{},[2921],{"type":31,"value":2922},"多文件改动：必须先让 AI 输出“文件清单（≤5）+ 每步验收”",{"type":26,"tag":27,"props":2924,"children":2925},{},[2926],{"type":31,"value":2927},"如果 AI 输出的文件清单超过 5 个：",{"type":26,"tag":39,"props":2929,"children":2930},{},[2931,2936],{"type":26,"tag":43,"props":2932,"children":2933},{},[2934],{"type":31,"value":2935},"不是它太强，是任务太大",{"type":26,"tag":43,"props":2937,"children":2938},{},[2939],{"type":31,"value":2940},"你需要拆任务，而不是继续推进",{"type":26,"tag":1656,"props":2942,"children":2944},{"id":2943},"step-3最小回归集10-条",[2945],{"type":31,"value":2946},"Step 3：最小回归集（10 条）",{"type":26,"tag":27,"props":2948,"children":2949},{},[2950,2952,2957],{"type":31,"value":2951},"每次接受改动前必须跑（可参考：",{"type":26,"tag":69,"props":2953,"children":2954},{"href":1214},[2955],{"type":31,"value":2956},"Cursor 快捷键速查表",{"type":31,"value":2958}," 里的清单）。",{"type":26,"tag":1656,"props":2960,"children":2962},{"id":2961},"step-4回滚策略不用等事故才想",[2963],{"type":31,"value":2964},"Step 4：回滚策略（不用等事故才想）",{"type":26,"tag":27,"props":2966,"children":2967},{},[2968],{"type":31,"value":2969},"回滚最常见的两条路：",{"type":26,"tag":39,"props":2971,"children":2972},{},[2973,2978],{"type":26,"tag":43,"props":2974,"children":2975},{},[2976],{"type":31,"value":2977},"git 回滚 commit",{"type":26,"tag":43,"props":2979,"children":2980},{},[2981],{"type":31,"value":2982},"对关键文件保留前版本（至少能快速恢复）",{"type":26,"tag":27,"props":2984,"children":2985},{},[2986],{"type":31,"value":2987},"你需要做到：任何一轮 AI 改动都能在 5 分钟内撤回。",{"type":26,"tag":1330,"props":2989,"children":2990},{},[],{"type":26,"tag":101,"props":2992,"children":2994},{"id":2993},"必交付物对比矩阵可复制",[2995],{"type":31,"value":2996},"必交付物：对比矩阵（可复制）",{"type":26,"tag":27,"props":2998,"children":2999},{},[3000],{"type":31,"value":3001},"下面这张表可以直接贴到你的团队 wiki：",{"type":26,"tag":108,"props":3003,"children":3004},{},[3005,3028],{"type":26,"tag":112,"props":3006,"children":3007},{},[3008],{"type":26,"tag":116,"props":3009,"children":3010},{},[3011,3016,3020,3024],{"type":26,"tag":120,"props":3012,"children":3013},{},[3014],{"type":31,"value":3015},"维度",{"type":26,"tag":120,"props":3017,"children":3018},{},[3019],{"type":31,"value":1222},{"type":26,"tag":120,"props":3021,"children":3022},{},[3023],{"type":31,"value":2468},{"type":26,"tag":120,"props":3025,"children":3026},{},[3027],{"type":31,"value":1219},{"type":26,"tag":136,"props":3029,"children":3030},{},[3031,3054,3077,3100],{"type":26,"tag":116,"props":3032,"children":3033},{},[3034,3039,3044,3049],{"type":26,"tag":143,"props":3035,"children":3036},{},[3037],{"type":31,"value":3038},"强项",{"type":26,"tag":143,"props":3040,"children":3041},{},[3042],{"type":31,"value":3043},"工具链、调试、生态",{"type":26,"tag":143,"props":3045,"children":3046},{},[3047],{"type":31,"value":3048},"补全与局部建议",{"type":26,"tag":143,"props":3050,"children":3051},{},[3052],{"type":31,"value":3053},"项目上下文、多文件落地",{"type":26,"tag":116,"props":3055,"children":3056},{},[3057,3062,3067,3072],{"type":26,"tag":143,"props":3058,"children":3059},{},[3060],{"type":31,"value":3061},"适合任务",{"type":26,"tag":143,"props":3063,"children":3064},{},[3065],{"type":31,"value":3066},"排查、调试、验证",{"type":26,"tag":143,"props":3068,"children":3069},{},[3070],{"type":31,"value":3071},"写一段、补一段",{"type":26,"tag":143,"props":3073,"children":3074},{},[3075],{"type":31,"value":3076},"改一段、改一组文件",{"type":26,"tag":116,"props":3078,"children":3079},{},[3080,3085,3090,3095],{"type":26,"tag":143,"props":3081,"children":3082},{},[3083],{"type":31,"value":3084},"最大风险",{"type":26,"tag":143,"props":3086,"children":3087},{},[3088],{"type":31,"value":3089},"无",{"type":26,"tag":143,"props":3091,"children":3092},{},[3093],{"type":31,"value":3094},"过度依赖建议",{"type":26,"tag":143,"props":3096,"children":3097},{},[3098],{"type":31,"value":3099},"范围漂移、多文件回归",{"type":26,"tag":116,"props":3101,"children":3102},{},[3103,3108,3113,3118],{"type":26,"tag":143,"props":3104,"children":3105},{},[3106],{"type":31,"value":3107},"必须搭配",{"type":26,"tag":143,"props":3109,"children":3110},{},[3111],{"type":31,"value":3112},"规范与检查",{"type":26,"tag":143,"props":3114,"children":3115},{},[3116],{"type":31,"value":3117},"代码评审",{"type":26,"tag":143,"props":3119,"children":3120},{},[3121],{"type":31,"value":3122},"闸门 + 最小回归集",{"type":26,"tag":1330,"props":3124,"children":3125},{},[],{"type":26,"tag":101,"props":3127,"children":3129},{"id":3128},"失败案例多文件看似成功实际埋雷",[3130],{"type":31,"value":3131},"失败案例：多文件“看似成功”，实际埋雷",{"type":26,"tag":27,"props":3133,"children":3134},{},[3135,3140],{"type":26,"tag":1269,"props":3136,"children":3137},{},[3138],{"type":31,"value":3139},"现象",{"type":31,"value":3141},"：AI 说“我已经把所有地方都改了”，你也接受了，结果上线后 404 或样式错位。",{"type":26,"tag":27,"props":3143,"children":3144},{},[3145,3150],{"type":26,"tag":1269,"props":3146,"children":3147},{},[3148],{"type":31,"value":3149},"复现条件",{"type":31,"value":1962},{"type":26,"tag":39,"props":3152,"children":3153},{},[3154,3159,3164],{"type":26,"tag":43,"props":3155,"children":3156},{},[3157],{"type":31,"value":3158},"你给了一个大目标（例如“把所有按钮统一成主题色”）",{"type":26,"tag":43,"props":3160,"children":3161},{},[3162],{"type":31,"value":3163},"它改了组件、样式、甚至主题配置",{"type":26,"tag":43,"props":3165,"children":3166},{},[3167],{"type":31,"value":3168},"你没有按页面模块走一遍，直接合并",{"type":26,"tag":27,"props":3170,"children":3171},{},[3172,3177],{"type":26,"tag":1269,"props":3173,"children":3174},{},[3175],{"type":31,"value":3176},"根因",{"type":31,"value":1962},{"type":26,"tag":39,"props":3179,"children":3180},{},[3181],{"type":26,"tag":43,"props":3182,"children":3183},{},[3184],{"type":31,"value":3185},"改动范围大，但验收仍按“小改动”的方式做（只看一处）",{"type":26,"tag":27,"props":3187,"children":3188},{},[3189,3194],{"type":26,"tag":1269,"props":3190,"children":3191},{},[3192],{"type":31,"value":3193},"修复",{"type":31,"value":1962},{"type":26,"tag":39,"props":3196,"children":3197},{},[3198,3203,3208],{"type":26,"tag":43,"props":3199,"children":3200},{},[3201],{"type":31,"value":3202},"强制把任务拆成“模块级目标”：Hero、Feature、Pricing、Form",{"type":26,"tag":43,"props":3204,"children":3205},{},[3206],{"type":31,"value":3207},"每个模块改完就验收一次",{"type":26,"tag":43,"props":3209,"children":3210},{},[3211],{"type":31,"value":3212},"验收通过再进入下一个模块",{"type":26,"tag":1330,"props":3214,"children":3215},{},[],{"type":26,"tag":101,"props":3217,"children":3219},{"id":3218},"faq",[3220],{"type":31,"value":3221},"FAQ",{"type":26,"tag":1656,"props":3223,"children":3225},{"id":3224},"q1我已经用了-cursor为什么还要用-copilot",[3226],{"type":31,"value":3227},"Q1：我已经用了 Cursor，为什么还要用 Copilot？",{"type":26,"tag":27,"props":3229,"children":3230},{},[3231],{"type":31,"value":3232},"因为“补全”这种高频低风险任务，Copilot 的交互成本更低；Cursor 更适合需要解释与约束的改动。",{"type":26,"tag":1656,"props":3234,"children":3236},{"id":3235},"q2什么时候应该完全不用-ai",[3237],{"type":31,"value":3238},"Q2：什么时候应该完全不用 AI？",{"type":26,"tag":27,"props":3240,"children":3241},{},[3242],{"type":31,"value":3243},"当你无法定义验收标准时。比如“更高级”“更好看”这种目标，先做信息结构与设计规则，再让 AI 帮你落地局部。",{"type":26,"tag":1330,"props":3245,"children":3246},{},[],{"type":26,"tag":101,"props":3248,"children":3250},{"id":3249},"延伸阅读",[3251],{"type":31,"value":3249},{"type":26,"tag":39,"props":3253,"children":3254},{},[3255,3264,3273,3282],{"type":26,"tag":43,"props":3256,"children":3257},{},[3258,3260],{"type":31,"value":3259},"Cursor 入门：",{"type":26,"tag":69,"props":3261,"children":3262},{"href":1303},[3263],{"type":31,"value":1306},{"type":26,"tag":43,"props":3265,"children":3266},{},[3267,3269],{"type":31,"value":3268},"Cursor 进阶：",{"type":26,"tag":69,"props":3270,"children":3271},{"href":1314},[3272],{"type":31,"value":1317},{"type":26,"tag":43,"props":3274,"children":3275},{},[3276,3278],{"type":31,"value":3277},"规则配置：",{"type":26,"tag":69,"props":3279,"children":3280},{"href":1325},[3281],{"type":31,"value":1328},{"type":26,"tag":43,"props":3283,"children":3284},{},[3285,3287],{"type":31,"value":3286},"Copilot 实战：",{"type":26,"tag":69,"props":3288,"children":3290},{"href":3289},"/topics/ai/github-copilot-tips",[3291],{"type":31,"value":3292},"GitHub Copilot 实用技巧",{"title":7,"searchDepth":1191,"depth":1191,"links":3294},[3295,3296,3297,3302,3308,3309,3310,3314],{"id":2440,"depth":1194,"text":2443},{"id":2490,"depth":1194,"text":2493},{"id":2732,"depth":1194,"text":2735,"children":3298},[3299,3300,3301],{"id":2738,"depth":1191,"text":2741},{"id":2775,"depth":1191,"text":2778},{"id":2819,"depth":1191,"text":2822},{"id":2851,"depth":1194,"text":2854,"children":3303},[3304,3305,3306,3307],{"id":2862,"depth":1191,"text":2865},{"id":2906,"depth":1191,"text":2909},{"id":2943,"depth":1191,"text":2946},{"id":2961,"depth":1191,"text":2964},{"id":2993,"depth":1194,"text":2996},{"id":3128,"depth":1194,"text":3131},{"id":3218,"depth":1194,"text":3221,"children":3311},[3312,3313],{"id":3224,"depth":1191,"text":3227},{"id":3235,"depth":1191,"text":3238},{"id":3249,"depth":1194,"text":3249},"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":3319,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":3320,"description":3321,"date":3322,"topic":5,"author":11,"tags":3323,"image":3328,"featured":1047,"readingTime":2381,"body":3329,"_type":1206,"_id":3977,"_source":1208,"_file":3978,"_stem":3979,"_extension":1211},"/topics/ai/ai-debugging-troubleshooting-guide","AI 辅助调试与问题排查：让 AI 成为你的调试搭档","深入探讨如何利用 AI 工具提升调试效率，包括错误信息分析、日志解读、性能问题定位、复杂 bug 排查等实战场景，构建 AI 驱动的调试工作流。","2026-01-18",[3324,3325,3326,1223,3327],"AI 调试","问题排查","Debug","错误处理","/images/topics/ai/ai-debugging-guide.jpg",{"type":23,"children":3330,"toc":3948},[3331,3337,3343,3348,3353,3358,3364,3370,3375,3383,3411,3419,3442,3448,3458,3467,3475,3483,3516,3524,3554,3567,3575,3580,3588,3596,3607,3613,3621,3632,3640,3649,3655,3661,3666,3675,3681,3686,3695,3701,3707,3716,3722,3731,3737,3748,3754,3760,3769,3775,3784,3790,3796,3804,3810,3819,3827,3835,3838,3844,3849,3868,3880,3883,3889,3894,3903,3908,3911,3917,3922,3940],{"type":26,"tag":101,"props":3332,"children":3334},{"id":3333},"ai-辅助调试与问题排查",[3335],{"type":31,"value":3336},"AI 辅助调试与问题排查",{"type":26,"tag":101,"props":3338,"children":3340},{"id":3339},"引言调试的痛与-ai-的解药",[3341],{"type":31,"value":3342},"引言：调试的痛与 AI 的解药",{"type":26,"tag":27,"props":3344,"children":3345},{},[3346],{"type":31,"value":3347},"调试是每个程序员的日常，也是最消耗时间和精力的工作之一。我们都有过这样的经历：盯着一个莫名其妙的错误信息，翻遍 Stack Overflow，尝试各种方案，几个小时后才发现是一个愚蠢的拼写错误。",{"type":26,"tag":27,"props":3349,"children":3350},{},[3351],{"type":31,"value":3352},"AI 工具的出现，正在改变调试的方式。不是替代你的思考，而是加速你的分析过程——帮你快速理解错误、缩小排查范围、验证假设。",{"type":26,"tag":27,"props":3354,"children":3355},{},[3356],{"type":31,"value":3357},"这篇文章分享我在实际项目中使用 AI 辅助调试的经验和方法论。",{"type":26,"tag":101,"props":3359,"children":3361},{"id":3360},"第一部分建立-ai-调试的思维模型",[3362],{"type":31,"value":3363},"第一部分：建立 AI 调试的思维模型",{"type":26,"tag":1656,"props":3365,"children":3367},{"id":3366},"_11-ai-在调试中的角色",[3368],{"type":31,"value":3369},"1.1 AI 在调试中的角色",{"type":26,"tag":27,"props":3371,"children":3372},{},[3373],{"type":31,"value":3374},"把 AI 想象成一个经验丰富但不了解你项目的高级工程师。它：",{"type":26,"tag":27,"props":3376,"children":3377},{},[3378],{"type":26,"tag":1269,"props":3379,"children":3380},{},[3381],{"type":31,"value":3382},"擅长的事情：",{"type":26,"tag":39,"props":3384,"children":3385},{},[3386,3391,3396,3401,3406],{"type":26,"tag":43,"props":3387,"children":3388},{},[3389],{"type":31,"value":3390},"解读错误信息的含义",{"type":26,"tag":43,"props":3392,"children":3393},{},[3394],{"type":31,"value":3395},"提供可能的原因列表",{"type":26,"tag":43,"props":3397,"children":3398},{},[3399],{"type":31,"value":3400},"给出排查方向建议",{"type":26,"tag":43,"props":3402,"children":3403},{},[3404],{"type":31,"value":3405},"解释复杂的技术概念",{"type":26,"tag":43,"props":3407,"children":3408},{},[3409],{"type":31,"value":3410},"生成调试代码片段",{"type":26,"tag":27,"props":3412,"children":3413},{},[3414],{"type":26,"tag":1269,"props":3415,"children":3416},{},[3417],{"type":31,"value":3418},"不擅长的事情：",{"type":26,"tag":39,"props":3420,"children":3421},{},[3422,3427,3432,3437],{"type":26,"tag":43,"props":3423,"children":3424},{},[3425],{"type":31,"value":3426},"了解你的业务逻辑",{"type":26,"tag":43,"props":3428,"children":3429},{},[3430],{"type":31,"value":3431},"知道你的代码历史",{"type":26,"tag":43,"props":3433,"children":3434},{},[3435],{"type":31,"value":3436},"理解项目特定的约定",{"type":26,"tag":43,"props":3438,"children":3439},{},[3440],{"type":31,"value":3441},"做出架构级判断",{"type":26,"tag":1656,"props":3443,"children":3445},{"id":3444},"_12-有效提问的结构",[3446],{"type":31,"value":3447},"1.2 有效提问的结构",{"type":26,"tag":357,"props":3449,"children":3453},{"code":3450,"language":1206,"meta":7,"className":3451},"## 高效的调试提问模板\n\n**问题描述**\n[简洁描述遇到的问题]\n\n**错误信息**\n",[3452],"language-markdown",[3454],{"type":26,"tag":365,"props":3455,"children":3456},{"__ignoreMap":7},[3457],{"type":31,"value":3450},{"type":26,"tag":27,"props":3459,"children":3460},{},[3461],{"type":26,"tag":3462,"props":3463,"children":3464},"span",{},[3465],{"type":31,"value":3466},"完整的错误信息，不要截断",{"type":26,"tag":357,"props":3468,"children":3470},{"code":3469},"\n**相关代码**\n```javascript\n[精简但完整的相关代码]\n",[3471],{"type":26,"tag":365,"props":3472,"children":3473},{"__ignoreMap":7},[3474],{"type":31,"value":3469},{"type":26,"tag":27,"props":3476,"children":3477},{},[3478],{"type":26,"tag":1269,"props":3479,"children":3480},{},[3481],{"type":31,"value":3482},"环境信息",{"type":26,"tag":39,"props":3484,"children":3485},{},[3486,3496,3506],{"type":26,"tag":43,"props":3487,"children":3488},{},[3489,3491],{"type":31,"value":3490},"运行环境：",{"type":26,"tag":3462,"props":3492,"children":3493},{},[3494],{"type":31,"value":3495},"Node 版本/浏览器版本",{"type":26,"tag":43,"props":3497,"children":3498},{},[3499,3501],{"type":31,"value":3500},"框架版本：",{"type":26,"tag":3462,"props":3502,"children":3503},{},[3504],{"type":31,"value":3505},"相关框架版本",{"type":26,"tag":43,"props":3507,"children":3508},{},[3509,3511],{"type":31,"value":3510},"操作系统：",{"type":26,"tag":3462,"props":3512,"children":3513},{},[3514],{"type":31,"value":3515},"如果相关",{"type":26,"tag":27,"props":3517,"children":3518},{},[3519],{"type":26,"tag":1269,"props":3520,"children":3521},{},[3522],{"type":31,"value":3523},"已尝试的方案",{"type":26,"tag":39,"props":3525,"children":3526},{},[3527,3541],{"type":26,"tag":43,"props":3528,"children":3529},{},[3530,3535,3536],{"type":26,"tag":3462,"props":3531,"children":3532},{},[3533],{"type":31,"value":3534},"方案1",{"type":31,"value":1962},{"type":26,"tag":3462,"props":3537,"children":3538},{},[3539],{"type":31,"value":3540},"结果",{"type":26,"tag":43,"props":3542,"children":3543},{},[3544,3549,3550],{"type":26,"tag":3462,"props":3545,"children":3546},{},[3547],{"type":31,"value":3548},"方案2",{"type":31,"value":1962},{"type":26,"tag":3462,"props":3551,"children":3552},{},[3553],{"type":31,"value":3540},{"type":26,"tag":27,"props":3555,"children":3556},{},[3557,3562],{"type":26,"tag":1269,"props":3558,"children":3559},{},[3560],{"type":31,"value":3561},"期望的结果",{"type":26,"tag":3462,"props":3563,"children":3564},{},[3565],{"type":31,"value":3566},"描述期望的行为",{"type":26,"tag":357,"props":3568,"children":3570},{"code":3569},"\n### 1.3 分级调试策略\n\n",[3571],{"type":26,"tag":365,"props":3572,"children":3573},{"__ignoreMap":7},[3574],{"type":31,"value":3569},{"type":26,"tag":27,"props":3576,"children":3577},{},[3578],{"type":31,"value":3579},"┌───────────────────────────────────────────────────────────┐\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":357,"props":3581,"children":3583},{"code":3582},"\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",[3584],{"type":26,"tag":365,"props":3585,"children":3586},{"__ignoreMap":7},[3587],{"type":31,"value":3582},{"type":26,"tag":27,"props":3589,"children":3590},{},[3591],{"type":26,"tag":1269,"props":3592,"children":3593},{},[3594],{"type":31,"value":3595},"场景 2：Vue 响应式警告",{"type":26,"tag":357,"props":3597,"children":3602},{"code":3598,"language":3599,"meta":7,"className":3600},"// 警告信息：\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",[3601],"language-typescript",[3603],{"type":26,"tag":365,"props":3604,"children":3605},{"__ignoreMap":7},[3606],{"type":31,"value":3598},{"type":26,"tag":1656,"props":3608,"children":3610},{"id":3609},"_22-后端错误分析",[3611],{"type":31,"value":3612},"2.2 后端错误分析",{"type":26,"tag":27,"props":3614,"children":3615},{},[3616],{"type":26,"tag":1269,"props":3617,"children":3618},{},[3619],{"type":31,"value":3620},"场景 1：Node.js 内存问题",{"type":26,"tag":357,"props":3622,"children":3627},{"code":3623,"language":3624,"meta":7,"className":3625},"// 错误信息：\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",[3626],"language-javascript",[3628],{"type":26,"tag":365,"props":3629,"children":3630},{"__ignoreMap":7},[3631],{"type":31,"value":3623},{"type":26,"tag":27,"props":3633,"children":3634},{},[3635],{"type":26,"tag":1269,"props":3636,"children":3637},{},[3638],{"type":31,"value":3639},"场景 2：数据库连接问题",{"type":26,"tag":357,"props":3641,"children":3644},{"code":3642,"language":3599,"meta":7,"className":3643},"// 错误信息：\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",[3601],[3645],{"type":26,"tag":365,"props":3646,"children":3647},{"__ignoreMap":7},[3648],{"type":31,"value":3642},{"type":26,"tag":101,"props":3650,"children":3652},{"id":3651},"第三部分日志分析与问题定位",[3653],{"type":31,"value":3654},"第三部分：日志分析与问题定位",{"type":26,"tag":1656,"props":3656,"children":3658},{"id":3657},"_31-结构化日志分析",[3659],{"type":31,"value":3660},"3.1 结构化日志分析",{"type":26,"tag":27,"props":3662,"children":3663},{},[3664],{"type":31,"value":3665},"当面对大量日志时，让 AI 帮你快速定位问题：",{"type":26,"tag":357,"props":3667,"children":3670},{"code":3668,"language":3624,"meta":7,"className":3669},"// 提问示例：\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",[3626],[3671],{"type":26,"tag":365,"props":3672,"children":3673},{"__ignoreMap":7},[3674],{"type":31,"value":3668},{"type":26,"tag":1656,"props":3676,"children":3678},{"id":3677},"_32-创建调试日志",[3679],{"type":31,"value":3680},"3.2 创建调试日志",{"type":26,"tag":27,"props":3682,"children":3683},{},[3684],{"type":31,"value":3685},"让 AI 帮你生成调试用的日志代码：",{"type":26,"tag":357,"props":3687,"children":3690},{"code":3688,"language":3599,"meta":7,"className":3689},"// 请求：\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",[3601],[3691],{"type":26,"tag":365,"props":3692,"children":3693},{"__ignoreMap":7},[3694],{"type":31,"value":3688},{"type":26,"tag":101,"props":3696,"children":3698},{"id":3697},"第四部分性能问题排查",[3699],{"type":31,"value":3700},"第四部分：性能问题排查",{"type":26,"tag":1656,"props":3702,"children":3704},{"id":3703},"_41-前端性能分析",[3705],{"type":31,"value":3706},"4.1 前端性能分析",{"type":26,"tag":357,"props":3708,"children":3711},{"code":3709,"language":3599,"meta":7,"className":3710},"// 场景：页面加载慢，需要分析原因\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",[3601],[3712],{"type":26,"tag":365,"props":3713,"children":3714},{"__ignoreMap":7},[3715],{"type":31,"value":3709},{"type":26,"tag":1656,"props":3717,"children":3719},{"id":3718},"_42-内存泄漏排查",[3720],{"type":31,"value":3721},"4.2 内存泄漏排查",{"type":26,"tag":357,"props":3723,"children":3726},{"code":3724,"language":3599,"meta":7,"className":3725},"// 场景：应用运行一段时间后变卡\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",[3601],[3727],{"type":26,"tag":365,"props":3728,"children":3729},{"__ignoreMap":7},[3730],{"type":31,"value":3724},{"type":26,"tag":1656,"props":3732,"children":3734},{"id":3733},"_43-数据库查询优化",[3735],{"type":31,"value":3736},"4.3 数据库查询优化",{"type":26,"tag":357,"props":3738,"children":3743},{"code":3739,"language":3740,"meta":7,"className":3741},"-- 场景：查询很慢，让 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",[3742],"language-sql",[3744],{"type":26,"tag":365,"props":3745,"children":3746},{"__ignoreMap":7},[3747],{"type":31,"value":3739},{"type":26,"tag":101,"props":3749,"children":3751},{"id":3750},"第五部分复杂-bug-排查",[3752],{"type":31,"value":3753},"第五部分：复杂 Bug 排查",{"type":26,"tag":1656,"props":3755,"children":3757},{"id":3756},"_51-竞态条件",[3758],{"type":31,"value":3759},"5.1 竞态条件",{"type":26,"tag":357,"props":3761,"children":3764},{"code":3762,"language":3599,"meta":7,"className":3763},"// 场景：偶发的数据不一致问题\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",[3601],[3765],{"type":26,"tag":365,"props":3766,"children":3767},{"__ignoreMap":7},[3768],{"type":31,"value":3762},{"type":26,"tag":1656,"props":3770,"children":3772},{"id":3771},"_52-分布式系统问题",[3773],{"type":31,"value":3774},"5.2 分布式系统问题",{"type":26,"tag":357,"props":3776,"children":3779},{"code":3777,"language":3599,"meta":7,"className":3778},"// 场景：微服务间的数据不一致\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",[3601],[3780],{"type":26,"tag":365,"props":3781,"children":3782},{"__ignoreMap":7},[3783],{"type":31,"value":3777},{"type":26,"tag":101,"props":3785,"children":3787},{"id":3786},"第六部分ai-调试工作流",[3788],{"type":31,"value":3789},"第六部分：AI 调试工作流",{"type":26,"tag":1656,"props":3791,"children":3793},{"id":3792},"_61-我的调试流程",[3794],{"type":31,"value":3795},"6.1 我的调试流程",{"type":26,"tag":357,"props":3797,"children":3799},{"code":3798},"┌────────────────────────────────────────────────────────────┐\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",[3800],{"type":26,"tag":365,"props":3801,"children":3802},{"__ignoreMap":7},[3803],{"type":31,"value":3798},{"type":26,"tag":1656,"props":3805,"children":3807},{"id":3806},"_62-调试对话模板",[3808],{"type":31,"value":3809},"6.2 调试对话模板",{"type":26,"tag":357,"props":3811,"children":3814},{"code":3812,"language":1206,"meta":7,"className":3813},"## 第一轮：问题描述\n\n我遇到了一个问题：[简述问题]\n\n错误信息：\n",[3452],[3815],{"type":26,"tag":365,"props":3816,"children":3817},{"__ignoreMap":7},[3818],{"type":31,"value":3812},{"type":26,"tag":27,"props":3820,"children":3821},{},[3822],{"type":26,"tag":3462,"props":3823,"children":3824},{},[3825],{"type":31,"value":3826},"粘贴完整错误",{"type":26,"tag":357,"props":3828,"children":3830},{"code":3829},"\n相关代码：\n```javascript\n[粘贴代码]\n",[3831],{"type":26,"tag":365,"props":3832,"children":3833},{"__ignoreMap":7},[3834],{"type":31,"value":3829},{"type":26,"tag":1330,"props":3836,"children":3837},{},[],{"type":26,"tag":101,"props":3839,"children":3841},{"id":3840},"第二轮补充信息",[3842],{"type":31,"value":3843},"第二轮：补充信息",{"type":26,"tag":27,"props":3845,"children":3846},{},[3847],{"type":31,"value":3848},"根据你的建议，我添加了日志，发现：",{"type":26,"tag":39,"props":3850,"children":3851},{},[3852,3860],{"type":26,"tag":43,"props":3853,"children":3854},{},[3855],{"type":26,"tag":3462,"props":3856,"children":3857},{},[3858],{"type":31,"value":3859},"发现 1",{"type":26,"tag":43,"props":3861,"children":3862},{},[3863],{"type":26,"tag":3462,"props":3864,"children":3865},{},[3866],{"type":31,"value":3867},"发现 2",{"type":26,"tag":27,"props":3869,"children":3870},{},[3871,3873,3878],{"type":31,"value":3872},"这是否说明问题出在 ",{"type":26,"tag":3462,"props":3874,"children":3875},{},[3876],{"type":31,"value":3877},"你的猜测",{"type":31,"value":3879},"？",{"type":26,"tag":1330,"props":3881,"children":3882},{},[],{"type":26,"tag":101,"props":3884,"children":3886},{"id":3885},"第三轮确认修复",[3887],{"type":31,"value":3888},"第三轮：确认修复",{"type":26,"tag":27,"props":3890,"children":3891},{},[3892],{"type":31,"value":3893},"我按照你的建议修改了代码：",{"type":26,"tag":357,"props":3895,"children":3898},{"code":3896,"language":3624,"meta":7,"className":3897},"[粘贴修改后的代码]\n",[3626],[3899],{"type":26,"tag":365,"props":3900,"children":3901},{"__ignoreMap":7},[3902],{"type":31,"value":3896},{"type":26,"tag":27,"props":3904,"children":3905},{},[3906],{"type":31,"value":3907},"请确认这个修复是否正确，以及是否有其他潜在问题。",{"type":26,"tag":1330,"props":3909,"children":3910},{},[],{"type":26,"tag":101,"props":3912,"children":3914},{"id":3913},"第四轮预防",[3915],{"type":31,"value":3916},"第四轮：预防",{"type":26,"tag":27,"props":3918,"children":3919},{},[3920],{"type":31,"value":3921},"这个问题已解决。请建议：",{"type":26,"tag":1260,"props":3923,"children":3924},{},[3925,3930,3935],{"type":26,"tag":43,"props":3926,"children":3927},{},[3928],{"type":31,"value":3929},"如何防止类似问题再次发生？",{"type":26,"tag":43,"props":3931,"children":3932},{},[3933],{"type":31,"value":3934},"应该添加什么测试用例？",{"type":26,"tag":43,"props":3936,"children":3937},{},[3938],{"type":31,"value":3939},"有什么最佳实践可以参考？",{"type":26,"tag":357,"props":3941,"children":3943},{"code":3942},"\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",[3944],{"type":26,"tag":365,"props":3945,"children":3946},{"__ignoreMap":7},[3947],{"type":31,"value":3942},{"title":7,"searchDepth":1191,"depth":1191,"links":3949},[3950,3951,3952,3957,3961,3966,3970,3974,3975,3976],{"id":3333,"depth":1194,"text":3336},{"id":3339,"depth":1194,"text":3342},{"id":3360,"depth":1194,"text":3363,"children":3953},[3954,3955,3956],{"id":3366,"depth":1191,"text":3369},{"id":3444,"depth":1191,"text":3447},{"id":3609,"depth":1191,"text":3612},{"id":3651,"depth":1194,"text":3654,"children":3958},[3959,3960],{"id":3657,"depth":1191,"text":3660},{"id":3677,"depth":1191,"text":3680},{"id":3697,"depth":1194,"text":3700,"children":3962},[3963,3964,3965],{"id":3703,"depth":1191,"text":3706},{"id":3718,"depth":1191,"text":3721},{"id":3733,"depth":1191,"text":3736},{"id":3750,"depth":1194,"text":3753,"children":3967},[3968,3969],{"id":3756,"depth":1191,"text":3759},{"id":3771,"depth":1191,"text":3774},{"id":3786,"depth":1194,"text":3789,"children":3971},[3972,3973],{"id":3792,"depth":1191,"text":3795},{"id":3806,"depth":1191,"text":3809},{"id":3840,"depth":1194,"text":3843},{"id":3885,"depth":1194,"text":3888},{"id":3913,"depth":1194,"text":3916},"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":3981,"image":17,"imageQuery":18,"pexelsPhotoId":19,"pexelsUrl":20,"featured":6,"readingTime":21,"body":3982,"_type":1206,"_id":1207,"_source":1208,"_file":1209,"_stem":1210,"_extension":1211},[13,14,15,16],{"type":23,"children":3983,"toc":4950},[3984,3988,3992,4007,4011,4035,4039,4108,4112,4116,4120,4184,4188,4192,4234,4238,4242,4246,4254,4288,4292,4372,4376,4380,4384,4388,4396,4400,4404,4408,4423,4427,4435,4439,4443,4478,4482,4486,4496,4511,4515,4519,4530,4534,4545,4549,4553,4564,4568,4632,4636,4640,4644,4708,4712,4716,4720,4724,4728,4732,4807,4811,4815,4907,4911,4915,4919],{"type":26,"tag":27,"props":3985,"children":3986},{},[3987],{"type":31,"value":32},{"type":26,"tag":27,"props":3989,"children":3990},{},[3991],{"type":31,"value":37},{"type":26,"tag":39,"props":3993,"children":3994},{},[3995,3999,4003],{"type":26,"tag":43,"props":3996,"children":3997},{},[3998],{"type":31,"value":47},{"type":26,"tag":43,"props":4000,"children":4001},{},[4002],{"type":31,"value":52},{"type":26,"tag":43,"props":4004,"children":4005},{},[4006],{"type":31,"value":57},{"type":26,"tag":27,"props":4008,"children":4009},{},[4010],{"type":31,"value":62},{"type":26,"tag":27,"props":4012,"children":4013},{},[4014,4015,4019,4020,4024,4025,4029,4030,4034],{"type":31,"value":67},{"type":26,"tag":69,"props":4016,"children":4017},{"href":71},[4018],{"type":31,"value":74},{"type":31,"value":76},{"type":26,"tag":69,"props":4021,"children":4022},{"href":79},[4023],{"type":31,"value":82},{"type":31,"value":76},{"type":26,"tag":69,"props":4026,"children":4027},{"href":86},[4028],{"type":31,"value":89},{"type":31,"value":91},{"type":26,"tag":69,"props":4031,"children":4032},{"href":94},[4033],{"type":31,"value":97},{"type":31,"value":99},{"type":26,"tag":101,"props":4036,"children":4037},{"id":103},[4038],{"type":31,"value":106},{"type":26,"tag":108,"props":4040,"children":4041},{},[4042,4060],{"type":26,"tag":112,"props":4043,"children":4044},{},[4045],{"type":26,"tag":116,"props":4046,"children":4047},{},[4048,4052,4056],{"type":26,"tag":120,"props":4049,"children":4050},{},[4051],{"type":31,"value":124},{"type":26,"tag":120,"props":4053,"children":4054},{},[4055],{"type":31,"value":129},{"type":26,"tag":120,"props":4057,"children":4058},{},[4059],{"type":31,"value":134},{"type":26,"tag":136,"props":4061,"children":4062},{},[4063,4078,4093],{"type":26,"tag":116,"props":4064,"children":4065},{},[4066,4070,4074],{"type":26,"tag":143,"props":4067,"children":4068},{},[4069],{"type":31,"value":147},{"type":26,"tag":143,"props":4071,"children":4072},{},[4073],{"type":31,"value":152},{"type":26,"tag":143,"props":4075,"children":4076},{},[4077],{"type":31,"value":157},{"type":26,"tag":116,"props":4079,"children":4080},{},[4081,4085,4089],{"type":26,"tag":143,"props":4082,"children":4083},{},[4084],{"type":31,"value":165},{"type":26,"tag":143,"props":4086,"children":4087},{},[4088],{"type":31,"value":170},{"type":26,"tag":143,"props":4090,"children":4091},{},[4092],{"type":31,"value":175},{"type":26,"tag":116,"props":4094,"children":4095},{},[4096,4100,4104],{"type":26,"tag":143,"props":4097,"children":4098},{},[4099],{"type":31,"value":14},{"type":26,"tag":143,"props":4101,"children":4102},{},[4103],{"type":31,"value":187},{"type":26,"tag":143,"props":4105,"children":4106},{},[4107],{"type":31,"value":192},{"type":26,"tag":27,"props":4109,"children":4110},{},[4111],{"type":31,"value":197},{"type":26,"tag":101,"props":4113,"children":4114},{"id":200},[4115],{"type":31,"value":203},{"type":26,"tag":27,"props":4117,"children":4118},{},[4119],{"type":31,"value":208},{"type":26,"tag":108,"props":4121,"children":4122},{},[4123,4137],{"type":26,"tag":112,"props":4124,"children":4125},{},[4126],{"type":26,"tag":116,"props":4127,"children":4128},{},[4129,4133],{"type":26,"tag":120,"props":4130,"children":4131},{},[4132],{"type":31,"value":222},{"type":26,"tag":120,"props":4134,"children":4135},{},[4136],{"type":31,"value":227},{"type":26,"tag":136,"props":4138,"children":4139},{},[4140,4151,4162,4173],{"type":26,"tag":116,"props":4141,"children":4142},{},[4143,4147],{"type":26,"tag":143,"props":4144,"children":4145},{},[4146],{"type":31,"value":238},{"type":26,"tag":143,"props":4148,"children":4149},{},[4150],{"type":31,"value":243},{"type":26,"tag":116,"props":4152,"children":4153},{},[4154,4158],{"type":26,"tag":143,"props":4155,"children":4156},{},[4157],{"type":31,"value":251},{"type":26,"tag":143,"props":4159,"children":4160},{},[4161],{"type":31,"value":256},{"type":26,"tag":116,"props":4163,"children":4164},{},[4165,4169],{"type":26,"tag":143,"props":4166,"children":4167},{},[4168],{"type":31,"value":264},{"type":26,"tag":143,"props":4170,"children":4171},{},[4172],{"type":31,"value":269},{"type":26,"tag":116,"props":4174,"children":4175},{},[4176,4180],{"type":26,"tag":143,"props":4177,"children":4178},{},[4179],{"type":31,"value":277},{"type":26,"tag":143,"props":4181,"children":4182},{},[4183],{"type":31,"value":282},{"type":26,"tag":27,"props":4185,"children":4186},{},[4187],{"type":31,"value":287},{"type":26,"tag":27,"props":4189,"children":4190},{},[4191],{"type":31,"value":292},{"type":26,"tag":108,"props":4193,"children":4194},{},[4195,4209],{"type":26,"tag":112,"props":4196,"children":4197},{},[4198],{"type":26,"tag":116,"props":4199,"children":4200},{},[4201,4205],{"type":26,"tag":120,"props":4202,"children":4203},{},[4204],{"type":31,"value":222},{"type":26,"tag":120,"props":4206,"children":4207},{},[4208],{"type":31,"value":310},{"type":26,"tag":136,"props":4210,"children":4211},{},[4212,4223],{"type":26,"tag":116,"props":4213,"children":4214},{},[4215,4219],{"type":26,"tag":143,"props":4216,"children":4217},{},[4218],{"type":31,"value":321},{"type":26,"tag":143,"props":4220,"children":4221},{},[4222],{"type":31,"value":326},{"type":26,"tag":116,"props":4224,"children":4225},{},[4226,4230],{"type":26,"tag":143,"props":4227,"children":4228},{},[4229],{"type":31,"value":334},{"type":26,"tag":143,"props":4231,"children":4232},{},[4233],{"type":31,"value":339},{"type":26,"tag":27,"props":4235,"children":4236},{},[4237],{"type":31,"value":344},{"type":26,"tag":101,"props":4239,"children":4240},{"id":347},[4241],{"type":31,"value":350},{"type":26,"tag":27,"props":4243,"children":4244},{},[4245],{"type":31,"value":355},{"type":26,"tag":357,"props":4247,"children":4249},{"className":4248,"code":361,"language":362,"meta":7},[360],[4250],{"type":26,"tag":365,"props":4251,"children":4252},{"__ignoreMap":7},[4253],{"type":31,"value":361},{"type":26,"tag":27,"props":4255,"children":4256},{},[4257,4258,4263,4264,4269,4270,4275,4276,4281,4282,4287],{"type":31,"value":373},{"type":26,"tag":365,"props":4259,"children":4261},{"className":4260},[],[4262],{"type":31,"value":379},{"type":31,"value":76},{"type":26,"tag":365,"props":4265,"children":4267},{"className":4266},[],[4268],{"type":31,"value":386},{"type":31,"value":76},{"type":26,"tag":365,"props":4271,"children":4273},{"className":4272},[],[4274],{"type":31,"value":393},{"type":31,"value":76},{"type":26,"tag":365,"props":4277,"children":4279},{"className":4278},[],[4280],{"type":31,"value":400},{"type":31,"value":76},{"type":26,"tag":365,"props":4283,"children":4285},{"className":4284},[],[4286],{"type":31,"value":407},{"type":31,"value":409},{"type":26,"tag":27,"props":4289,"children":4290},{},[4291],{"type":31,"value":414},{"type":26,"tag":108,"props":4293,"children":4294},{},[4295,4309],{"type":26,"tag":112,"props":4296,"children":4297},{},[4298],{"type":26,"tag":116,"props":4299,"children":4300},{},[4301,4305],{"type":26,"tag":120,"props":4302,"children":4303},{},[4304],{"type":31,"value":428},{"type":26,"tag":120,"props":4306,"children":4307},{},[4308],{"type":31,"value":433},{"type":26,"tag":136,"props":4310,"children":4311},{},[4312,4327,4342,4357],{"type":26,"tag":116,"props":4313,"children":4314},{},[4315,4319],{"type":26,"tag":143,"props":4316,"children":4317},{},[4318],{"type":31,"value":238},{"type":26,"tag":143,"props":4320,"children":4321},{},[4322],{"type":26,"tag":365,"props":4323,"children":4325},{"className":4324},[],[4326],{"type":31,"value":452},{"type":26,"tag":116,"props":4328,"children":4329},{},[4330,4334],{"type":26,"tag":143,"props":4331,"children":4332},{},[4333],{"type":31,"value":251},{"type":26,"tag":143,"props":4335,"children":4336},{},[4337],{"type":26,"tag":365,"props":4338,"children":4340},{"className":4339},[],[4341],{"type":31,"value":468},{"type":26,"tag":116,"props":4343,"children":4344},{},[4345,4349],{"type":26,"tag":143,"props":4346,"children":4347},{},[4348],{"type":31,"value":264},{"type":26,"tag":143,"props":4350,"children":4351},{},[4352],{"type":26,"tag":365,"props":4353,"children":4355},{"className":4354},[],[4356],{"type":31,"value":484},{"type":26,"tag":116,"props":4358,"children":4359},{},[4360,4364],{"type":26,"tag":143,"props":4361,"children":4362},{},[4363],{"type":31,"value":277},{"type":26,"tag":143,"props":4365,"children":4366},{},[4367],{"type":26,"tag":365,"props":4368,"children":4370},{"className":4369},[],[4371],{"type":31,"value":500},{"type":26,"tag":27,"props":4373,"children":4374},{},[4375],{"type":31,"value":505},{"type":26,"tag":101,"props":4377,"children":4378},{"id":508},[4379],{"type":31,"value":511},{"type":26,"tag":27,"props":4381,"children":4382},{},[4383],{"type":31,"value":516},{"type":26,"tag":27,"props":4385,"children":4386},{},[4387],{"type":31,"value":521},{"type":26,"tag":357,"props":4389,"children":4391},{"className":4390,"code":526,"language":527,"meta":7},[525],[4392],{"type":26,"tag":365,"props":4393,"children":4394},{"__ignoreMap":7},[4395],{"type":31,"value":526},{"type":26,"tag":27,"props":4397,"children":4398},{},[4399],{"type":31,"value":537},{"type":26,"tag":101,"props":4401,"children":4402},{"id":540},[4403],{"type":31,"value":543},{"type":26,"tag":27,"props":4405,"children":4406},{},[4407],{"type":31,"value":548},{"type":26,"tag":39,"props":4409,"children":4410},{},[4411,4415,4419],{"type":26,"tag":43,"props":4412,"children":4413},{},[4414],{"type":31,"value":556},{"type":26,"tag":43,"props":4416,"children":4417},{},[4418],{"type":31,"value":561},{"type":26,"tag":43,"props":4420,"children":4421},{},[4422],{"type":31,"value":566},{"type":26,"tag":27,"props":4424,"children":4425},{},[4426],{"type":31,"value":571},{"type":26,"tag":357,"props":4428,"children":4430},{"className":4429,"code":575,"language":362,"meta":7},[360],[4431],{"type":26,"tag":365,"props":4432,"children":4433},{"__ignoreMap":7},[4434],{"type":31,"value":575},{"type":26,"tag":27,"props":4436,"children":4437},{},[4438],{"type":31,"value":585},{"type":26,"tag":27,"props":4440,"children":4441},{},[4442],{"type":31,"value":590},{"type":26,"tag":39,"props":4444,"children":4445},{},[4446,4454,4462,4470],{"type":26,"tag":43,"props":4447,"children":4448},{},[4449],{"type":26,"tag":365,"props":4450,"children":4452},{"className":4451},[],[4453],{"type":31,"value":602},{"type":26,"tag":43,"props":4455,"children":4456},{},[4457],{"type":26,"tag":365,"props":4458,"children":4460},{"className":4459},[],[4461],{"type":31,"value":611},{"type":26,"tag":43,"props":4463,"children":4464},{},[4465],{"type":26,"tag":365,"props":4466,"children":4468},{"className":4467},[],[4469],{"type":31,"value":620},{"type":26,"tag":43,"props":4471,"children":4472},{},[4473],{"type":26,"tag":365,"props":4474,"children":4476},{"className":4475},[],[4477],{"type":31,"value":629},{"type":26,"tag":27,"props":4479,"children":4480},{},[4481],{"type":31,"value":634},{"type":26,"tag":101,"props":4483,"children":4484},{"id":637},[4485],{"type":31,"value":640},{"type":26,"tag":27,"props":4487,"children":4488},{},[4489,4490,4495],{"type":31,"value":645},{"type":26,"tag":365,"props":4491,"children":4493},{"className":4492},[],[4494],{"type":31,"value":651},{"type":31,"value":653},{"type":26,"tag":39,"props":4497,"children":4498},{},[4499,4503,4507],{"type":26,"tag":43,"props":4500,"children":4501},{},[4502],{"type":31,"value":661},{"type":26,"tag":43,"props":4504,"children":4505},{},[4506],{"type":31,"value":666},{"type":26,"tag":43,"props":4508,"children":4509},{},[4510],{"type":31,"value":671},{"type":26,"tag":27,"props":4512,"children":4513},{},[4514],{"type":31,"value":676},{"type":26,"tag":27,"props":4516,"children":4517},{},[4518],{"type":31,"value":681},{"type":26,"tag":39,"props":4520,"children":4521},{},[4522,4526],{"type":26,"tag":43,"props":4523,"children":4524},{},[4525],{"type":31,"value":689},{"type":26,"tag":43,"props":4527,"children":4528},{},[4529],{"type":31,"value":694},{"type":26,"tag":27,"props":4531,"children":4532},{},[4533],{"type":31,"value":699},{"type":26,"tag":39,"props":4535,"children":4536},{},[4537,4541],{"type":26,"tag":43,"props":4538,"children":4539},{},[4540],{"type":31,"value":707},{"type":26,"tag":43,"props":4542,"children":4543},{},[4544],{"type":31,"value":712},{"type":26,"tag":101,"props":4546,"children":4547},{"id":715},[4548],{"type":31,"value":718},{"type":26,"tag":27,"props":4550,"children":4551},{},[4552],{"type":31,"value":723},{"type":26,"tag":39,"props":4554,"children":4555},{},[4556,4560],{"type":26,"tag":43,"props":4557,"children":4558},{},[4559],{"type":31,"value":731},{"type":26,"tag":43,"props":4561,"children":4562},{},[4563],{"type":31,"value":736},{"type":26,"tag":27,"props":4565,"children":4566},{},[4567],{"type":31,"value":741},{"type":26,"tag":108,"props":4569,"children":4570},{},[4571,4585],{"type":26,"tag":112,"props":4572,"children":4573},{},[4574],{"type":26,"tag":116,"props":4575,"children":4576},{},[4577,4581],{"type":26,"tag":120,"props":4578,"children":4579},{},[4580],{"type":31,"value":755},{"type":26,"tag":120,"props":4582,"children":4583},{},[4584],{"type":31,"value":760},{"type":26,"tag":136,"props":4586,"children":4587},{},[4588,4599,4610,4621],{"type":26,"tag":116,"props":4589,"children":4590},{},[4591,4595],{"type":26,"tag":143,"props":4592,"children":4593},{},[4594],{"type":31,"value":771},{"type":26,"tag":143,"props":4596,"children":4597},{},[4598],{"type":31,"value":776},{"type":26,"tag":116,"props":4600,"children":4601},{},[4602,4606],{"type":26,"tag":143,"props":4603,"children":4604},{},[4605],{"type":31,"value":784},{"type":26,"tag":143,"props":4607,"children":4608},{},[4609],{"type":31,"value":251},{"type":26,"tag":116,"props":4611,"children":4612},{},[4613,4617],{"type":26,"tag":143,"props":4614,"children":4615},{},[4616],{"type":31,"value":796},{"type":26,"tag":143,"props":4618,"children":4619},{},[4620],{"type":31,"value":264},{"type":26,"tag":116,"props":4622,"children":4623},{},[4624,4628],{"type":26,"tag":143,"props":4625,"children":4626},{},[4627],{"type":31,"value":808},{"type":26,"tag":143,"props":4629,"children":4630},{},[4631],{"type":31,"value":813},{"type":26,"tag":27,"props":4633,"children":4634},{},[4635],{"type":31,"value":818},{"type":26,"tag":101,"props":4637,"children":4638},{"id":821},[4639],{"type":31,"value":824},{"type":26,"tag":27,"props":4641,"children":4642},{},[4643],{"type":31,"value":829},{"type":26,"tag":108,"props":4645,"children":4646},{},[4647,4661],{"type":26,"tag":112,"props":4648,"children":4649},{},[4650],{"type":26,"tag":116,"props":4651,"children":4652},{},[4653,4657],{"type":26,"tag":120,"props":4654,"children":4655},{},[4656],{"type":31,"value":843},{"type":26,"tag":120,"props":4658,"children":4659},{},[4660],{"type":31,"value":848},{"type":26,"tag":136,"props":4662,"children":4663},{},[4664,4675,4686,4697],{"type":26,"tag":116,"props":4665,"children":4666},{},[4667,4671],{"type":26,"tag":143,"props":4668,"children":4669},{},[4670],{"type":31,"value":859},{"type":26,"tag":143,"props":4672,"children":4673},{},[4674],{"type":31,"value":864},{"type":26,"tag":116,"props":4676,"children":4677},{},[4678,4682],{"type":26,"tag":143,"props":4679,"children":4680},{},[4681],{"type":31,"value":872},{"type":26,"tag":143,"props":4683,"children":4684},{},[4685],{"type":31,"value":877},{"type":26,"tag":116,"props":4687,"children":4688},{},[4689,4693],{"type":26,"tag":143,"props":4690,"children":4691},{},[4692],{"type":31,"value":885},{"type":26,"tag":143,"props":4694,"children":4695},{},[4696],{"type":31,"value":890},{"type":26,"tag":116,"props":4698,"children":4699},{},[4700,4704],{"type":26,"tag":143,"props":4701,"children":4702},{},[4703],{"type":31,"value":898},{"type":26,"tag":143,"props":4705,"children":4706},{},[4707],{"type":31,"value":903},{"type":26,"tag":27,"props":4709,"children":4710},{},[4711],{"type":31,"value":908},{"type":26,"tag":101,"props":4713,"children":4714},{"id":911},[4715],{"type":31,"value":914},{"type":26,"tag":27,"props":4717,"children":4718},{},[4719],{"type":31,"value":919},{"type":26,"tag":27,"props":4721,"children":4722},{},[4723],{"type":31,"value":924},{"type":26,"tag":101,"props":4725,"children":4726},{"id":927},[4727],{"type":31,"value":930},{"type":26,"tag":27,"props":4729,"children":4730},{},[4731],{"type":31,"value":935},{"type":26,"tag":108,"props":4733,"children":4734},{},[4735,4749],{"type":26,"tag":112,"props":4736,"children":4737},{},[4738],{"type":26,"tag":116,"props":4739,"children":4740},{},[4741,4745],{"type":26,"tag":120,"props":4742,"children":4743},{},[4744],{"type":31,"value":949},{"type":26,"tag":120,"props":4746,"children":4747},{},[4748],{"type":31,"value":954},{"type":26,"tag":136,"props":4750,"children":4751},{},[4752,4763,4774,4785,4796],{"type":26,"tag":116,"props":4753,"children":4754},{},[4755,4759],{"type":26,"tag":143,"props":4756,"children":4757},{},[4758],{"type":31,"value":965},{"type":26,"tag":143,"props":4760,"children":4761},{},[4762],{"type":31,"value":970},{"type":26,"tag":116,"props":4764,"children":4765},{},[4766,4770],{"type":26,"tag":143,"props":4767,"children":4768},{},[4769],{"type":31,"value":978},{"type":26,"tag":143,"props":4771,"children":4772},{},[4773],{"type":31,"value":983},{"type":26,"tag":116,"props":4775,"children":4776},{},[4777,4781],{"type":26,"tag":143,"props":4778,"children":4779},{},[4780],{"type":31,"value":991},{"type":26,"tag":143,"props":4782,"children":4783},{},[4784],{"type":31,"value":996},{"type":26,"tag":116,"props":4786,"children":4787},{},[4788,4792],{"type":26,"tag":143,"props":4789,"children":4790},{},[4791],{"type":31,"value":1004},{"type":26,"tag":143,"props":4793,"children":4794},{},[4795],{"type":31,"value":1009},{"type":26,"tag":116,"props":4797,"children":4798},{},[4799,4803],{"type":26,"tag":143,"props":4800,"children":4801},{},[4802],{"type":31,"value":1017},{"type":26,"tag":143,"props":4804,"children":4805},{},[4806],{"type":31,"value":1022},{"type":26,"tag":27,"props":4808,"children":4809},{},[4810],{"type":31,"value":1027},{"type":26,"tag":101,"props":4812,"children":4813},{"id":1030},[4814],{"type":31,"value":1033},{"type":26,"tag":39,"props":4816,"children":4818},{"className":4817},[1037],[4819,4827,4835,4843,4851,4859,4867,4875,4883,4891,4899],{"type":26,"tag":43,"props":4820,"children":4822},{"className":4821},[1042],[4823,4826],{"type":26,"tag":1045,"props":4824,"children":4825},{"disabled":1047,"type":1048},[],{"type":31,"value":1051},{"type":26,"tag":43,"props":4828,"children":4830},{"className":4829},[1042],[4831,4834],{"type":26,"tag":1045,"props":4832,"children":4833},{"disabled":1047,"type":1048},[],{"type":31,"value":1060},{"type":26,"tag":43,"props":4836,"children":4838},{"className":4837},[1042],[4839,4842],{"type":26,"tag":1045,"props":4840,"children":4841},{"disabled":1047,"type":1048},[],{"type":31,"value":1069},{"type":26,"tag":43,"props":4844,"children":4846},{"className":4845},[1042],[4847,4850],{"type":26,"tag":1045,"props":4848,"children":4849},{"disabled":1047,"type":1048},[],{"type":31,"value":1078},{"type":26,"tag":43,"props":4852,"children":4854},{"className":4853},[1042],[4855,4858],{"type":26,"tag":1045,"props":4856,"children":4857},{"disabled":1047,"type":1048},[],{"type":31,"value":1087},{"type":26,"tag":43,"props":4860,"children":4862},{"className":4861},[1042],[4863,4866],{"type":26,"tag":1045,"props":4864,"children":4865},{"disabled":1047,"type":1048},[],{"type":31,"value":1096},{"type":26,"tag":43,"props":4868,"children":4870},{"className":4869},[1042],[4871,4874],{"type":26,"tag":1045,"props":4872,"children":4873},{"disabled":1047,"type":1048},[],{"type":31,"value":1105},{"type":26,"tag":43,"props":4876,"children":4878},{"className":4877},[1042],[4879,4882],{"type":26,"tag":1045,"props":4880,"children":4881},{"disabled":1047,"type":1048},[],{"type":31,"value":1114},{"type":26,"tag":43,"props":4884,"children":4886},{"className":4885},[1042],[4887,4890],{"type":26,"tag":1045,"props":4888,"children":4889},{"disabled":1047,"type":1048},[],{"type":31,"value":1123},{"type":26,"tag":43,"props":4892,"children":4894},{"className":4893},[1042],[4895,4898],{"type":26,"tag":1045,"props":4896,"children":4897},{"disabled":1047,"type":1048},[],{"type":31,"value":1132},{"type":26,"tag":43,"props":4900,"children":4902},{"className":4901},[1042],[4903,4906],{"type":26,"tag":1045,"props":4904,"children":4905},{"disabled":1047,"type":1048},[],{"type":31,"value":1141},{"type":26,"tag":101,"props":4908,"children":4909},{"id":1144},[4910],{"type":31,"value":1144},{"type":26,"tag":27,"props":4912,"children":4913},{},[4914],{"type":31,"value":1151},{"type":26,"tag":27,"props":4916,"children":4917},{},[4918],{"type":31,"value":1156},{"type":26,"tag":39,"props":4920,"children":4921},{},[4922,4929,4936,4943],{"type":26,"tag":43,"props":4923,"children":4924},{},[4925],{"type":26,"tag":69,"props":4926,"children":4927},{"href":71},[4928],{"type":31,"value":74},{"type":26,"tag":43,"props":4930,"children":4931},{},[4932],{"type":26,"tag":69,"props":4933,"children":4934},{"href":94},[4935],{"type":31,"value":97},{"type":26,"tag":43,"props":4937,"children":4938},{},[4939],{"type":26,"tag":69,"props":4940,"children":4941},{"href":1179},[4942],{"type":31,"value":1182},{"type":26,"tag":43,"props":4944,"children":4945},{},[4946],{"type":26,"tag":69,"props":4947,"children":4948},{"href":79},[4949],{"type":31,"value":82},{"title":7,"searchDepth":1191,"depth":1191,"links":4951},[4952,4953,4954,4955,4956,4957,4958,4959,4960,4961,4962,4963],{"id":103,"depth":1194,"text":106},{"id":200,"depth":1194,"text":203},{"id":347,"depth":1194,"text":350},{"id":508,"depth":1194,"text":511},{"id":540,"depth":1194,"text":543},{"id":637,"depth":1194,"text":640},{"id":715,"depth":1194,"text":718},{"id":821,"depth":1194,"text":824},{"id":911,"depth":1194,"text":914},{"id":927,"depth":1194,"text":930},{"id":1030,"depth":1194,"text":1033},{"id":1144,"depth":1194,"text":1144},1778331339507]