← Claude Code Hub
✦ Tip #119 Jun 30, 2026

Your Claude Code output style is silently deleting its engineering behavior

You build an output style with personality and, without warning, Claude starts coding worse. It isn't the model: your style stripped the built-in engineering instructions. One frontmatter line prevents it.

Comparison: with only a custom output style you lose how Claude Code scopes changes, comments and verifies; with keep-coding-instructions:true you keep both your persona and the engineering base

TL;DR A custom output style replaces Claude Code's default engineering instructions, it doesn't add to them. Build a "persona" style with nothing else and you lose how it scopes changes, writes comments, and verifies work. One frontmatter line fixes it: keep-coding-instructions: true layers your style on top instead of wiping the base.

You build your first output style. You give it a voice, a format, a persona. And suddenly Claude codes worse: it leaves changes half-done, skips verification, drops comments where they don't belong. It isn't the model: your output style has deleted the engineering instructions that shipped by default, and nobody warned you.

Why it happens

An output style modifies the system prompt. The official docs say it flat out: "Custom output styles leave out Claude Code's built-in software engineering instructions, such as how to scope changes, write comments, and verify work, unless keep-coding-instructions is set to true." And that flag defaults to false.

In other words: when you define your own style, Claude Code assumes you're no longer doing software engineering (a writing assistant, a data analyst) and strips the engineering layer. Useful if you genuinely aren't coding. A footgun if you only wanted to change the tone.

The fix: one line

In your output style file (~/.claude/output-styles/my-style.md for all projects, or .claude/output-styles/ for one):

---
name: Diagrams first
description: Lead every explanation with a diagram
keep-coding-instructions: true
---

When explaining code or architecture, start with a Mermaid diagram
of the structure, then explain in prose.

With keep-coding-instructions: true, your instruction is added on top of the engineering behavior. Without that line, it replaces it.

When to use which

You want to… keep-coding-instructions
Change tone/format, but you're still coding true
Stop Claude being an engineer (writing, analysis) leave it out (false)

How to switch styles (heads-up, this changed)

The /output-style command was deprecated in v2.1.73 and removed in v2.1.91. If you go looking for it, it's gone. Now:

  • /configOutput style to pick from the menu (saved to .claude/settings.local.json).
  • Or set the field directly:
{ "outputStyle": "Explanatory" }

The output style is part of the system prompt, which Claude Code reads once at session start. Changes take effect after /clear or in a new session.

Reference

Frontmatter field What it does Default
name Style name (falls back to the file name) file name
description Text shown in the /config picker none
keep-coding-instructions Keeps the engineering instructions false

This is NOT the same as CLAUDE.md: an output style changes the system prompt (role, tone, format); CLAUDE.md adds a message with your project context without touching the base. For a one-off addition on a single invocation, use --append-system-prompt.

Official docs: Output styles

Requirements

  • Claude Code v2.1.x (the keep-coding-instructions field and /config; the old /output-style is gone).
Free guide

51 tips to master Claude Code.

One page per tip. Five chapters. What I actually use daily in production — no theory, no fluff.

  • I. Getting started 10 tips
  • II. Awareness 3 tips
  • III. Mastery 22 tips
  • IV. Autonomy 10 tips
  • V. Comparison 6 tips
Are you a professional Web developer?

You'll receive the guide by email · You join the Gravitas newsletter · Unsubscribe anytime

of 51
#

Wmedia · 51 Tips
Free guide · 51 tips · 5 chapters

51 tips to master Claude Code.

Are you a professional Web developer? · Unsubscribe anytime