dsh-search-plugin

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

插件雷达 · Plugin Radar

插件雷达 · Plugin Radar

针对用户目标从 dshfind 插件网关检索 DSH 插件,返回带证据的候选清单:官方评分与等级、星标、分类、标签、安装方式、风险标记和仓库链接,并附上数据版本与时间戳溯源。
针对用户目标从 dshfind 插件网关检索 DSH 插件,返回带证据的候选清单:官方评分与等级、星标、分类、标签、安装方式、风险标记和仓库链接,并附上数据版本与时间戳溯源。

Triggers

触发条件

Activate when

激活条件

  • 用户说“查找插件”“搜索 DSH 插件”“有没有现成的 XX 插件”“帮我找找实现 XX 的插件”。
  • The user asks to find or search plugins, e.g. "find a plugin for memory", "search plugins for web automation".
  • 用户只想要候选清单与证据,暂不决定选用还是新建。
  • 用户说“查找插件”“搜索 DSH 插件”“有没有现成的 XX 插件”“帮我找找实现 XX 的插件”。
  • 用户要求查找或搜索插件,例如“查找用于记忆的插件”“搜索用于 Web 自动化的插件”。
  • 用户只想要候选清单与证据,暂不决定选用还是新建。

Do not activate when

不激活条件

  • 用户要直接安装或使用某个插件;那是 dsh 运行时或下游流程的事。
  • 用户要新建插件;交给 dsh-plugin-creator。
  • 用户要发布插件;交给 dsh-plugin-publisher。
  • 用户要找的是通用 Agent Skill 而不是 DSH 插件;交给 find-skills。
  • 用户要直接安装或使用某个插件;那是 dsh 运行时或下游流程的事。
  • 用户要新建插件;交给 dsh-plugin-creator。
  • 用户要发布插件;交给 dsh-plugin-publisher。
  • 用户要找的是通用 Agent Skill 而不是 DSH 插件;交给 find-skills。

User Profile (cross-session)

用户档案(跨会话)

This Skill is connected to the shared
user-profile/v1
contract in
skill.yaml
. Read the shared user, brand, workspace, preferences, and the
skills.dsh-search-plugin
namespace at the start of every run. Keep the source portable: resolved personal values belong in the shared profile, never here.
When the user directly states a durable preference, persist it through
scripts/profile_store.py
and report the saved profile path. Skill-specific values live under
records.<field>
; use
brand.<field>
or
user.<field>
for shared values. Do not persist inferred secrets or credentials. See
references/user-profile.md
for the complete contract.
本 Skill 通过
skill.yaml
连接到共享的
user-profile/v1
契约。每次运行开始时,读取共享的用户、品牌、工作区、偏好以及
skills.dsh-search-plugin
命名空间。保持源码可移植:解析后的个人偏好值应存放在共享档案中,而不是存放在这里。
当用户直接陈述一项长期偏好时,通过
scripts/profile_store.py
持久化该偏好,并报告已保存的档案路径。Skill 专属的值存放在
records.<field>
下;共享值使用
brand.<field>
或
user.<field>
。不要持久化推断出的机密信息或凭据。完整契约请参阅
references/user-profile.md
。

Skill Group Composition

Skill 组合

Read
references/skill-composition.md
before deciding whether to invoke or extend any adjacent capability. The record distinguishes optional upstream and downstream handoffs from embedded Kit modules. This Skill does not silently depend on any sibling Skill.
在决定是否调用或扩展任何邻近能力之前,先阅读
references/skill-composition.md
。该记录会区分可选的上游和下游交接与内嵌的 Kit 模块。本 Skill 不会在未声明的情况下依赖任何同级 Skill。

Workflow (MANDATORY)

工作流(强制执行)

You MUST follow these steps in order.
必须按以下顺序执行这些步骤。

Step 0: Resolve skill root, dependencies, and runtime context

第 0 步:解析 Skill 根目录、依赖项和运行时上下文

  • Use
    SKILL_DIR
    if the environment provides it; otherwise infer the installed skill directory from the current skill context.
  • Verify
    scripts/search_plugin.py
    and
    references/gateway-api.md
    exist before work; if a resource is missing, name its expected relative path and stop.
  • Resolve
    context.profile
    on every invocation. Precedence: current request, project context, Skill records, shared preferences, shared user/brand profile, safe defaults. A direct user statement about a durable preference should be saved with
    scripts/profile_store.py record
    using
    --confirm
    , followed by a concise saved-path report.
