This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

hedgedoc: update skill docs to use s skills.hedgedoc invocation

+10 -10
+10 -10
skills/hedgedoc/SKILL.md
··· 12 12 - **URL**: `https://pad.lassul.us` 13 13 - **Access**: Anonymous (no auth required) 14 14 15 - ## Script 15 + ## Invocation 16 16 17 - Use `./pad.sh <command>` (scripts are next to this SKILL.md): 17 + Use `s skills.hedgedoc <command>` — this IS the pad script. Do NOT use `./pad.sh` directly. 18 18 19 19 ### Read a pad 20 20 ```bash 21 - ./pad.sh read <pad-id> 21 + s skills.hedgedoc read <pad-id> 22 22 ``` 23 23 24 24 ### Create a new pad 25 25 ```bash 26 26 # From stdin 27 - echo "# My Document" | ./pad.sh create 27 + echo "# My Document" | s skills.hedgedoc create 28 28 29 29 # From a file 30 - ./pad.sh create /path/to/file.md 30 + s skills.hedgedoc create /path/to/file.md 31 31 ``` 32 32 Returns the new pad URL. 33 33 34 34 ### Edit a pad (in-place) 35 35 ```bash 36 36 # From stdin 37 - echo "# Updated content" | ./pad.sh edit <pad-id> 37 + echo "# Updated content" | s skills.hedgedoc edit <pad-id> 38 38 39 39 # From a file 40 - ./pad.sh edit <pad-id> /path/to/file.md 40 + s skills.hedgedoc edit <pad-id> /path/to/file.md 41 41 ``` 42 42 Edits the pad in-place via the HedgeDoc websocket API (socket.io + OT). No new pad created. 43 43 44 44 ### Get pad info 45 45 ```bash 46 - ./pad.sh info <pad-id> 46 + s skills.hedgedoc info <pad-id> 47 47 ``` 48 48 Returns JSON with title, description, viewcount, timestamps. 49 49 50 50 ## Typical Workflow 51 51 52 - 1. **Read** the pad: `pad.sh read <id>` → get current markdown 52 + 1. **Read** the pad: `s skills.hedgedoc read <id>` → get current markdown 53 53 2. **Edit** locally: save modified content to a temp file 54 - 3. **Write back**: `pad.sh edit <id> /tmp/updated.md` 54 + 3. **Write back**: `s skills.hedgedoc edit <id> /tmp/updated.md` 55 55 4. **Share**: `https://pad.lassul.us/<id>` 56 56 57 57 ## How it works