Skip to content
Back to skills

Maccyplus

ASecurity

Configure MaccyPlus clipboard rules and actions from the command line — no GUI, no recompile. Use when asked to create/edit/list/remove a Maccy rule or action, set up an auto-transform on copy (e.g. unwrap/trim/uppercase a copied value), bind a keyboard shortcut to a specific action, manage the list of terminal apps, or otherwise program Maccy's clipboard automation. Also use when the user mentions "MaccyPlus", "clipboard rules", or asks an agent to set up clipboard behavior on this Mac.

  • 4 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added October 23, 2026
toolsjavascriptpythonrustgojavabashdockergitapi

Works with

  • vscode
  • terminal
  • cli
  • api

Security analysis

A100/100

Scanned October 23, 2026

npx -y skills add roypadina/maccyplus --skill maccyplus --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Maccyplus?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Maccyplus
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/roypadina-maccyplus/badge)](https://www.skillsdirectory.com/skills/roypadina-maccyplus)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: maccyplus
description: >-
  Configure MaccyPlus clipboard rules and actions from the command line —
  no GUI, no recompile. Use when asked to create/edit/list/remove a Maccy rule
  or action, set up an auto-transform on copy (e.g. unwrap/trim/uppercase a
  copied value), bind a keyboard shortcut to a specific action, manage the list
  of terminal apps, or otherwise program Maccy's clipboard automation. Also use
  when the user mentions "MaccyPlus", "clipboard rules", or asks an agent to
  set up clipboard behavior on this Mac.
---

# MaccyPlus CLI

MaccyPlus is a macOS clipboard manager whose **rules** run **actions** on
copied values — automatically on copy, from the popup's right-click menu, via a
global shortcut, or via a per-action shortcut. This skill drives the app's
headless CLI so an agent can fully configure rules/actions without the GUI.

## 1. Find the binary

Bundle id: `com.royp.MaccyPlus`. The executable name contains a space, so
**always quote the path**.

```bash
APP=$(mdfind "kMDItemCFBundleIdentifier == 'com.royp.MaccyPlus'" | head -1)
BIN="$APP/Contents/MacOS/MaccyPlus"
"$BIN" rules describe        # prove it works; prints the live schema catalog
```

If `mdfind` returns nothing, the app may be a fresh Debug build under
`~/Library/Developer/.../Build/Products/Debug/MaccyPlus.app`. Ask the user
where it's installed if you can't locate it.

The CLI works whether or not the GUI is running. **When the GUI is running it
auto-reloads after every mutation** (a distributed notification re-reads the
config and re-binds shortcuts) — no restart needed. When it's not running, the
change is read on next launch.

## 2. Always start with `describe`

`"$BIN" rules describe` emits the **live** catalog built from the app's own
enums — value kinds, action types (and their required fields), transform kinds,
match modes, condition type tags, the shortcut grammar, and the default terminal
apps. Trust `describe` over this document if they ever disagree.

## 3. Commands

All output is pretty JSON on stdout. Errors go to stderr with a non-zero exit;
**validation runs before any write**, so a rejected command changes nothing.

```
"$BIN" rules list                      # all rules (JSON array)
"$BIN" rules export                    # same as list (stable snapshot)
"$BIN" rules get <id>                  # one rule
"$BIN" rules add      <input>          # create a rule (prints it, with ids)
"$BIN" rules update <id> <input>       # replace the rule with this id
"$BIN" rules remove <id>               # delete a rule
"$BIN" rules move   <id> <index>       # reorder (priority = position; 0 = first)
"$BIN" rules enable <id>               # set enabled = true
"$BIN" rules disable <id>              # set enabled = false
"$BIN" rules import <input>            # REPLACE ALL rules with a JSON array
"$BIN" rules describe                  # live schema catalog

"$BIN" terminals list                  # the terminal-app bundle ids
"$BIN" terminals add <bundleid>        # add one (deduped)
"$BIN" terminals remove <bundleid>     # remove one
"$BIN" terminals reset                 # back to built-in defaults

"$BIN" plugins list                    # JSON: packages, disabled ids, local folders, marketplace URLs
"$BIN" plugins enable  <package-id>    # toggle a package on
"$BIN" plugins disable <package-id>    # toggle a package off

"$BIN" folders list                    # registered local plugin folders
"$BIN" folders add    <path>           # register a folder (use after building a plugin)
"$BIN" folders remove <path>           # unregister a folder
```

> **Note:** Marketplace install/uninstall (fetching a package from a remote URL) is
> **GUI-only** (Settings → Plugins). It involves async network I/O that the CLI does
> not expose. Use `folders add` to register plugins you build locally.

`<input>` for `add` / `update` / `import` is one of:
- `--json '<json>'`  (preferred for agents)
- piped **stdin** (when neither flag is given)
- `--file <path>`  — the app is **sandboxed**, so the path must be readable by the
  app's sandbox (e.g. inside its container or an allowed location like `~/Downloads`).
  Arbitrary `/tmp` paths fail with a permission error; prefer `--json` or stdin.

`add`/`update` take a single rule **object**; `import` takes a rule **array**.

## 4. Plugin & folder management

### `plugins list` output shape

```jsonc
{
  "packages": [                    // all loaded packages (built-ins + plugins)
    {"id": "com.maccyplus.terminal-source", "name": "Terminal Source", "enabled": true},
    ...
  ],
  "disabledIds": ["com.example.my-plugin"],
  "localFolders": ["/Users/me/dev/my-plugin"],
  "marketplaceURLs": ["https://raw.githubusercontent.com/roypadina/MaccyPlus-Plugins/main/marketplace.json"]
}
```

### Enable / disable a package
```bash
"$BIN" plugins disable com.maccyplus.soft-wrap
"$BIN" plugins enable  com.maccyplus.soft-wrap
```

### Register / unregister a local plugin folder

After building or downloading a plugin folder, register it so MaccyPlus loads it:
```bash
"$BIN" folders add /Users/me/dev/my-plugin     # app reloads immediately if running
"$BIN" folders list                            # verify it appeared
"$BIN" folders remove /Users/me/dev/my-plugin  # unregister
```

### Plugin folder structure

A plugin is a **plain folder** with at minimum a `plugin.json` manifest:

```
my-plugin/
  plugin.json         # required manifest
  src/my-action.js    # required only for JavaScript providers
```

Minimal `plugin.json`:
```jsonc
{
  "id": "com.example.my-plugin",   // reverse-domain, unique
  "name": "My Plugin",
  "version": "1.0.0",
  "description": "What it does.",
  "capabilities": ["action"],      // ["condition"], ["action"], or both
  "providers": [
    {
      "id": "com.example.my-plugin.my-action",
      "name": "My Action",
      "description": "Transforms the clipboard value.",
      "kind": "action",
      "engine": "javascript",      // or "declarative"
      "entry": "src/my-action.js"  // path relative to plugin folder (JS only)
    }
  ]
}
```

**JavaScript engine constraints:** The sandbox has no network, no filesystem, no
timers, and a ~250 ms watchdog. Export `transform(text)` (action) or
`matches(input)` (condition). Anything outside that API is unavailable.

**Declarative engine:** Specify a JSON transform pipeline or predicate tree
instead of an `entry` file. No code required.

### Marketplace structure (for publishing)

A marketplace is a public git repo with a `marketplace.json` at the root:

```jsonc
{
  "id": "com.example.my-marketplace",
  "name": "My Marketplace",
  "plugins": [
    {
      "id": "com.example.my-plugin",
      "name": "My Plugin",
      "version": "1.0.0",
      "kind": "action",
      "source": {
        "type": "github",
        "repo": "example/my-marketplace",
        "ref": "main",
        "path": "plugins/my-plugin"
      },
      "sha256": "<sha256 of that plugin's plugin.json>"
    }
  ]
}
```

The official marketplace is **roypadina/MaccyPlus-Plugins** (pre-loaded in the app).
Full authoring and publishing guides live in that repo's `docs/`.

## 5. Rule JSON schema

```jsonc
{
  "id": "UUID",                 // optional on add (generated); set by <id> on update
  "name": "Unwrap terminal command",
  "enabled": true,
  "matchMode": "all",           // "all" = AND, "any" = OR
  "conditions": [ /* see below */ ],
  "actions":    [ /* see below */ ],  // first action = the rule's default action
  "autoRunDefault": true        // run the default action automatically on copy
}
```

Omitted fields get struct defaults (`enabled:true`, `matchMode:"all"`,
`autoRunDefault:false`, `name:"New rule"`). Missing rule/action ids are generated.

### Conditions (tagged form)

```jsonc
{"type": "kind",          "value": "url"}            // value ∈ ValueKinds (below)
{"type": "regex",         "value": "^npm "}          // must compile
{"type": "contains",      "value": "docker"}         // case-insensitive substring
{"type": "sourceApp",     "value": "com.apple.Terminal"}  // copy's source bundle id
{"type": "softWrapped"}                              // looks like a wrapped terminal command
{"type": "terminalSource"}                           // copied from a configured terminal app
```

`ValueKinds`: `url`, `email`, `phone`, `filePath`, `colorHex`, `image`, `text`.

Provider form only (no tagged equivalent): `builtin.pathType` with
`{"type": "file"}` or `{"type": "folder"}` — looks the copied path up on disk, so a
path that does not exist matches neither. Use it with `kind = filePath` to split a
path rule into a file rule and a folder rule.

A rule matches when its conditions satisfy `matchMode` (all/any). Empty
conditions never match.

### Actions

```jsonc
{
  "id": "UUID",            // optional (generated)
  "type": "transform",     // see ActionTypes
  "appBundleID": "...",    // required for openInApp
  "searchTemplate": "https://www.google.com/search?q={query}", // required for webSearch
  "transform": "unwrap",   // required for transform; see TransformKinds
  "shortcutName": "...",   // required for runShortcut (a macOS Shortcuts name)
  "shortcut": "cmd+shift+u"// OPTIONAL per-action global shortcut (see grammar)
}
```

`ActionTypes` and their required field:
- `openURL` — (none)
- `openInApp` — `appBundleID`
- `webSearch` — `searchTemplate` (use `{query}` placeholder)
- `revealInFinder` — (none); folder path → opens that folder in Finder, file path → opens
  the containing folder with the file selected. Accepts `/abs`, `~/rel`, `file://` URLs and
  copied Finder items. Pair with `{"type":"kind","kind":"filePath"}` and place the rule
  above any `kind = text` rule so the global default-action shortcut prefers it.
- `openFile` — (none); opens the copied path with its default app (read-only sandbox
  exception, so the receiving app may not be able to save back); (folder path → opens that
  folder in Finder). Same path forms as `revealInFinder`. Needs no setup; give it its own
  `shortcut` to keep it separate from the reveal action.
- `transform` — `transform`
- `runShortcut` — `shortcutName`

`TransformKinds`: `trim`, `uppercase`, `lowercase`, `stripFormatting`,
`unwrap` (join soft-wrapped terminal lines into one ready-to-paste command),
`fixKeyboardLayout` (re-map text typed in the wrong layout, EN ⇄ HE; direction auto-detected).

### Per-action shortcut grammar (`shortcut` field)

`+`-joined, case-insensitive. Modifiers: `cmd|command`, `shift`, `opt|option|alt`,
`ctrl|control`. Final token is the key: `a`–`z`, `0`–`9`, `space`,
`return|enter`, `tab`, `escape|esc`, `delete|backspace`, `f1`–`f12`.
Example: `"cmd+shift+u"`.

A per-action shortcut runs **that specific action** on the current clipboard,
**unconditionally** — it ignores rule matching and priority. This is separate
from the rule-level **global default shortcut** (set in the GUI), which runs the
highest-priority matching rule's default action.

## 6. Recipes

### Create the "unwrap terminal command" rule (auto on copy)
Fires only when a copy comes from a terminal app **and** shows the soft-wrap
signature, then strips the wrap so it pastes as one line:

```bash
echo '{
  "name": "Unwrap terminal command",
  "matchMode": "all",
  "conditions": [{"type":"terminalSource"}, {"type":"softWrapped"}],
  "actions": [{"type":"transform","transform":"unwrap","shortcut":"cmd+shift+u"}],
  "autoRunDefault": true
}' | "$BIN" rules add
```

### Add a regex rule that opens matching values in an app
```bash
"$BIN" rules add --json '{
  "name":"Open Jira keys",
  "conditions":[{"type":"regex","value":"^[A-Z]+-[0-9]+$"}],
  "actions":[{"type":"openInApp","appBundleID":"com.apple.Safari"}]
}'
```

### Bind a shortcut to one action (without changing matching)
Fetch the rule, set the action's `shortcut`, pipe it back via stdin (sandbox-safe):
```bash
"$BIN" rules get <id> \
  | python3 -c 'import sys,json; r=json.load(sys.stdin); r["actions"][0]["shortcut"]="cmd+shift+u"; sys.stdout.write(json.dumps(r))' \
  | "$BIN" rules update <id>
```

### Manage terminal apps (what `terminalSource` matches)
```bash
"$BIN" terminals list
"$BIN" terminals add com.mitchellh.ghostty
"$BIN" terminals remove com.microsoft.VSCode
"$BIN" terminals reset
```

### Build and register a plugin (agent recipe)

1. Write the plugin folder (e.g. `~/dev/my-plugin/`) with `plugin.json` and any
   `.js` entry files (see section 4 for the schema).
2. Register the folder — the running app reloads immediately:
   ```bash
   "$BIN" folders add ~/dev/my-plugin
   ```
3. Verify it loaded:
   ```bash
   "$BIN" plugins list | python3 -c 'import sys,json; pkgs=json.load(sys.stdin)["packages"]; [print(p["id"],p["enabled"]) for p in pkgs]'
   ```
4. Enable or disable as needed:
   ```bash
   "$BIN" plugins enable  com.example.my-plugin
   "$BIN" plugins disable com.example.my-plugin
   ```

Human path: **Settings → Plugins → Local folders → Add folder**, then toggle in the
same panel.

### Build a marketplace (agent recipe)

1. Create a public GitHub repo (e.g. `my-org/my-marketplace`).
2. Add a `marketplace.json` at the repo root (see section 4 for the schema).
3. Place each plugin's folder under `plugins/<plugin-id>/`.
4. Compute the `sha256` of each plugin's `plugin.json` and record it in
   `marketplace.json`.
5. Direct users to add the raw `marketplace.json` URL in **Settings → Plugins →
   Marketplaces**. The CLI does not manage marketplace URLs — that is GUI-only.

Full authoring guides: see the `docs/` folder in **roypadina/MaccyPlus-Plugins**.

## 7. Notes & gotchas

- **Quote the binary path** — it contains a space.
- `add`/`update`/`import` **validate before writing**: a bad `transform`/`regex`/
  `shortcut`, or a missing required action field, exits non-zero and changes nothing.
- Editing one rule is read-modify-write: `rules get <id>` → edit JSON →
  `rules update <id>`. Use `rules import` only to replace the entire rule set.
- Reordering matters: `autoRunDefault` fires the **first** matching rule; the
  rule editor's first action is its **default** action.
- Output uses sorted keys; when scraping ids from `add` output, parse the JSON
  (the rule's top-level `id`) rather than grabbing the first `id` you see — an
  action's `id` can sort ahead of the rule's.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.