When running scripts manually:
bash
export SKILL_DIR="/path/to/dsh-search-plugin"
  • 如果环境提供了
    SKILL_DIR
    ,则使用它;否则根据当前 Skill 上下文推断已安装的 Skill 目录。
  • 开始工作前,确认
    scripts/search_plugin.py
    和
    references/gateway-api.md
    存在;如果缺少资源,请指出预期的相对路径并停止。
  • 每次调用都要解析
    context.profile
    。优先级依次为:当前请求、项目上下文、Skill 记录、共享偏好、共享用户或品牌档案、安全默认值。如果用户直接陈述了一项长期偏好,应使用
    scripts/profile_store.py record --confirm
    保存该偏好,随后简要报告保存路径。
手动运行脚本时:
bash
export SKILL_DIR="/path/to/dsh-search-plugin"

Step 1: Understand the requested outcome

第 1 步:理解请求的目标

  • Extract from the request: the goal or keyword, optional filters (category, language, grade, tag, owner, min score), result count, and the output language (default: profile
    user.language
    ).
  • Confirm the deliverable: an evidence-tagged candidate list in the final answer (default), plus an optional raw JSON artifact saved to
    workspace.output_dir
    when the user wants a durable file.
  • Keep internal background out of the user-facing result.
  • 从请求中提取:目标或关键词、可选筛选条件(分类、语言、等级、标签、所有者、最低评分)、结果数量和输出语言(默认为档案中的
    user.language
    )。
  • 确认交付物:默认在最终回答中提供带证据标记的候选清单;当用户需要持久化文件时,可选择将原始 JSON 产物保存到
    workspace.output_dir
    。
  • 不要在面向用户的结果中包含内部背景信息。

Step 1.5: Analyze nearby Skills before implementation

第 1.5 步:实施前分析邻近 Skill

  • Inspect
    references/skill-composition.md
    .
    dsh-search-or-create-plugin
    may consume this Skill's JSON artifact as an optional upstream handoff;
    dsh-plugin-creator
    may consume the candidate list as base-implementation evidence. Neither is a hidden dependency of this Skill.
  • 检查
    references/skill-composition.md
    。
    dsh-search-or-create-plugin
    可以将本 Skill 的 JSON 产物作为可选的上游交接内容;
    dsh-plugin-creator
    可以将候选清单作为基础实现证据。二者都不是本 Skill 的隐藏依赖。

Step 2: Search the gateway

第 2 步:搜索网关

  1. Derive 2-4 short keywords from the goal. The gateway needs at least two trimmed characters per keyword and caps at 64.
  2. Run the deterministic client. Examples:
bash
python3 "$SKILL_DIR/scripts/search_plugin.py" search "memory" --limit 10 --pretty
python3 "$SKILL_DIR/scripts/search_plugin.py" suggest "memory"
  1. Apply filters from the request or profile defaults:
bash
python3 "$SKILL_DIR/scripts/search_plugin.py" search "web" --grade S --min-score 80 --limit 10
python3 "$SKILL_DIR/scripts/search_plugin.py" search "feishu" --category automation --language TypeScript
  1. When a candidate looks central to the goal, fetch its detail for the localized intro, highlights, and growth evidence:
bash
python3 "$SKILL_DIR/scripts/search_plugin.py" detail owner repo
  1. On empty or weak results, retry with synonyms, a broader keyword, or the category facet; only then consult
    /v1/catalog
    or
    /graphql
    per
    references/gateway-api.md
    . A single miss is not evidence of absence.
  1. 从目标中提取 2~4 个简短关键词。网关要求每个关键词至少包含两个去除首尾空格后的字符,长度上限为 64。
  2. 运行确定性客户端。示例:
bash
python3 "$SKILL_DIR/scripts/search_plugin.py" search "memory" --limit 10 --pretty
python3 "$SKILL_DIR/scripts/search_plugin.py" suggest "memory"
  1. 应用请求中的筛选条件或档案默认条件:
