kun README

项目的 README,来自 github.com/kunchenguid/kun。合并为一个 markdown 文件:README.md。

/kun

Agent Skills X Discord

Think and build like a principal engineer

Kun Chen

Hi, I'm Kun, a member of the technical community. I previously worked as an L8 principal engineer at Meta, Microsoft and Atlassian.

This "/kun" skill here is a near-realtime distillation of my experience, knowledge, tools, workflows and skills. The instructions and knowledge base here is updated daily based on what I said and did.

Use this skill to apply my stack, think and build like a seasoned professional developer.

Quick Start

# install (global recommended)
$ npx skills add kunchenguid/kun -g

# in your agent
/kun how should I improve my AGENTS.md?
/kun fix this nasty bug!
/kun how would you build a product that...
/kun <literally anything>

This is also available as a Grok Bot.

How It Works

The /kun skill file itself stays thin on purpose. On /kun, the agent runs the public pull script (no LLM), then reads from a local cache and follows it.

daily automation                    /kun question
      │                                   │
      ▼                                   ▼
┌──────────────────────┐         ┌──────────────────────┐
│ refresh living docs  │         │ node pull-kun.mjs    │
│ on main (see below)  │         │ → ~/.cache/kun       │
└──────────┬───────────┘         │ (or $KUN_PULL_DIR)   │
           │                     └──────────┬───────────┘
           ▼                                ▼
   OPINIONS.md  TOOLS.md              read ENTRY + docs
   VOICE.md  ENTRY.md                 (+ selective content/)
   content/ MANIFEST                        │
           \______________________________/ │
                          │
                          ▼
                   concrete answer

What the skill loads

  1. Download scripts/pull-kun.mjs from this repo (raw.githubusercontent.com, jsDelivr fallback) and run node … --dir <cache> (default: $KUN_PULL_DIR or ~/.cache/kun).
  2. Read full local copies of ENTRY.md, TOOLS.md, OPINIONS.md, and VOICE.md from that cache.
  3. When a question needs Kun's actual words, open matching files under content/ in the cache — do not dump the whole tree into context.
  4. If the pull fails, stop and say so; do not guess.

No GitHub CLI and no GitHub auth are required for end users.

How the living docs stay fresh

Automation runs in Grok Bot and updates this repo daily (America/Los_Angeles):

So /kun always reasons from the latest committed files on main, not from a frozen copy inside the skill package.

Public content ledger + incremental pull

Raw public posts live under content/ (one markdown file per item) with content/MANIFEST.json for consumers. Keep OPINIONS.md / VOICE.md compact; do not treat content/ as a second opinions dump.

# Incremental sync into ~/.cache/kun (or $KUN_PULL_DIR / --dir)
node scripts/pull-kun.mjs

# Or download the script alone and pull into a cache:
#   https://raw.githubusercontent.com/kunchenguid/kun/main/scripts/pull-kun.mjs
#   (jsDelivr: https://cdn.jsdelivr.net/gh/kunchenguid/kun@main/scripts/pull-kun.mjs)
node /path/to/pull-kun.mjs --dir ~/.cache/kun

pull-kun.mjs fetches remote content/MANIFEST.json (raw.githubusercontent.com, jsDelivr fallback), downloads only new/changed content files, deletes local files removed from the manifest, and hash-syncs ENTRY.md, VOICE.md, OPINIONS.md, and TOOLS.md. First empty cache = full pull once; thereafter incremental.

Contribution

This repo is literally Kun's own knowledge base so it deliberately does not accept PR contributions.

Bug reports and suggestions are welcome as issues!

kun (kunchenguid/kun)

正在搜索数据库…

499 ·GitHub
这是什么?“/kun”是一个面向 AI 编程智能体的技能文件,通过加载他持续更新的工具、工作流和观点知识库,让智能体像 Kun 这样曾任职于 Meta、Microsoft 和 Atlassian 的 L8 首席工程师一样思考和构建。
这是打包好的知识库,还是我的智能体实时抓取的内容?技能文件本身刻意保持精简:它不打包内容,而是在每次使用时通过普通 HTTPS 从本仓库抓取最新的 markdown 文件。
怎么开始使用 /kun?调用“/kun”技能即可,它会先加载 ENTRY.md,了解其他文件(TOOLS.md、OPINIONS.md、VOICE.md)的用法,然后按照其中的指引行事。
使用它需要 GitHub 账号或 GitHub CLI 吗?不需要。抓取直接访问 raw.githubusercontent.com,jsDelivr 仅作后备,因此不需要 GitHub CLI 或 GitHub 身份验证。
我每次提问它都会重新下载知识库吗?不会,当前会话中已经读过的文件,“/kun”会跳过重新下载,除非你明确要求刷新。
这个技能面向哪些人?面向使用 AI 编程智能体、希望获得经验丰富的首席工程师风格的工程建议、工具推荐和观点的开发者。
知识库多久刷新一次?一个 Grok Bot 自动化每天从 Kun 公开的 X、Substack 和 YouTube 内容更新 OPINIONS.md 和 VOICE.md,并从他本人公开、未归档且有可观星标的仓库刷新 TOOLS.md。
VOICE.md 实际控制什么?VOICE.md 定义“/kun”应当如何措辞回答,使语气贴合 Kun 本人的风格,其依据是他公开的社交媒体和视频内容。
大小
14.4 MB
星标
499
更新
提交Nov 18
时长
2个月
提交 · 90 天