Skip to content
Back to skills

Uselink Publish

ASecurity

Publish files to uselink via the CLI. Use when the user asks to publish a document, share a file as a link, push content to uselink, or says 'publish this'.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 27, 2026
data-aigobashapi

Works with

  • terminal
  • cli
  • api

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned May 27, 2026

npx -y skills add compilet-dev/agent-skill-uselink --skill uselink-publish --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Uselink Publish?

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

Security grade badge for Uselink Publish
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/compilet-dev-uselink-publish/badge)](https://www.skillsdirectory.com/skills/compilet-dev-uselink-publish)

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: uselink-publish
description: "Publish files to uselink via the CLI. Use when the user asks to publish a document, share a file as a link, push content to uselink, or says 'publish this'."
allowed-tools:
  - Bash
  - Read
  - Write
  - Glob
---

# Publish to Uselink

Publishes Markdown or HTML files to uselink and returns the shareable URL.

## Prerequisites

Before publishing, verify both conditions:

1. **CLI installed** -- `which uselink` must resolve. If missing, tell the user to run `npm install -g uselink`.
2. **CLI configured** -- `~/.uselink/config.json` must exist with `api_key` and `api_url`. If missing, tell the user to run `uselink login` (interactive -- Claude cannot run it).

Do not proceed past prerequisites until both pass. The user must fix these themselves.

## Publishing

### When the user gives a file path

```bash
uselink publish <file> --title "Title Here" --format markdown
```

- `--format` is `markdown` or `html`. Infer from extension: `.md` -> `markdown`, `.html`/`.htm` -> `html`.
- `--title` defaults to the filename stem if the user doesn't specify one.
- `--project <uuid>` is optional -- only pass it if the user provides a project/workspace ID.

### When the user says "publish this" about generated content

1. Write the content to a temp file: `/tmp/uselink-publish-<timestamp>.md` (or `.html`).
2. Publish the temp file.
3. Do not clean up the temp file -- the user may want to re-publish after edits.

### After publishing

The CLI prints the public URL to stdout. Extract it and return it to the user as the primary output.

## Format Detection

| Extension | Format flag |
|-----------|-------------|
| `.md`, `.mdx`, `.markdown` | `--format markdown` |
| `.html`, `.htm` | `--format html` |
| No extension or ambiguous | Ask the user, or default to `markdown` |

## Gotchas

- **`uselink login` is interactive and cannot be run by Claude.** It prompts for an API key via stdin. If config is missing, tell the user to run it in their terminal -- do not attempt it.
- **The CLI prints the URL to stdout, not stderr.** Capture the full stdout from the publish command. The URL is typically the last line of output.
- **Large files may take several seconds.** Do not set an aggressive timeout on the publish command. Use a 30-second timeout minimum.
- **HTML files with relative asset paths will break on publish.** If the file references local images or CSS (`./assets/`, `../styles/`), warn the user that those assets won't be available on the published page. Inline assets or use absolute URLs.
- **Publishing the same file twice creates a new document each time.** The CLI does not upsert -- it always creates. If the user wants to update an existing doc, they need `uselink update` (not covered by this skill). Mention this if the user says "update" or "republish".

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.

Comments

Loading comments…

Newsletter

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