Overview
The Explanatory Output Style plugin automatically enhances Claude’s responses with educational insights about:- Implementation choices and trade-offs
- Codebase patterns and conventions
- Design decisions specific to your project
- Why certain approaches were chosen
Installation
This plugin is bundled with Claude Code. To enable it:How It Works
The plugin uses a SessionStart hook to inject additional context at the beginning of every session. This instructs Claude to provide brief educational explanations before and after writing code.Insight Format
Educational insights appear in this format:What You’ll Learn
Implementation Choices
Why specific approaches were selected for your codebase
Patterns & Conventions
Existing patterns in your code and how they’re applied
Trade-offs
Design decisions and their implications
Codebase-Specific Details
Insights tailored to your project, not generic advice
Example Interaction
When you ask Claude to implement a feature, you’ll see:Migration from Output Styles
This plugin replaces the deprecatedoutputStyle setting:
Before (deprecated)
After (current)
SessionStart Hook Pattern
This plugin demonstrates the SessionStart hook pattern, which is:- More flexible than the old output styles
- Distributable through plugins
- Similar to CLAUDE.md but for runtime behavior
For tasks beyond software development, use subagents instead of SessionStart hooks. Subagents change the system prompt, while SessionStart hooks add to it.
Managing the Plugin
- Disable
- Uninstall
- Customize
Keep installed but turn off temporarily:
Token Usage
The plugin adds approximately:- ~200 tokens to system prompt (per session)
- ~50-150 tokens per insight shown
Details
Plugin Information
Plugin Information
Name: explanatory-output-styleType: SessionStart HookAuthor: Dickson Tsai ([email protected])Version: 1.0.0Hook File:
hooks-handlers/session-start.shRelated
Learning Output Style
Interactive learning with code contributions
Plugin Development
Create your own SessionStart hooks