bash
python3 "$SKILL_DIR/scripts/search_plugin.py" search "web" --grade S --min-score 80 --limit 10
python3 "$SKILL_DIR/scripts/search_plugin.py" search "feishu" --category automation --language TypeScript
  1. 当某个候选插件与目标高度相关时,获取其详细信息,包括本地化简介、亮点和增长证据:
bash
python3 "$SKILL_DIR/scripts/search_plugin.py" detail owner repo
  1. 如果结果为空或结果较弱,请使用同义词、更宽泛的关键词或分类分面重试;只有在此之后,才按照
    references/gateway-api.md
    中的说明访问
    /v1/catalog
    或
    /graphql
    。单次未命中不能证明目标不存在。

Step 3: Rank and present evidence

第 3 步:排序并呈现证据

  • Rank primarily by gateway
    score
    then
    grade
    , then
    stars
    ; demote
    archived
    or
    is_risky
    plugins and surface
    risk_note
    .
  • Present each candidate with:
    full_name
    , one-line description, score, grade, stars, category, tags, install kind and package name, official or featured placement, repository URL, and risk flags.
  • Include provenance in the result:
    data_version
    and
    as_of
    from the response, plus the
    pushed_at
    and
    last_synced_at
    freshness.
  • When the user wants a durable artifact, save the raw JSON under
    workspace.output_dir
    (or the current directory) and report the exact path.
  • 主要按照网关的
    score
    排序,其次是
    grade
    ,然后是
    stars
    ;降低
    archived
    或
    is_risky
    插件的排序,并显示
    risk_note
    。
  • 每个候选插件应展示:
    full_name
    、一行简介、评分、等级、星标、分类、标签、安装方式和包名称、官方或精选展示状态、仓库 URL 以及风险标记。
  • 在结果中包含来源溯源信息:响应中的
    data_version
    和
    as_of
    ,以及
    pushed_at
    和
    last_synced_at
    所反映的时效性。
  • 当用户需要持久化产物时,将原始 JSON 保存到
    workspace.output_dir
    或当前目录,并报告准确路径。

Step 4: Validate the deliverable

第 4 步:验证交付物

  • Verify every claim in the final answer comes from a live gateway response fetched in this run or from the saved artifact; cite
    data_version
    .
  • Verify completeness, factual support, and output paths; report remaining evidence gaps (for example unrated plugins with null score or grade).
  • Validate
    skill-card.yaml
    ,
    cases/cases.json
    , and
    pricing-card.yaml
    as the standard trust bundle for this Skill.
  • 验证最终回答中的每项声明均来自本次运行中获取的实时网关响应或已保存的产物,并引用
    data_version
    。
  • 验证完整性、事实依据和输出路径;报告剩余的证据缺口,例如评分为 null 或等级为 null 的未评分插件。
  • 验证
    skill-card.yaml
    、
    cases/cases.json
    和
    pricing-card.yaml
    ,确保它们构成该 Skill 的标准信任材料包。

References

参考资料

  • references/gateway-api.md
    — verified endpoint contract for the dshfind gateway.
  • references/skill-composition.md
    — nearby Skill group and handoff analysis.
  • references/user-profile.md
    — the shared
    user-profile/v1
    contract.
  • references/gateway-api.md
    ——已验证的 dshfind 网关端点契约。
  • references/skill-composition.md
    ——邻近 Skill 组及交接分析。
  • references/user-profile.md
    ——共享的
    user-profile/v1
    契约。

Dependencies

依赖项

  • Python 3.8+ (stdlib only, no pip packages) and network access to
    https://api.dshfind.com
    (public, no auth).
  • The OpenAPI document is published at
    https://dshfind.lovstudio.ai/openapi.json
    ; it describes the same endpoints.
  • No external Skills are required; sibling Skills are optional artifact-level handoffs only.
  • Python 3.8+(仅使用标准库,无需 pip 包)以及对
    https://api.dshfind.com
    的网络访问权限(公开,无需认证)。
  • OpenAPI 文档发布在
    https://dshfind.lovstudio.ai/openapi.json
    ,其中描述了相同的端点。
  • 不需要任何外部 Skill;同级 Skill 仅用于文件产物层面的可选交接。