For the complete documentation index, see llms.txt. This page is also available as Markdown.

Attach a skill to an LLM node

Attach existing instructions to the step that needs them, without rewriting the same instructions in each workflow.

Before you start

You need an existing skill and edit access to the project. Attaching a skill changes the project draft. Updating the skill itself is a separate operation and immediately changes its latest live version.

Find the skill and target node

  1. Confirm the organization with whoami.

  2. Use skills_list and skills_get to inspect the skill's instructions and actions.

  3. Read the complete project draft with projects_get(version="draft").

  4. Identify the LLM node and its existing data.skills array. Keep every attachment you intend to retain.

Preview the attachment

Call projects_edit with a direct patch. The example assumes the node is llm-0 and already has one skill. Replace both IDs and include the full desired array:

{
  "project_id": "<project-id>",
  "direct_patch": [
    {
      "op": "update_node",
      "node_id": "llm-0",
      "patch": {
        "data": {
          "skills": [
            {
              "skill_id": "<existing-skill-id>"
            },
            {
              "skill_id": "<new-skill-id>"
            }
          ]
        }
      }
    }
  ],
  "dry_run": true,
  "publish": false
}

The skills array replaces the existing array; it does not append automatically. An empty array detaches all skills.

Save and verify

Review the returned delta. Send the same patch with dry_run: false and publish: false to save the draft. Call projects_validate, then read the target node again and confirm the complete attachment list.

Publish the reviewed draft only when intended. If the skill's instructions later change, agents using the skill resolve its latest version; publishing a project does not pin the skill to an older version.

Tool reference

Was this helpful?