mo-misc

A guide for uploading local files or files from public URLs to 墨问, a service that uses uploaded files as attachments for notes, comments, and other content. It returns a file ID that later commands can use to refer to the upload.

In plain words
What is it for?
Uploading images, audio files, or PDFs and obtaining their file IDs. Those IDs can then be included when creating or editing 墨问 notes, comments, or other content.
Why use it?
It removes the manual steps of uploading an attachment and finding the identifier needed by later 墨问 requests. It also documents which file types and size limits are accepted.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/mowenxd/cli/mo-misc
Any agent
npx skills add mowenxd/cli --skill mo-misc
Clone the repo
git clone --depth 1 https://github.com/mowenxd/cli

Made for: Claude Code, Codex.

Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,278 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00050 $0.01278
Opus 5 $0.00025 $0.00639
Sonnet 5 $0.00010 $0.00256
Haiku 4.5 $0.00005 $0.00128

Measured 2d ago against content hash 8372b124348d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

mo-misc scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/mo-misc/SKILL.md · 84 lines

How it starts

The opening of the file, as written. The whole thing — 84 lines — stays where its author put it; the contents beside it link to each section on GitHub.

前置约束

CRITICAL — 先阅读 共享规则,其中包含 mocli 初始化、认证、输出解析以及安全规则

mocli misc - 墨问通用工具

本技能指导你使用 mocli misc 完成通用辅助操作。当前主要能力是上传本地或远端文件,并获取后续可被笔记、评论或其它墨问接口引用的 file_id

mocli misc upload [--file] [--url] [--filename]

本命令用于将本地文件或远端文件 URL 上传到墨问。上传成功后返回 reply.file_id,并尽量返回文件名、MIME、大小和 file_meta 等元信息。

使用时机

  • 用户明确要求“上传文件到墨问”“上传图片/音频/PDF”“把这个 URL 上传成墨问文件”时使用本命令。
  • 用户要创建或编辑笔记,并需要先获得图片、音频或 PDF 的 file_id 时,先使用本命令上传文件,再把返回的 file_id 用到后续内容构造中。
  • 用户只想引用一个已有公网 URL,且目标接口明确支持 URL 直链时,不要自动上传;只有需要墨问 file_id 时才上传。

可选参数

  • --file string:本地文件路径。与 --url 二选一,不能同时传。
  • --url string:远端文件 URL。与 --file 二选一,不能同时传。
  • --filename string:可选的上传文件名。用于服务端展示名和上传表单文件名;不传时,本地文件默认使用路径 basename,远端 URL 默认不强行推导。

使用原则

  • --file--url 必须且只能提供一个;如果用户同时给了本地路径和 URL,先询问要上传哪一个。
  • 本地文件路径建议使用绝对路径,避免工作目录不一致导致找不到文件。
  • 不要添加 --filetype;CLI 会读取文件内容或远端响应前 512 字节,根据 MIME 自动识别类型。
  • 当前支持上传图片、音频和 PDF;HTML、纯文本、压缩包、视频或未知 MIME 会被拒绝。
  • 大小限制:图片小于 50MB,音频小于 200MB,PDF 小于 100MB。用户给出的文件明显超限时,先说明限制,不要盲目尝试。
  • 上传本地文件或远端 URL 都会向墨问服务端提交文件内容;如果文件可能包含隐私或敏感信息,执行前先确认用户确实要上传。
  • 对远端 URL,上传过程会由 CLI 下载该 URL 内容;如果 URL 需要登录态、临时签名或内网访问,可能失败,应提示用户提供可公开访问或当前环境可访问的链接。
  • 执行后按共享规则解析顶层 codestatusreason;成功时展示 reply.file_id,并根据任务需要使用 reply.file_typereply.file_namereply.file_mimereply.file_sizereply.file_meta;失败时展示 reasonmsgmeta.hints 等可执行信息。

使用示例

  • 上传本地图片 mocli misc upload --file /path/to/avatar.png
  • 上传本地 PDF 并指定展示名 mocli misc upload --file /path/to/report.pdf --filename "产品报告.pdf"
  • 上传远端图片 URL mocli misc upload --url "https://example.com/image.png" --filename "image.png"
  • 上传本地音频 mocli misc upload --file /path/to/audio.wav

输出示例

{
  "code": 0,
  "status": "OK",
  "reply": {
    "file_id": "F_uploaded",
    "file_type": "AUDIO",
    "file_name": "audio.mp3",
    "file_mime": "audio/mpeg",
    "file_size": 3790598,
    "file_meta": "{\"duration\":236.878367,\"format\":\"mp3\",\"format_name\":\"mp3\"}"
  }
}

Read the full file on GitHub · 84 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 84 lines · 50 tokens per session scan A 8372b124348d

Subscribe to this mod's changes

mo-misc is a skill published in the GitHub repository mowenxd/cli (33 stars, last pushed 7d ago), licensed MIT. It adds 50 tokens to every session and 1,278 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

general-video

Author or edit a custom HyperFrames composition when no specialized workflow fits, or when BRIEF.md sets flow: companion. Use for longer or multi-scene pieces, brand and sizzle reels, montages, static loops, static title cards, footage remixes, and freeform builds. Use motion-graphics instead for a short unnarrated…

heygen-com/hyperframes · 92 tokens

media-ingest

Ingest video, audio, PDF, book, screenshot, and GitHub repo content into the brain. Multi-format handling with entity extraction and backlink propagation. Covers video-ingest, youtube-ingest, and book-ingest subtypes.

garrytan/gbrain · 52 tokens

diagnostic-stem-delivery

Audio production with diagnostic analysis, timecode parsing from documents, and verified export workflow.

HKUDS/OpenSpace · 23 tokens

vox-director

Turn ONE topic into a finished Vox-style paper-collage explainer / ad video, end to end on the Atlas Cloud API + local ffmpeg — script, collage keyframes, motion, voice-over, music, captions, all automated. Use this whenever the user wants a "Vox style" video, a paper/torn-paper collage animation, a "motion collage"…

Alisa0808/vox-director · 236 tokens

seedance-vocab-ja

This skill should be used when the user asks for Japanese Seedance 2.0 prompt wording, Japanese cinematic vocabulary, or translation of camera, lighting, action, VFX, audio, and production terms into Japanese.

Emily2040/seedance-2.0 · 50 tokens

model-compatibility

Model family compatibility matrix covering loaders, resolutions, samplers, CFG, VAE, ControlNet, and LoRA compatibility for SD 1.5, SDXL, Flux, SD3, and video models.

artokun/comfyui-mcp · 47 tokens