raspberry-pi
Compact Linux board for IoT, prototyping, and edge computing
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o raspberry-pi.zip https://jpskill.com/download/22234.zip && unzip -o raspberry-pi.zip && rm raspberry-pi.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/22234.zip -OutFile "$d\raspberry-pi.zip"; Expand-Archive "$d\raspberry-pi.zip" -DestinationPath $d -Force; ri "$d\raspberry-pi.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
raspberry-pi.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
raspberry-piフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 1
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
raspberry-pi
目的
このスキルは、AIがRaspberry Piデバイスと連携してIoTタスクを実行できるようにします。これには、リモート管理、ハードウェアプロトタイピング、エッジコンピューティング操作などが含まれます。
使用場面
スマートホームでのセンサーの展開、データ処理用の軽量サーバーの実行、コンパクトなLinuxボード上での組み込みアプリケーションのテストなど、ハードウェアのセットアップを伴うシナリオでこのスキルを使用してください。
主な機能
- SSH接続を確立し、Raspberry Pi上でコマンドを実行します。
- GPIOピンなどのハードウェア設定を構成し、物理的な相互作用を可能にします。
- aptを介してソフトウェアのインストールと更新を管理します。
- エッジコンピューティングタスクのためにシステムリソースとログを監視します。
- Pythonライブラリと統合し、自動化を行います(例:ピン制御のためのRPi.GPIO)。
使用パターン
タスクを達成するには、まず$RASPI_HOSTや$RASPI_SSH_KEYのような環境変数を使用してSSH経由で認証します。次に、コマンドを直接実行するか、スクリプトを呼び出します。繰り返しのタスクには、コマンドをPython関数でラップします。常に続行する前にデバイスの接続性を確認してください。GPIO作業の場合、関連するライブラリをインポートし、ピンモードを明示的に設定します。
一般的なコマンド/API
- SSH経由で接続する:
ssh pi@$RASPI_HOST -i $RASPI_SSH_KEY - 設定ツールにアクセスする:
sudo raspi-config(ストレージのために--expand-rootfsフラグ付きの「Boot Options」のようなオプションを使用します) - PythonでGPIOピンを制御する:
import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) GPIO.setup(17, GPIO.OUT) GPIO.output(17, GPIO.HIGH) - パッケージを更新およびインストールする:
sudo apt update && sudo apt install -y package-name(例:Webサーバー用のapache2) - システムステータスを確認する: CPU温度を取得するには
vcgencmd measure_temp、リソース使用状況にはtop。 /boot/config.txtの構成形式: I2Cを有効にするにはdtparam=i2c_arm=onのような行を追加し、再起動します。
統合に関する注意点
他のシステムと統合する場合、環境に認証変数を設定します(例:export RASPI_HOST=raspberrypi.localおよびexport RASPI_SSH_KEY=/path/to/private.key)。APIのような対話には、スクリプト内でSSHラッパーを使用します。ネットワークの互換性を確保してください。ファイアウォールの背後にある場合は、SSH用に22番ポートなどのポートを転送します。IoTエコシステムの場合、mosquittoをインストールし、/etc/mosquitto/mosquitto.confにlistener 1883のような行を設定してMQTTブローカーとペアリングします。
エラー処理
SSHが失敗した場合は、ping $RASPI_HOSTで接続性を確認し、キーのパーミッション(例:chmod 600 $RASPI_SSH_KEY)をチェックしてください。GPIOエラーの場合、pip install RPi.GPIOでRPi.GPIOがインストールされていることを確認し、コード内でGPIO.errorのような例外を処理します。
try:
GPIO.setup(17, GPIO.OUT)
except RuntimeError as e:
print("Error: " + str(e) + " - Check user permissions")
aptの問題については、apt --fix-broken installを使用して依存関係を解決します。常にタイムスタンプ付きでエラーをログに記録してください(例:echo "$(date): Error message" >> error.log)。
使用例
-
GPIOピン17にLEDをセットアップして点滅させる: まず、
ssh pi@$RASPI_HOST -i $RASPI_SSH_KEYでSSH接続し、次にnano blink.pyでスクリプトファイルを作成し、以下を追加します。import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) GPIO.setup(17, GPIO.OUT) for _ in range(5): GPIO.output(17, True) time.sleep(1) GPIO.output(17, False) time.sleep(1)python blink.pyで実行し、LEDを点滅させます。 -
IoT監視用の基本的なWebサーバーをデプロイする: デバイスにSSH接続し、
sudo apt updateでパッケージを更新し、sudo apt install -y apache2でApacheをインストールします。次に、/var/www/html/index.htmlのデフォルトページを編集し、<h1>IoT Status: OK</h1>のようなコンテンツを追加します。ブラウザでhttp://$RASPI_HOST経由でアクセスし、tail -f /var/log/apache2/access.logでログを監視します。
グラフの関係
- クラスターに関連: iot
- 接続スキル: sensors(GPIO統合用)、actuators(ハードウェア制御用)、edge-computing(リソース監視用)
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
raspberry-pi
Purpose
This skill enables the AI to interact with Raspberry Pi devices for IoT tasks, including remote management, hardware prototyping, and edge computing operations.
When to Use
Use this skill for scenarios involving hardware setup, such as deploying sensors in a smart home, running lightweight servers for data processing, or testing embedded applications on a compact Linux board.
Key Capabilities
- Establish SSH connections to execute commands on Raspberry Pi.
- Configure hardware settings, like GPIO pins, for physical interactions.
- Manage software installations and updates via apt.
- Monitor system resources and logs for edge computing tasks.
- Integrate with Python libraries for automation, e.g., RPi.GPIO for pin control.
Usage Patterns
To accomplish tasks, first authenticate via SSH using environment variables like $RASPI_HOST and $RASPI_SSH_KEY. Then, run commands directly or invoke scripts. For repeated tasks, wrap commands in Python functions. Always check device connectivity before proceeding. For GPIO work, import relevant libraries and set pin modes explicitly.
Common Commands/API
- Connect via SSH:
ssh pi@$RASPI_HOST -i $RASPI_SSH_KEY - Access configuration tool:
sudo raspi-config(use options like "Boot Options" with flag--expand-rootfsfor storage) - Control GPIO pins in Python:
import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) GPIO.setup(17, GPIO.OUT) GPIO.output(17, GPIO.HIGH) - Update and install packages:
sudo apt update && sudo apt install -y package-name(e.g.,apache2for a web server) - Check system status:
vcgencmd measure_tempto get CPU temperature, ortopfor resource usage. - Config format for /boot/config.txt: Add lines like
dtparam=i2c_arm=onto enable I2C, then reboot.
Integration Notes
When integrating with other systems, set auth variables in your environment, e.g., export RASPI_HOST=raspberrypi.local and export RASPI_SSH_KEY=/path/to/private.key. For API-like interactions, use SSH wrappers in scripts. Ensure network compatibility; if behind a firewall, forward ports like 22 for SSH. For IoT ecosystems, pair with MQTT brokers by installing mosquitto and configuring via /etc/mosquitto/mosquitto.conf with lines like listener 1883.
Error Handling
If SSH fails, verify connectivity with ping $RASPI_HOST and check key permissions (e.g., chmod 600 $RASPI_SSH_KEY). For GPIO errors, ensure RPi.GPIO is installed via pip install RPi.GPIO and handle exceptions like GPIO.error in code:
try:
GPIO.setup(17, GPIO.OUT)
except RuntimeError as e:
print("Error: " + str(e) + " - Check user permissions")
For apt issues, use apt --fix-broken install to resolve dependencies. Always log errors with timestamps, e.g., via echo "$(date): Error message" >> error.log.
Usage Examples
-
Set up and blink an LED on GPIO pin 17: First, SSH in with
ssh pi@$RASPI_HOST -i $RASPI_SSH_KEY, then create a script file withnano blink.pyand add:import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) GPIO.setup(17, GPIO.OUT) for _ in range(5): GPIO.output(17, True) time.sleep(1) GPIO.output(17, False) time.sleep(1)Run it with
python blink.pyto toggle the LED. -
Deploy a basic web server for IoT monitoring: SSH into the device, update packages with
sudo apt update, install Apache viasudo apt install -y apache2, then edit the default page at/var/www/html/index.htmlby adding content like<h1>IoT Status: OK</h1>. Access it viahttp://$RASPI_HOSTin a browser, and monitor logs withtail -f /var/log/apache2/access.log.
Graph Relationships
- Related to cluster: iot
- Connected skills: sensors (for GPIO integration), actuators (for hardware control), edge-computing (for resource monitoring)