Files

From runtm-ai/runtm · View interactive version

Files is an AI agent skill from the GitHub repository runtm-ai/runtm. Runtm (Runtime) Cloud, the platform where operations teams create and run AI agents, and its CLI runtm-api. Use for anything about runtm, runtime, runtm cloud, sessions, cloud sandboxes, templates, the agent roster, evaluation rubrics and scorecards, scheduled agents and cron, triggers (Slack, Linea

How to use this skill

Skill file

Runtm (Runtime) Cloud

Runtime is where teams create and run agents that have a job, a way to measure success, tools, a runbook, triggers, and guardrails. The binary is runtm-api (not the pip runtm CLI, which handles local dev). It talks only to the hosted API at https://app.runtm.com/api/cloud/... and covers everything the dashboard does, so you can do anything a person does in the UI.

Read the docs first

The documentation is the source of truth and is written to be read by you. Do not work from memory of this file when a page exists.

  1. Fetch https://docs.runtm.com/llms.txt. It lists every page as [Title](url.md): description. The description says when to read the page and what you can do after; pick by description.
  2. Fetch the page as markdown by appending .md to its URL, for example https://docs.runtm.com/build/give-it-tools.md.
  3. Every dashboard step on a Build or Guides page carries its CLI equivalent in an agent-only block that appears only in the .md output: cli: runtm-api ... to run, cli-verify: ... to check it worked, and cli-handoff: https://app.runtm.com/... for a step only a person may do. For a handoff, fill in the placeholders, give the person the URL, and run the step's cli-verify once they say it is done.
  4. No fetch tool in this sandbox? runtm-api docs prints llms.txt, and runtm-api docs <path> prints one page (runtm-api docs build/give-it-tools).

Where things are:

| You need | Read |

|---|---|

| The method for building any agent (six steps, in order) | build/overview and its six pages |

| A complete agent to copy (payments support, fraud and risk review, merchant underwriting) | guides/overview, guides/payments/* |

| One task (connect Stripe read-only, add a KYB provider, add an MCP server, route a Linear team, test a schedule, request an approval, delegate to another agent) | guides/recipes/* |

| An app built in a session needs data every session of its template sees (a tracker, a dashboard, any small app with saved state) | guides/recipes/share-data-across-sessions |

| Multi-agent: one agent handing work to subagents behind human approvals | guides/recipes/delegate-to-another-agent, guides/payments/multi-agent-underwriting |

| Driving a session, template lifecycle, debugging a stuck run, API patterns | cloud-api/patterns/* |

| Every command, flag, scope, and error | cloud-api/agent-cli, cloud-api/scopes, cloud-api/errors, then the endpoint pages |

The method: capable first, then safe

An agent is built in six steps and the order matters. Steps 1 to 4 give it context and ability, step 5 proves it on seeded cases with read-only credentials, step 6 adds guardrails written from what the passing runs did. Never start with guardrails; a rule written before the first run is a guess, and on an unproven agent it hides capability gaps behind stalls.

  1. Define the job: roster agent with description, system instructions, default template, coding agent.
  2. Measure success: evaluation categories (when to use, pass or fail criteria, tags, human cost and time), monthly budget (observe-only). Without a category nothing is graded.
  3. Give it tools: the template carries tool providers, MCP servers, secrets, repos. Credentials resolve agent, then personal, then org-wide; give every roster agent its own agent-scoped connection unless the job requires otherwise.
  4. Define how it works: a runbook skill, the instruction layers, a trigger pointed at a test channel or a disabled schedule.
  5. Prove it works: run seeded cases, read session grade and agents scorecard, tighten one thing at a time.
  6. Add guardrails and approvals: allow, ask, deny rules from observed commands, network rules, runtm-approval at the runbook step that must wait.

Read build/overview.md before creating or changing an agent.

Two golden paths

Drive a sandbox yourself (create a template, boot a session, run commands):

runtm-api template create --display-name "Dev env" --github-repo owner/repo --skip-agent   # --skip-agent = clone-only build, implies --build; omit --github-repo for a blank environment
runtm-api template get <template_id> | jq -r .build_status                                  # wait for "ready"
runtm-api session create --template-id <template_id>
runtm-api session exec <session_id> --json -- npm test                                      # {"stdout","stderr","exit_code"}
runtm-api session connect <session_id>                                                      # live PTY for a human

Build an agent (every capability hangs off one template):

trigger -> roster agent -> template -> { skills, MCP servers, tools, guardrails, context } -> session

Create the template, attach skills and MCP servers, verify with template get, build once, then create the roster agent pointing at the template, connect a test trigger, run the seeded cases, and only then add guardrails. Full recipe: build/overview.md; full worked examples: guides/payments/*.md.

Rules that fail silently

Auth and org context

curl -fsSL https://runtm.com/install | bash        # installs runtm-api and this skill
export RUNTM_API_KEY=runtm_...                      # app.runtm.com > Settings > API Keys
runtm-api auth status | jq '{authenticated, scopes, organization_id}'

Org-scoped work (templates, agents, skills, MCP, tools, guardrails, team secrets) needs an org-scoped key. The org is bound when the key is created and cannot be changed at call time: --org or RUNTM_ORG_ID can only restate the key's binding. organization_id: null from auth status means a personal key, and the fix is a new org-scoped key, not an env var.

Inside a session, a missing scope is final. The injected key never carries integrations:write, guardrails:write or api_keys:write, and a roster agent's key is read-only apart from launching agents that list it as a caller. Check auth status before an org-wide write. If the scope is missing, do not retry or look for another route: say so up front, give the person the exact dashboard setting or command to run, and verify with a read once they say it is done.

Resolving inputs

  1. Use what is in context (prior output, conversation, env vars).
  2. Missing an id? Run the matching list or get first (session list, template list, agents list, skills list).
  3. Still ambiguous? Ask the user.
  4. Never run a command with an unresolved <placeholder>.

Output contract

Command areas

runtm-api <area> --help lists subcommands; nested trees exist (session deploy --help, template guardrails --help).

auth, session, template, agents (roster; --type slack|github|linear|email for triggers), scheduled-agents, skills, mcp, tools, guardrails (rules|hooks|network content plus limits|allowlist settings), secrets, instructions, providers (LLM keys), groups, deployments, github, activity, docs.

The full command table with flags is cloud-api/agent-cli.md.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.