pipefy-relations — скилл для Claude Code: связи между пайпами
Скилл для работы со связями в Pipefy: создаёт и читает отношения между пайпами, таблицами и карточками через MCP или CLI.
npx skills add pipefy/ai-toolkit --skill pipefy-relations -a claude-codeЧто делает pipefy-relations
Скилл закрывает одну тему — связи между рабочими процессами в Pipefy. Он умеет перечислять отношения пайп-пайп, создавать новые, менять их настройки (автозаполнение, ограничения) и удалять. Отдельная ветка — связи карточек: две карточки линкуются через уже существующее отношение пайпов.
Внутри восемь операций, разбитых на чтение и запись. Читающие: get_pipe_relations, get_table_relations, get_card_relations. Пишущие: create_pipe_relation, update_pipe_relation, delete_pipe_relation, create_card_relation, delete_card_relation. Удаление помечено как разрушительное — скилл требует показать затронутое отношение и получить подтверждение до удаления. Для MCP-клиентов и для CLI в репозитории лежат отдельные справочники: references/mcp.md и references/cli.md.
Главная ловушка в идентификаторах. В create_card_relation параметр source_id — это ID отношения пайпов из get_pipe_relations, а не ID пайпа. Если передать ID пайпа, вызов упадёт с «relation not found». Похожая история с таблицами: get_table_relations принимает ID отношений таблиц, а не ID самих таблиц, и список должен быть непустым. Связи через поля-коннекторы пишутся иначе — через update_card, где update_card_field заменяет весь список ID целиком. Это повод проверить, какой именно тип связи вам нужен, прежде чем что-то менять.
Какие задачи решает
- связать карточки двух пайпов через существующее отношение
- создать новое отношение родитель-потомок между пайпами
- посмотреть все связи карточки перед изменением
- настроить автозаполнение и ограничения у отношения пайпов
- удалить отношение, показав его перед подтверждением
Примеры запросов агенту
- покажи отношения пайпа 67890 и найди ID нужного
- свяжи карточку <PARENT_CARD_ID> с <CHILD_CARD_ID> через отношение пайпов
- создай отношение между пайпами 111 и 222 с именем Support Escalation
Как установить pipefy-relations
1Через Skills CLI (Vercel)
npx skills add pipefy/ai-toolkit --skill pipefy-relations -a claude-code2Вручную: положить файлы
~/.claude/skills/pipefy-relations/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/pipefy-relations/
1Через Skills CLI (Vercel)
npx skills add pipefy/ai-toolkit --skill pipefy-relations -a codex2Вручную: положить файлы
.agents/skills/pipefy-relations/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add pipefy/ai-toolkit --skill pipefy-relations -a cursor2Вручную: положить файлы
.cursor/skills/pipefy-relations/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install pipefy/ai-toolkit pipefy-relations2Вручную: положить файлы
.github/skills/pipefy-relations/SKILL.md1Через Skills CLI (Vercel)
npx skills add pipefy/ai-toolkit --skill pipefy-relations -a gemini-cli2Командой платформы
gemini skills install https://github.com/pipefy/ai-toolkit --path plugins/pipefy/skills/pipefy-relationsВручную: положить файлы
.devin/skills/pipefy-relations/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add pipefy/ai-toolkit --skill pipefy-relations -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о pipefy-relations
Как установить pipefy-relations в Claude?
Выполните npx skills add pipefy/ai-toolkit --skill pipefy-relations -a claude-code. Скилл встанет в ~/.claude/skills/pipefy-relations/SKILL.md.
Что делает pipefy-relations?
Создаёт и читает связи между пайпами, таблицами и карточками в Pipefy. Внутри восемь операций: чтение отношений, создание, обновление и удаление.
Почему create_card_relation падает с «relation not found»?
В source_id нужно передать ID отношения пайпов из get_pipe_relations, а не ID пайпа. Это разные значения.
Исходный текст
SKILL.md · Apache-2.0
--- name: pipefy-relations description: > Use this skill when the user wants to link pipes, tables, or cards across workflows — creating or managing pipe relations, table relations, or card relations. tags: [pipefy, relations, connections, pipes, cards, tables] --- # Connections & Relations MCP clients: read [references/mcp.md](references/mcp.md). CLI users: read [references/cli.md](references/cli.md). Examples below describe shared operation arguments. Link processes and cards across workflows. --- ## Key concepts - **Pipe relations** define parent/child structure between pipes (who connects to whom, constraints, auto-fill). Use `get_pipe_relations` on a pipe to list relation IDs and metadata. - **Card relations** connect individual cards through an existing pipe relation: pass `source_id` = the pipe relation's ID (from `get_pipe_relations`). Default `sourceType` is `PipeRelation`; use `extra_input` (e.g., `sourceType: Field`) when the API requires a field-based link — see `introspect_type` on `CreateCardRelationInput`. - **Table relations** in GraphQL are loaded by table-relation ID, not by database table ID: `get_table_relations` takes a non-empty list of those IDs. - **Connector fields** are card fields (connection type), not pipe relations for *writes*. Prefer `update_card` + `field_updates` with `operation` ADD/REMOVE (related **card ids**). `update_card_field` is **replace-all** of the full id list; `get_card` `value` is display titles only — do not rebuild from it. This skill's `get_card_relations` still **reads** connector-field links (with card ids). `create_card_relation` / `delete_card_relation` write links through a pipe relation and are incremental — pick the surface that matches the link type. --- ## Tools | Operation | Read-only | Purpose | | ------------ | ----------- | --------- | | `get_pipe_relations` | Yes | List pipe-to-pipe relations for a pipe. | | `create_pipe_relation` | No | Create a new pipe-to-pipe relation. | | `update_pipe_relation` | No | Change relation config (auto-fill, constraints). | | `delete_pipe_relation` | No | **Destructive; review and approve first.** | | `get_table_relations` | Yes | Load table relations by relation ID. | | `get_card_relations` | Yes | List all card-to-card relations on a card. | | `create_card_relation` | No | Link two cards through an existing pipe relation. | | `delete_card_relation` | No | **Destructive; review and approve first.** | --- ## Steps — link two cards via an existing pipe relation 1. **Get the pipe relation ID:** Operation: `get_pipe_relations(pipe_id=67890)` Note the `id` field on the relation (not the pipe ID). 2. **Create the card relation:** Operation: `create_card_relation(parent_id=<PARENT_CARD_ID>, child_id=<CHILD_CARD_ID>, source_id=<PIPE_RELATION_ID>)` 3. **Verify:** Operation: `get_card_relations(card_id=<CHILD_CARD_ID>)` --- ## Steps — create a new pipe relation 1. **Create the relation between two pipes:** Operation: `create_pipe_relation(parent_id=111, child_id=222, name="Support Escalation")` 2. **Use the relation** — cards in the parent pipe can now be linked to cards in the child pipe using `create_card_relation`. --- ## Success criteria - `get_pipe_relations` returns the new relation with both pipe IDs. - `get_card_relations` shows the linked card ID after `create_card_relation`. ## Failure modes - **`create_card_relation` fails with "relation not found":** `source_id` must be the **pipe relation ID** (from `get_pipe_relations`), not the pipe ID. These are different values. - **Table relations return empty:** `get_table_relations` requires table-relation IDs, not table IDs. Get table-relation IDs from the table's connection config. - **Deletion:** show the affected relation and obtain approval before removing it. ## See also - `pipefy-pipes-and-cards` — create the pipes and cards before linking them; connector field updates and `update_card_field` replace-all live there. - [`docs/mcp/tools/identifiers.md`](https://github.com/pipefy/ai-toolkit/blob/main/docs/mcp/tools/identifiers.md) — which args expect slug vs numeric id for field and relation tools. - `pipefy-introspection` — discover `CreateCardRelationInput` when non-standard `sourceType` is needed.
© pipefy · Apache-2.0 · pipefy/ai-toolkit