AI搜问:人员语义搜索、跨源主题检索与行为回溯。Use when 语义找人,或目标未知时按主题或行为发现内容。原生最近列表走所属产品;完整手机号精确反查走 dingtalk-contact。前缀:dws aisearch。
72
90%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Low
Low-risk findings worth noting
dws 操作钉钉,每条命令带 --format json,只按结构化返回下结论。person/enterprise/behavior 直接调用,不预读 shared、Reference、Schema、Help 或下游 Skill。domain 的 ID。--types 的 aisearch enterprise,不能先逐产品搜索。| 意图 | 入口 |
|---|---|
| 姓名、工号、部门、职位、职责、上下级或手机号线索找人 | dws aisearch person |
| 按主题跨文档、消息、邮件、待办、日程、听记等找内容 | dws aisearch enterprise |
| 以我为端点的发送/接收,或我创建、编辑、分享过什么 | dws aisearch behavior |
| 仅 IM 且需逐条消息谓词过滤 | dws chat +search-msg |
| 无主题地列最近访问/编辑文档 | dws drive +recent |
| 枚举部门完整成员 | dingtalk-contact |
| 完整手机号精确反查 | dws contact user search-mobile --mobile "<手机号>" --format json |
| 已知稳定 ID 后读取/修改 | 对应产品 Skill |
顺序:资源范围 → 答案形态 → 原生谓词。
维度:姓名=name,部门=department,职位=position,职责/负责人=duty,上级=supervisor,下属=subordinate,工号=jobNumber,手机号线索=phone;确实无法判断才用 all。
dws aisearch person --query "<用户原始目标>" --dimension <维度> --format jsonall、缩词或扩同音词。searchEvidence.returnedCandidateCount 报告本次候选数;无分页完成证据只称“本次返回”。_searchEvidence.exactAliasContainsQuery=true;exactAliasContainsCount=0 即无精确包含项,语义近似不能替代。resolvedRelation.status=resolved 时直接使用 target/supervisor/relation 回答直属上级,不再搜索,也不把上级的上级当直属上级。dimension=duty,保留产品名和“负责”;仅职责证据明确者可称负责人,多候选就列候选及部门,共同上级不等于负责人。aliases 关联;不同域 ID 不可直接比较。需要更多人员详情时才用真实 userId 切 Contact。时间词只进 --time-range,类型词只进 --types,其余主题进 --queries。
dws aisearch enterprise --queries "<主题>" --types <类型CSV> [--time-range "<原时间词>"] --format json类型:文档/普通文件=document,消息=im,邮件=mail,日程=calendar,待办=todo,听记=minute,日志=report,AI表格=notable,知识内容=baike;用户列出的来源合并到一次调用。
requestConstraints 回显实际条件,sources 给出各来源数量;no_returned_items 仅表示本次未命中,coverage.status=unknown 不能证明完整。_searchEvidence.queryMatch=text_evidence_present 才有文本主题证据;no_text_evidence 仅是语义候选,标为未核实。result 保留项并说明 delivery.omitted;doNotRetryOrExpand=true 时停止,不改词、逐产品补搜或读 Help。resolvedDetail。其状态为 resolved 或 resolved_from_search_payload 且字段足够时直接回答;failed 才报告补充读取失败。meta.nativeFallback=true 仍属本次 AISearch 证据,无需 Agent 再查日历。complete=true 不代表搜索完整。dws aisearch behavior --queries "<主题>" --types <类型CSV> --behavior-type <all|send|receive|create|edit|share> [--time-range "<原时间词>"] [--direction "我->某人|某人->我|我<->某人"] [--chat-scope "<完整群名>"] --format jsonsend;“某人发给我”=receive。chat-scope 仅用于 IM,方向保留原姓名。enterprise 拼行为证据,不删主题、扩时间、缩群名或用 recent 代替。timeEvidence.withinRequestedRange=false 排除;为 null 则标时间未核实。messageEvidence.perMessageVerified=false 时不能把混合会话 snippet 全归给目标人。types=im、receive、人物方向及原时间词;不切 Chat、猜 sender 或扩大年份。resolvedMessageEvidence.status=resolved 时直接使用 messages,即使为空也不再调用 Chat;identity.match=returned_alias 只证明展示名匹配返回别名。direction="某人->我",按 identity.match=any_returned_sender 的 messages.sender 汇总,不先猜人或拆两次搜索。stableRefs/identityRefs,仅同 domain 的 ID 可直接比较。路径:AISearch 定位 → 确认目标 → 优先使用同次 resolvedDetail → 缺必需字段才按真实 ID 调用一个对应产品。
userId,文档用 nodeId,听记用 taskUuid,待办用真实 taskId;Ding uid 不能当 Contact userId,snippet 不能当正文。钉钉对象只用 DWS 返回作业务证据;未命中时不得用 find、rg、mdfind 或评测 fixture 回答。会议议题负责人用一次 person --dimension duty 保留会议与职责原词;只有内容能提供职责原文时才改用一次 enterprise --types calendar,im,document,二者不都跑。
retryable=true 时原调用最多重试一次;否则停止,不换身份或绕权限。unknown flag 才查看一次该命令 Help;API、权限和空结果不靠 Help 解决。常用路径不读 Reference。低频枚举或兼容参数不明才读 完整命令参考;产品边界不明读 局部意图消歧;稳定 ID 域或下一跳不明读 多跳短流程。
7de51a8
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.