一键导入
doom-check
Run static analysis and byte-compile checks on the Doom config without opening Emacs
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run static analysis and byte-compile checks on the Doom config without opening Emacs
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Add a new Emacs package to this doom config — packages.el declaration, config.org section, and doom sync
Systematically debug a doom emacs issue — errors, broken packages, slow startup, keybinding conflicts
Look up a Doom Emacs module's documentation, flags, and packages before configuring anything manually. Use this when the user asks about adding a feature, package, or integration to Doom.
Run doom sync after config changes and diagnose any errors
Update doom emacs and/or packages — runs doom upgrade, handles errors, summarizes what changed
Expert Emacs Lisp programmer and Doom Emacs architect. Use when writing custom packages, configuring complex behaviors, debugging elisp, designing abstractions, or any task that requires deep Emacs/Doom knowledge.
| name | doom-check |
| description | Run static analysis and byte-compile checks on the Doom config without opening Emacs |
| argument-hint | [--static-only] [--byte-compile-only] |
| allowed-tools | Bash |
Run the doom-check script to validate the config before or after making changes.
| File | Purpose |
|---|---|
~/.config/doom/bin/doom-check | Executable check script — edit this to add checks |
~/.config/doom/tests/config-tests.el | ERT test suite — edit this to add tests |
~/.config/doom/bin/doom-check # full check (static + ERT + byte-compile)
~/.config/doom/bin/doom-check --static-only # fast grep checks only
~/.config/doom/bin/doom-check --byte-compile-only
setq! obsolete macro (Doom 3.0 → use setopt)(require 'cl) deprecated (use cl-lib):background nil invalid face attribute (use 'unspecified)t arg (e.g. (foo-mode t) → use hook or +1)defun inside after! block (not byte-compiled):ensure t in use-package! (wrong for Doom/straight.el)dap-mode references (Doom uses dape now)config.el freshness relative to config.orgbatch-byte-compile on config.elAdd new shell checks to ~/.config/doom/bin/doom-check.
Add new functional tests to ~/.config/doom/tests/config-tests.el.
Shell check pattern:
count=$(grep -c 'pattern' "$CONFIG_ORG" 2>/dev/null || true)
[[ $count -gt 0 ]] && fail "description" || ok "description"