mo-auth

mo-auth is a skill for Claude Code, Codex from mowenxd/cli. It costs 52 tokens per session (1,038 once invoked), scanned A, original, MIT.

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

Written for no agent in particular: nothing here depends on one.

not rated 40repo 1mo ago A scan Socket: warnSnyk: passSkillSpector: pass 52 tokens original MIT

Good fit Initializing or replacing a 墨问 API key, checking authentication status, and retrieving the account profile.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mowenxd/cli/mo-auth
View source ↗ mowenxd/cli
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.

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.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mo-auth

README.md
[![agentmods](https://agentmods.dev/badge/skills/mowenxd/cli/mo-auth/github.svg)](https://agentmods.dev/skills/mowenxd/cli/mo-auth)
Your own site
<a href="https://agentmods.dev/skills/mowenxd/cli/mo-auth"><img src="https://agentmods.dev/badge/skills/mowenxd/cli/mo-auth/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mo-auth

Your own site · 80×15
<a href="https://agentmods.dev/skills/mowenxd/cli/mo-auth"><img src="https://agentmods.dev/badge/skills/mowenxd/cli/mo-auth.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket warn 16 Sept 2026
  • Snyk pass 16 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.1 $0.00052 $0.01038
Opus 5.5 $0.00021 $0.00415
Sonnet 5.5 $0.00010 $0.00208
Haiku 4.5 $0.00005 $0.00104

Measured 2mo ago against content hash 9361bcffc2a2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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.name、profile.uid、profile.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. 2mo 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 (40 stars, last pushed 1mo ago), licensed MIT. It adds 52 tokens to every session and 1,038 once invoked, about $0.0002 per session on Opus 5.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

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

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

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

component-fixtures

Use when creating or updating component fixtures for screenshot testing or their shared infrastructure, or when designing UI components to be fixture-friendly. Covers fixture file structure, theming, service setup, CSS scoping, async rendering, validation, and common pitfalls.

microsoft/vscode · 53 tokens