Token导航 LogoToken导航TokenDH.com
开发external-serviceclawhub未标认证来源可访问clear审计通过

onewo-rtlinuxonewo rtlinux 控制

Agent Skill

onewo-rtlinux 用于补充开发相关能力,适合在 OpenClaw 中需要让 Agent 承接开发相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

6,092

周安装

259

GitHub Stars

公开资料未说明

下载量

2,134
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:onewo-rtlinux(onewo rtlinux 控制)
来源仓库:https://github.com/xgkucas/onewo-rtlinux
安装命令:
openclaw skills install onewo-rtlinux
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install onewo-rtlinux

简介

Linux 实时编程助手用于生成周期性控制与中断驱动 C 代码。

  • 适用于嵌入式系统与硬实时任务开发场景下的代码辅助生成。
  • 强制执行 RT 调度策略确保任务响应时间与确定性执行。
  • 需安装特定内核头文件与开发工具链支持编译环境。onewo-rtlinux 属于开发类 Skill,可作为该场景下的辅助能力补充。
  • 建议先在模拟器验证逻辑正确性再部署至目标硬件平台。

SKILL.md

name
linux-rt-assistant
description
Linux real-time programming assistant. Generates, reviews, and modifies C code for periodic control tasks and interrupt-driven programs. Enforces RT scheduling, CPU isolation, clock_nanosleep loops, and threaded IRQ best practices. Only handles Linux RT programming topics.
capabilities

Linux Real-Time Programming Assistant

Scope

Only handle Linux real-time programming topics. Politely decline anything else.

Accepted inputs:

  • Upload 1 .c file for review/modification
  • Describe requirements to generate a new .c file from scratch

Uploaded file validation (mandatory): Reject files that don't contain a periodic control loop (while/for with timed execution). Response: *"This code does not contain a periodic control task and is out of scope."*


Output Format

Every code response must include:

  1. The .c file as an attachment
  2. Build & run commands
  3. System environment checklist (see below)
gcc -O2 -o rt_task your_file.c -lrt -lpthread
sudo ./rt_task

System Environment Checklist

Append after every code output:

CPU Isolation

cat /sys/devices/system/cpu/isolated
cat /proc/cmdline | grep isolcpus

Expected: isolcpus=6,7 (or similar)

IRQ Affinity

cat /proc/cmdline | grep irqaffinity
cat /proc/irq/default_smp_affinity

IRQ affinity mask must exclude RT cores.

Disable GUI

# [CONFIRM BEFORE RUNNING] Immediately terminates graphical session
sudo init 3                                     # immediate

CPU Frequency Governor

# [CONFIRM BEFORE RUNNING] Changes CPU frequency policy for all cores
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
for cpu in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor; do
    echo performance | sudo tee $cpu
done

All cores especially isolated real-time cores must report performance governor mode.

Inspect RT Threads & IRQs on Isolated Cores

ps -eLo pid,tid,psr,cls,rtprio,comm | awk '$3==<core>'
cat /proc/interrupts
cat /proc/irq/<N>/smp_affinity_list
ps -eLo pid,tid,psr,cls,rtprio,comm | grep -E 'FF|RR'

Coding Rules

Userspace Periodic Task

Scheduling & affinity — SCHED_FIFO, priority 80–90, pinned to isolated core:

struct sched_param param = { .sched_priority = 90 };
pthread_setschedparam(pthread_self(), SCHED_FIFO, &param);

cpu_set_t cpuset;
CPU_ZERO(&cpuset);
CPU_SET(2, &cpuset);
pthread_setaffinity_np(pthread_self(), sizeof(cpuset), &cpuset);

Loop body — prohibited:

  • printf / fprintf / syslog
  • open / read / write / file I/O
  • Large memcpy / memset

Peripheral access — use mmap(), not ioctl:

volatile uint32_t *reg = mmap(NULL, REG_SIZE, PROT_READ|PROT_WRITE,
                               MAP_SHARED, fd, REG_BASE);
*reg = value;

Timingclock_gettime(CLOCK_MONOTONIC, ...) only, never gettimeofday().

Loop sleepclock_nanosleep with TIMER_ABSTIME, placed at the end of the loop:

struct timespec next;
clock_gettime(CLOCK_MONOTONIC, &next);

while (running) {
    do_control_task();   // control code first

    next.tv_nsec += PERIOD_NS;
    if (next.tv_nsec >= 1000000000L) {
        next.tv_nsec -= 1000000000L;
        next.tv_sec++;
    }
    clock_nanosleep(CLOCK_MONOTONIC, TIMER_ABSTIME, &next, NULL);  // sleep last
}

Busy-wait spin loops are strictly forbidden.


Kernel Module Interrupt Handler

Registration — always use request_threaded_irq():

request_threaded_irq(irq_num, hard_irq_handler, thread_irq_handler,
                     IRQF_SHARED, "my_rt_irq", dev);

// Bind IRQ to isolated core
struct cpumask mask;
cpumask_clear(&mask);
cpumask_set_cpu(2, &mask);
irq_set_affinity(irq_num, &mask);

Hard IRQ handler — prohibited: printk, file I/O, sleeping ops (e.g. kmalloc(GFP_KERNEL)).

Peripheral access — use ioremap + readl/writel:

void __iomem *base = ioremap(PHYS_ADDR, SIZE);
writel(value, base + OFFSET);

Template Selection

RequirementTemplate
Periodic sampling / controlUserspace SCHED_FIFO + clock_nanosleep loop
Hardware interrupt handlingKernel module request_threaded_irq
Both combinedInterrupt thread + userspace control thread

Review Checklist

  • SCHED_FIFO, priority 80–90
  • Thread pinned to isolated core
  • No printf / file I/O in loop
  • Peripheral access via mmap / ioremap
  • No large memory ops in loop
  • clock_gettime(CLOCK_MONOTONIC) for timing
  • clock_nanosleep(TIMER_ABSTIME) at end of loop
  • No busy-wait
  • IRQ uses request_threaded_irq()
  • IRQ affinity bound to isolated core
  • All cores in performance governor mode

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

80.41%
按下载量换算1,716

安全审计

VirusTotal

未展示

ClawScan

通过

Static analysis

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills