Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

bloblang-authoring

БесплатноЗапускает вложенные скриптыНе проверен

This skill should be used when users need to create or debug Bloblang transformation scripts. Trigger when users ask about transforming data, mapping fields…

redpanda-dataот redpanda-data★ 8 818 звёзд на GitHub16 установок в других каталогах

Об этом скилле

Redpanda Connect Bloblang Script Generator

Create working, tested Bloblang transformation scripts from natural language descriptions.

Objective

Generate a Bloblang (blobl) script that correctly transforms the user's input data according to their requirements. The script MUST be tested before presenting it.

Setup

This skill requires rpk rpk connect, python3, and jq. See the SETUP for installation instructions.

Tools

Script format-bloblang.sh

Generates category-organized Bloblang reference files in XML format. Run once at the start of each session before searching for functions/methods.

# Usage:
./resources/scripts/format-bloblang.sh
  • No arguments
  • Generates category files organized by type (e.g., functions-General.xml, methods-String_Manipulation.xml)
  • Outputs generated files to a versioned directory
  • Outputs the directory path to stdout (capture in BLOBLREF_DIR variable for later use)
  • Each XML file contains structured function/method definitions with parameters, descriptions, and examples

Functions

Generated function files have functions-<Category>.xml names and contain functions relevant to that category.

  • functions-Encoding.xml - Schema registry headers
  • functions-Environment.xml - Environment vars, files, timestamps, hostname
  • functions-Fake_Data_Generation.xml - Fake data generation
  • functions-General.xml - Bytes, counter, deleted, ksuid, nanoid, uuid, random, range, snowflake
  • functions-Message_Info.xml - Batch index, content, error, metadata, span links, tracing IDs
  • etc.

The function XML tag format:

  • name attribute - function name
  • params attribute - comma-separated list of parameters with types, format <name>:<type> or empty string if no parameters
  • body - description of function purpose and usage
  • example XML subtag
    • summary attribute (optional) - brief description of the example
    • body - code block demonstrating usage

Example function definition:

<function name="random_int" params="seed:query expression, min:integer, max:integer">
Generates a pseudo-random non-negative 64-bit integer.
Use this for creating random IDs, sampling data, or generating test values.
Provide a seed for reproducible randomness, or use a dynamic seed like `timestamp_unix_nano()` for unique values per mapping instance.

Optional `min` and `max` parameters constrain the output range (both inclusive).
For dynamic ranges based on message data, use the modulo operator instead: `random_int() % dynamic_max + dynamic_min`.
<example>
root.first = random_int()
root.second = random_int(1)
root.third = random_int(max:20)
root.fourth = random_int(min:10, max:20)
root.fifth = random_int(timestamp_unix_nano(), 5, 20)
root.sixth = random_int(seed:timestamp_unix_nano(), max:20)
</example>
<example summary="Use a dynamic seed for unique random values per mapping instance.">
root.random_id = random_int(timestamp_unix_nano())
root.sample_percent = random_int(seed: timestamp_unix_nano(), min: 0, max: 100)
</example>
</function>

Methods

Generated method files have methods-<Category>.xml names and contain methods relevant to that category.

  • methods-Encoding_and_Encryption.xml - Base64, compression, hashing, encryption
  • methods-General.xml - Basic operations, type checking
  • methods-GeoIP.xml - GeoIP lookups
  • methods-JSON_Web_Tokens.xml - JWT operations
  • methods-Number_Manipulation.xml - Arithmetic, rounding, formatting
  • methods-Object___Array_Manipulation.xml - Filtering, mapping, sorting, merging
  • methods-Parsing.xml - JSON, CSV, XML, protocol buffer parsing
  • methods-Regular_Expressions.xml - Regex matching and replacement
  • methods-SQL.xml - SQL operations
  • methods-String_Manipulation.xml - Case, trimming, splitting, formatting
  • methods-Timestamp_Manipulation.xml - Parsing, formatting, timezone conversion
  • methods-Type_Coercion.xml - Type conversions
  • etc.

The method XML tag format:

  • name attribute - function name
  • params attribute - comma-separated list of parameters with types, format <name>:<type> or empty string if no parameters
  • body - description of function purpose and usage
  • example XML subtag
    • summary attribute (optional) - brief description of the example
    • body - code block demonstrating usage

Example method definition:

<method name="ts_format" params="format:string, tz:string">
Formats a timestamp into a string using the specified format layout.
<example>
root.formatted = this.timestamp.ts_format("2006-01-02T15:04:05Z07:00")
</example>
</method>

Grep Search

Lists Available functions and methods without loading full files.

# List all available functions and methods by name
grep -hE '<(function|method) name=' "$BLOBLREF_DIR"

# Search by keyword (searches names, descriptions, params, examples)
grep -i "timestamp" "$BLOBLREF_DIR"

# Search by parameter name (e.g., find all with "format" parameter)
grep 'pa
Полный SKILL.md на GitHub

Установить bloblang-authoring в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

SETUP.mdresources/scripts/format-bloblang.pyresources/scripts/format-bloblang.shresources/scripts/rpk-version.shresources/scripts/test-blobl.sh

FAQ

Что делает скилл bloblang-authoring?

This skill should be used when users need to create or debug Bloblang transformation scripts. Trigger when users ask about transforming data, mapping fields, parsing JSON/CSV/XML, converting timestamps, filtering arrays, or mention "bloblang", "blobl", "mapping processor", or describe any data transformation need like "convert this to that" or "transform my JSON".

Как установить скилл bloblang-authoring?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл bloblang-authoring запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить bloblang-authoring с