Skip to main content

Skills

A skill is a folder containing a SKILL.md: a structured workflow with pre-flight checklists, references, and optional Python scripts. When a run binds a skill, its body becomes the agent's workflow.

Skills are read-only and ship with the package. They are replaced on update, so nothing you write ever lands in a skill folder — and nothing a skill ships ever lands in your project folder.

What actually ships​

The published package bundles three skills:

SkillmodeScenarioWhat it does
pptx-svg-exportutilityengineeringConverts an HTML deck to a natively editable PPTX through an SVG → DrawingML pipeline
pdf-exportutilityengineeringConverts an HTML prototype or deck to a visual-fidelity PDF through an SVG → PDF pipeline
live-artifactprototype—Builds refreshable, connector-backed dashboards and reports

Both export skills are utility mode, which means they skip the design discovery form: they are converters, not generators. They are also script-driven — the Python payload is what produces the output, and the agent's job is to author one SVG per slide that visually reproduces the source HTML.

Not a style catalog

TF Design does not ship one skill per artifact type (saas-landing, dashboard, pricing-page, …). The surface you pick — Prototype, Deck, Document, Motion — plus the bound design system determines the output. Skills exist for workflows that need real code: deterministic conversion and data-backed refresh.

How a skill runs​

  1. The daemon resolves the skill folder and reads SKILL.md.
  2. The prompt composer stacks: discovery directives → design system → craft rules (the ones the skill opts into) → skill body → project metadata.
  3. The agent follows the skill's workflow.
  4. Side files — references and Python scripts — are reached through the skill-tools MCP server, not copied into the project.
  5. Utility skills skip step 1's discovery form.

Skill scripts run over MCP​

An export skill used to be staged into <project>/.od-skills/, dragging SKILL.md plus every Python script into your folder and your git status. That is gone. The daemon now mounts a run-scoped MCP server into every design run, exposing three tools:

MCP toolPurpose
skill_filesList every side file the skill ships
skill_file_readRead one side file (references, workflow notes)
skill_script_runExecute a shipped Python script with the project dir as cwd

Script execution happens on the daemon, not in the agent's sandbox:

  • python3 runs the shipped script in its own process group.
  • A hard timeout with capped output prevents a runaway conversion.
  • The MCP mount uses a 600s per-server timeout — the 30s default would kill every real SVG→PPTX conversion.
  • The mount authenticates with a 12-hour engine token minted once per warm engine, not the 15-minute chat token, because the engine outlives the chat.

CLI fallback​

When an agent's engine did not mount the MCP server, the same three operations are available as CLI subcommands. They read the run's OD_TOOL_TOKEN:

tfdesign skills files pptx-svg-export
tfdesign skills read pptx-svg-export SKILL.md
tfdesign skills run pptx-svg-export scripts/svg_to_pptx.py --out deck.pptx

skills run accepts --timeout <ms> (default 300000, max 600000) and exits with the script's own exit code.

Data endpoints​

EndpointMethodDescription
/api/skillsGETEvery skill, body stripped, with hasBody
/api/skills/:idGETOne skill including its SKILL.md body
/api/skills/:id/filesGETFlat listing of side files with sizes
/api/skills/:id/file?path=GETRead one side file
/api/tools/skills/filesGETToken-authed, run-scoped file listing
/api/tools/skills/readGETToken-authed, run-scoped file read
/api/tools/skills/runPOSTToken-authed script execution

Craft rules​

Skills opt into universal, brand-agnostic quality rules through frontmatter:

od:
craft:
requires: [typography, color, anti-ai-slop]

The composer injects the concatenated craft bodies between the design system and the skill body, so brand tokens win on conflict and craft rules cover what the brand does not specify. The bundled craft references are:

typography · color · anti-ai-slop · accessibility-baseline · animation-discipline · form-validation · rtl-and-bidi · state-coverage

Read them with tfdesign-backed tools: GET /api/craft lists slugs, GET /api/craft/:slug returns one body.

Inspecting skills​

tfdesign skills list # id, mode, description
tfdesign skills show pptx-svg-export # frontmatter summary
tfdesign skills show pptx-svg-export --body
tfdesign skills files pptx-svg-export # side files and sizes

Over MCP, use list_skills, get_skill, list_craft, and get_craft. Ids are exact — an unknown id is rejected with the valid list rather than silently ignored.

Binding a skill to a run​

tfdesign run "New product launch deck" --skill pptx-svg-export

In the app, skills are bound when a run needs one (export actions do this automatically). The vast majority of design work does not bind a skill at all — the surface and design system carry it.

Skill package shape​

skills/<id>/
├── SKILL.md # frontmatter + workflow (required)
├── references/ # optional reading material
├── scripts/ # optional Python payload, executed over MCP
└── assets/ # optional seed templates

SKILL.md frontmatter:

---
name: pptx-svg-export
description: One paragraph; surfaced in listings and to the agent.
triggers:
- "export pptx"
od:
mode: utility # prototype | deck | motion | template |
# brand-guideline | image | video | audio | utility
scenario: engineering
craft:
requires: [typography]
---

The publishing step fails the build if a skill documents scripts/*.py but ships none, or if the design-system registry is empty — a gutted skill is a silent failure that only shows up twelve rounds into a conversion.