By syf2211
RuleDoctor — rule reinjection after compaction, command guard, optional session compliance reports
npx claudepluginhub syf2211/ruledoctorRuleDoctor — reinject rules after compaction, block forbidden commands, and run session reports when the CLI is available.
一句话:装了 Skill、新开对话后,助手会先读 CLAUDE.md / .cursorrules 和你配置的必读文档,再动手改仓库。
一键安装 · Skill 源文件 · 用户指南 · 宣传图与文案
支持 Claude Code · Codex · Cursor · OpenCode(via npx skills)
npm 包 ruledoctor 尚未发布;Skill 安装不依赖 npm。
npx skills add syf2211/ruledoctor@ruledoctor -g -a codex -y
Claude Code 用 -a claude-code,Cursor 用 -a cursor。
你已经在仓库里写了 CLAUDE.md、.cursor/rules 或 AGENTS.md,但助手仍然可能:
RuleDoctor 把「读规则」变成 Agent 的开场动作:默认只告诉你读了哪些文件、本场几条硬规矩(不长篇刷屏)。需要较真时,还可以用可选工具看规则有没有被遵守、危险命令有没有出现。
| 你遇到的烦事 | Skill 帮你 |
|---|---|
| 有规则文件但助手不读 | 开场 Read 根规则 + required_reads 清单 |
| 开场复述一整篇 | 默认只报:文件列表 + 最多 3 条硬约束 |
| 聊久了像忘了规矩 | 你说上下文被压缩 → 重新 Read |
| 不知道规则有没有生效 | 可选 CLI 报告(事后核对) |
危险 git push --force | Skill 应拒绝;硬拦见 Hook |
npx skills add syf2211/ruledoctor@ruledoctor -g -a codex -y
Claude Code 用 -a claude-code,Cursor 用 -a cursor。
或手动复制 skills/ruledoctor → ~/.claude/skills/、~/.codex/skills/、~/.cursor/skills/。
装好后请新开一场对话,在有规则文件的项目里试一个小任务。
CC Switch:仓库 syf2211/ruledoctor,子目录 skills → 说明。
还没有规则文件?可选:node dist/index.js setup -p . 生成模板(需 clone 仓库并 build)。
在有规则文件的项目里新开对话,试三件事:
| 验证 | 你应看到 |
|---|---|
| 小任务:改 README 一行 | 助手先列出已读规则文件 + 最多 3 条硬约束 |
危险请求:git push origin main --force | Skill 应拒绝;Hook 可硬拦 |
| 上下文压缩后继续 | 助手重新 Read 规则文件与 required_reads |
宣传轮播图(小红书 7 张):docs/promo/xhs/
| 层 | 干什么 |
|---|---|
| Skill | 先读规则、简短汇报、口头拒绝(装这个就够大多数场景) |
| CLI | 可选,用会话记录做事后核对 |
| Hook | 可选,危险 shell 硬拦截;CLI 可用时结束出报告 |
| 场景 | 助手应表现 |
|---|---|
项目有 CLAUDE.md | 先报读了哪些文件 + ≤3 条硬约束,再改代码 |
规范在 docs/ 深处 | 配置 required_reads 后会 Read |
| 上下文被压缩 | 重新 Read 并简短汇报 |
| 要求 force push | 拒绝(硬拦需 Hook) |
| 路径 | 用途 |
|---|---|
skills/ruledoctor/ | 你要安装的 Skill |
docs/promo/ | 宣传 PNG、文案、小红书自动化调研 |
docs/promos/ | 宣传图 HTML 源码 + export-png.mjs |
src/、test/ | 可选 CLI |
docs/internal/ | 维护者笔记 |
npm run verify
这会依次跑类型检查、测试、Skill 结构校验和构建。
MIT
7-day visitors to each marketplace page
Anthropic's Claude Code plugins, installed from the claude-plugins-official repository
Ultra-compressed communication mode. Shortens prose while preserving technical terms, code, commands, and exact errors.
tasteskill 2.5.1: professional company websites at the figma.com and x.ai level, checked in a real browser.