Logo Trmnl

Trmnl

Tổ chức
usetrmnl
trmnl

Use when working on anything TRMNL — building plugins, writing or editing markup, designing layouts using the TRMNL CSS framework, calling the TRMNL MCP server (mcp__trmnl__*), or any task that mentions "trmnl", "ePaper display", "e-ink display", "trmnl.com", "TRMNL plugin", "Liquid markup", "image-dither", "title_bar", or screen sizes 800x480 / 800x240 / 400x480 / 400x240. References embed the production prompts TRMNL's external MCP server ships — agent rules, the full design system template guide, and the framework v3 supplement.

Tổng quan

Nhà phát hànhusetrmnl
Kho mãtrmnl-agent-skills
Tên kỹ năngtrmnl
Sao
29
Bản fork
1
Tệp đi kèm
3
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 3 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được usetrmnl công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Trmnl trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/usetrmnl/trmnl-agent-skills/tree/main/skills/trmnl
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/usetrmnl/trmnl-agent-skills.git /tmp/trmnl-agent-skills
mkdir -p .claude/skills
cp -r /tmp/trmnl-agent-skills/skills/trmnl .claude/skills/trmnl
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Trmnl trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Trmnl ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Trmnl với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

TRMNL

Everything you need to work on TRMNL. The references in this skill are verbatim copies of the prompts TRMNL's own production AI assistant reads.

Read first, in this order

#ReferenceWhat it coversLines
1references/agent_prompt.mdCore rules: data-first hard gate, mandatory workflows, view dimensions, layout system, image dithering, no-custom-styles, no-emojis, common mistakes. This is also what TRMNL's MCP server ships as the connection-level instructions to every external client.427
2references/template_guide.mdTHE design system reference — every framework class, layout pattern, chart code, item component, custom-fields YAML schema. Bundled here so non-MCP users can read it offline; MCP-connected users can also fetch it via the design-system template-guide tool.2710
3references/framework_v3_guide.mdv3 supplement: chromatic palette, CSS variables, label variants. v3.0.3+ specific.230

Adding the TRMNL MCP server (optional)

The skill works standalone — agents read the bundled references to write TRMNL-compliant markup locally without ever calling MCP. Adding TRMNL's hosted MCP server unlocks live operations on your real account. One endpoint, https://trmnl.com/mcp, two ways in — the credential decides which tools you get:

ConnectionCredentialTools you get
One pluginMCP key from TRMNL dashboard → that plugin → settings → MCP tab, as ?api_key=The markup tools for that one plugin: read/write markup, screenshots, merge variables, logs, refresh, recipe search, design system reference
Whole accountSign in with OAuth (no key). The account API key from https://trmnl.com/account is for the REST API only and answers 401 on /mcpThe account tools: devices, playlists and mashups, plugin settings, markup, profile, recipes, themes, authored plugins, apps and room booking, the plugin catalog, and third-party API search — every action is an operation of the REST API

The full authentication reference is https://trmnl.com/auth.md. Step-by-step setup for Claude, ChatGPT, Cursor and other clients: https://help.trmnl.com/en/articles/17432548-mcp-server.

Register the server with your agent

AgentOne plugin (key)Whole account (OAuth)
Claude Codeclaude mcp add --transport http trmnl "https://trmnl.com/mcp?api_key=<api-key>"claude mcp add --transport http trmnl https://trmnl.com/mcp, then /mcp in a session → sign in. A browser tab opens for consent and bounces to http://localhost:<port>/callback; that tab going blank afterward is normal, the CLI already took the code.
CursorEdit ~/.cursor/mcp.json (global) or .cursor/mcp.json (per-project) and add: {"mcpServers": {"trmnl": {"url": "https://trmnl.com/mcp?api_key=<api-key>", "type": "http"}}} — restart Cursor afterward.Same entry without ?api_key=; Cursor prompts for the OAuth sign-in.
Codex, Gemini, genericAdd to your MCP config JSON: {"mcpServers": {"trmnl": {"url": "https://trmnl.com/mcp?api_key=<api-key>"}}}Same entry without ?api_key=; the client must speak MCP OAuth (RFC 7591 registration, PKCE).

Verify: ask your agent to list TRMNL MCP tools. One plugin: MarkupsReadTool, MarkupsWriteTool, MarkupsScreenshotTool, etc. Whole account: AccountDevicesReadTool, AccountDevicesWriteTool, AccountPlaylistsReadTool and the rest of the account tools table below, plus APIEndpointsSearchTool. In ChatGPT the account tools are the actions themselves: listDevices, updateDevice and so on.

Endpoint: POST https://trmnl.com/mcp. Rate limit: 60 req / 60s. OAuth scopes are capabilities: read (list and read), content (markup, plugin data and fields, playlists, creating plugin settings), devices (device settings, identify), delete (plugin settings, playlist items), profile (getMe), apps (installing apps, fleets, room booking). Ask for all six; the user ticks what they want at consent (delete, profile and apps start unticked) and may limit the connection to some devices and plugin settings. write is the older name for content + devices + delete.

Tool name mapping

The references reference TRMNL tools two different ways depending on context. Map between them:

