本文へ移動
cccskills
無料GitHub で公開日本語紹介

blockly-best-practices

BlocklyやABSプログラムの編集で、必要なライブラリ情報を確認し、ワークスペースへの反映と変更に応じた検証を進めます。

原文原文の説明を見る

Aily Blockly implementation workflow for scoped library evidence, ABS editing, workspace synchronization, and focused validation. Use for creating or modifying Blockly/ABS programs.

ailyProject/aily-blocklyスター 3,859(GitHub 3,859 + cccskills 0)

実行スコア 未検証

インストール方法を見る

こんなときに便利

  • 既存のBlocklyプログラムを変更したいとき
  • ABS編集を画面に反映したいとき
  • 必要な範囲でビルドを確認したいとき

日本語での紹介

できること

既存のBlocklyプロジェクトで、プログラムを作成または変更する作業を支援します。現在のボードやインストール済みライブラリなど、プロジェクトに示された情報を前提にし、依頼に必要なライブラリだけを調べます。編集の中心となる project.abs を小さく変更し、更新内容をBlocklyのワークスペースへ反映します。変更の複雑さに応じて構造を確認し、必要なら生成コードの構文チェックやビルドも行います。

こんなときに便利

すでに開いているBlocklyプロジェクトに機能を追加したいときや、ABSの内容を直して画面上のブロックにも反映したいときに向いています。センサーやボード固有の機能など、ライブラリやピンの根拠を確認しながら実装したい場面にも使えます。

使い方の例

  • 「このBlocklyプログラムにセンサーの読み取り処理を追加してください」
  • 「ABSを修正して、ワークスペースに反映し、構文を確認してください」

注意点

新しいプロジェクトの選定や作成は対象外です。ボードの機能や既定ピンはボード情報を参照し、ライブラリのブロック構造が不明な場合は関連資料を確認します。ワークスペースへの取り込みで警告やブロックの失敗が残る場合は、完了とは扱いません。

この紹介文は、公開されている SKILL.md をもとに AI(OpenAI Codex)が作成しました。正確な仕様は下の原文を確認してください。

含まれるファイル(1)

  • SKILL.md3.8 KB

SKILL.md(原文)

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

Blockly Implementation Workflow

Use this skill only for implementing or modifying a Blockly/ABS program. Project selection and creation belong to the blockly-project-planning skill.

1. Start from runtime facts

  • Treat the injected project path, current board, installed library list, readme_ai.md references, and project.abs path as current runtime facts.
  • Do not call tools merely to rediscover those facts.
  • Treat project.abs as the canonical editable Blockly source. Generated .ino/C++ is derived output used for diagnostics, not the normal edit target.

2. Gather only task-relevant evidence

  • Identify the smallest set of libraries needed for the current feature. Do not inspect every installed library or add lib-core-* packages speculatively.
  • For each relevant installed library, call analyzeLibrary with mode="auto" first.
  • When it returns a readme_ai.md reference, read that file. The README is usually sufficient, but it is not an absolute stopping point.
  • If the README is missing, incomplete, contradictory, or does not answer the current question, escalate narrowly:
    1. inspect the relevant block.json for block types, fields, inputs, and args0 order;
    2. inspect generator.js only when generated-code semantics remain unclear;
    3. inspect the minimum native source needed only when underlying library behavior remains unresolved.
  • Stop reading once the evidence answers the current implementation question.

3. Resolve board facts through the board capability source

  • Use get_board_parameters for GPIO, ADC, PWM, UART, I2C, SPI, builtin LEDs, and other board defaults. Its board.json result is authoritative.
  • Pinmap data describes schematic terminals and connection geometry. Do not use it as the source of MCU capability or default-pin facts.
  • Use schematic/pinmap capabilities only when the request actually requires wiring or a connection diagram.

4. Edit the canonical ABS source

  1. Read project.abs directly. The host synchronizes the visible Blockly workspace to this file before a submitted turn.
  2. Use syncAbs action="export" only if the workspace may have changed after the turn began or a status check shows drift.
  3. Make the smallest coherent ABS edit. Preserve unrelated blocks and structure.
  4. Use syncAbs action="import" to apply the updated ABS to the visible workspace.
  5. Treat parse warnings, failed blocks, degraded text expressions, or partial imports as failed validation and repair them before continuing.

Load abs-syntax-reference when block argument order, statement inputs, nested value blocks, or other non-trivial ABS grammar is involved. Do not guess positional arguments; verify them from the selected library evidence.

5. Validate immediately

  • Check the imported workspace/ABS structure after a non-trivial change.
  • Run lint for generated-code syntax validation when appropriate.
  • Run buildProject when the task requires a compile result.
  • If validation fails, use the nearest error and the smallest relevant source as the next evidence anchor. Do not restart broad project exploration.

Completion criteria

  • The visible workspace reflects the intended ABS structure.
  • No ABS import warning or failed block remains.
  • Requested focused validation passes, or the remaining blocker is reported precisely.
  • Do not claim completion from compiler success alone when the Blockly import was partial or structurally degraded.

レビュー

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

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

abs-syntax-reference

無料概要あり

Aily BlocklyのABSでブロックの接続形式や引数順、値・変数の書き方を確認し、条件分岐やループを含むブロックコードを記述するための構文リファレンスです。

  • ABSの引数順を確認したいとき
  • 条件分岐やループを記述したいとき
  • Blocklyコードの構文を調べたいとき
ailyProject/aily-blockly3,8592026年10月26日 更新

blockly-project-planning

無料概要あり

新しいBlocklyプロジェクトの候補ボードやライブラリを調べ、配線や検証手順を含む計画を提示して選択を促します。

  • Blocklyで新規プロジェクトを始めたいとき
  • ボードやライブラリを比較したいとき
  • センサーの構成を計画したいとき
ailyProject/aily-blockly3,8592026年10月26日 更新

chronicle

無料概要あり

過去のチャット履歴を検索し、以前の決定やツール実行、作業内容、利用上の工夫を確認できます。必要に応じて履歴の検索用インデックスも再構築します。

  • 以前の会話で決めたことを探したいとき
  • 過去に使ったツールやファイルを調べたいとき
  • 最近のプロジェクト履歴をまとめたいとき
ailyProject/aily-blockly3,8592026年10月26日 更新

handoff

無料概要あり

会話の要点や未完了の作業、参照すべき資料を一時ディレクトリの引き継ぎ文書にまとめ、次のエージェントが続きから作業できるようにします。

  • 別のエージェントに作業を引き継ぎたいとき
  • 新しいセッション用に経緯を整理したいとき
  • 既存資料を重複させず進捗をまとめたいとき
ailyProject/aily-blockly3,8592026年10月26日 更新

improve

無料概要あり

コードベースを読み取り専用で調査し、バグやセキュリティ、性能、テスト、技術的負債などの改善点を優先順位付きで整理して、別の担当者が実行できる計画にまとめます。

  • コードベースの課題を監査したいとき
  • 修正作業を別エージェントに渡したいとき
  • ロードマップ候補を根拠付きで検討したいとき
ailyProject/aily-blockly3,8592026年10月26日 更新

library-migration-guide

無料概要あり

ArduinoやESP32のライブラリをAily Blockly向けに変換するため、公開APIの分析からブロック定義、コード生成、ボード対応、パッケージ構成までの手順を確認できます。

  • ArduinoライブラリをBlockly用に変換したいとき
  • ハードウェアAPIをブロック化したいとき
  • ボード別の設定と生成コードを整えたいとき
ailyProject/aily-blockly3,8592026年10月26日 更新

ailyProject のスキルをすべて見る

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