mo-note

Original🇨🇳 Chinese
Translated

Mowen Notes. Triggered when viewing someone's homepage note list, my note list, or searching for notes.

9installs
Added on

NPX Install

npx skill4agent add mowenxd/cli mo-note

Tags

Translated version includes tags in frontmatter

SKILL.md Content (Chinese)

View Translation Comparison →

Preconditions

CRITICAL — Please read the
Shared Rules
first, which includes
mocli
initialization, authentication, output parsing, and security rules

mocli note - Mowen Notes

Command Selection Rules

  • Use
    mocli note search
    when the user wants to "search for notes related to a certain keyword".
  • Use
    mocli note homepage
    when the user wants to "view someone's homepage/public notes/popular notes/premium notes/collections".
  • Use
    mocli note mine
    when the user wants to "view my own notes/private notes/unpublished notes/notes I wrote".
  • When the user mentions a person's name, nickname, or alias but doesn't provide a UID, prioritize using
    mo-remark
    to look up the UID; if no match is found, consider using
    mocli user search
    or ask the user to supplement the UID.
  • When displaying the note list, prioritize traversing in the order of
    reply.note_ids
    , then get the note details from
    reply.notes[note_id]
    , and use
    reply.notes[note_id].uid
    to get the author information from
    reply.users
    .

mocli note search [--keyword] [--count] [--focus]

This command is used to search for notes by keyword.
--keyword
is a required parameter; if the user explicitly requests to search only for notes from a specified user, first parse the user's UID, then specify the UID via
--focus
.
Optional parameters:
  • --keyword string
    : Search keyword (required).
  • --count int
    : Number of notes to return. Range:
    1-100
    . Default:
    20
    .
  • --focus string
    : Only search for notes from the specified user (UID).

Usage Examples

  • Search for notes containing the keyword "AI Agent" in Mowen:
    mocli note search --keyword "AI Agent"
  • Search for 10 notes containing "Product Thinking" in Mowen:
    mocli note search --keyword "产品思考" --count 10
  • Search for notes related to "Prompt" written by Lao Chi (specified UID) in Mowen:
    mocli note search --keyword "Prompt" --focus xxxxxxxx --count 20

Output Example

{
  "code": 0,
  "status": "OK",
  "reply": {
    "note_ids": [
      "3jv1AiAjXJ4aBC83LqdMC",
      "ZVDGaChlin5voLpIp_9TM"
    ],
    "notes": {
      "3jv1AiAjXJ4aBC83LqdMC": {
        "note_id": "3jv1AiAjXJ4aBC83LqdMC",
        "uid": "Qiz5hxiY5wr5L76fyd8Kv",
        "title": "最近心情",
        "brief": "笔记摘要",
        "url": "https://note.mowen.cn/detail/3jv1AiAjXJ4aBC83LqdMC?from=mocli"
      },
      "ZVDGaChlin5voLpIp_9TM": {
        "note_id": "ZVDGaChlin5voLpIp_9TM",
        "uid": "Qiz5hxiY5wr5L76fyd8Kv",
        "title": "大家好呀,我是小白",
        "brief": "笔记摘要",
        "url": "https://note.mowen.cn/detail/ZVDGaChlin5voLpIp_9TM?from=mocli"
      }
    },
    "users": {
      "Qiz5hxiY5wr5L76fyd8Kv": {
        "uid": "xxxxxxxxxxxxxx",
        "name": "精卫鸟.",
        "intro": "一只小小鸟,订阅我的没几个人,所以你们都是特殊的。。"
      }
    }
  }
}

Reply Field Description

FieldTypeDescriptionReference Field
note_ids
arrayOrdered list of note IDs. Prioritize traversing this field when displaying the list.-
notes
map[string]NoteInfoNote information Map, with note IDs as keys and note information as values.
NoteInfo - Note Information
users
map[string]UserInfoUser information Map, with user UIDs as keys and user information as values. Use
notes[note_id].uid
to look up the author in this Map when displaying author info.
UserInfo - User Information

mocli note homepage [--uid] [--filter] [--count] [--recent]

This command is used to view the note list on a user's personal homepage, i.e., publicly displayed notes; unlike
mocli note mine
, it does not return private notes of the currently authenticated user. If the user does not provide
--uid
, the homepage of the currently authenticated user is viewed by default.
Optional parameters:
  • --uid string
    : Mowen UID of the user whose homepage notes are to be viewed. Uses the UID of the currently authenticated user by default.
  • --filter string
    : Filter type. Supported values:
    all(all notes)
    ,
    album(collections)
    ,
    fee(premium notes)
    ,
    popular(popular notes, i.e., most read)
    . Default:
    all
    .
  • --count int
    : Number of notes to return. Range:
    1-100
    . Default:
    20
    .
  • --recent string
    : Recent time filter, currently supports days(d) and hours(h), e.g.:
    2h
    ,
    1d
    , range:
    1h-15d
    . This parameter is ignored when
    --filter=popular
    .

