用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tomevault-io/skills-registry --skill lich-python命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | lich-python |
| description | > Use when this capability is needed. |
.py.config/ruff-rule-map.json exists (ships with the adapter; maps ruff rule IDs to M-engine severity + category).ruff is installed in the developer's environment for the richer invocation path. If absent, fall back to Python stdlib ast-based idiom checks using the rule-map's stdlib-feasible subset (~40 of ~120 rules).{file: "foo.py", ast_tree: <parsed>}ruff --version via subprocess. Record the version for version-drift detection.ruff check --output-format=json <file> — parse the JSON output.ast_tree from lich-core.config/ruff-rule-map.json and emit:
M1 runtime-failure candidate — if rule is in the "correctness" category (E501 exceptions, F401 unused imports that may cause NameError, etc.)M7 idiom suggestion — if rule is in the "style/idiom" category (UP-series pyupgrade, SIM simplify)skip — if rule is in the "Hydra-overlap" category (CWE-tagged security rules — these belong to Hydra R3)plugins/lich-core/state/review-flags.jsonl under the lich-core sub-plugin's collection point.plugins/lich-core/state/review-flags.jsonl.{ruff_version: "...", rules_fired: N, skipped_hydra_overlap: N}.Findings flow back through lich-core → lich-sandbox (for M1-class flags) → lich-rubric → lich-verdict.
--fix and auto-rewriting code. Never. Lich is advisory.This skill is a thin mapping layer: invoke subprocess, parse JSON, lookup in rule-map, emit. No reasoning. Haiku is appropriate.
Source: enchanter-ai/lich — distributed by TomeVault.