mo-auth

An instruction set for managing authentication in the 墨问 command-line tool. It covers setting or replacing an API key and viewing the linked account profile.

In plain words
What is it for?
Initializing or replacing a 墨问 API key, checking authentication status, and retrieving the account profile.
Why use it?
It prevents authentication steps from being handled inconsistently and keeps API keys hidden in displayed results.

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-auth
Any agent
npx skills add mowenxd/cli --skill mo-auth
Clone the repo
git clone --depth 1 https://github.com/mowenxd/cli

Made for: Claude Code, Codex.

Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,038 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.00052 $0.01038
Opus 5 $0.00026 $0.00519
Sonnet 5 $0.00010 $0.00208
Haiku 4.5 $0.00005 $0.00104

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

Security

Grade A, and why

mo-auth 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-auth/SKILL.md · 92 lines

How it starts

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

前置约束

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

mocli auth - 墨问 Auth 认证

本技能提供墨问 Auth 认证的能力,指导你如何通过 mocli auth 完成 API Key 的配置与更新、获取当前的配置信息、获取 API Key 对应的账户,在墨问平台上的 Profile 信息。

使用原则

  • 用户提供新的 API Key 或要求初始化认证时,使用 mocli auth init --apik <api-key>
  • 用户明确要求更换、覆盖、重新配置 API Key 时,使用 mocli auth init --apik <api-key> --force
  • 用户要查看当前认证状态时,使用 mocli auth info;用户还要查看账号资料时,使用 mocli auth info --profile
  • 所有响应展示都必须隐藏 API Key。即使 mocli 返回的是脱敏值,也不要额外复述完整密钥。
  • 其它命令返回 reason=AUTH 时,引导用户重新提供 API Key,并使用 init --force 更新。

mocli auth init --apik [--force]

初始化 API Key。可选参数 --force 用于更换(覆盖)已有 API Key。该命令会写入本地认证配置,执行前需要确认用户确实要初始化或覆盖。

使用示例

  • 我的墨问 apikey 是 , 帮我完成认证/初始化 mocli auth init --apik xxxxxx
  • 我的墨问 apikey 换了,帮我更新一下 mocli auth init --apik xxxxxx --force

mocli auth info [--profile]

获取当前认证配置。可选参数 --profile 用于额外获取当前 API Key 对应账户在墨问平台上的 Profile(用户信息)。

使用示例

  • 查看我的墨问认证信息 mocli auth info
  • 查看我的墨问认证信息并返回我的用户资料 mocli auth info --profile

输出示例

{
  "code": 0,
  "status": "OK",
  "reply": {
    "auth": {
      "api_key": "hx3jrU31xxs**********0BVvUm4ytQK",
      "mo_uid": "KBqt7yiVrXBa9DJIJuUm3"
    },
    "profile": {
      "uid": "KBqt7yiVrXBa9DJIJuUm3",
      "name": "精卫鸟zzz🇨🇳",
      "intro": "in culpa nostrud",
      "regist_at": 1662465648,
      "member": {
        "is_member": true,
        "plans": {
          "pro": {
            "type": "pro",
            "status": 64,
            "expire_at": 1852446600011
          }
        }
      }
    }
  }
}

reply 字段说明

字段 类型 说明 引用字段
auth object 认证信息 AuthInfo - 认证信息
profile object 用户在墨问平台上的 Profile(用户信息) UserInfo - 用户信息

展示注意事项

  • auth.api_key 属于敏感信息。展示认证状态时只说明“已配置”或展示脱敏片段,不要输出完整密钥。
  • auth.mo_uid 可展示,用于帮助用户确认当前认证账号。
  • 如果 profile 存在,可展示 profile.nameprofile.uidprofile.intro、会员状态等非敏感信息。
  • 如果命令失败且 reason=AUTH,不要继续调用需要认证的命令;先提示用户重新初始化 API Key。

Read the full file on GitHub · 92 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 · 92 lines · 52 tokens per session scan A 9361bcffc2a2

Subscribe to this mod's changes

mo-auth is a skill published in the GitHub repository mowenxd/cli (33 stars, last pushed 8d ago), licensed MIT. It adds 52 tokens to every session and 1,038 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

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

babysit-pr

Babysit a GitHub pull request after creation by continuously polling review comments, CI checks/workflow runs, and mergeability state until the PR is merged/closed or user help is required. Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and keep…

openai/codex · 114 tokens

imagegen

Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output…

openai/codex · 113 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens