Mycc logo

Mycc

Community
xiaomo-agi
mycc

启动 mycc 后端服务(后台运行),通过飞书机器人远程操控 Claude Code。触发词:"/mycc"、"启动 mycc"、"启动 mycc 后端"、"检查 mycc 状态"

Overview

Publisherxiaomo-agi
Repositoryxiaomo-skills
Skill namemycc
Stars
28
Forks
1
Bundled files
107
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 107 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by xiaomo-agi on GitHub. Read the source before you install it.

Installation

Install the Mycc AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/xiaomo-agi/xiaomo-skills/tree/main/skills/mycc
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/xiaomo-agi/xiaomo-skills.git /tmp/xiaomo-skills
mkdir -p .claude/skills
cp -r /tmp/xiaomo-skills/skills/mycc .claude/skills/mycc
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Mycc in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Mycc on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Mycc is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

mycc

启动和管理 mycc 本地后端。不是 mycc 的开发。

启动 mycc 本地后端,通过飞书机器人(websocket 长连接)远程操控本地 Claude Code。

环境要求

要求说明
Claude Code必须是官方原版,fork 版本可能不兼容
Node.js18+
飞书一个自建应用(机器人),App ID + App Secret 填入 .env
系统✅ macOS、✅ Linux、✅ Windows

💡 关于第三方 Claude Code:目前仅测试了官方原版,第三方 fork 版本的兼容性支持在规划中。

触发词

  • "/mycc"
  • "启动 mycc"
  • "启动 mycc 后端"
  • "检查 mycc 状态"

执行步骤

1. 安装依赖(首次)

bash
cd .claude/skills/mycc/scripts && npm install && cd -

2. 启动后端

bash
.claude/skills/mycc/scripts/node_modules/.bin/tsx .claude/skills/mycc/scripts/src/index.ts start -d

start -d(守护模式)会自动脱离 CC 进程树并把日志追加到 .claude/skills/mycc/mycc.log,关掉 CC 窗口也不会挂。不要用 run_in_background: true,不要手拼 nohup。

其他命令(同一个入口,换子命令即可):

命令作用
status探测 /health,显示运行/配对状态(未运行时退出码 1)
ps列出注册的后端进程(短 id / pid / 端口 / 启动时间)
stop停止所有后端进程(先 SIGTERM 优雅退出,超时 SIGKILL 兜底)
restartstop + start -d
kill <id|pid|序号>干掉指定进程(id 用 ps 查看)
service start注册为系统服务并启动(推荐长期使用:开机自启 + 崩溃自动重启)
service status / stop / uninstall服务状态 / 停止 / 移除,详见 service help

代码会自动检测项目根目录(向上查找 .claude/ 或 claude.md),无需手动指定 cwd。

守护模式(推荐):service start 会把后端注册成 OS 托管服务——macOS 用 launchd(KeepAlive)、Linux 用 systemd 用户级 unit(Restart=always)、Windows 用计划任务 + watchdog 巡检。进程崩溃自动拉起,开机自动启动,无需额外脚本。

3. 读取连接信息

等待几秒后读取:

bash
sleep 5 && cat .claude/skills/mycc/current.json

4. 告知用户

展示:

  • 飞书通道状态(配置 FEISHU_APP_ID 等环境变量后自动启动,websocket 模式无需公网地址)
  • 不展示 Web URL,不打开浏览器(网页端已移除)

关键说明

  • 后台运行:后端会在后台持续运行,不阻塞当前会话
  • 自动检测 cwd:会向上查找项目根目录,确保 hooks 能正确加载
  • 连接信息:保存在 .claude/skills/mycc/current.json
  • 停止服务:.claude/skills/mycc/scripts/node_modules/.bin/tsx .claude/skills/mycc/scripts/src/index.ts stop
  • Agent Teams 支持:后端已完整支持 Agent Teams(建队、派成员、通信、关队),CLI 2.1.63+ 原生支持,settingSources patch 仍需保留
  • 改代码后必须重启:tsx 不热更新,修改 scripts/src/ 下的代码后必须用 restart 子命令重启后端,否则跑的还是旧代码。若 AI 自己跑在这个后端里,要用延迟脚本(setsid 后台 sleep 后再 restart),先把回复发完

遇到问题?

让 AI 自己解决。 代码都在 scripts/src/ 目录下,AI 可以:

  1. 读取错误日志
  2. 检查代码逻辑
  3. 修复问题并重试

常见问题:

  • 端口被占用:跑一次 stop 子命令(注册表为空时会按端口兜底清理)
  • 飞书连不上:检查 .env 里 FEISHU_APP_ID / FEISHU_APP_SECRET 是否正确、文件是否为 Unix 换行符(CRLF 会导致 secret 带 \r 报 invalid param)

连接信息格式

启动后保存在 .claude/skills/mycc/current.json:

json
{
  "routeToken": "XXXXXX",
  "pairCode": "XXXXXX",
  "cwd": "/path/to/project",
  "startedAt": "2026-01-27T06:00:00.000Z"
}

API 端点

端点方法说明
/{token}/healthGET健康检查
/{token}/pairPOST配对验证
/{token}/chatPOST发送消息
/{token}/history/listGET历史记录列表
/{token}/history/{sessionId}GET对话详情
/{token}/chat/renamePOST会话重命名
/{token}/skills/listGETSkills 列表
/{token}/eventsGETSSE 实时广播
/{token}/statusGET运行状态快照

边界

  • 资源预算:启动时间 ≤ 10 秒(含 npm install 首次除外)
  • 产出格式:[mycc] 后端已启动,飞书通道 {N} 个在线

不做的事

  • 不修改 mycc 后端代码
  • 不推送代码到 GitHub(需用户确认)

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

and 47 more files.

Frequently asked questions

What does the Mycc AI skill do?

启动 mycc 后端服务(后台运行),通过飞书机器人远程操控 Claude Code。触发词:"/mycc"、"启动 mycc"、"启动 mycc 后端"、"检查 mycc 状态"

Why use Mycc on TypingMind?

Because you install it once and use it with any model. Mycc is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Mycc in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/xiaomo-agi/xiaomo-skills/tree/main/skills/mycc. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Mycc?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Mycc?

As many as you like. As long as a model supports skills, you can use Mycc with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Mycc AI skill free?

Yes. It is published on GitHub by xiaomo-agi under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