Skip to main content
A skill script is a skill that includes Python the agent can run in the code sandbox. Use it when a connector exists, but you need branching, batching, or cleanup the raw tools do not do well. You do not need to write the script. Describe the outcome and let the agent draft the skill.

When this helps

  • Transform results before the next step (filter rows, reshape JSON)
  • Call the same connector many times with custom logic
  • Combine two connectors in one deterministic script
If you only need “send this Slack message,” add the Slack connector. Do not wrap it in a skill.

How to get the agent to write one

  1. Add the connector on the agent first. See Give an agent a connector.
  2. Paste one of the prompts below.
  3. Review the skill. It should use the Gumloop SDK for the connector, not raw HTTP.
  4. Save it and attach it to this agent (and others, if you want).

Example prompts

Copy one of these, then swap in your mailbox, sheet, or channel. Filter unread email into a table
Batch Slack follow-ups
Sheets + Slack digest
Retry-safe CRM update

After it writes the skill

  • Keep the skill focused on one job.
  • Tell the agent which connector account to use if several are connected.
  • If the script fails, paste the error back and ask it to fix the skill.
  • Skills do not have version history. Duplicate a working skill before a risky edit.

FAQ

No. Add the connector and ask the agent in chat. Use a skill script only when you need branching, batching, or cleanup the raw tools do not do well.
Tell it: “Rewrite this to use the Gumloop SDK and the connector already on this agent. Do not call the API over HTTP.”
Yes, after you save it. Those agents still need the same connectors attached.

Code Sandbox

Where skill scripts run

Agent Skills

How to attach a skill