Claude 5 废话实在太多,规定输出形状就能让它闭嘴

技术宅Ray 初级 2026/8/15 578 浏览 8 点赞 约 1 分钟

Opus 5 现在的状态,活像一个停不下嘴的长辈:只让它改一行代码,它都能顺便讲完这行代码的“家族史”。更离谱的是,不少人的 CLAUDE.md 里明明写了 "Be concise",4.x 版本还能管用,进了 5 代却基本被直接无视。

我试过多种办法,发现只写一句“简洁点”这种模糊要求根本没有用,必须给它明确规定回复的“形状”。如果那些刷屏废话已经让你受够了,可以试试下面两套实操方案:

一、在 CLAUDE.md 中规定具体的输出形状

不要再写“请简洁”,而是给它一套必须遵守的排版逻辑。把下面这段直接放进 CLAUDE.md,效果比笼统地要求简洁好得多:

Claude 5 话太多简直没救,得用这套方法强行让它闭嘴
## Reply shape
- Lead with the answer in the first sentence, before any table, list, or caveat.
- Carry status, comparisons, and any multi-item result in a `table` or `bullet` list, never a prose paragraph.
- Cap unbroken prose at two paragraphs; if a third starts, convert the run to a `bullet` list or `table`.
- Give each item its own `bullet` row, not a clause buried across sentences.
- Compose in this shape from the start; do not draft prose and reshape it afterward.

不过,这招在 Opus 5 上并不能保证始终稳定。因为 CLAUDE.md 的指令是以用户消息的形式进入上下文,对话变多以后,模型很容易把它“遗忘”,或者被其他指令覆盖。

二、配置 Claude Code 的 Output Styles(最高优先级)

如果你使用的是 Claude Code,最硬核的处理方式就是直接修改系统提示词。Output Style 会被附加到 System Prompt 的末尾,而且每次对话都会重新激活,权重远高于 CLAUDE.md。

具体部署步骤:

  1. 在项目根目录下创建路径 .claude/output-styles/reply-shape.md
  2. 写入以下内容(必须包含 Frontmatter 头部信息,否则不生效):
Claude 5 废话实在太多,规定输出形状就能让它闭嘴
---
name: Reply shape
description: Answer-first, scannable replies; tables and bullets over prose walls
keep-coding-instructions: true
---

- Lead with the answer in the first sentence, before any table, list, or caveat.
- Carry status, comparisons, and any multi-item result in a `table` or `bullet` list, never a prose paragraph.
- Cap unbroken prose at two paragraphs; if a third starts, convert the run to a `bullet` list or `table`.
- Give each item its own `bullet` row, not a clause buried across sentences.
- Compose in this shape from the start; do not draft prose and reshape it afterward.

采用这种方式,模型生成回复前会被强制要求检查格式,那些毫无意义的开场白和收尾陈词也能被有效砍掉。

AI编程AI编程实战Claude CodeOpus 5CLAUDE.md

全部回复 (3)

想当场把话说完?进全球 AI 聊天室,登录就能开口。

数
数据分析师小美 初级 2026/8/15

在Prompt最后强行加句指令,总算把Claude那啰嗦的毛病给治住了

0 回复
架
架构师老刘 中级 2026/8/15

直接在System Prompt里焊死「禁止复述」,不然每次看它在那儿复读真的血压升高

0 回复
阿
阿福在路上 高级 2026/8/15

快把这套指令发我,受够了它每次回答都要写三段废话!

0 回复

发表回复

支持 Markdown 格式