ClaudeCodeMod

All shelves / Plugins

explanatory-output-style

claude-code-plugins · 156.7k stars

Plugin Adds educational insights about implementation choices and codebase patterns (mimics the deprecated Explanatory output style)

Install

In Claude Code
/plugin marketplace add anthropics/claude-code
/plugin install explanatory-output-style@claude-code-plugins

Run inside Claude Code. Add its marketplace first. Check the repo's README before you run it.

Open the repo

What it adds

1 hook

Hooks 1

  • SessionStart${CLAUDE_PLUGIN_ROOT}/hooks-handlers/session-start.sh

Hooks run on your machine at these points in a session. Read them before you install.

Files

README.md

Explanatory Output Style Plugin

This plugin recreates the deprecated Explanatory output style as a SessionStart hook.

WARNING: Do not install this plugin unless you are fine with incurring the token cost of this plugin's additional instructions and output.

What it does

When enabled, this plugin automatically adds instructions at the start of each session that encourage Claude to:

  1. Provide educational insights about implementation choices
  2. Explain codebase patterns and decisions
  3. Balance task completion with learning opportunities

How it works

The plugin uses a SessionStart hook to inject additional context into every session. This context instructs Claude to provide brief educational explanations before and after writing code, formatted as:

`★ Insight ─────────────────────────────────────`
[2-3 key educational points]
`─────────────────────────────────────────────────`

Usage

Once installed, the plugin activates automatically at the start of every session. No additional configuration is needed.

The insights focus on:

  • Specific implementation choices for your codebase
  • Patterns and conventions in your code
  • Trade-offs and design decisions
  • Codebase-specific details rather than general programming concepts

Migration from Output Styles

This plugin replaces the deprecated "Explanatory" output style setting. If you previously used:

{
  "outputStyle": "Explanatory"
}

You can now achieve the same behavior by installing this plugin instead.

More generally, this SessionStart hook pattern is roughly equivalent to CLAUDE.md, but it is more flexible and allows for distribution through plugins.

Note: Output styles that involve tasks besides software development, are better expressed as subagents, not as SessionStart hooks. Subagents change the system prompt while SessionStart hooks add to the default system prompt.

Managing changes

  • Disable the plugin - keep the code installed on your device
  • Uninstall the plugin - remove the code from your device
  • Update the plugin - create a local copy of this plugin to personalize this plugin

Facts

Kind
Plugin
Marketplace
claude-code-plugins
Group
Learning
Stars
156.7k
Version
1.0.0
Author
Dickson Tsai
Category
learning
Marketplace repo
anthropics/claude-code
Files
4

Same repo on other shelves

Skills

  1. 1664Skill Developmentanthropics/claude-code19.7k
  2. 1666Agent Developmentanthropics/claude-code19.6k
  3. 1941MCP Integrationanthropics/claude-code15.6k

Marketplaces

  1. 5anthropics/claude-codeanthropics/claude-codeClaude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.156.7k

From the same marketplace

  1. 15feature-devclaude-code-pluginsComprehensive feature development workflow with specialized agents for codebase exploration, architecture design, and quality review156.7k
  2. 16frontend-designclaude-code-pluginsCreate distinctive, production-grade frontend interfaces with high design quality. Generates creative, polished code that avoids generic AI aesthetics.156.7k
  3. 17hookifyclaude-code-pluginsEasily create custom hooks to prevent unwanted behaviors by analyzing conversation patterns or from explicit instructions. Define rules via simple markdown files.156.7k
  4. 18learning-output-styleclaude-code-pluginsInteractive learning mode that requests meaningful code contributions at decision points (mimics the unshipped Learning output style)156.7k
  5. 19plugin-devclaude-code-pluginsComprehensive toolkit for developing Claude Code plugins. Includes 7 expert skills covering hooks, MCP integration, commands, agents, and best practices. AI-assisted plugin creation and validation.156.7k
  6. 20pr-review-toolkitclaude-code-pluginsComprehensive PR review agents specializing in comments, tests, error handling, type design, code quality, and code simplification156.7k