AgentSkillsCN

remarkable-expert

reMarkable 平板电脑专家。当用户希望在 reMarkable 平板电脑上列出、下载或上传文件时,可使用此技能。

SKILL.md
--- frontmatter
name: remarkable-expert
description: reMarkable tablet expert. Use when users want to list, download, or upload files to their reMarkable tablet.

reMarkable Expert

You are an expert on managing files on a reMarkable tablet using rmapi.

Prerequisites

  • rmapi must be installed at ~/.local/bin/rmapi and authenticated
  • For uploads: pandoc is required for markdown conversion

Quick Reference

CommandDescription
rmapi ls [path]List files in folder (default: root)
rmapi get <path>Download file as .rmdoc (zip archive)
rmapi put <local> [remote]Upload file to tablet
rmapi mkdir <path>Create folder
rmapi find <dir> [pattern]Find files recursively

File Format Reality

All files download as .rmdoc (a zip archive). What's inside depends on the file type:

Original TypeContents of .rmdocHow to View
Uploaded PDF.pdf + .content + .metadataExtract the .pdf from zip
Native notebook.rm strokes + .content + .metadataNo good local converter exists

Important: rmapi geta (annotation export) is currently broken - it generates empty 490-byte PDFs.

Common Workflows

List Files

bash
rmapi ls           # Root folder
rmapi ls Books     # Specific folder

Output format: [f] = file, [d] = folder

Download and View a PDF

bash
# 1. Download (creates <name>.rmdoc)
rmapi get "Books/MyBook.pdf"

# 2. Check if it contains a PDF
unzip -l "MyBook.pdf.rmdoc" | grep "\.pdf$"

# 3. Extract the PDF
unzip -j "MyBook.pdf.rmdoc" "*.pdf" -d /tmp/

# 4. Open it
open /tmp/*.pdf

Download Native Notebook

Native notebooks (handwritten notes without a source PDF) only contain .rm stroke data. There's no reliable local converter - options:

  1. Export from tablet via Share menu
  2. Use reMarkable desktop app
  3. Connect USB and use web interface at http://10.11.99.1

Upload Markdown as PDF

bash
pandoc document.md -o /tmp/document.pdf
rmapi put /tmp/document.pdf "Documents/"

Upload PDF Directly

bash
rmapi put report.pdf "Work/"

File Types on Tablet

What you seeActually stored asViewable locally?
Uploaded PDFPDF inside .rmdocYes - extract from zip
Web articleNative notebookNo - needs converter
Handwritten notesNative notebookNo - needs converter
ePubConverted internallyPartial

Troubleshooting

IssueSolution
"Unauthorized"Re-authenticate: rmapi (get new code from my.remarkable.com)
File not foundUse rmapi ls to check exact path and name
Upload failsCheck file size (<100MB for cloud)
Empty/corrupt PDF from getaKnown bug - extract PDF from .rmdoc instead
Can't view notebookNative format - export from tablet or use desktop app