Skip to main content
plugin official · Anthropic

learning-output-style — Claude Code plugin: learning mode

Turns on an interactive mode where Claude asks you to write 5-10 lines at key decision points and explains its choices as you go.

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin install learning-output-style@claude-plugins-official
/plugin marketplace add anthropics/claude-plugins-official
Open on GitHub

What learning-output-style does

The plugin registers a SessionStart hook that injects extra instructions at the start of every session. From there Claude runs two modes at once: it looks for spots where the call is genuinely yours, sets up the context, and asks you to write a small piece of code. Alongside that you get notes on implementation choices and patterns in your codebase.

What lands on your desk: business logic with several valid approaches, error handling, algorithm or data structure picks, UX and architecture decisions. Boilerplate, configs, plain CRUD and obvious implementations Claude writes itself. The prompt is concrete, naming a file and function such as handleSessionTimeout() in auth/middleware.ts, with the trade-off spelled out.

The README carries a warning: skip this plugin if you are not fine with the token cost of the extra instructions and with the interactive nature of learning mode. Worth checking against the task in front of you. No configuration after install, it activates on its own each session.

What it helps with

  • get familiar with an unfamiliar codebase by writing the tricky parts yourself
  • settle on an error handling strategy together with the assistant
  • write business logic where several approaches would work
  • see the trade-offs explained before the code exists
  • stop the assistant from quietly deciding architecture for you

Example prompts for the agent

  • Turn on learning mode and show me where I should write the code myself
  • Walk me through the session timeout trade-offs and let me implement handleSessionTimeout()
  • Explain why you picked this data structure and offer me a variant to try

How to install learning-output-style

Plugin marketplace

/plugin install learning-output-style@claude-plugins-official
/plugin marketplace add anthropics/claude-plugins-official

Step by step, with commands for each platform: Claude Code plugins: marketplaces, installing, and building your own

Questions about learning-output-style

How do I install learning-output-style in Claude?

Add the marketplace first: /plugin marketplace add anthropics/claude-plugins-official, then install the plugin: /plugin install learning-output-style@claude-plugins-official.

What does learning-output-style do?

It enables an interactive learning mode: Claude asks you to write 5-10 lines where the choice matters, and explains the trade-offs. It also adds notes on implementation choices and your project's patterns.

How is it different from explanatory-output-style?

It merges the unshipped Learning output style with the functionality of explanatory-output-style: interactive learning plus code explanations. If you used explanatory-output-style, everything from it is here, with hands-on coding on top.

Source text

learning-output-style · Apache-2.0
# Learning Style Plugin

This plugin combines the unshipped Learning output style with explanatory functionality as a SessionStart hook.

**Note:** This plugin differs from the original unshipped Learning output style by also incorporating all functionality from the [explanatory-output-style plugin](https://github.com/anthropics/claude-code/tree/main/plugins/explanatory-output-style), providing both interactive learning and educational insights.

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

## What it does

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

1. **Learning Mode:** Engage you in active learning by requesting meaningful code contributions at decision points
2. **Explanatory Mode:** Provide educational insights about implementation choices and codebase patterns

Instead of implementing everything automatically, Claude will:

1. Identify opportunities where you can write 5-10 lines of meaningful code
2. Focus on business logic and design choices where your input truly matters
3. Prepare the context and location for your contribution
4. Explain trade-offs and guide your implementation
5. Provide educational insights before and after writing code

## How it works

The plugin uses a SessionStart hook to inject additional context into every session. This context instructs Claude to adopt an interactive teaching approach where you actively participate in writing key parts of the code.

## When Claude requests contributions

Claude will ask you to write code for:
- Business logic with multiple valid approaches
- Error handling strategies
- Algorithm implementation choices
- Data structure decisions
- User experience decisions
- Design patterns and architecture choices

## When Claude won't request contributions

Claude will implement directly:
- Boilerplate or repetitive code
- Obvious implementations with no meaningful choices
- Configuration or setup code
- Simple CRUD operations

## Example interaction

**Claude:** I've set up the authentication middleware. The session timeout behavior is a security vs. UX trade-off - should sessions auto-extend on activity, or have a hard timeout?

In `auth/middleware.ts`, implement the `handleSessionTimeout()` function to define the timeout behavior.

Consider: auto-extending improves UX but may leave sessions open longer; hard timeouts are more secure but might frustrate active users.

**You:** [Write 5-10 lines implementing your preferred approach]

## Educational insights

In addition to interactive learning, Claude will provide educational insights about implementation choices using this format:

```
`★ Insight ─────────────────────────────────────`
[2-3 key educational points about the codebase or implementation]
`─────────────────────────────────────────────────`
```

These 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

## Usage

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

## Migration from Output Styles

This plugin combines the unshipped "Learning" output style with the deprecated "Explanatory" output style. It provides an interactive learning experience where you actively contribute code at meaningful decision points, while also receiving educational insights about implementation choices.

If you previously used the explanatory-output-style plugin, this learning plugin includes all of that functionality plus interactive learning features.

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

## 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 it
  - Hint: Ask Claude to read https://docs.claude.com/en/docs/claude-code/plugins.md and set it up for you!

## Philosophy

Learning by doing is more effective than passive observation. This plugin transforms your interaction with Claude from "watch and learn" to "build and understand," ensuring you develop practical skills through hands-on coding of meaningful logic.

© Anthropic · Apache-2.0 · anthropics/claude-plugins-official

Similar plugins

All plugins for Agent setup: memory, context, orchestration →
continual-learning microsoft A skill that teaches AI agents to remember mistakes, tool patterns, and project conventions between sessions. Without it, each run starts fresh; with it, agents compound their knowledge and work more accurately. 79installs mentoring-juniors official github Turns Copilot into a mentor that guides juniors with questions instead of handing over answers. Useful when you are learning or reading unfamiliar code. 6,900installs continuous-learning affaan-m A stop-hook skill that reviews a session at its end and saves reusable patterns as learned skills. Useful for keeping fixes and user corrections around. CX Codex +1 4,500installs ponytail DietrichGebert ponytail steers Claude Code toward small, direct solutions and away from abstractions nobody asked for. Use it when you want the agent to build on what the project already has. ★ 176,443repo stars impeccable pbakaus Hands your agent a designer's vocabulary: 24 commands like polish, audit and bolder, so UI feedback stops being “make it pretty”. ★ 88,212repo stars last-30-days-skill mvanhorn Searches the web for what people posted about a topic in the last month and turns it into one structured brief. ★ 65,508repo stars claude-hud jarrodwatts Shows context usage, rate limits, running tools and todo progress under your input line. Useful when a session runs long and you want to watch the spend. ★ 28,841repo stars understand-anything Egonex-AI Turns codebases or markdown wikis into an interactive knowledge graph with a browser dashboard. Helps navigate unfamiliar repositories without reading files blindly. ★ 88,314repo stars

From the same set123

The whole set →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor