affinity-design

affinity-design is a skill for Claude Code, Codex from sekharmalla/affinity-mcp-server. It costs 69 tokens per session (1,756 once invoked), scanned A, original, MIT.

A workflow guide for using Affinity Design, a macOS app for creating and editing graphics. It explains how to control the app through interface actions and connected tools.

In plain words
What is it for?
Use it to create posters and graphics, edit images, draw shapes, add text, apply filters, export files, or automate Affinity tasks.
Why use it?
It provides the sequence needed to inspect Affinity, open documents, select tools, edit the canvas, and handle panels or dialogs.

Skill for Claude CodeCodex

Part of the affinity-mcp-server plugin — 1 skill, 1 MCP server shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/sekharmalla/affinity-mcp-server/affinity-design
Any agent
npx skills add sekharmalla/affinity-mcp-server --skill affinity-design
Clone the repo
git clone --depth 1 https://github.com/sekharmalla/affinity-mcp-server

Made for: Claude Code, Codex.

Or install affinity-mcp-server, the plugin that ships this one along with the rest of its 1 skill, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for affinity-design

README.md
[![agentmods](https://agentmods.dev/badge/skills/sekharmalla/affinity-mcp-server/affinity-design.svg)](https://agentmods.dev/skills/sekharmalla/affinity-mcp-server/affinity-design)
Your own site
<a href="https://agentmods.dev/skills/sekharmalla/affinity-mcp-server/affinity-design"><img src="https://agentmods.dev/badge/skills/sekharmalla/affinity-mcp-server/affinity-design.svg" alt="Measured on agentmods" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,756 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00069 $0.01756
Opus 5 $0.00034 $0.00878
Sonnet 5 $0.00014 $0.00351
Haiku 4.5 $0.00007 $0.00176

Measured 5d ago against content hash 2d9b23d3d39b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

affinity-design scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/affinity-design/SKILL.md · 153 lines

How it starts

The opening of the file, as written. The whole thing — 153 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Affinity Design Workflow Skill

This skill teaches you how to orchestrate 23 MCP tools to control Affinity creative suite on macOS. The tools are low-level primitives — this skill provides the high-level workflow knowledge to combine them into real design tasks.

Affinity UI Mental Model

Understand Affinity's interface before interacting with it:

  • Menu bar: File, Edit, Text, Document, Pixel, View, Window, Help — access via affinity_get_menus and affinity_click_menu
  • Toolbar: Drawing and editing tools along the left — access via affinity_select_tool
  • Canvas: The central work area — interact via affinity_mouse_action with screen coordinates
  • Panels: Right side (Layers, Color, Swatches, etc.) — inspect via affinity_get_ui, interact via affinity_click_ui
  • Dialogs: Modal windows for export, save, preferences — inspect and interact via affinity_get_ui + affinity_click_ui

Core Workflow Patterns

Start a Session

Always begin by checking status, launching if needed, then creating or opening a document:

  1. Call affinity_status to check if Affinity is running and see open windows
  2. Call affinity_launch if not running (waits 3 seconds for startup)
  3. Call affinity_new_document to create a blank document, or affinity_open_file to open an existing file
  4. Call affinity_screenshot to confirm the current state visually

Navigate the Menu System

Explore menus before clicking — never guess menu item names:

  1. Call affinity_get_menus with a top-level menu name (e.g., "File", "Edit", "Pixel") to list all items
  2. Call affinity_get_submenu for items that have submenus (e.g., File > Export, Pixel > Filters)
  3. Call affinity_click_menu with the full path array (e.g., ["File", "Export", "Export…"])

Menu paths use an array from the menu bar item down to the target item. Maximum depth is 4 levels.

Inspect and Interact with UI

When dialogs, panels, or unknown UI appears:

  1. Call affinity_get_ui to list all UI elements in the front window (buttons, text fields, checkboxes, etc.)
  2. Read the output to find the element you need — note its description or title
  3. Call affinity_click_ui with the element's description/title and type (button, checkbox, text field, etc.)

Read the full file on GitHub · 153 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 153 lines · 69 tokens per session scan A 2d9b23d3d39b

Subscribe to this mod's changes

affinity-design is a skill published in the GitHub repository sekharmalla/affinity-mcp-server (21 stars, last pushed 2mo ago), licensed MIT. It adds 69 tokens to every session and 1,756 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

apple-notes

Use this skill when the user wants to interact with Apple Notes on macOS - creating, searching, reading, updating, deleting, organizing, or formatting notes and folders. This skill provides access to Apple Notes through MCP tools and includes safe formatting guidance.

sweetrb/apple-notes-mcp · 54 tokens

applescript-mail

Use when writing, modifying, or debugging ANY AppleScript that interacts with Apple Mail. Also use when encountering AppleScript errors, unexpected Mail.app behavior, when adding new connector methods, or when debugging JSON output from ASObjC. Covers string escaping, attachment handling, Gmail compatibility, message…

s-morgan-jeffries/apple-mail-fast-mcp · 79 tokens

apple-mail

Use this skill when the user wants to manage Apple Mail on macOS - reading, searching, sending, replying to, forwarding, and organizing emails and mailboxes. This skill provides access to Apple Mail through MCP tools.

sweetrb/apple-mail-mcp · 47 tokens

performance-patterns

Use when optimizing Apple Mail MCP operations, diagnosing slow queries, adding new filtering logic, or modifying how data is fetched from Mail.app. Covers osascript overhead, whose clause optimization, batch operation patterns, and known operation timings.

s-morgan-jeffries/apple-mail-fast-mcp · 50 tokens

integration-testing

Use when setting up, running, or debugging integration tests against real Apple Mail. Also use when unit tests pass but behavior seems wrong, when adding new AppleScript operations, or when you need to understand why mocked tests are insufficient for this project.

s-morgan-jeffries/apple-mail-fast-mcp · 52 tokens

api-design

Use BEFORE adding any new tool, parameter, or endpoint to the Apple Mail MCP server. Also use when considering API changes, evaluating feature requests, or when tempted to create a specialized operation. Contains the decision tree that prevents tool sprawl and the anti-pattern catalog.

s-morgan-jeffries/apple-mail-fast-mcp · 56 tokens