Luban Skill logo

Luban Skill

Community
happydog-intj
luban-skill

鲁班造器:输入项目名/代码片段/GitHub 链接,自动分析→提炼编码 DNA→生成可运行的代码风格 Skill。 触发词:「蒸馏XX」「学XX的代码风格」「XX怎么写代码」「生成XX.skill」「鲁班」「代码风格」。 也适用于:「帮我写得更像 Linux 风格」「这段代码不够 idiomatic」「参考 Vue3 的方式重构」。

Overview

Publisherhappydog-intj
Repositoryluban-skill
Skill nameluban-skill
Stars
32
Forks
3
Bundled files
25
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.

  • 25 bundled files

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

  • Open source

    Published by happydog-intj on GitHub. Read the source before you install it.

Installation

Install the Luban Skill 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/happydog-intj/luban-skill/tree/master
  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/happydog-intj/luban-skill.git \
  .claude/skills/luban-skill
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Luban Skill 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 Luban Skill 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 Luban Skill 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.

鲁班 · Coding DNA 蒸馏术

「技巧不是模仿表面,而是理解骨子里的选择。」

核心理念

鲁班不是复制代码,是提炼编码哲学。

一个好的代码 Skill 是一套可运行的编码操作系统:

  • 这个项目用什么命名哲学?(变量、函数、文件的直觉规则)
  • 它的抽象偏好是什么?(过度抽象 vs 就地展开?接口 vs 实现优先?)
  • 什么时候注释,怎么注释?(宁缺毋滥 or 自文档化?)
  • 它绝对不会写什么?(反模式、禁忌写法、让老手皱眉的东西)
  • 新代码放进去,感觉对不对?(直觉测试)

关键区分:捕捉的是 HOW they code,不是 WHAT they wrote。


执行流程

Phase 0:入口判断

收到输入后,先判断:

输入类型路径示例
明确项目名/链接直接路径 → Phase 1「蒸馏 pytorch」「分析 github.com/vuejs/vue」
粘贴代码片段片段路径 → Phase 1B直接贴了一段代码
模糊需求诊断路径 → Phase 0B「帮我写得更专业一点」

Phase 0B:诊断模糊需求

用户不知道该蒸馏谁,只有需求。鲁班的工作是从需求反推最合适的参考项目。

需求推荐蒸馏对象
「C 代码更内核风格」linux-kernel
「TypeScript 更优雅」TypeScript compiler 源码、Vue 3
「Python 更 Pythonic」CPython、requests、httpx
「API 设计更直觉」stripe-python、fastapi
「Rust 更地道」tokio、ripgrep
「Go 更 idiomatic」Go 标准库、docker/moby

确认后进入 Phase 1。


Phase 1:信息采集

1A. 项目名(搜索路径)

必须收集的维度:

  1. 语言与生态:主语言、主要依赖、目标运行环境
  2. 命名规范
    • 变量/函数/类命名倾向:camelCase、snake_case、缩写习惯
    • 文件名规范:PascalCase.ts、kebab-case.ts、utils/子目录逻辑
  3. 抽象层次
    • 接口/类型先行还是实现先行?
    • 函数长度倾向(短函数哲学 or 长函数+注释)?
    • 重复代码容忍度?
  4. 注释哲学
    • 什么时候写?(为什么 vs 是什么)
    • 格式:JSDoc、单行、块注释、TODO 格式
  5. 错误处理模式
    • 异常 vs 错误码 vs Result 类型?
    • panic-or-not 哲学?
  6. 测试风格
    • 单测覆盖率期望、测试文件位置、命名约定
  7. 反模式
    • 这个项目 reviewer 最常打回的是什么?
1B. 代码片段(直接分析)

从粘贴的代码中提炼:

  • 命名 DNA
  • 缩进/格式偏好
  • 注释习惯
  • 异常处理
  • 函数粒度

Phase 2:蒸馏

将采集到的信息压缩为以下五个核心模块:

模块 A:命名 DNA

3-5 条直觉规则,让 AI 命名时自动对齐

模块 B:结构与抽象偏好

函数/模块/类的组织逻辑,抽象层次倾向

模块 C:注释哲学

什么时候写、写什么、怎么写

模块 D:反模式清单

5-10 条「绝不这样写」,最重要,最容易暴露风格不对

模块 E:快速校验测试

3 个判断题,让 AI 自检写出的代码是否对味


Phase 3:输出 SKILL.md

生成标准格式的 Skill 文件,用户可直接复制到 Claude Code / Cursor 使用。


输出格式模板

markdown
---
name: {project}-style
description: |
  {project} 编码风格 Skill。蒸馏自 {sources}。
  触发词:「{project} 风格」「像 {project} 一样写」「{project} 怎么写」。
---

# {Project} · 编码 DNA

## 角色定义
当此 Skill 激活时,你写出的代码应该让 {project} 的核心 contributor 在 code review 时点头,
而不是皱眉。

## 命名 DNA
...

## 结构偏好
...

## 注释哲学
...

## 反模式(绝不这样写)
...

## 校验测试
...

注意事项

  • 蒸馏结果是倾向性描述,不是绝对规则——真实项目里也有历史遗留和例外
  • 优先从 一手来源 蒸馏:项目 CONTRIBUTING.md、代码审查记录、核心 contributor 的博客
  • 标注诚实边界:某些风格是个人偏好而非项目共识,要注明

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 Luban Skill AI skill do?

鲁班造器:输入项目名/代码片段/GitHub 链接,自动分析→提炼编码 DNA→生成可运行的代码风格 Skill。 触发词:「蒸馏XX」「学XX的代码风格」「XX怎么写代码」「生成XX.skill」「鲁班」「代码风格」。 也适用于:「帮我写得更像 Linux 风格」「这段代码不够 idiomatic」「参考 Vue3 的方式重构」。

Why use Luban Skill on TypingMind?

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

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/happydog-intj/luban-skill/tree/master. 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 Luban Skill?

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 Luban Skill?

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

Is the Luban Skill AI skill free?

It is published on GitHub by happydog-intj. Check the repository for licensing terms. 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 👇