Token导航 LogoToken导航TokenDH.com
前端设计需要联网github未标认证来源可访问许可证需确认审计提醒

mesopmesop 命令行

Agent Skill

mesop 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

517

周安装

22

GitHub Stars

11

下载量

181
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:mesop(mesop 命令行)
来源仓库:https://github.com/outlinedriven/odin-codex-plugin
仓库路径:skills/mesop
安装命令:
npx skills add https://github.com/outlinedriven/odin-codex-plugin --skill mesop
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/outlinedriven/odin-codex-plugin --skill mesop

简介

用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合围绕仓库状态进行整理。

  • 适用于 Codex、Claude、Cursor、Gemini CLI 中需要跟踪代码变更或协作事项的场景。
  • 通过 GitHub 安装,具体用法需结合来源仓库 README 进一步核验。
  • 安装前应确认权限范围、维护状态及是否触发联网或文件读写操作。
  • 建议在使用前评估对本地环境和外部服务的潜在影响。

SKILL.md

Mesop

Use this skill to build, debug, and deploy Mesop applications. Mesop is a Python-native UI framework that enables developers to build web apps without writing frontend code (HTML/CSS/JS).

Quick Triage

  • Use this skill for pure Python web UIs, especially for AI/ML demos and internal tools.
  • Do NOT use this skill if the user specifically requests a different Python framework (Streamlit, Gradio, Solara) unless they are asking for a comparison or migration.
  • Do NOT use this skill for general Flask/FastAPI backend development unless it's specifically about mounting a Mesop app.

Workflow

  1. Setup: Install mesop and create main.py.
  2. Define Page: Use @me.page(path="/") to define the entry point.
  3. Define State: Create a @me.stateclass to hold session state (must be serializable).
  4. Create Components: Build the UI tree using me.box, me.text, me.input, etc.
  5. Handle Events: Write event handler functions (regular or generator) to update state.
  6. Style: Apply styles using me.Style (flexbox/grid) for layout and appearance.
  7. Deploy: Deploy to Cloud Run, Docker, or Hugging Face Spaces.

Essential Patterns

Standard Import

Always use the standard alias:

import mesop as me
import mesop.labs as mel # For labs components like chat

State Management

State is session-scoped and must be serializable.

@me.stateclass
class State:
  count: int = 0
  input_value: str = "" # Immutable default
  # items: list[str] = field(default_factory=list) # Mutable default pattern

Accessing State: state = me.state(State) inside components or event handlers.

Event Handlers

  • Regular: Run to completion, then update UI.
  • Generator: yield to stream UI updates (e.g., loading states, LLM streaming). MUST yield at the end.
  • Async: Use async def and await for concurrent operations.

Component Composition

Use with blocks for content components (parents):

with me.box(style=me.Style(display="flex")):
  me.text("Child 1")
  me.button("Child 2")

Key Usage

Use key to identify components for:

  • Resetting state (change key to re-render)
  • Focus management (me.focus_component)
  • Scroll targeting (me.scroll_into_view)
  • Reusing event handlers (access e.key)

Common Pitfalls

  • Closure Variables: Do NOT rely on closure variables in event handlers; they may be stale. Use key or state instead.
  • Input Race Conditions: Avoid setting value on inputs unless necessary. Use on_blur instead of on_input for performance, or track "initial" vs "current" value if bidirectional binding is needed.
  • Mutable Defaults: Never use mutable types (list, dict) as default values in @me.stateclass. Use dataclasses.field(default_factory=...).
  • Global State: Global variables are shared across ALL users. Use @me.stateclass for per-session state.

Reference Map

  • Core Patterns: references/core-patterns.md (State, Events, Streaming, Navigation)
  • Components: references/components-reference.md (API reference for all components)
  • Styling & Layouts: references/styling-and-layouts.md (CSS-in-Python, Flexbox, Grid, Theming)
  • Deployment: references/deployment-and-config.md (Cloud Run, Docker, Config, Security)
  • Web Components: references/web-components.md (Custom JS integration, Lit)

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.84%
按下载量换算63

Claude

29.99%
按下载量换算54

Cursor

18.48%
按下载量换算33

Gemini CLI

10.15%
按下载量换算18

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills