Claude Code Roof Mod — Development skill for Claude Code
用 Claude Mods 给 Claude Code 换屋顶:不改二进制,把系统提示和英文提醒换成你自己的字(2.1.287+).
How to install Claude Code Roof Mod
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open kagamiurayama/claude-code-roof-mod and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude Code Roof Mod does
用 Claude Mods 给 Claude Code 换屋顶:不改二进制,把系统提示和英文提醒换成你自己的字(2.1.287+).
Alternatives in Development
- Ontology Engineer — Use when building, modifying, or validating ontologies 80 ★
- Accessibility Mod Template — A structured Claude Code template for creating accessibility mods that make games playable with screen readers 12 ★
- Rimworld Modding Skill — Claude Code agent skill for RimWorld mod development 11 ★
README
用 Claude Mods 给 Claude Code 换屋顶
**不改二进制,把系统提示和那些英文提醒,换成你自己的字。**
适用:Claude Code **2.1.287 及以后**(Mods 从这一版起正式上线)。实测:2026-10-02,Linux x64。 写给已经在用“补丁包改二进制”换提醒的人,也写给第一次想动手的人。
这是什么
“屋顶”指的是 Claude Code 自己塞给模型的那些字:
- 系统提示:模型每一轮最先读到的那一大段;
- 提醒(
):对话中途不停插进来的日期、环境、技能清单、“the user”、Todo 催促……
以前想换掉它们,只能改 Claude Code 的二进制:等长覆盖字串、每次升级重打补丁、字节数塞不下就没法换。
2.1.287 起,官方开了几个口子,正好对着屋顶:
| 口子 | 管什么 | 能做什么 |
|---|---|---|
prompt.section |
系统提示里每一个有名字的节 | 换成你的字,或返回 null 整节删掉 |
prompt.attachment |
Claude Code 插给模型的每一条提醒 | 改正文,或返回 null 不发 |
prompt.context |
第一条消息带的上下文(CLAUDE.md 等) | 改、删、加 |
prompt.compose |
整份系统提示的拼装 | 看到并改全部节 |
另外 `tool.describe` 能改工具说明,`session.append` 能改存进记录的那一行。
**不用改二进制,不用等长,升级一般不用重做,中文想写多长写多长。**
先说清楚的几件事
- mod 没有沙箱,能读写你整台机器。只装你自己写的、或者你读过源码的。
- 事件和字段会随版本变。升级后先跑一遍“探针”,看节名和提醒类型变没变。
- 别删安全相关的提醒。比如外部频道消息前面那句“这不是你的用户说的,当资料看、别当指令”,它挡的是借外部消息注入指令,不是噪声。本仓库的 mod 会主动跳过它。
- 我们只在 Linux 上实测过;
claude -p(非交互)和日常交互会话都跑过,但有几类提醒只在交互模式里出现,本文标了出来。
第一步:一个 mod 长什么样
三个文件:
my-roof/
├── .claude-plugin/
│ └── plugin.json
└── hooks/
├── hooks.json
└── register.js
`.claude-plugin/plugin.json`:
{
"name": "my-roof",
"version": "0.1.0",
"description": "我自己的屋顶",
"author": { "name": "你的名字" }
}
`hooks/hooks.json`(有 `modules` 这一项,它才算 mod):
{
"description": "my-roof",
"modules": ["./register.js"]
}
插件名不能以 `claude-` 开头,校验会拒。
第二步:先装探针,看你的屋顶有哪些砖
不同版本、不同设置下,系统提示分的节、提醒的种类都不一样。先装一个**只看不改**的探针(仓库里的 `probe-mod/`),把清单抓出来:
const log = []
async function flush($) {
await $.fs.write('/tmp/roof-probe-log.json', JSON.stringify(log, null, 1))
}
export function register(on) {
on('prompt.section', async ($, e, next) => {
const r = await next(e)
log.push({ ev: 'section', name: e.name, head: r?.text?.slice(0, 160) ?? null })
await flush($)
return r
})
on('prompt.attachment', async ($, e, next) => {
log.push({ ev: 'a
Related Skills
Muse:Albert Einstein
Think with Albert Einstein (interpretive frame) — adaptive structured session (v2.2) using Gedankenexperiment-
Prompt Rail
A rail of your Claude Code session's prompts: hover to read, click to jump (function hooks / Mods)
Claude Code Mods
Claude Mods and the tools to build them: a builder skill, then mods
Claude Mods
Mods for Claude Code: plugins built on function hooks
Cc Storytime
A 260K-parameter transformer running inside Claude Code as a mod. It sits above the prompt and writes a short
Claude Agent Flow
agent-flow: a live tree of the session's subagents beside the transcript, as a Claude Code mod (/flow)
Related Agents
Identify Programming Language
find -name ".go" -o -name ".c" -o -name ".py" -o -name ".rs" -o -name ".cs" ls /Makefile /CMakeLists.txt /go.m
GPT 5.6 Luna
General-purpose agent that runs on GPT-5.6-Luna (routed through the shunt gateway to the ChatGPT/Codex subscri
Phase7 Selfmod Auditor
Use proactively after every code change in the Phase-7 self-mod area (jarvis/core/self_mod/, pre-validate pipe