Expression Policy — Development skill for Claude Code
Default expression policy for Claude Code and Codex: concise, non-defensive writing with session-scoped pause/resume and incremental hooks.
How to install Expression Policy
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open Yuwangzhi/expression-policy and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Expression Policy does
Default expression policy for Claude Code and Codex: concise, non-defensive writing with session-scoped pause/resume and incremental hooks.
Alternatives in Development
- Create Handoff — You are tasked with writing a handoff document to hand off your work to another agent in a new session 10k ★
- n8n Expression Syntax — n8n expression syntax with {{}} and $json/$node variables 3.6k ★
- Defensive Code Cleanup — Clean Defensive Try-Catch Blocks 1.2k ★
README
expression-policy
[](LICENSE)
**给 Claude Code 和 Codex 的默认表达规范:结论先行、信息充分、少防御性措辞;可随时临时暂停。**
独立本地工具,Python 标准库实现,不需要额外技能、模型调用或 API key。它约束“怎么说”,不改变执行模式、工具权限、模型供应商或项目要求。
解决什么问题
模型常把回答写成防御性说明:先堆免责声明,预设读者会误解,用“不是 A,而是 B”“不代表”“不能证明”反复划界,最后再总结一遍。信息被埋在防御里,读者反而更难判断。
本工具把默认写法固定为:
**理解任务 → 起草 → 清理无信息的防御/机械化措辞 → 核对事实和关键边界 → 交付**
- 结论先行,再给依据和条件。
- 删除针对假想质疑的自我辩护、假对比和空泛升华。
- 保留真实的限制、负结果、不确定性和证据边界。
- 保持作者原有声音;正式文本中性,个人文章不强行改成模板。
- 不机械禁词,不为了“有力”而虚构、漏信息或改变否定关系。
完整通用规则见 [rules/expression.md](rules/expression.md);论文写作、润色和学术翻译另用 [rules/academic-writing.md](rules/academic-writing.md)。设计参考见通用规则末尾来源说明。
论文写作与既有技能如何配合
采用“通用表达+按任务读取的论文附加规则”:普通问答保持轻量;实际写论文时再检查贡献与证据、章节职责、比较口径、归因和双语一致性。论文规则由模型按任务读取,hook 只提供路径,不做关键词触发或自动加载全文。
- 本轮明确的文体、语言、精确格式和编辑范围优先于默认写法;本工具不改变宿主指令层级、安全要求或操作授权。
- 已采用 TJU/Nature 等框架时,沿用其任务路由、章节流程、投稿要求和双语约定;相同检查只做一次,不另启一套润色或模型评审。
- “突出优势”“发布会”等叙事建议始终受证据约束,不得隐去相关负结果、选择性报告或悄悄换比较口径。
- 两层规则共用会话开关;暂停表达规范不撤销项目自身的学术要求。隐藏提示仍继续执行规则。
附加规则针对本工具职责独立编写,不收录 TJU/Nature 的技能正文、章节指南、案例或执行代码;这些技能按原许可单独使用,本工具不依赖其安装。规则分工与场景检查见 [兼容性说明](docs/rule-compatibility.md)。
快速开始
要求 Python 3.9+;Claude Code 与/或 Codex 已安装并完成登录。
git clone https://github.com/Yuwangzhi/expression-policy.git
cd expression-policy
python3 install.py
Windows PowerShell:
git clone https://github.com/Yuwangzhi/expression-policy.git
cd expression-policy
python -X utf8 install.py
& "$env:USERPROFILE\.local\bin\xpctl.cmd" status --client claude --session test
安装后重开已有客户端会话。新会话默认开启;全局规则在 hook 未加载时仍然生效,程序化的单轮复位和界面提示需要客户端实际加载 hooks。若终端找不到 `xpctl`,使用 `~/.local/bin/xpctl`(Windows:`%USERPROFILE%\.local\bin\xpctl.cmd`)或把该目录加入 `PATH`。
在对话里控制
把命令放在消息开头,可接逗号、句号、分号或换行,再接本轮任务:
| 指令 | 效果 |
|---|---|
本轮暂停表达规范 |
仅当前轮次暂停;下次真实用户输入恢复会话原状态 |
暂停表达规范 |
当前会话持续暂停 |
恢复表达规范 |
当前会话恢复开启 |
隐藏表达提示 |
关闭状态提示,规则继续执行 |
显示表达提示 |
恢复状态提示 |
示例:
本轮暂停表达规范,逐字输出下面的原文。
状态按**机器、客户端、会话**隔离。另一个窗口、另一个客户端或另一台机器不会跟着暂停;新会话默认开
Related Skills
Open Jev Approvals
Fail-closed binary (allow/deny) approval gate for Codex and Claude Code hooks — every intercepted tool call is
Plain And Precise
A Claude skill that rewrites expert health and policy writing for non-expert readers without letting the claim
Claude Usage Guard
Pause Claude before its next tool call when your 5-hour or weekly plan usage runs hot with lots of window left
Listicle Pitch
Draft a concise, non-spammy outreach pitch to get added to one "best X tools" listicle
Cc Agents Kit
Claude Code plugin marketplace. guard-hooks: five defensive hooks that block dangerous shell commands and secr
Astro Fleet
Report this machine's Claude Code sessions to an Astro Fleet — connect, status, pause/resume, colour, disconne
Related Agents
Hcs Hook Integrator
Wires Claude Code + Codex hooks to the HCS substrate without embedding policy in hook bodies. Maintains .claud
Infra Engineer.Agent
Use for repository-grounded IaC changes and scoped deployment work. Plan-only by default; apply/rollback is al
Interview Conductor
Conducts adaptive voice elicitation interviews. Presents questions conversationally across 12 thematic modules