返回顶部
r

radxa-local-docs本地文档工具

Use when one Radxa skill should cover the full offline documentation workflow: detect the current board model, map it to the correct product series, deploy or update the local MDMaker documentation mirror under ~/.openclaw/MDMaker, and query board-specific offline docs before coding, debugging, or hardware operations.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.1
安全检测
已通过
88
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

radxa-local-docs

Radxa 本地文档

目的

将之前的 device-info、mdmaker-deploy 和 radxa-doc 功能整合为一个可发布的技能。

使用捆绑资源

  • - 运行 scripts/detect_device.sh,通过设备树、DMI、主机名和 /proc/cpuinfo 回退机制检测当前设备型号。
  • 当检测到或用户提供的型号需要映射到 Radxa 产品系列时,查阅 references/device-series-map.md。

工作流程

  1. 1. 首先检测当前主板型号。
  2. 如果检测失败或主机不是 Radxa 主板,则回退到用户提供的型号名称,而非自行猜测。
  3. 使用 references/device-series-map.md 将主板型号映射到 Radxa 系列。
  4. 检查本地文档镜像是否已存在于 ~/.openclaw/MDMaker/dist/zh/ 或 ~/.openclaw/MDMaker/dist/en/ 目录下。
  5. 如果用户要求部署或更新文档,则使用下面的 MDMaker 工作流程。
  6. 如果用户提出文档相关问题,在回答前先定位正确的语言目录、产品系列、型号目录和特定主题的 Markdown 文件。

MDMaker 工作流程

部署

bash
cd ~/.openclaw
git clone -b agent https://github.com/ZIFENG278/MDMaker.git
cd ~/.openclaw/MDMaker
python3 -m venv venv
source venv/bin/activate
pip install requests tqdm
python buildmddocs.py

原始文档源

优先使用上游 GitHub 源。仅当 GitHub 克隆或拉取失败时,才回退到国内 GitCode 镜像。

主要源:

bash
git clone https://github.com/radxa-docs/docs.git ~/.openclaw/MDMaker/radxa-docs

回退源:

bash
git clone https://gitcode.com/radxa-docs/docs.git ~/.openclaw/MDMaker/radxa-docs

如果 ~/.openclaw/MDMaker/radxa-docs/ 已存在且 GitHub 访问失败,则将现有仓库切换到 GitCode 并重试:

bash
cd ~/.openclaw/MDMaker/radxa-docs
git remote set-url origin https://gitcode.com/radxa-docs/docs.git
git pull

更新

bash
cd ~/.openclaw/MDMaker
source venv/bin/activate
python updatemddocs.py

预期路径

  • - 项目根目录:~/.openclaw/MDMaker/
  • 源仓库:~/.openclaw/MDMaker/radxa-docs/
  • 主要上游源:https://github.com/radxa-docs/docs.git
  • 国内上游镜像:https://gitcode.com/radxa-docs/docs.git
  • 中文文档:~/.openclaw/MDMaker/dist/zh/
  • 英文文档:~/.openclaw/MDMaker/dist/en/

如果镜像缺失且用户未要求部署,则报告缺少必要前提条件,而非编造文档答案。

离线查询工作流程

目录选择

  • - 首先选择 zh/ 或 en/。
  • 然后进入 dist//// 目录。
  • 常见章节包括 getting-started、hardware-design、low-level-dev、os-config、radxa-os、other-os、app-development 和 apps-deployment。

搜索策略

优先进行有针对性的文件查找,而非广泛扫描:

bash
find ~/.openclaw/MDMaker/dist/// -name .md
rg -n ~/.openclaw/MDMaker/dist///

对于引脚定义、接口、电源和原理图相关问题,使用 hardware-design。
对于安装、启动、网络和系统设置,使用 getting-started 和 os-config。
对于引导加载程序、设备树和底层平台细节,使用 low-level-dev。
对于软件栈和部署主题,使用 app-development 和 apps-deployment。

相对链接处理

当文档包含带有 ../ 的相对 .md 链接时,根据当前文档路径规范化链接,然后在同一 dist// 目录树中打开解析后的文件。

输出规则

  • - 引用本地文档时,注明具体的文件路径。
  • 明确说明答案是来自本地文档确认,还是基于型号映射推断。
  • 如果多个主板属于同一系列,仅根据检测输出或用户提供的主板名称等明确证据进行询问或推断。

安全规范

  • - 在没有证据的情况下,不要假设主板型号。
  • 本技能不执行刷写、分区、引导加载程序覆盖或 EEPROM 更改操作。
  • 除非用户明确要求部署或更新操作,否则保持命令低风险。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 radxa-docs-1776016156 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 radxa-docs-1776016156 技能

通过命令行安装

skillhub install radxa-docs-1776016156

下载

⬇ 下载 radxa-local-docs v1.0.1(免费)

文件大小: 3.87 KB | 发布时间: 2026-4-13 11:43

v1.0.1 最新 2026-4-13 11:43
radxa-local-docs 1.0.1

- Added device detection script (`scripts/detect_device.sh`) to reliably determine the current hardware model using multiple methods.
- Added Radxa device/model-to-series mapping reference (`references/device-series-map.md`) for precise board identification and offline doc routing.
- Bundled OpenAI agent config (`agents/openai.yaml`).
- Now combines device detection, model mapping, local documentation mirror deployment/update, and board-specific offline doc query into a single workflow.
- All model-to-series logic and local doc mirror procedures are maintained locally for robust offline support.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部