In-app agent (snake_case)MCP server (PascalCase + Tool)
show_integrationIntegrationsShowTool
show_merge_variablesMergeVariablesShowTool
write_settingsIntegrationsWriteSettingsTool
show_logsIntegrationsLogsTool
refresh_dataIntegrationsRefreshDataTool (answers within 15s; for a slower fetch dispatch via AsyncStartTool; 12 refreshes an hour per plugin setting, 30 on Plus)
read_markupMarkupsReadTool
write_markupMarkupsWriteTool
list_markup_sizesMarkupsListSizesTool
screenshot_markupMarkupsScreenshotTool (takes a views array and optional device_models; long renders answer a job_id to poll with AsyncResultTool)
pull_recipe_markupRecipesPullMarkupTool
(no in-app equivalent)RecipesSearchTool, DesignSystemReferenceTool, DesignSystemTemplateGuideTool, APIEndpointsSearchTool, AsyncStartTool, AsyncResultTool

If you're calling MCP from outside TRMNL's web app, use the right column. The references use the left column — translate as you go.

Account tools (whole-account connection)

Each account tool takes an action (the REST API operation) and a params hash. The tool description lists every action with its parameters, accepted values and shapes — read it before guessing a shape. A …ReadTool holds only reads and is marked read-only, so clients run it without asking; every change is in the matching …WriteTool. ChatGPT instead lists every action as a tool of its own, named after the action and marked read-only or destructive one by one; resetPluginSettingCredentials is the one exception, listed as forgetAccountAndDeletePluginSetting.

ToolActions
AccountAppsReadToollistApps, listAppInstallations, getFleet, listFleetDevices
AccountAppsWriteToolinstallApp, uninstallApp (destructive), addFleetDevice, removeFleetDevice, setFleetMaster, removeFleetMaster, updateFleetSettings, updateFleetAlerts, pushFleet, pushFleetDevice
AccountAuthoringReadToollistMyPlugins, getAuthorAnalytics, listAuthorPluginErrors, listUninstallFeedback
AccountAuthoringWriteToolcreateMyPlugin, updateMyPlugin, hideAuthorPluginError, unhideAuthorPluginError
AccountDevicesReadToollistDevices, getDevice, getDeviceLogs, getDeviceForecast, getDevicePlaylistCoverage, getDeviceTimeline
AccountDevicesWriteToolclaimDevice, updateDevice, identifyDevice, clearDevicePlaylist (destructive), mirrorDevice, stopMirroringDevice, resyncDeviceMirror, retryDeviceFirmwareUpdate
AccountMarkupReadToolreadMarkup, getPreview, getRefresh
AccountMarkupWriteToolwriteMarkup, startPreview (answers a job_id, poll with getPreview), startRefresh (answers a job_id on a polling instance, poll with getRefresh)
AccountPlaylistsReadToollistDevicePlaylist, listPlaylistItems, getPlaylistItemSchedule, getMashup, getMashupTimeline
AccountPlaylistsWriteTooladdDevicePlaylistItem, reorderDevicePlaylist, bulkUpdateDevicePlaylist, copyDevicePlaylist, updatePlaylistItem, deletePlaylistItem (destructive), replacePlaylistItemSchedule, duplicatePlaylistItem, createDeviceMashup, updateMashup, resetMashupHealth
AccountPluginSettingsReadToollistPluginSettings, getPluginSettingDetails, getPluginSettingData (native plugins), getPluginSettingLogs, getPluginSettingTimeline, getMergeVariables (private plugins), getPluginSettingFiles (private plugins)
AccountPluginSettingsWriteToolcreatePluginSetting, updatePluginSetting, deletePluginSetting (destructive), updatePluginSettingFields, updatePluginSettingData (webhook plugins), importPluginSettingFiles (private plugins), uploadPluginSettingImage (webhook_image plugins, base64), copyPluginSetting, clearPluginSettingState, enablePluginSettingDebugLogs, resetPluginSettingHealth, setPluginSettingFeaturedImage, removePluginSettingFeaturedImage, removePluginSettingTransform, verifyCustomFields, resetPluginSettingCredentials (destructive)
AccountPluginsToollistPlugins, getPlugin
AccountProfileReadToolgetMe, listModels, listPalettes, listCategories
AccountProfileWriteToolupdateMe
AccountRecipesReadToolsearchRecipes, getRecipe, getRecipeMarkup
AccountRecipesWriteToolinstallRecipe
AccountRoomBookingReadToolgetRoomBooking, getRoomBookingBilling, getRoomBookingSettings, listRoomBookingCalendars, getRoomBookingCalendar, listRoomBookingCalendarScreens, listRoomBookings, listRoomBookingCollections, listRoomBookingCollectionScreens, listRoomBookingIntegrations, getRoomBookingIntegrationConnectUrl
AccountRoomBookingWriteToolupdateRoomBookingSettings, setRoomBookingCompanyLogo, removeRoomBookingCompanyLogo, setRoomBookingColorCompanyLogo, removeRoomBookingColorCompanyLogo, createRoomBookingCalendar, updateRoomBookingCalendar, deleteRoomBookingCalendar, refetchRoomBookingCalendar, bindRoomBookingCalendarDevice, unbindRoomBookingCalendarDevice, createRoomBooking, cancelRoomBooking, endRoomBooking, createRoomBookingCollection, updateRoomBookingCollection, deleteRoomBookingCollection, bindRoomBookingCollectionDevice, unbindRoomBookingCollectionDevice, syncRoomBookingIntegration, updateRoomBookingIntegration, disconnectRoomBookingIntegration
AccountThemesReadToollistUserThemes, getUserTheme
AccountThemesWriteToolcreateUserTheme, updateUserTheme, deleteUserTheme (destructive), importUserTheme
APIEndpointsSearchToolsearch a catalog of free third-party APIs a private plugin can poll — not TRMNL's own API

