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 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_DIRvariable 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 headersfunctions-Environment.xml- Environment vars, files, timestamps, hostnamefunctions-Fake_Data_Generation.xml- Fake data generationfunctions-General.xml- Bytes, counter, deleted, ksuid, nanoid, uuid, random, range, snowflakefunctions-Message_Info.xml- Batch index, content, error, metadata, span links, tracing IDs- etc.
The function XML tag format:
nameattribute - function nameparamsattribute - comma-separated list of parameters with types, format<name>:<type>or empty string if no parameters- body - description of function purpose and usage
exampleXML subtagsummaryattribute (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, encryptionmethods-General.xml- Basic operations, type checkingmethods-GeoIP.xml- GeoIP lookupsmethods-JSON_Web_Tokens.xml- JWT operationsmethods-Number_Manipulation.xml- Arithmetic, rounding, formattingmethods-Object___Array_Manipulation.xml- Filtering, mapping, sorting, mergingmethods-Parsing.xml- JSON, CSV, XML, protocol buffer parsingmethods-Regular_Expressions.xml- Regex matching and replacementmethods-SQL.xml- SQL operationsmethods-String_Manipulation.xml- Case, trimming, splitting, formattingmethods-Timestamp_Manipulation.xml- Parsing, formatting, timezone conversionmethods-Type_Coercion.xml- Type conversions- etc.
The method XML tag format:
nameattribute - function nameparamsattribute - comma-separated list of parameters with types, format<name>:<type>or empty string if no parameters- body - description of function purpose and usage
exampleXML subtagsummaryattribute (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
Установить bloblang-authoring в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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 запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic