Doudou Dev logo

Doudou Dev

Community
undsky
doudou-dev

跨平台(Windows、macOS、Linux)管理 doudou-ai-coding 开发与构建流程。包含两大核心模式:(1) 开发调试模式(通过“调试/开发/启动/运行/本地跑起来/dev”等触发),启动 doudou-eggjs (npm run dev) 与 doudou-vue3 (pnpm dev),提供端口与环境探测、依赖自动安装、并发日志与优雅退出;(2) 生产打包模式(通过“打包/构建/编译产物/生产打包/build/build:prod”等触发),执行 doudou-eggjs (npm run build,即 rec build -o dist) 与 doudou-vue3 (pnpm run build:prod,即 vite build) 生成发布产物。

Overview

Publisherundsky
Repositorydoudou-ai-coding-skills
Skill namedoudou-dev
Stars
42
Forks
9
Bundled files
3
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.

  • 3 bundled files

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

  • Open source

    Published by undsky on GitHub. Read the source before you install it.

Installation

Install the Doudou Dev 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/undsky/doudou-ai-coding-skills/tree/master/skills/doudou-dev
  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/undsky/doudou-ai-coding-skills.git /tmp/doudou-ai-coding-skills
mkdir -p .claude/skills
cp -r /tmp/doudou-ai-coding-skills/skills/doudou-dev .claude/skills/doudou-dev
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Doudou Dev 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 Doudou Dev 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 Doudou Dev 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.

豆豆开发与构建技能 (doudou-dev)

本技能用于跨平台(Windows、macOS、Linux)管理 doudou-ai-coding 项目中的后端(doudou-eggjs)与管理端前端(doudou-vue3)的开发调试与生产打包。


模式分派与触发关键词

根据用户意图自动识别走 开发调试 或 生产打包 链路:

操作模式触发关键词示例后端执行命令 (doudou-eggjs)前端执行命令 (doudou-vue3)产物 / 监听端口
🚀 开发调试模式“调试”、“启动”、“运行”、“开发环境”、“本地跑起来”、“dev”、“run”npm run dev(执行 npm-run-all -p mapper debug)pnpm dev(执行 vite)后端: http://localhost:7001前端: http://localhost:8001
📦 生产打包模式“打包”、“构建”、“编译”、“发布产物”、“生产包”、“build”、“dist”npm run build(执行 rec build -o dist)pnpm run build:prod(执行 vite build)后端: doudou-eggjs/dist/前端: doudou-vue3/doudou-vue/

方式一:跨平台一键脚本(推荐)

技能内置了纯 Node.js ESM 脚本(兼容 Windows、macOS、Linux,免装额外全局依赖),自动处理环境检查、缺失依赖安装与子进程管理。

1. 开发调试 (Dev / Debug)

bash
# 一键并行启动前后端开发调试服务(默认)
node skills/doudou-dev/scripts/dev.mjs

# 仅启动后端调试服务 (doudou-eggjs, npm run dev)
node skills/doudou-dev/scripts/dev.mjs --backend

# 仅启动前端开发服务 (doudou-vue3, pnpm dev)
node skills/doudou-dev/scripts/dev.mjs --frontend

# 启动前环境自检与端口探测
node skills/doudou-dev/scripts/check.mjs

特性:支持彩色日志标签([EggJS] 青色、[Vue3] 绿色),按 Ctrl+C 跨平台安全清理所有子进程。


2. 生产打包 (Build)

bash
# 一键打包前后端生产产物
node skills/doudou-dev/scripts/build.mjs

# 仅打包后端生产包 (doudou-eggjs: npm run build -> dist/)
node skills/doudou-dev/scripts/build.mjs --backend

# 仅打包前端生产包 (doudou-vue3: pnpm run build:prod -> doudou-vue/)
node skills/doudou-dev/scripts/build.mjs --frontend

特性:自动检测缺失依赖、统计各端打包耗时与产物目录大小。


方式二:各平台原生终端命令速查

1. Windows (PowerShell / Windows Terminal)

🚀 启动调试
powershell
# 窗口 1: 启动后端调试
cd doudou-eggjs
npm install
npm run dev

# 窗口 2: 启动前端开发
cd doudou-vue3
pnpm install
pnpm dev
📦 生产打包
powershell
# 打包后端
cd doudou-eggjs
npm run build

# 打包前端
cd doudou-vue3
pnpm run build:prod

2. Windows (CMD)

🚀 启动调试
cmd
:: 后端
cd doudou-eggjs && npm run dev

:: 前端
cd doudou-vue3 && pnpm dev
📦 生产打包
cmd
:: 后端
cd doudou-eggjs && npm run build

:: 前端
cd doudou-vue3 && pnpm run build:prod

3. macOS / Linux (Bash / Zsh)

🚀 启动调试
bash
# 后端
cd doudou-eggjs && npm install && npm run dev

# 前端
cd doudou-vue3 && pnpm install && pnpm dev
📦 生产打包
bash
# 后端打包
cd doudou-eggjs && npm run build

# 前端打包
cd doudou-vue3 && pnpm run build:prod

前置环境与依赖要求

依赖项调试模式要求打包模式要求说明
Node.js>= 20.0.0 (推荐 20 或 22 LTS)>= 20.0.0跨端统一要求
npm已安装已安装用于后端依赖安装与脚本执行
pnpm已安装已安装前端 doudou-vue3 强制要求 pnpm(only-allow pnpm)
Redis运行中 (默认 6379)可选调试模式下 Egg.js 会连接 Redis 预热缓存与队列
数据库已配置 (SQLite/MySQL/PgSQL)可选数据库配置位于 config.local.js

打包产物与部署说明

  1. 后端产物 (doudou-eggjs/dist):
    • 由 rec build -o dist 打包生成;
    • 包含编译混淆后的服务端运行时文件,可直接用于 Node.js 生产部署。
  2. 前端产物 (doudou-vue3/doudou-vue):
    • 由 vite build 生产构建;
    • 包含 HTML、CSS、JS 及 Gzip 压缩文件,可直接托管至 Nginx 或静态托管服务(生产 Base 路径可在 .env.production 中调整)。

常用端口与故障排查 (FAQ)

服务端口说明
Egg.js API7001后端 HTTP 接口服务
Vite Dev Server8001前端开发页面,开发模式自动代理 /api 至 7001
Egg 调试端口9229 ~ 9239start-debug.js 自动寻找可用端口
Inspector Proxy9999 ~ 10009Egg 调试代理端口
Redis6379缓存与 Bull 队列

常见问题

  1. 前端报错 Use 'pnpm install' for installation in this project:
    • 前端配置了强制包管理器,请严格使用 pnpm install / pnpm dev / pnpm run build:prod。
  2. 后端调试启动报 Redis connection failed:
    • 本地未启动 Redis 服务,请先启动 Redis(端口 6379)。
  3. 端口冲突 EADDRINUSE: 7001:
    • Windows: netstat -ano | findstr :7001 然后 taskkill /PID <PID> /F;
    • macOS/Linux: lsof -i :7001 然后 kill -9 <PID>。
  4. Mapper 编译报错 rec: command not found 或生成失败:
    • 请在 doudou-eggjs 目录下执行 npm install 确保 doudou-eggjs-cli 正确安装。

Bundled files

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

Frequently asked questions

What does the Doudou Dev AI skill do?

跨平台(Windows、macOS、Linux)管理 doudou-ai-coding 开发与构建流程。包含两大核心模式:(1) 开发调试模式(通过“调试/开发/启动/运行/本地跑起来/dev”等触发),启动 doudou-eggjs (npm run dev) 与 doudou-vue3 (pnpm dev),提供端口与环境探测、依赖自动安装、并发日志与优雅退出;(2) 生产打包模式(通过“打包/构建/编译产物/生产打包/build/build:prod”等触发),执行 doudou-eggjs (npm run build,即 rec build -o dist) 与 doudou-vue3 (pnpm run build:prod,即 vite build) 生成发布产物。

Why use Doudou Dev on TypingMind?

Because you install it once and use it with any model. Doudou Dev 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 Doudou Dev in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/undsky/doudou-ai-coding-skills/tree/master/skills/doudou-dev. 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 Doudou Dev?

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 Doudou Dev?

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

Is the Doudou Dev AI skill free?

Yes. It is published on GitHub by undsky 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 👇