本文へ移動
cccskills
無料GitHub で公開

kernel-basics

Essential Zephyr RTOS kernel services. Covers thread lifecycle and priority, the logging subsystem for diagnostics, and the interactive shell for real-time hardware inspection and debugging. Trigger when writing application flows, adding logging to modules, or creating interactive CLI commands.

インストール方法を見る

含まれるファイル(7)

  • SKILL.md2.4 KB
  • assets/shell_command_template.c821 B
  • references/logging.md997 B
  • references/shell.md977 B
  • references/threads.md1.6 KB
  • scripts/log_summary.py1.8 KB
  • skill-meta.yaml479 B

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Zephyr Kernel Basics

Master the essential services that bring your Zephyr application to life.

Core Workflows

1. Threads & Scheduling

Create and manage multi-threaded application flows.

  • Reference: threads.md
  • Key Tools: K_THREAD_DEFINE, k_sleep, k_yield, Priorities.

2. Logging & Diagnostics

Implement layered logging for better observability and troubleshooting.

  • Reference: logging.md
  • Key Tools: LOG_MODULE_REGISTER, LOG_INF, LOG_ERR, Dynamic Filtering.

3. Interactive Shell (CLI)

Build powerful command-line interfaces for hardware and software inspection.

  • Reference: shell.md
  • Key Tools: SHELL_CMD_REGISTER, SHELL_STATIC_SUBCMD_SET_CREATE.

Quick Start (Logging)

#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(my_app, CONFIG_APP_LOG_LEVEL);

void my_fn(void) {
    LOG_INF("Hello from Zephyr!");
}

Quick Start (Threads)

K_THREAD_DEFINE(worker_tid, 1024, worker_fn, NULL, NULL, NULL, 5, 0, 0);

Automation Tools

  • log_summary.py: Parse Zephyr runtime logs and summarize counts by level/module.

Examples & Templates

Validation Checklist

  • Log output includes module tag and expected log level filtering.
  • At least one worker thread starts and runs at the intended priority.
  • Shell command registration appears in help output and executes without faults.
  • No blocking or mutex misuse appears in ISR-context paths.

Resources

  • References:
    • threads.md: Configuration and creation of kernel threads.
    • logging.md: Log levels, modules, and backends.
    • shell.md: Interactive command registration and subcommands.
  • Scripts:
    • log_summary.py: Runtime log summarizer for quick diagnostics.
  • Assets:
    • shell_command_template.c: Shell command registration template.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Custom board bringup for Zephyr RTOS using Hardware Model v2 (HWMv2). Covers directory structure, board.yml metadata, core configuration files (Kconfig, defconfig, CMake), and revision management. Trigger when creating new board definitions or porting Zephyr to custom hardware.

日本語の概要は準備中です。原文の説明を表示しています。

beriberikix/zephyr-agent-skills682026年5月19日 更新

Build system management for Zephyr RTOS. Covers West workspace initialization, manifest management, Sysbuild multi-image builds, Kconfig symbols, and CMake integration. Trigger when setting up workspaces, configuring builds, or troubleshooting build-time errors.

日本語の概要は準備中です。原文の説明を表示しています。

beriberikix/zephyr-agent-skills682026年5月19日 更新

Bluetooth Low Energy (BLE) integration for Zephyr RTOS. Covers GATT Services/Characteristics, GAP advertising, connection parameters, power optimization strategies, and the professional Send-When-Idle design pattern. Trigger when adding BLE connectivity, optimizing battery life for wireless devices, or implementing custom GATT profiles.

日本語の概要は準備中です。原文の説明を表示しています。

beriberikix/zephyr-agent-skills682026年5月19日 更新

IP networking fundamentals for Zephyr RTOS. Covers IoT protocol selection (LwM2M, CoAP, MQTT), IP stack configuration and trimming (IPv4/IPv6, UDP/TCP), and professional SDK integration as Zephyr modules using West manifests. Trigger when building cloud-connected applications, optimizing network memory usage, or integrating external cloud SDKs.

日本語の概要は準備中です。原文の説明を表示しています。

beriberikix/zephyr-agent-skills682026年5月19日 更新

USB and CAN connectivity for Zephyr RTOS. Covers USB device stack configuration (CDC ACM, HID, MSC), CAN controller integration, and professional USB-to-CAN adapter patterns including buffering and protocol packetization. Trigger when adding USB interfaces, implementing CAN bus communication, or building hardware diagnostic tools.

日本語の概要は準備中です。原文の説明を表示しています。

beriberikix/zephyr-agent-skills682026年5月19日 更新

Devicetree management for Zephyr RTOS. Covers syntax, bindings, overlays, Hardware Model v2 (HWMv2), and advanced node/property deletion patterns. Trigger when defining hardware topology, creating overlays, or mapping pins and peripherals.

日本語の概要は準備中です。原文の説明を表示しています。

beriberikix/zephyr-agent-skills682026年5月19日 更新

beriberikix のスキルをすべて見る

このスキルの問題を報告する