Установка
SKILL.md
Serdes YAML Edit Skill
Golden Rule
Run both checkers after every edit. No exceptions. Do not batch multiple edits before validating.
clojure -M:run:ee --mode checker --checker structural --export /path/to/export-dir
clojure -M:run:ee --mode checker --checker cards --export /path/to/export-dir
If either checker fails, fix the issue before making further edits.
Portable References
Serdes YAML uses portable references instead of integer IDs. This is the most important concept for editing.
Database references
String name: "Sample Database"
Table references
Array of [database, schema, table]:
table_id:
- Sample Database
- PUBLIC
- ACCOUNTS
Field references
Array of [database, schema, table, field]:
id:
- Sample Database
- PUBLIC
- ACCOUNTS
- EMAIL
Field refs in queries
field_ref:
- field
- - Sample Database
- PUBLIC
- ACCOUNTS
- EMAIL
- null
The outer array is [field, <field-path>, <options>]. The options are usually null.
Card references
Entity ID string (21 characters): "Qk5TgsNx4ubXIUtsQmT8G"
Source table in queries
dataset_query:
database: Sample Database
query:
source-table:
- Sample Database
- PUBLIC
- ACCOUNTS
type: query
Safe Edits (low risk)
These rarely break validation:
name- card/dashboard display namedescription- card/dashboard descriptiondisplay- visualization type (table, bar, line, pie, etc.)visualization_settings- chart configurationarchived- true/falsecollection_id- move to a different collection (use entity_id of target collection, or null for root)
Structural Edits (must match schema)
These must use valid portable refs and will be caught by the cards checker if wrong:
dataset_query- the query definitionresult_metadata- column metadata (must match the query's output columns)table_id- must reference a table that exists in the exportdatabase_id- must reference a database that exists in the export
Editing result_metadata
Each entry in result_metadata describes an output column. When changing a query's source table or fields, you must update result_metadata to match. Each field entry needs at minimum:
name- column name (e.g.,EMAIL)base_type- Metabase type (e.g.,type/Text,type/Integer,type/DateTime)display_name- human-readable namefield_ref- portable field referenceid- portable field pathtable_id- portable table pathsource- usuallyfields
Common Operations
Rename a card
Change name: at the top level. Safe, no ref changes needed.
Change a card's source table
Update all of these consistently:
table_id- top-leveldataset_query.query.source-table- in the queryresult_metadata- every field entry'sid,field_ref, andtable_id
Add a filter to a structured query
dataset_query:
database: Sample Database
query:
source-table:
- Sample Database
- PUBLIC
- ORDERS
filter:
- ">"
- - field
- - Sample Database
- PUBLIC
- ORDERS
- TOTAL
- null
- 100
type: query
Change visualization type
display: bar # was: table
Valid types: table, bar, line, pie, scalar, row, area, combo, scatter, funnel, map, pivot, progress, gauge, waterfall
Looking Up Valid References
The export directory IS the reference catalog. When you need to find the correct name for a database, table, or field, look it up directly from the export.
List valid databases
ls databases/
Each entry is a database name (directory for serdes format, .yaml for concise format).
List valid tables for a database
ls databases/<db-name>/schemas/<schema>/tables/
Example: ls databases/Sample\ Database/schemas/PUBLIC/tables/ shows ACCOUNTS, ORDERS, PRODUCTS, etc.
List valid fields for a table
ls databases/<db-name>/schemas/<schema>/tables/<table>/fields/
Example: ls databases/Sample\ Database/schemas/PUBLIC/tables/PRODUCTS/fields/ shows CATEGORY.yaml, TITLE.yaml, PRICE.yaml, etc. The filename (minus .yaml) is the field name.
Find card entity IDs
Card filenames encode the entity ID: <entity-id>_<slug>.yaml. The entity ID is the part before the first underscore (21 characters).
Self-Healing Loop
When a checker reports errors, follow this loop:
- Read the error message - it tells you what's wrong and often suggests the fix
- Look up the correct value from the export directory (see "Looking Up Valid References" above)
- Fix the YAML
- Re-run both checkers
- Repeat until clean
Do not guess at fixes. Always look up the correct value from the export.
Understanding Checker Errors
Structural checker errors
The structural checker validates YAML shape against Malli schemas. Common errors:
Missing required key with typo suggestion:
Missing required key 'name' - found 'nameee' which may be a typo
Fix: rename the typo'd key back to the correct name. The checker tells you what it expected and what it found.
Wrong type:
'archived' should be a boolean, got: "yes"
Fix: use true/false, not strings.
Unknown key:
Unknown key 'foobar' in card
Fix: remove the key, or check if it's a typo of a known key.
Cards checker errors
The cards checker validates that queries resolve against exported metadata. Error types:
UNRESOLVED REFERENCES:
UNRESOLVED REFERENCES:
- field: Sample Database.PUBLIC.PRODUCTS.CATEGORYYY
The dotted path tells you exactly which reference failed. Look up the correct value:
- Last segment is the field name - check
databases/.../tables/<table>/fields/ - Third segment is the table name - check
databases/.../schemas/<schema>/tables/ - First segment is the database name - check
databases/
ERROR (query construction failed):
ERROR: Error creating query from legacy query: Invalid output: ...
Usually means the query structure is malformed. This often follows unresolved references - fix the refs first, then re-check.
ERROR (nil name):
ERROR: Invalid output: {:name ["should be a string, got: nil"]}
The card is missing its name field (likely a structural issue that also affects the cards checker).
Exit codes
- Exit 0: all checks passed
- Exit 1: one or more failures
File Naming Convention
Card files: collections/<collection-path>/cards/<entity-id>_<slug>.yaml
The filename slug should match the card name (lowercase, underscored). If you rename a card, consider renaming the file to match, though import works on entity_id not filename.
What NOT to Edit
entity_id- this is the identity of the object, changing it creates a new object on importserdes/meta- internal serdes metadata, leave it alonecreated_at- timestamp, no reason to changecreator_id- email reference, leave itmetabase_version- informational, leave it
Вставить в README
Ссылка на карточку для вашего README — без картинок и счётчиков.
[DarkPlay: serdes-yaml-edit](https://darkplay.ru/ai/skills/metabase-metabase-serdes-yaml-edit)
Описание
Редактирует YAML-файлы serdes Metabase (карточки, дашборды, базы данных) с корректными переносимыми ссылками и структурными соглашениями. Используйте при изменении экспортированного YAML-контента.
Из того же репозитория
Похожие скиллы и другие разделы каталога
Самые востребованные скиллов раздела по установкам и звёздам.
find-skillsvercel-labs · Помогает находить и устанавливать навыки агентов по запросам вроде «как сделать X»…
grill-memattpocock · Настойчивое интервью для доработки плана или дизайна.
hyperframesheygen-com · Обязательная точка входа для любых задач по видео, анимации и motion-графике в…
hyperframes-cliheygen-com · Цикл разработки HyperFrames CLI: init, add, render, preview, publish и другие команды.
agent-browservercel-labs · CLI для автоматизации браузера для ИИ-агентов: навигация по страницам, заполнение форм…
media-useheygen-com · Agent Media OS: единый навык для медиа в HyperFrames — BGM, SFX, изображения, голос, LUT.
hyperframes-registryheygen-com · Установка и подключение блоков реестра в композиции HyperFrames через add и catalog.
grill-with-docsmattpocock · Настойчивое интервью для доработки плана или дизайна, попутно создающее документацию (ADR…
improve-codebase-architecturemattpocock · Поиск в кодовой базе возможностей для углубления, визуальный HTML-отчёт о них и детальный…
tddmattpocock · Разработка через тестирование (TDD): red-green-refactor и интеграционные тесты.Соседние разделы каталога: возможно, нужный инструмент живёт там.
Build Error Resolveraffaan-m · Специалист по устранению ошибок сборки и TypeScript. Используйте ПРОАКТИВНО при сбое…
security-guidanceanthropics · Хук-напоминание о безопасности: предупреждает о потенциальных проблемах при…
ppt-masterhugohe3 · Генерирует нативно редактируемый PPTX из PDF / DOCX / URL / Markdown: настоящие фигуры…
diagram-designcathrynlavery · Технические и продуктовые диаграммы редакционного качества: 27 типов в виде автономного…
agentic-bundle-aas-accessibility-inclusive-uxsickn33 · Установите набор редакционных навыков "AAS Accessibility & Inclusive UX" для Claude Code.
agentic-bundle-aas-agent-mcp-buildersickn33 · Установите набор редакционных навыков "AAS Agent & MCP Builder" для Claude Code.
agentic-bundle-aas-ai-product-evaluation-opssickn33 · Установите набор редакционных навыков «AAS AI Product & Evaluation Ops» для Claude Code.
agentic-bundle-aas-api-platform-buildersickn33 · Установите набор редакционных навыков «AAS API Platform Builder» для Claude Code.
agentic-bundle-aas-automation-buildersickn33 · Установите набор редакционных навыков "AAS Automation Builder" для Claude Code.
agentic-bundle-aas-data-analyticssickn33 · Установите набор редакционных навыков «AAS Data Analytics» для Claude Code.Лучшие ИИ-инструменты для генерации текста и копирайтинга
Подборка нейросетей для генерации текстов и копирайтинга. Сервисы, которые помогают создавать статьи, посты и рекламные объявления с нуля или по черновику, экономя часы рутинной ра
NeuroscribeNeuroscribe
GoGPTGogpt
НейроТекстерNeuro-texter
ChatGPTOpenAI
Cosmo ScribeCosmoscribe
Memo HelperCopilot33
LibraChatLibrachatЛучшие ИИ-инструменты для генерации изображений
Подборка нейросетей для генерации изображений от фотореализма до концепт-арта. Сервисы, которые экономят часы ручной работы, создавая визуал для блогов, рекламы и дизайна за минуты
MagviMagvi
DALL-E 3OpenAI
SupaLabSupalab
Freestyling.aiFreestyling
ArtGeneration.meArtgeneration
BigjpgBigjpg
Художник от VKVK
Avato AI12ai
Virton AIVirtonЛучшие ИИ-инструменты для генерации видео
Подборка нейросетей для генерации и монтажа видео. Инструменты, которые превращают текст в готовые ролики, экономят часы на съемках и постпродакшне. Подходит для SMM-специалистов,
VEED.IOVeed
MootionMootion
Sora (OpenAI)OpenAI
viralpulse.appViralpulse
Viral Maker AIViral-maker