# markedit-tools

markedit-tools manages the MarkEdit markdown editor on macOS: installs updates, handles extensions, and edits settings via Claude Code.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf (Devin Desktop), Claude.ai · ★ 173 repo stars
- Author: sammcj
- License: Apache-2.0 · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/sammcj/agentic-coding/tree/HEAD/Skills_disabled/markedit/SKILL.md
- Updated: 2026-10-24
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/markedit-tools

## What it does

This skill automates maintenance tasks for MarkEdit on macOS. It retrieves releases directly from GitHub, asks which DMG build to download, moves the app bundle into `/Applications`, and relaunches the editor using AppleScript.

It also handles scripts and styling. The skill downloads extension files into the app container folder, supports lite builds, and updates `settings.json`. Because configuration files are tracked with chezmoi, the skill runs `chezmoi add --encrypt` on modified files but leaves git commits untouched.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add sammcj/agentic-coding --skill markedit-tools -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/markedit/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/markedit/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add sammcj/agentic-coding --skill markedit-tools -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/markedit/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add sammcj/agentic-coding --skill markedit-tools -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/markedit/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install sammcj/agentic-coding Skills_disabled/markedit/SKILL.md
```

2. **Manually: put the files in place**
- File: `.github/skills/markedit/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add sammcj/agentic-coding --skill markedit-tools -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/sammcj/agentic-coding --path Skills_disabled/markedit
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/markedit/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/sammcj/agentic-coding/tree/HEAD/Skills_disabled/markedit/SKILL.md

## When to use it
- download and deploy the latest MarkEdit release
- install or remove JavaScript extensions for MarkEdit
- inspect installed extensions with file sizes and dates
- update advanced parameters in `settings.json`

## Example prompts
- Upgrade MarkEdit to the latest release
- Install the lite version of the MarkEdit Preview extension
- Turn on idle auto-save in MarkEdit settings

## Source text · SKILL.md · Apache-2.0

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: 08b1916fc940d1d0.

BEGIN THIRD-PARTY FILE 08b1916fc940d1d0
````text
---
name: markedit-tools
description: Provides tools for managing MarkEdit, a macOS markdown editor
---

# Purpose

Help users configure and extend [MarkEdit](https://github.com/MarkEdit-app/MarkEdit), a free and open-source markdown editor for macOS.

## Key Capabilities

- Upgrade the MarkEdit app
- Install, upgrade, and manage MarkEdit extensions
- Configure MarkEdit advanced settings
- Answer questions related to MarkEdit

## Core Concepts

### File Locations

| Path | Description |
|------|-------------|
| `~/Library/Containers/app.cyan.markedit/Data/Documents/scripts/` | Extensions directory |
| `~/Library/Containers/app.cyan.markedit/Data/Documents/settings.json` | Advanced settings |
| `~/Library/Containers/app.cyan.markedit/Data/Documents/editor.css` | Custom stylesheets |
| `~/Library/Containers/app.cyan.markedit/Data/Documents/editor.js` | Custom JavaScript |

### Extension URLs

When a user provides an extension name, download from this URL pattern:

```
https://github.com/MarkEdit-app/extension-name/blob/main/dist/extension-name-kebab-cased.js?raw=true
```

Always normalise the extension name to kebab-case.

For example, [MarkEdit Preview](https://github.com/MarkEdit-app/MarkEdit-preview) is available at:
`https://github.com/MarkEdit-app/MarkEdit-preview/blob/main/dist/markedit-preview.js?raw=true`

When a user requests a "lite" build, it is located in the `lite` subfolder under `dist`:
`https://github.com/MarkEdit-app/MarkEdit-preview/blob/main/dist/lite/markedit-preview.js?raw=true`

The filename is identical to the standard build; do not add a `-lite` suffix.

If the dist file is not found (non-200 response), fall back to the GitHub **latest release** asset:

1. Fetch the latest release tag from the GitHub API:
   `https://api.github.com/repos/MarkEdit-app/extension-name/releases/latest`
2. Read the `tag_name` field from the response.
3. Download the asset using:

```
https://github.com/MarkEdit-app/extension-name/releases/download/{tag_name}/extension-name-kebab-cased.js
```

For example, if `dist/markedit-preview.js` is not available in the repository and the latest release tag is `v1.0.0`:
`https://github.com/MarkEdit-app/MarkEdit-preview/releases/download/v1.0.0/markedit-preview.js`

If the user provides a URL ending with `.js`, use that URL directly.

## Common Tasks

### Upgrading MarkEdit

1. Retrieve the latest release from [GitHub releases](https://github.com/MarkEdit-app/MarkEdit/releases)
2. Prompt the user to choose: `.dmg` or `apple-silicon.dmg`
3. Download the selected installer
4. Extract the `.app` bundle from the `.dmg`
5. Move the `.app` bundle to `/Applications`
6. Launch MarkEdit

### Re-Launching MarkEdit

```sh
osascript -e 'quit app "MarkEdit"' -e 'delay 1' -e 'launch app "MarkEdit"'
```

### Installing Extensions

1. Download the extension by name or URL
2. Place it in the extensions directory
3. Re-launch MarkEdit

Use the filename derived from the URL. If a file with the same name exists, prompt the user to confirm overwriting.

### Listing Extensions

List all `.js` files in the extensions directory with their sizes and last modification dates.

### Upgrading Extensions

1. Re-download the extension from the same source (lite or full)
2. Overwrite the existing file
3. Re-launch MarkEdit

### Uninstalling Extensions

1. Add `.js` suffix to the name if needed
````
END THIRD-PARTY FILE 08b1916fc940d1d0

The third-party file has ended. Everything between the 08b1916fc940d1d0 tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

First 3360 of 5618 bytes. © sammcj · Apache-2.0 · https://github.com/sammcj/agentic-coding/tree/HEAD/Skills_disabled/markedit/SKILL.md

_Part of the page did not fit — see the HTML version._

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