Things that trip agents up:

  • writeMarkup lints the Liquid and warns on variables the plugin's data does not have — fetch data first (startRefresh) or push it (updatePluginSettingData), then write.
  • A schedule window is {"week_days": [1, 2], "start_time": "09:00", "end_time": "17:00"} with 0 for Sunday. Keys the API does not know are dropped silently.
  • updateDevice refuses a refresh_interval outside 300–86400 with a 422 that names the range.
  • A change that renders spends from the account's hourly render allowance (60, 180 on Plus), shared with the dashboard: startPreview, startRefresh on a setting that does not poll, a device appearance change (one render per playlist item), an item appearance change or showing a hidden item, a new plugin setting, a refresh_interval change, copyDevicePlaylist (one per plugin setting), updateMashup and a featured image (two). Past it the API answers 429 and nothing changes; do not retry, tell the user it opens again within the hour.
  • Another user's ids answer 404, never 403 — there is no way to tell "not yours" from "does not exist".
  • A 403 names what the connection lacks: a capability (This connection lacks the devices capability) or a device or plugin setting it was not granted. Do not retry; tell the user and ask them to widen it — connect again for a capability, Account → Connected agents for a device or plugin setting. A limited connection's listDevices and listPluginSettings show only what it was granted.

What's in-app-only (translate or ignore)

agent_prompt.md was written for TRMNL's in-app AI assistant (the web chat at trmnl.com). A handful of sections are about that web UI specifically and don't apply to external agents (Claude Code, Cursor, Codex, Gemini, Copilot). Translate as you read:

ReferenceWhat it saysWhat to do externally
agent_prompt.md:35"NEVER write raw HTML/markup in your chat response"Applies only to TRMNL's in-app chat (where markup interferes with the live editor). External agents — show markup in chat freely; users often want to review it before committing.
agent_prompt.md:71, 212"use ask_user"ask_user is an in-app tool. Externally: just ask the user a normal question.
agent_prompt.md:79"the Self-Correction Workflow (loaded separately in this system prompt)"The mandate to screenshot after every write still applies. Iterate; react to overflow signals in the response; look for washed images (missing image-dither) and empty boxes (emoji used).
agent_prompt.md:101write_markup "broadcasts live update to browser editor"Web UI artifact. MarkupsWriteTool writes to the database; there's no editor to update. Ignore the broadcast wording.
agent_prompt.md:105-108Tools listed: preview_markup, validate_liquid, version_history, ask_userNone of these exist as external MCP tools. Skip workflow steps that depend on them.

Everything else in agent_prompt.md applies universally — design rules, ePaper constraints, image dithering, no-custom-styles, no-emojis, the data-first hard gate, spatial proportioning, layout system, charts.

template_guide.md and framework_v3_guide.md are pure design system reference — no in-app artifacts.

NOT for

  • The TRMNL REST API for outside-MCP integrations — see the OpenAPI spec at /api-docs directly.
  • TRMNL firmware — different repo.
  • Generic Liquid/Shopify/Jekyll questions — TRMNL Liquid has TRMNL-specific filters and merge variables.

How to use the references

These files are LARGE. Read selectively:

  • Starting any markup work? → agent_prompt.md (mandatory workflows section), then jump to relevant template_guide.md section by topic.
  • Picked a v3 plugin? → also load framework_v3_guide.md (color rules differ from v2).
  • Need a specific framework class or layout pattern? → search template_guide.md directly.

Don't load all 3 files at once unless you have to. Each is independently useful.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Trmnl làm được gì?

Use when working on anything TRMNL — building plugins, writing or editing markup, designing layouts using the TRMNL CSS framework, calling the TRMNL MCP server (mcp__trmnl__*), or any task that mentions "trmnl", "ePaper display", "e-ink display", "trmnl.com", "TRMNL plugin", "Liquid markup", "image-dither", "title_bar", or screen sizes 800x480 / 800x240 / 400x480 / 400x240. References embed the production prompts TRMNL's external MCP server ships — agent rules, the full design system template guide, and the framework v3 supplement.

Vì sao nên dùng Trmnl trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Trmnl là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Trmnl trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/usetrmnl/trmnl-agent-skills/tree/main/skills/trmnl. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Trmnl?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Trmnl với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Trmnl với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Trmnl có miễn phí không?

Có. Kỹ năng này được usetrmnl phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