en un clic
x-protocol
// xProtocol是一个自定义协议序列化/反序列化工具,用户可以编辑自己的协议格式,可以控制消息的发送,可以解析接收到的消息。支持json格式的消息和二进制格式的消息体(负载)。用户要求修改协议定义、编辑消息内容、发送消息或解析接收消息时使用此技能。
// xProtocol是一个自定义协议序列化/反序列化工具,用户可以编辑自己的协议格式,可以控制消息的发送,可以解析接收到的消息。支持json格式的消息和二进制格式的消息体(负载)。用户要求修改协议定义、编辑消息内容、发送消息或解析接收消息时使用此技能。
使用本项目的 CMake 工作流构建 xTools 或指定的 X_APP 目标。当用户要求编译、重新构建或生成打包产物时使用此技能。
Generates standalone Markdown reference documentation for any Qt/C++ source files — Qt Widgets classes, Qt Quick backends, Qt/C++ modules, plain C++ utilities, structs, free-function headers, and entry points like main.cpp. Use this skill to document any .h or .cpp file: Qt classes, plain C++ code, utility helpers, or application startup files. Triggers on: "document this class", "write docs for my C++", "document main.cpp", "C++ API docs", "document my Qt app", or whenever C++ or header files are provided and documentation is needed. Works with single files, pasted code, or entire project folders. DO NOT use if the user asks for QDoc format output.
Invoke when the user asks to review, check, audit, or look over Qt6 C++ code — or suggest before committing. Runs deterministic linting (60+ rules) then six parallel deep- analysis agents covering model contracts, ownership, threading, API correctness, error handling, and performance. Reports only high-confidence issues (>80/100) with structured mitigations. Read-only — never modifies code.
Generates standalone Markdown reference documentation for QML components and applications. Use this skill whenever you want to document QML files, create API reference docs for a QML component or module, document a Qt Quick application, or produce developer-facing documentation from .qml source code. Triggers on: "document this QML", "write docs for my QML", "create reference docs", "document QML component", "QML API docs", "document my Qt Quick component", "document my Qt app", or any time one or more .qml files are provided and documentation is needed. Works with single files, pasted code, or entire project folders. DO NOT use if the user asks for QDoc format output.
Invoke when the user asks to review, check, audit, or look over Qt6 QML code -- or suggest before committing. Runs deterministic linting (47+ rules) then six parallel deep- analysis agents covering bindings, layout, loaders, delegates, states, and performance. Optionally invokes system qmllint for type-level checks. Reports only high-confidence issues (>80/100) with structured mitigations. Read-only -- never modifies code.
Applies QML best practices when producing or working with QML source code. Use whenever QML code is the primary subject: writing, reviewing, fixing, refactoring, optimizing, or debugging QML files, components, or bindings. Do NOT trigger for purely conversational QML questions where no code is produced or examined (e.g. "explain how anchors work").
| name | x-protocol |
| description | xProtocol是一个自定义协议序列化/反序列化工具,用户可以编辑自己的协议格式,可以控制消息的发送,可以解析接收到的消息。支持json格式的消息和二进制格式的消息体(负载)。用户要求修改协议定义、编辑消息内容、发送消息或解析接收消息时使用此技能。 |
xProtocol是一个自定义协议序列化/反序列化工具,用户可以编辑自己的协议格式,可以控制消息的发送,可以解析接收到的消息。支持json格式的消息和二进制格式的消息体(负载)。当用户要求修改协议定义、编辑消息内容、发送消息或解析接收消息时使用此技能。
详见 协议工具需求文档;如果你无法找到此文档,终止技能执行并提示用户提供需求文档链接。
协议工具的核心代码位于 src/private/protocol/protocol 目录下,主要包含以下文件:
./protocol
├── protocolcommon.cpp // 协议工具公共函数实现
├── protocolcommon.h // 协议工具公共函数声明,如数据类型转换、校验函数等
├── protocolmessageview.cpp // 消息视图实现
├── protocolmessageview.h // 消息视图类声明(消息负载的解析显示/用户交互)
├── protocolmessageview.ui // 消息视图设计文件
├── protocolpropertyview.cpp // 协议属性视图实现
├── protocolpropertyview.h // 协议属性视图类声明
├── protocoltreefilter.cpp // 协议树过滤器实现
├── protocoltreefilter.h // 协议树过滤器类声明
├── protocoltreemodel.cpp // 协议树模型实现
├── protocoltreemodel.h // 协议树模型类声明
├── protocoltreeview.cpp // 协议树视图实现
├── protocoltreeview.h // 协议树视图类声明
└── readme.md // 协议工具功能需求文档
你不能修改模块外的任何代码,只能修改此目录下的代码。