rozenite-agent

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Rozenite Skill

Rozenite Skill

Ground Truths

基础准则

  • Agent work is session-scoped. Reuse one active session across related commands.
  • Always check for an existing session first:
    rozenite agent session list
  • Create a session only when needed:
    rozenite agent session create
  • Pin to a specific device only when explicitly requested:
    1. rozenite agent targets
    2. rozenite agent session create --deviceId <id>
  • Pass
    --session <id>
    on every domain command.
  • Always list domains before acting so you have the up-to-date view for the current session:
    rozenite agent domains --session <id>
  • Prefer
    --limit 20
    and cursor pagination for list commands.
  • Agent的工作基于会话范围。在相关命令间复用一个活跃会话。
  • 始终先检查现有会话:
    rozenite agent session list
  • 仅在需要时创建会话:
    rozenite agent session create
  • 仅在明确要求时绑定到特定设备:
    1. rozenite agent targets
    2. rozenite agent session create --deviceId <id>
  • 在每个领域命令中传递
    --session <id>
    参数。
  • 执行操作前始终先列出领域,以便获取当前会话的最新视图:
    rozenite agent domains --session <id>
  • 对于列表类命令,优先使用
    --limit 20
    和游标分页。

Workflow

工作流程

  1. Ensure there is an Agent session.
  2. Run
    rozenite agent domains --session <id>
    .
  3. Pick the domain that matches the task.
  4. Read the relevant reference below.
  5. Execute
    tools
    ,
    schema
    , and
    call
    for that domain.
  1. 确保存在一个Agent会话。
  2. 运行
    rozenite agent domains --session <id>
  3. 选择与任务匹配的领域。
  4. 阅读下方相关参考文档。
  5. 针对该领域执行
    tools
    schema
    call
    命令。

Commands

命令

  • rozenite agent session create
  • rozenite agent <domain> tools --session <id>
  • rozenite agent <domain> schema -t <name> --session <id>
  • rozenite agent <domain> call -t <name> -a '<json>' --session <id>
  • rozenite agent session create
  • rozenite agent <domain> tools --session <id>
  • rozenite agent <domain> schema -t <name> --session <id>
  • rozenite agent <domain> call -t <name> -a '<json>' --session <id>

Built-in Domains

内置领域

  • console
    : Read, filter, paginate console messages; clear log buffer.
  • network
    : Record HTTP/HTTPS traffic; list requests, inspect details/bodies, analyze timing.
  • react
    : Search and traverse component tree; read props, state, hooks; record render timelines (profiling).
  • performance
    : Start/stop trace, export to file (file-backed).
  • memory
    : Heap snapshots and allocation sampling; file-backed exports.
  • console
    :读取、过滤、分页控制台消息;清除日志缓冲区。
  • network
    :记录HTTP/HTTPS流量;列出请求、查看详情/请求体、分析时序。
  • react
    :搜索和遍历组件树;读取props、state、hooks;记录渲染时间线(性能分析)。
  • performance
    :启动/停止追踪,导出到文件(基于文件存储)。
  • memory
    :堆快照和分配采样;基于文件存储的导出。

Dynamic Domains

动态领域

  • Additional domains can appear at runtime when Rozenite plugins are installed in the app.
  • These domains are not fixed ahead of time, so always trust
    rozenite agent domains --session <id>
    over memory.
  • Domain entries include metadata such as
    id
    ,
    kind
    ,
    pluginId
    ,
    slug
    , and
    description
    .
  • Treat entries with
    "kind":"plugin"
    as dynamic plugin/app domains.
  • 在应用中安装Rozenite插件后,运行时可能会出现额外的领域。
  • 这些领域并非预先固定,因此始终以
    rozenite agent domains --session <id>
    的结果为准,而非记忆内容。
  • 领域条目包含
    id
    kind
    pluginId
    slug
    description
    等元数据。
  • "kind":"plugin"
    的条目视为动态插件/应用领域。

Learning About Plugins

了解插件

When you encounter a domain with
"kind":"plugin"
(or any domain you need to use):
  1. Check References below — If this skill lists a
    domains/<name>.md
    (or similar) reference that matches the domain (by slug, pluginId, or obvious name), read that file and follow it for tools, semantics, and workflow.
  2. No reference file — If there is no matching reference for that plugin:
    • Run
      rozenite agent <domain> tools --session <id>
      to get the live tool list.
    • For each tool you plan to call, run
      rozenite agent <domain> schema -t <toolName> --session <id>
      to learn arguments and return shape.
    • Then run
      rozenite agent <domain> call -t <toolName> -a '<json>' --session <id>
      as needed.
Always start from
rozenite agent domains --session <id>
to see
description
,
pluginId
, and
slug
; use those to match against the reference filenames or to drive discovery when no reference exists.
当你遇到
"kind":"plugin"
的领域(或任何你需要使用的领域)时:
  1. 查看下方参考文档 — 如果本Skill列出了与该领域(通过slug、pluginId或明确名称匹配)对应的
    domains/<name>.md
    (或类似)参考文档,请阅读该文件并遵循其中的工具、语义和工作流程说明。
  2. 无参考文件 — 如果该插件没有匹配的参考文档:
    • 运行
      rozenite agent <domain> tools --session <id>
      获取实时工具列表。
    • 对于你计划调用的每个工具,运行
      rozenite agent <domain> schema -t <toolName> --session <id>
      了解参数和返回结构。
    • 然后根据需要运行
      rozenite agent <domain> call -t <toolName> -a '<json>' --session <id>
始终从
rozenite agent domains --session <id>
开始,查看
description
pluginId
slug
;使用这些信息匹配参考文件名,或在无参考文档时进行探索。

References

参考文档

  • domains/console.md
  • domains/network.md
  • domains/react.md
  • domains/memory.md
  • domains/performance.md
  • domains/react-navigation.md
  • domains/mmkv.md
  • domains/console.md
  • domains/network.md
  • domains/react.md
  • domains/memory.md
  • domains/performance.md
  • domains/react-navigation.md
  • domains/mmkv.md