Usage Examples

  • Check which notes I have published recently:
    mocli note homepage --recent 3d
  • Get 10 premium notes published by Erye:
    mocli note homepage --uid xxxxxxxx --filter fee --count 10
  • Get 10 note collections published by Lao Chi in the last 3 days:
    mocli note homepage --uid xxxxxxxx --filter album --count 10 --recent 3d
  • Get 30 most popular notes from Teacher Chi:
    mocli note homepage --uid xxxxxx --filter popular --count 30

Output Example

{
  "code": 0,
  "status": "OK",
  "reply": {
    "note_ids": [
      "3jv1AiAjXJ4aBC83LqdMC",
      "ZVDGaChlin5voLpIp_9TM"
    ],
    "notes": {
      "3jv1AiAjXJ4aBC83LqdMC": {
        "note_id": "3jv1AiAjXJ4aBC83LqdMC",
        "uid": "Qiz5hxiY5wr5L76fyd8Kv",
        "title": "最近心情",
        "brief": "笔记摘要",
        "url": "https://note.mowen.cn/detail/3jv1AiAjXJ4aBC83LqdMC?from=mocli"
      },
      "ZVDGaChlin5voLpIp_9TM": {
        "note_id": "ZVDGaChlin5voLpIp_9TM",
        "uid": "Qiz5hxiY5wr5L76fyd8Kv",
        "title": "大家好呀,我是小白",
        "brief": "笔记摘要",
        "url": "https://note.mowen.cn/detail/ZVDGaChlin5voLpIp_9TM?from=mocli"
      }
    },
    "users": {
      "Qiz5hxiY5wr5L76fyd8Kv": {
        "uid": "xxxxxxxxxxxxxx",
        "name": "精卫鸟.",
        "intro": "一只小小鸟,订阅我的没几个人,所以你们都是特殊的。。"
      }
    }
  }
}

Reply Field Description

FieldTypeDescriptionReference Field
note_ids
arrayOrdered list of note IDs. Prioritize traversing this field when displaying the list.-
notes
map[string]NoteInfoNote information Map, with note IDs as keys and note information as values.
NoteInfo - Note Information
users
map[string]UserInfoUser information Map, with user UIDs as keys and user information as values. Use
notes[note_id].uid
to look up the author in this Map when displaying author info.
UserInfo - User Information

mocli note mine [--filter] [--count] [--recent]

This command is used to view the list of notes created by the currently authenticated user, which may include private, partially public, fully public, and premium notes. It differs from
mocli note homepage
:
mine
is for the current authenticated user's creation management perspective, while
homepage
is for the public homepage display perspective. Prioritize using this command when the user only says "my notes"; if the user explicitly says "my homepage notes/public homepage", use
homepage
.
Optional parameters:
  • --filter string
    : Filter type. Supported values:
    all(all notes)
    ,
    fee(premium notes)
    ,
    pub(fully public)
    ,
    cond-pub(partially public)
    ,
    priv(private)
    . Default:
    all
    .
  • --count int
    : Number of notes to return. Range:
    1-100
    . Default:
    20
    .
  • --recent string
    : Recent time filter, supports days(d) and hours(h), e.g.:
    2h
    ,
    1d
    , range:
    1h-15d
    .

Usage Examples

  • Check the notes I wrote in the last 3 days:
    mocli note mine --recent 3d
  • Get 10 of my own premium notes:
    mocli note mine --filter fee --count 10
  • Get 20 of my own private notes (in the last 3 days):
    mocli note mine --filter priv --count 20 --recent 3d

Output Example

{
  "code": 0,
  "status": "OK",
  "reply": {
    "note_ids": [
      "3jv1AiAjXJ4aBC83LqdMC",
      "ZVDGaChlin5voLpIp_9TM"
    ],
    "notes": {
      "3jv1AiAjXJ4aBC83LqdMC": {
        "note_id": "3jv1AiAjXJ4aBC83LqdMC",
        "uid": "Qiz5hxiY5wr5L76fyd8Kv",
        "title": "最近心情",
        "brief": "笔记摘要",
        "url": "https://note.mowen.cn/detail/3jv1AiAjXJ4aBC83LqdMC?from=mocli"
      },
      "ZVDGaChlin5voLpIp_9TM": {
        "note_id": "ZVDGaChlin5voLpIp_9TM",
        "uid": "Qiz5hxiY5wr5L76fyd8Kv",
        "title": "大家好呀,我是小白",
        "brief": "笔记摘要",
        "url": "https://note.mowen.cn/detail/ZVDGaChlin5voLpIp_9TM?from=mocli"
      }
    },
    "users": {
      "Qiz5hxiY5wr5L76fyd8Kv": {
        "uid": "xxxxxxxxxxxxxx",
        "name": "精卫鸟.",
        "intro": "一只小小鸟,订阅我的没几个人,所以你们都是特殊的。。"
      }
    }
  }
}

Reply Field Description

FieldTypeDescriptionReference Field
note_ids
arrayOrdered list of note IDs. Prioritize traversing this field when displaying the list.-
notes
map[string]NoteInfoNote information Map, with note IDs as keys and note information as values.
NoteInfo - Note Information
users
map[string]UserInfoUser information Map, with user UIDs as keys and user information as values. Use
notes[note_id].uid
to look up the author in this Map when displaying author info.
UserInfo - User Information

Display Rules

** Reference **
Public Display Rules